/* ============================================================
   3CheeseHigh — warm-light brand site, mobile first
   ============================================================ */

/* Self-hosted Inter (variable). Eliminates the Google Fonts CDN call so
   visitor IPs never reach Google — sidesteps the most painful DSGVO
   stumbling block for a static brand page. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('assets/fonts/InterVariable.woff2') format('woff2-variations'),
       url('assets/fonts/InterVariable.woff2') format('woff2');
}

/* -------- reset & base -------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Warm light palette taken straight from the logo: cream backdrop, navy
     outline (the dark text), cheese-yellow for accents. Premium-but-friendly
     instead of premium-but-cold. */
  --bg: #faf5e8;             /* cream — matches the logo's own backdrop */
  --bg-2: #f1e7d1;           /* slightly deeper cream for stratification */
  --surface: #ffffff;        /* clean card surface, contrasts gently with bg */
  --surface-2: #fffdf6;      /* hover / nested */
  --border: rgba(26, 34, 56, 0.08);
  --border-strong: rgba(26, 34, 56, 0.16);
  --text: #1a2238;           /* navy from the logo outline */
  --text-dim: rgba(26, 34, 56, 0.66);
  --text-faint: rgba(26, 34, 56, 0.42);
  /* Three-step cheese hierarchy, matched to the logo's gradient. */
  --accent: #fbbf24;         /* primary — middle cheese block */
  --accent-soft: #fcd34d;    /* lightest — hover / top wedge */
  --accent-deep: #f59e0b;    /* deepest — base block, used sparingly */
  --accent-ink: #b45309;     /* legible amber for accent text on cream */
  --cream: #f5ecdb;          /* logo backdrop tone */
  --coffee: #fcd34d;
  /* Soft warm shadow recipe shared by every card on the page. */
  --shadow-card: 0 1px 2px rgba(26, 34, 56, 0.04), 0 8px 28px -12px rgba(26, 34, 56, 0.12);
  --shadow-card-hover: 0 2px 4px rgba(26, 34, 56, 0.05), 0 16px 40px -16px rgba(26, 34, 56, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --max-w: 1100px;
  --section-y: clamp(2.5rem, 5vw, 4.5rem);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* -------- ambient glow background -------- */

.bg-glow {
  position: fixed;
  inset: -20vh -20vw;
  z-index: -1;
  background:
    radial-gradient(60vw 50vh at 18% 5%, rgba(252, 211, 77, 0.35), transparent 55%),
    radial-gradient(50vw 55vh at 90% 85%, rgba(245, 158, 11, 0.18), transparent 60%),
    radial-gradient(40vw 40vh at 50% 50%, rgba(255, 248, 230, 0.6), transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

/* -------- layout primitives -------- */

main { position: relative; }

.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-y) clamp(1.25rem, 5vw, 3rem);
}

.section-header {
  margin-bottom: clamp(1.5rem, 3.5vw, 2.5rem);
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 0.75rem;
}

h1, h2, h3 { font-family: 'Inter', sans-serif; letter-spacing: -0.02em; }

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

p { color: var(--text-dim); }

/* -------- hero -------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem clamp(1.25rem, 5vw, 3rem) 5.5rem;
  text-align: center;
}

.hero-inner {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* The brand logo PNG ships with a cream square backdrop. On a dark page
   that square reads as a sticker — so we crop it to a circle (the logo's
   own ring already defines that shape) and add a warm halo behind it so
   the cream tile lands intentionally rather than glued on. */
.hero-logo {
  width: clamp(140px, 24vw, 200px);
  height: clamp(140px, 24vw, 200px);
  margin-bottom: 2rem;
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.hero-logo::before {
  content: '';
  position: absolute;
  inset: -30%;
  background: radial-gradient(closest-side, rgba(252, 211, 77, 0.45), transparent 70%);
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(26, 34, 56, 0.08),
    0 24px 60px -20px rgba(180, 83, 9, 0.45),
    0 8px 24px -8px rgba(26, 34, 56, 0.18);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  color: var(--text);
}

.asterisk {
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
}

.hero-footnote {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-faint);
  max-width: 460px;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.hero-footnote em { font-style: italic; color: var(--text-dim); }

.hero-tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.hero-subline {
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  color: var(--text-faint);
  max-width: 480px;
}

/* Pinned to the bottom of the hero so it always reads as a horizon line
   — the user knows there's more below, without it floating in dead space. */
.hero-scroll {
  position: absolute;
  bottom: clamp(1.5rem, 4vw, 2.5rem);
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  animation: bob 2.6s ease-in-out infinite;
}
.hero-scroll:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border-strong);
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 4px); }
}

/* -------- card grid (projects) -------- */

.project-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}

