/* ================================================================
   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: var(--text-xs);
  letter-spacing: .04em;
  color: var(--ink-mute);
  background: var(--bg);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
}

/* Nav extras (.nav-logo, .nav-spacer, .icon-btn, .nav-burger, .nav-link-cta) and
   the footer now live in brand-gp.css as shared chrome — loaded on every page. */
/* 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-top: var(--space-9); padding-bottom: 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: var(--text-md); }
.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;
  perspective: 900px;
}
.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));
  transform: translate3d(calc(var(--mx, 0) * 16px), calc(var(--my, 0) * 16px), 0)
             rotateY(calc(var(--mx, 0) * 8deg)) rotateX(calc(var(--my, 0) * -8deg));
  transition: transform .3s ease-out;
  will-change: transform;
}
.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);
  transform: translate3d(calc(var(--mx, 0) * -26px), calc(var(--my, 0) * -26px), 0);
  transition: transform .45s ease-out;
  will-change: transform;
}
.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: var(--text-sm); font-weight: var(--weight-semibold);
  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 ---- */
/* Full-bleed brand-gradient marquee (same band as the CS-Lab tool pages, but scrolling) */
.techstrip { background: var(--grad-static); overflow: hidden; }
.techstrip-track { display: flex; width: max-content; animation: tech-scroll 42s linear infinite; }
.techstrip-track:hover { animation-play-state: paused; }
.techstrip-group { display: flex; align-items: center; padding: 13px 0; }
.techstrip .t { font-family: var(--font-mono); font-size: var(--text-md); font-weight: var(--weight-medium); color: rgba(14,14,20,.82); white-space: nowrap; }
.techstrip .t-label { font-family: var(--font-display); font-weight: 700; color: #0d0d12; }
.techstrip .t::before { content: "✦"; margin: 0 clamp(20px, 3.4vw, 34px); color: rgba(10,10,16,.42); font-size: 12px; vertical-align: 1px; }
@keyframes tech-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .techstrip-track { animation: none; } }

/* ---- 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/.tc-cyan/.tc-yellow leben jetzt zentral in brand-gp.css (§8 Tool-Karte),
   damit auch Seiten ohne site.css (CS-Lab-Galerie) die Akzente bekommen. */

.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: var(--text-lg); margin-bottom: 8px; }
.tool-card .tc-desc { font-size: var(--text-md); color: var(--ink-soft); line-height: 1.6; flex: 1; }
.tc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; }
.tc-btn { margin-top: 18px; }

/* ---- NEWSLETTER ARCHIVE (issue list, Ali-Abdaal style) ---- */
.issue-list { display: flex; flex-direction: column; gap: 14px; }
.issue-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 28px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: .25s var(--ease); }
.issue-row:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c-pink) 40%, var(--line)); }
.issue-row h3 { margin: 0; font-size: var(--text-lg); }
.issue-row .issue-date { color: var(--ink-soft); font-size: var(--text-sm); white-space: nowrap; }
.issue-year { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--radius-full); background: var(--surface); border: 1px solid var(--line); font-family: var(--font-mono); font-size: var(--text-sm); }

/* compact subscribe box in the article sidebar (newsletter issues) */
.aside-sub-copy { font-size: var(--text-sm); color: var(--ink-soft); margin: 4px 0 12px; line-height: 1.5; }
.aside-sub .news-form { flex-direction: column; align-items: stretch; gap: 10px; }
.aside-sub .news-form input, .aside-sub .news-form button { width: 100%; }
.tc-tag { font-family: var(--font-mono); font-size: var(--text-2xs); 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: var(--weight-semibold); font-size: var(--text-base); 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: var(--text-lg); 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: var(--text-base); }

/* ---- FOOTER ---- */
/* Footer styles live in brand-gp.css (shared chrome). The footer markup is a
   single-source partial baked into every non-legal page by build-includes.mjs. */

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

/* ---- Hero bleibt zweispaltig: Textspalte gewichten, Bühne schrumpfen
        und dekorativ entschlacken (Blob weg, Glow/Schatten reduziert) ---- */
@media (max-width: 900px) {
  .hero { padding-top: var(--space-8); padding-bottom: 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-Dropdown moved to brand-gp.css — shared chrome.) */

/* ---- 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; }
}

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


/* ---- 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; }
  .bulb-stage .gp-bulb, .hero-disc { transform: none !important; }
}

/* Marken-Gradienten einfrieren: voller Verlauf, keine Dauerbewegung */
@media (prefers-reduced-motion: reduce) {
  .btn-grad, .grad-bg, .grad-text,
  .btn-ghost::before, .btn-ghost:hover,
  .btn-outline-grad::before, .btn-outline-grad:hover {
    animation: none !important;
    background-size: 100% 100% !important;
  }
  .grad-svg-animated stop { animation: none !important; }
}


/* ================================================================
   ARTICLE / CASE STUDY  (listing + project/case-study pages)
   ================================================================ */
/* ---- POST HERO (full container width) ---- */
  .post-hero { padding-top: var(--space-8); padding-bottom: var(--space-7); }
  .post-hero h1 { max-width: 16ch; margin-top: 18px; font-size: clamp(34px, 5.5vw, 64px); }
  .post-hero .lead { max-width: 720px; margin-top: 18px; }
  /* Pill/kicker row above the headline */
  .post-kicker { margin-top: 18px; }
  .post-meta { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; color: var(--ink-mute); font-size: var(--text-md); margin-top: 28px; }
  .post-meta .author { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-weight: var(--weight-semibold); }
  .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: var(--text-xs); 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: var(--text-md); 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: var(--text-lg); 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 a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
  .prose a:hover { color: var(--ink); }
  .prose figure { margin: var(--space-6) 0; }
  .prose figure .ph { height: 340px; }
  .prose figcaption { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-mute); text-align: center; margin-top: 10px; }
  .pull { font-family: var(--font-display); font-weight: var(--weight-bold); 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: var(--weight-extrabold); 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; }
  .breadcrumb { font-size: var(--text-sm); 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; } }
