/* ================================================================
   site.css — Gifted Procrastinator
   Layout-spezifische Ergänzungen zur brand-gp.css
   ================================================================ */

/* ---- Bild-Platzhalter (gestreift + Mono-Label) ---- */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      color-mix(in srgb, var(--c-cyan) 9%, var(--surface)) 0 10px,
      var(--surface) 10px 20px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ph span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-mute);
  background: var(--bg);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
}

/* ---- NAV-Ergänzungen ---- */
.nav-logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
/* Logo hover: swap — "Gifted" → Verlauf, "Procrastinator" → einfarbig (ink).
   Beide Seiten tragen immer den Verlauf; nur text-fill-color animiert (identisches Timing). */
.nav-logo .logo-g, .nav-logo .logo-p {
  background: var(--grad-static);
  -webkit-background-clip: text;
  background-clip: text;
  transition: -webkit-text-fill-color .28s var(--ease), color .28s var(--ease);
}
.nav-logo .logo-g { -webkit-text-fill-color: var(--ink); color: var(--ink); }
.nav-logo .logo-p { -webkit-text-fill-color: transparent; color: transparent; }
.nav-logo:hover { color: var(--ink); }
.nav-logo:hover .logo-g { -webkit-text-fill-color: transparent; color: transparent; }
.nav-logo:hover .logo-p { -webkit-text-fill-color: var(--ink); color: var(--ink); }
.nav-logo .dot { width: 13px; height: 13px; border-radius: 50%; flex: none; }
.nav-logo .logo-bulb { width: 26px; height: 26px; flex: none; }
.nav-spacer { flex: 1; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-soft); cursor: pointer; transition: .2s var(--ease);
}
.icon-btn:hover { color: var(--ink); border-color: var(--ink-mute); }
.nav-burger { display: none; }
/* Subscribe-Eintrag im Dropdown — nur in der mobilen Menü-Variante sichtbar */
.nav-link-cta { display: none; }
/* Gradient CTA buttons: no border / focus outline */
.btn-grad-static { border: none; }
.btn-grad-static:focus,
.btn-grad-static:focus-visible { outline: none; }

/* ---- HERO ---- */
.hero { padding: var(--space-9) 0 var(--space-8); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: var(--space-8);
  align-items: center;
}
/* Grid-Kinder dürfen unter ihre Inhaltsbreite schrumpfen — sonst erzwingt die
   große H1 horizontalen Overflow auf schmalen Viewports. */
.hero-grid > * { min-width: 0; }
.hero h1 { margin: 14px 0 0; overflow-wrap: break-word; }
.hero .lead { margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta { display: flex; align-items: center; gap: 14px; margin-top: 28px; color: var(--ink-mute); font-size: 14px; }
.avatar-stack { display: flex; }
.avatar-stack .av {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--bg);
  margin-left: -10px; background: var(--grad-static); background-size: cover;
}
.avatar-stack .av:first-child { margin-left: 0; }