.card {
  display: block;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(252, 211, 77, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card-hover);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(252, 211, 77, 0.22);
  border: 1px solid rgba(245, 158, 11, 0.35);
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  color: var(--accent-ink);
  font-size: 1.25rem;
}

.card h3 { margin-bottom: 0.5rem; }

.card p { font-size: 0.95rem; }

.card-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--accent-ink);
  font-weight: 600;
  transition: transform 0.2s ease;
}
.card:hover .card-link { transform: translateX(2px); }

.card-placeholder {
  opacity: 0.7;
  cursor: default;
}
.card-placeholder:hover { transform: none; border-color: var(--border); box-shadow: var(--shadow-card); }
.card-placeholder .card-icon { color: var(--text-faint); background: var(--bg-2); border-color: var(--border); }

/* -------- feature section (Lumina detail) -------- */

.feature {
  padding-top: clamp(1rem, 3vw, 2rem);
}

.feature-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow-card);
}

@media (min-width: 820px) {
  .feature-grid { grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
}

.feature-copy h2 { margin-bottom: 1.25rem; }
.feature-copy p { margin-bottom: 1rem; font-size: 1rem; }
.feature-copy p:last-of-type { margin-bottom: 2rem; }

.feature-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Sunrise-gradient backdrop for the inline curve preview — picks up the
   same warm palette as the bg-glow and reads as "of the same world" as the
   surrounding light card. */
.feature-visual {
  background:
    radial-gradient(120% 80% at 50% 100%, rgba(245, 158, 11, 0.18), transparent 60%),
    linear-gradient(180deg, #fff8e6 0%, #ffe8b8 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  overflow: hidden;
}
.feature-visual svg { width: 100%; height: auto; display: block; }

/* -------- buttons -------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--text);
  color: #fff8e1;
  font-weight: 600;
  box-shadow: 0 6px 22px -8px rgba(26, 34, 56, 0.4);
}
.btn-primary:hover { background: #2a3454; transform: translateY(-1px); box-shadow: 0 10px 28px -8px rgba(26, 34, 56, 0.5); }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--text); }

.btn-coffee {
  background: var(--accent);
  color: var(--text);
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  box-shadow: 0 8px 24px -8px rgba(245, 158, 11, 0.55);
}
.btn-coffee:hover { background: var(--accent-soft); transform: translateY(-1px); box-shadow: 0 12px 30px -8px rgba(245, 158, 11, 0.65); }

/* -------- coffee section -------- */

.coffee { text-align: center; }
.coffee-card {
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.coffee-card h2 { margin-bottom: 1rem; }
.coffee-card p { margin-bottom: 1.75rem; }

/* -------- contact -------- */

.contact-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.contact-item:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow-card-hover); }

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(252, 211, 77, 0.22);
  border: 1px solid rgba(245, 158, 11, 0.35);
  display: grid;
  place-items: center;
  color: var(--accent-ink);
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.78rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}
.contact-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

/* -------- footer -------- */

footer {
  border-top: 1px solid var(--border);
  margin-top: clamp(1rem, 3vw, 2rem);
  padding: 2rem clamp(1.25rem, 5vw, 3rem);
  background: var(--bg-2);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}
@media (min-width: 720px) {
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}

.footnote {
  font-size: 0.8rem;
  color: var(--text-faint);
  font-style: italic;
  max-width: 540px;
}
.footnote em { font-style: italic; color: var(--text-dim); }

.copy {
  font-size: 0.78rem;
  color: var(--text-faint);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
}
@media (min-width: 720px) { .footer-meta { align-items: flex-end; } }

.footer-links {
  display: flex;
  gap: 1.2rem;
  font-size: 0.78rem;
}
.footer-links a {
  color: var(--text-faint);
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--text); }

/* -------- legal pages (Impressum, Datenschutz) -------- */

body.legal { padding-top: 0; }

.legal-header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem clamp(1.25rem, 5vw, 3rem) 0;
}
.legal-home {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 600;
}
.legal-home img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(26, 34, 56, 0.08);
}
.legal-home:hover { color: var(--accent-ink); }

.legal-main {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 3rem);
}
.legal-back {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  transition: color 0.2s ease;
}
.legal-back:hover { color: var(--text); }

.legal-main h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  color: var(--text);
}
.legal-main section { margin-bottom: 2rem; }
.legal-main h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--text);
}
.legal-main p,
.legal-main ul {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-bottom: 0.8rem;
  line-height: 1.65;
}
.legal-main ul { padding-left: 1.2rem; }
.legal-main li { margin-bottom: 0.3rem; }
.legal-main a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(180, 83, 9, 0.4);
}
.legal-main a:hover { text-decoration-color: var(--accent-ink); }
.legal-meta { font-size: 0.85rem; color: var(--text-faint); font-style: italic; }

/* -------- reveal-on-scroll animation -------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