/* Portrait-Blob im Hero */
.hero-art { position: relative; }
.hero-blob {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 46% 54% 58% 42% / 48% 42% 58% 52%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
/* Animated lightbulb stage in hero — LIGHT theme: soft luminous lightbox */
.bulb-stage {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 46% 54% 58% 42% / 48% 42% 58% 52%;
  background: radial-gradient(120% 115% at 50% 30%, #ffffff 0%, var(--surface) 62%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.bulb-stage::after {
  content: "";
  position: absolute; width: 82%; aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--c-yellow) 60%, transparent) 0%, transparent 55%),
    radial-gradient(circle at 38% 62%, color-mix(in srgb, var(--c-cyan) 48%, transparent) 0%, transparent 58%),
    radial-gradient(circle at 64% 70%, color-mix(in srgb, var(--c-pink) 48%, transparent) 0%, transparent 58%);
  filter: blur(40px);
  opacity: .65;
  display: none;
}
/* DARK theme: dramatic near-black with glow */
.dark .bulb-stage {
  background: radial-gradient(125% 120% at 50% 32%, #16161b 0%, #0b0b0e 60%, #060608 100%);
  border-color: rgba(255,255,255,.06);
  box-shadow: var(--shadow-lg), inset 0 0 60px rgba(0,0,0,.6);
}
.dark .bulb-stage::after {
  width: 78%;
  filter: blur(34px);
  opacity: .9;
}
.bulb-stage .gp-bulb { position: relative; width: 64%; max-width: 300px; overflow: visible; filter: drop-shadow(0 10px 26px color-mix(in srgb, var(--c-pink) 26%, transparent)); }
.gp-bulb .gpbcls-1 { fill: url(#gpb-grad); }
.hero-disc {
  position: absolute; inset: auto -8% -10% auto;
  width: 64%; aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(225deg, var(--c-pink) 0%, var(--c-cyan) 50%, var(--c-yellow) 100%);
  z-index: -1; opacity: .9;
  filter: blur(2px);
}
.sticky-tag {
  position: absolute; z-index: 2;
  background: var(--bg); border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 9px;
}
.sticky-tag .badge { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; }
.tag-tl { top: 8%; left: -7%; }
.tag-br { bottom: 12%; right: -6%; }

/* ---- TECH-STRIP ---- */
.techstrip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.techstrip-row { display: flex; align-items: center; gap: 38px; flex-wrap: wrap; justify-content: center; }
.techstrip-row .t { font-family: var(--font-mono); font-size: 14px; color: var(--ink-mute); font-weight: 500; }

/* ---- SEKTIONS-KOPF (SheCodes-Stil) ---- */
.sec-head { display: grid; grid-template-columns: 1.3fr .7fr; gap: var(--space-6); align-items: end; margin-bottom: var(--space-7); }
.sec-head h2 { margin-top: 12px; }
.sec-head p { margin-top: 0; }
@media (max-width: 820px) { .sec-head { grid-template-columns: 1fr; } }

/* ---- PROJEKT-GRID ---- */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
@media (max-width: 900px) { .proj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .proj-grid { grid-template-columns: 1fr; } }

.tc-pink   { --ca: var(--c-pink);   --ca-d: var(--c-pink-d); }
.tc-cyan   { --ca: var(--c-cyan);   --ca-d: var(--c-cyan-d); }
.tc-yellow { --ca: var(--c-yellow); --ca-d: var(--c-yellow-d); }

.tool-card { display: flex; flex-direction: column; height: 100%; }
.tc-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.tool-card h3 { font-size: 19px; margin-bottom: 8px; }
.tool-card .tc-desc { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; flex: 1; }
.tc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 18px; }
.tc-tag { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); background: var(--bg); border: 1px solid var(--line); padding: 4px 9px; border-radius: var(--radius-full); }

/* ---- HIGHLIGHT-PROJEKT (breite Karte) ---- */
.feature {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.feature .ph { border: none; border-radius: 0; min-height: 340px; }
.feature-body { padding: var(--space-7); display: flex; flex-direction: column; justify-content: center; }
.feature-body h2 { margin: 16px 0 14px; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } }

/* ---- ÜBER-MICH ---- */
.about { background: var(--surface); border-radius: var(--radius); padding: var(--space-8); position: relative; overflow: hidden; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
.about-grid .script { font-size: clamp(40px, 6vw, 68px); line-height: 1; color: var(--ink); }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 14px; }
.about-photos .ph:first-child { grid-column: span 2; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

/* ---- MASKOTTCHEN-BÜHNE (Frenchies) ---- */
.about-art { position: relative; }
.mascot-stage {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  /* Charcoal-Bühne — weicher als reines Schwarz, Frenchies heben sich klar ab */
  background: radial-gradient(125% 120% at 50% 30%, #32323a 0%, #26262c 60%, #1e1e23 100%);
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: var(--shadow-lg), inset 0 0 50px rgba(0,0,0,.4);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.mascot-stage::before {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 1;
  background:
    radial-gradient(40% 52% at 24% 64%, color-mix(in srgb, var(--c-pink)   45%, transparent) 0%, transparent 70%),
    radial-gradient(40% 52% at 50% 64%, color-mix(in srgb, var(--c-cyan)   38%, transparent) 0%, transparent 70%),
    radial-gradient(40% 52% at 76% 64%, color-mix(in srgb, var(--c-yellow) 42%, transparent) 0%, transparent 70%);
  filter: blur(30px);
}
.mascot-img {
  position: relative; z-index: 1;
  width: 90%; max-width: 460px;
  transform: translateY(8%);
  filter: drop-shadow(0 14px 30px color-mix(in srgb, var(--c-pink) 22%, transparent));
}
/* Mascot-Reel — Video füllt die Bühne, immer zentriert */
.mascot-media {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  background: #0b0b0e;
}
.mascot-tag { bottom: -18px; right: 24px; }

/* Frenchie-Trio neben der Follower-Zeile (Originalform, unbeschnitten) */
.follow-frenchies { width: 74px; height: auto; flex: none; filter: drop-shadow(0 4px 10px color-mix(in srgb, var(--c-pink) 26%, transparent)); }

/* ---- NEWSLETTER ---- */
.news {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  padding: var(--space-8);
  background:
    radial-gradient(600px 300px at 100% 0%, color-mix(in srgb, var(--c-cyan) 16%, transparent), transparent 70%),
    radial-gradient(600px 300px at 0% 100%, color-mix(in srgb, var(--c-pink) 16%, transparent), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
}
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
.news-form { display: flex; gap: 10px; }
.news-form input { flex: 1; }
.news-form .btn { flex: none; }
@media (max-width: 820px) { .news-grid { grid-template-columns: 1fr; } .news-form { flex-direction: column; } }

/* ---- FAQ ---- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 4px 22px; margin-bottom: 12px;
  transition: .25s var(--ease);
}
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 0;
  font-weight: 600; font-size: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); font-size: 18px; transition: .25s var(--ease); }
.faq details[open] summary .pm { transform: rotate(45deg); color: var(--accent); border-color: var(--accent); }
.faq details p { padding: 0 0 20px; font-size: 15px; }

/* ---- FOOTER ---- */
.footer { border-top: 1px solid var(--line); padding: var(--space-8) 0 var(--space-6); margin-top: var(--space-9); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--space-6); }
.footer h6 { font-size: 13px; letter-spacing: .04em; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 14px; color: var(--ink-soft); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--line); color: var(--ink-mute); font-size: 13px; }
.footer-social { display: flex; gap: 10px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* ---- Hero bleibt zweispaltig: Textspalte gewichten, Bühne schrumpfen
        und dekorativ entschlacken (Blob weg, Glow/Schatten reduziert) ---- */
@media (max-width: 900px) {
  .hero { padding: var(--space-8) 0 var(--space-7); }
  .hero-grid { grid-template-columns: 1.45fr .85fr; gap: var(--space-6); }
  .hero-disc { display: none; }
  .bulb-stage { box-shadow: var(--shadow-md); }
  .dark .bulb-stage { box-shadow: var(--shadow-md), inset 0 0 40px rgba(0,0,0,.6); }
  .dark .bulb-stage::after { filter: blur(26px); opacity: .8; }
  .bulb-stage .gp-bulb { width: 72%; }
}

/* ---- Mobile-Nav: Burger blendet ein, Links werden zum Dropdown-Panel,
        „Subscribe" wandert aus der engen Leiste ins Menü ---- */
@media (max-width: 860px) {
  .nav-burger { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-links {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px 16px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav.nav-open .nav-links { display: flex; }
  .nav-links .nav-link { padding: 12px; font-size: 15px; }
  .nav-link-cta { display: block; color: var(--accent); font-weight: 700; }
}

/* ---- Erst bei echtem Mobile stapeln: Text zuerst (Value-Prop führt),
        Bild als kleinere Marken-Stütze darunter ---- */
@media (max-width: 620px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .hero-art { order: 1; max-width: 300px; margin: 6px auto 0; }
  .hero h1 { font-size: clamp(30px, 8.5vw, 60px); }
  .bulb-stage .gp-bulb { width: 64%; }
}

/* ---- Kleine Phones: großzügige Paddings reduzieren, Footer einspaltig,
        große Display-Wörter umbrechbar (sonst Overflow durch „Procrastinator") ---- */
@media (max-width: 520px) {
  .about { padding: var(--space-6); }
  .feature-body, .news { padding: var(--space-6); }
  .about-grid .script { font-size: clamp(30px, 9vw, 56px); overflow-wrap: break-word; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---- Phones (inkl. große): Glühbirnen-Bild ganz weglassen (Text-only Hero) ---- */
@media (max-width: 480px) {
  .hero-art { display: none; }
}

/* ---- Sehr schmal: Wortmarke + Bar dürfen nicht überlaufen ---- */
@media (max-width: 400px) {
  .nav-inner { padding: 0 16px; gap: 10px; }
  .nav-logo { font-size: 16px; }
}

/* ---- Scroll-Reveal ---- */
.reveal { opacity: 0; transform: translateY(20px); transition: .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }


/* ================================================================
   ARTICLE / CASE STUDY  (project.html only)
   ================================================================ */
/* ---- POST HERO (full container width) ---- */
  .post-hero { padding-top: var(--space-8); padding-bottom: var(--space-7); }
  .post-hero h1 { max-width: 16ch; }
  .post-hero .lead { max-width: 720px; }
  .post-meta { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; color: var(--ink-mute); font-size: 14px; margin-top: 28px; }
  .post-meta .author { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-weight: 600; }
  .post-meta .author .av-frenchies { height: 30px; width: auto; flex: none; filter: drop-shadow(0 2px 5px color-mix(in srgb, var(--c-pink) 26%, transparent)); }

  /* full-bleed cover spanning the container */
  .post-cover { height: clamp(300px, 46vw, 560px); margin: var(--space-7) 0 0; }

  /* ---- ARTICLE BODY: full-width two-column layout ---- */
  .article-layout {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    gap: var(--space-8);
    align-items: start;
    padding: var(--space-8) 0;
  }
  .article-aside { position: sticky; top: 90px; display: flex; flex-direction: column; gap: var(--space-6); }
  .aside-block h6 { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 14px; }
  .toc { display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
  .toc a { font-size: 14px; color: var(--ink-soft); padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; line-height: 1.4; }
  .toc a:hover { color: var(--ink); border-color: var(--accent); }
  .aside-cta { display: flex; flex-direction: column; gap: 10px; }
  .aside-tags { display: flex; flex-wrap: wrap; gap: 6px; }
  .share-row { display: flex; gap: 8px; }

  .article-main { max-width: 760px; }

  .prose { font-size: 18px; line-height: 1.8; color: var(--ink-soft); }
  .prose > h2:first-child, .prose > p:first-child { margin-top: 0; }
  .prose h2 { margin: var(--space-7) 0 var(--space-3); }
  .prose h3 { margin: var(--space-6) 0 var(--space-2); }
  .prose p { margin-bottom: 1.1em; }
  .prose ul { margin: 0 0 1.2em 1.1em; color: var(--ink-soft); line-height: 1.8; }
  .prose ul li { margin-bottom: .4em; }
  .prose strong { color: var(--ink); }
  .prose figure { margin: var(--space-6) 0; }
  .prose figure .ph { height: 340px; }
  .prose figcaption { font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute); text-align: center; margin-top: 10px; }
  .pull { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px,3vw,30px); line-height: 1.4; color: var(--ink); border-left: 4px solid; border-image: var(--grad-static) 1; padding: 6px 0 6px 24px; margin: var(--space-7) 0; letter-spacing: -.01em; }
  .closing-line { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; font-size: clamp(26px,3.4vw,38px); line-height: 1.25; text-align: center; max-width: 18ch; margin: var(--space-8) auto; text-wrap: balance; }
  .codeblock { background: var(--ink); color: #f6f6f8; border-radius: var(--radius-sm); padding: 20px 22px; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.7; overflow-x: auto; margin: var(--space-5) 0; }
  .dark .codeblock { background: #0c0c10; border: 1px solid var(--line); }
  .codeblock .c { color: #76767f; }
  .codeblock .k { color: var(--c-cyan); }
  .codeblock .s { color: var(--c-yellow); }
  .breadcrumb { font-size: 13px; color: var(--ink-mute); display: flex; gap: 8px; align-items: center; }
  .breadcrumb a:hover { color: var(--accent); }

  /* newsletter strip inside article column */
  .article-news { max-width: 760px; }

  .related { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-5); }
  @media (max-width: 940px){
    /* minmax(0,1fr) statt 1fr: Spalte darf unter ihre Inhaltsbreite schrumpfen,
       sonst bläht der Code-Block (overflow-x:auto) die Spalte auf. */
    .article-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
    .article-aside { position: static; flex-direction: row; flex-wrap: wrap; gap: var(--space-6); }
    .toc { display: none; }
    .article-main, .article-news { max-width: none; min-width: 0; }
  }
  @media (max-width: 720px){ .related { grid-template-columns: 1fr; } }
