/* ================================================================
   DIGITAL GROWTH — Website Redesign (Draft Runde 2)
   Pixel-faithful static build from Figma "DIGITAL GROWTH WEBSITE".
   Figma canvas = 1728px wide, content column = 1568px (80px margins).
   All type sizes / colours / spacing transcribed from the Figma nodes.
   No build tools, no framework. Shared chrome + tokens live here.
   ================================================================ */

/* ===== FONT — real licensed "Matter" (Displaay Type Foundry) =======
   Licensed woff2 self-hosted from assets/fonts/ (Ivo's Displaay licence,
   2026-07-13). Three static cuts cover the whole site:
     Regular 400  → body, nav, links, legal
     Bold 700     → any non-italic bold
     BoldItalic 700 italic → hero display ("In trust we move")
   Hanken Grotesk stays as the fallback while the woff2 loads (font-display
   swap) and for any weight the static cuts don't carry. ================ */
@font-face{ font-family:'Matter'; src:url('../fonts/Matter-Regular.woff2') format('woff2');
            font-weight:400; font-style:normal; font-display:swap; }
@font-face{ font-family:'Matter'; src:url('../fonts/Matter-Bold.woff2') format('woff2');
            font-weight:700; font-style:normal; font-display:swap; }
@font-face{ font-family:'Matter'; src:url('../fonts/Matter-BoldItalic.woff2') format('woff2');
            font-weight:700; font-style:italic; font-display:swap; }
/* Hanken Grotesk (OFL, assets/fonts/OFL-HankenGrotesk.txt) self-hosted since
   2026-11-26 instead of fonts.googleapis.com: no visitor IP goes to Google.
   Latin + latin-ext subsets, same unicode-ranges as Google serves. */
@font-face{ font-family:'Hanken Grotesk'; src:url('../fonts/HankenGrotesk-Italic-latin-ext.woff2') format('woff2');
            font-weight:300 800; font-style:italic; font-display:swap;
            unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face{ font-family:'Hanken Grotesk'; src:url('../fonts/HankenGrotesk-Italic-latin.woff2') format('woff2');
            font-weight:300 800; font-style:italic; font-display:swap;
            unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face{ font-family:'Hanken Grotesk'; src:url('../fonts/HankenGrotesk-Roman-latin-ext.woff2') format('woff2');
            font-weight:300 800; font-style:normal; font-display:swap;
            unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face{ font-family:'Hanken Grotesk'; src:url('../fonts/HankenGrotesk-Roman-latin.woff2') format('woff2');
            font-weight:300 800; font-style:normal; font-display:swap;
            unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root{
  /* --- the single font handle --- */
  --font-matter: 'Matter', 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* --- brand colours (exact Figma tokens) --- */
  --blue:       #3363FF;   /* BLUE 2 — hero band, footer CTA, accents */
  --yellow:     #FAEA53;   /* YELLOW (Brand) — article CTA band */
  --yellow-new: #FFF595;   /* YELLOW (NEW) — hero text, pills, Growth Hub bg */
  --sage-1:     #4B4E40;
  --sage-3:     #BAC8B1;
  --ink:        #000000;
  --paper:      #FFFFFF;

  /* --- layout --- */
  --maxw: 1568px;
  --gutter: clamp(20px, 4.6vw, 80px);

  /* --- type scale (upper bound = exact Figma px) --- */
  --fs-display: clamp(3rem, 10.6vw, 160px);   /* hero, 160 */
  --fs-h:       clamp(2rem, 4.4vw, 64px);     /* section + intro headings, 64/70 */
  --fs-h2:      clamp(1.7rem, 2.9vw, 40px);   /* offer-row titles */
  --fs-link:    clamp(1.6rem, 3.1vw, 50px);   /* Contact / Offers big links, 50 */
  --fs-sub:     clamp(1.15rem, 1.7vw, 24px);  /* hero subtitle / lead, 24 */
  --fs-body:    clamp(1rem, 1.15vw, 20px);    /* body, 20/24 */
  --fs-legal:   clamp(1rem, 1.4vw, 30px);     /* footer legal, 30 */
}

*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0; background:var(--paper); color:var(--ink);
  font-family:var(--font-matter); font-weight:430;
  font-size:var(--fs-body); line-height:1.4;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
img{ max-width:100%; display:block; }
/* Designerin Runde-7 #2: every underline sits further away from its text.
   One global handle — links inherit it wherever text-decoration:underline is set
   (intro body, "Let's chat", footer, article). The blue newsletter block gets an
   additional, finer rule further down (.footer__cta). */
/* Runde 9 (Sara 24.11.2026): überall näher am Text, und proportional: ein fixer
   Sockel plus ein kleiner em-Anteil. Kleine Schrift liegt relativ etwas weiter
   weg, grosse relativ näher (16px → 2.5px = .16em, 35px → 3.6px = .10em,
   64px → 5.3px = .08em). Vorher .22em bzw. .3em im blauen Block (64px → 19px). */
:root{ --u-offset: calc(.06em + 1.5px); }
a{ color:inherit; text-underline-offset:var(--u-offset); }
p{ margin:0 0 1em; }

/* full-width 15px blue bar at the very top of every page.
   Sticky (Anja Runde-2 #2): after scrolling past the blue hero the thin
   blue line stays pinned at the top. Flat #3363FF (no gradient) = Figma
   "Balken oben" (2073:355). Sits above content, below the popup overlay. */
.topbar{ height:15px; background:var(--blue); position:sticky; top:0; z-index:500;
  overflow:hidden; transition:height .3s ease; }
/* Home only (Runde-3 #3): start collapsed so only the pure blue hero shows,
   then reveal (height 0 → 15px) once the hero is scrolled past. Because the
   hero-dismiss is irreversible, the bar stays sticky from then on. Taking 0
   height (not translate) keeps the hero flush to the very top before reveal. */
.topbar--hero{ height:0; }
.topbar--hero.is-revealed{ height:15px; }

/* ---------- shared type ---------- */
.display{
  font-weight:700; font-style:italic; text-transform:uppercase;
  font-size:var(--fs-display); line-height:.95; letter-spacing:-.005em; margin:0;
  text-wrap:balance;
}
.h{ font-weight:430; font-size:var(--fs-h); line-height:1.09; letter-spacing:-.01em; margin:0; text-wrap:balance; }
.h2{ font-weight:430; font-size:var(--fs-h2); line-height:1.12; letter-spacing:-.005em; margin:0; text-wrap:balance; }
.lead{ font-size:var(--fs-sub); line-height:1.35; }
.wrap{ max-width:var(--maxw); margin-inline:auto; padding-inline:var(--gutter); }

/* ================= NAV (pills) ================= */
.nav{ padding:50px 0 0; }
.nav__row{ max-width:var(--maxw); margin-inline:auto; padding-inline:var(--gutter);
  display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.pill-nav{ display:flex; align-items:center; gap:20px; }
/* Figma "Button Links" / "Navigation" / "Logo" components are ALL white pills
   (bg-white, 20px black, radius 21, shadow 0 4 4). Nav + every CTA button uses
   this. Yellow-new is ONLY hero text + Growth-Hub page bg, never a pill. */
.pill{
  display:inline-flex; align-items:center; gap:10px; text-decoration:none;
  background:var(--paper); color:var(--ink); font-weight:430; font-size:20px;
  padding:6px 18px; border-radius:21px; box-shadow:0 4px 4px rgba(0,0,0,.2);
  white-space:nowrap; transition:transform .15s ease;
}
.pill:hover{ transform:translateY(-2px); }
.pill--logo{ font-weight:430; }
.nav__burger{ display:none; }

/* Rund 4b: dezenter Sprachswitch DE/EN (Anja 12.10.2026). Sitzt absolut über
   der rechten Kante der Pill-Zeile, verschiebt also kein Layout. Touch-Ziel 44px. */
.nav__row{ position:relative; }
.lang-switch{ position:absolute; top:-46px; right:var(--gutter); display:flex;
  font-size:14px; letter-spacing:.04em; line-height:1; }
.lang-switch a, .lang-switch span{ display:inline-flex; align-items:center; justify-content:center;
  min-width:44px; min-height:44px; color:inherit; text-decoration:none; opacity:.5; }
.lang-switch span[aria-current]{ opacity:1; font-weight:600; }
.lang-switch a:hover, .lang-switch a:focus-visible{ opacity:1; text-decoration:underline; }
.cta-row{ display:flex; flex-wrap:wrap; gap:12px; margin-top:12px; }

/* ================= HERO (Home) ================= */
.hero{ background:var(--blue); min-height:650px; display:grid; place-items:center;
  text-align:center; padding:60px var(--gutter); box-shadow:inset 0 10px 34px rgba(0,0,0,.25); }
.hero__inner{ max-width:1400px; width:100%; }
/* Runde 9 (Sara 18.11.2026): mobil war der blaue Start-Balken 650 px hoch bei
   ~250 px Inhalt. Unter 700 px bestimmt der Inhalt die Höhe, Desktop bleibt. */
@media (max-width:700px){ .hero{ min-height:0; padding-top:60px; padding-bottom:60px; } }  /* r26: 24 -> 60, längstes Principle ~60 px Luft wie Anjas Referenz IMG_0474 (2026-11-27) */
.hero__title{ color:var(--yellow-new); max-width:1050px; }
.hero__sub{ color:var(--paper); max-width:919px; margin:0; }

/* ================= generic section ================= */
.section{ padding-block:clamp(48px,6vw,70px); }
.rule{ border:0; border-top:1px solid var(--ink); margin:0; }

/* intro (Home): text left, photo right. position:relative anchors the
   page-centred sun (.sun-dot--intro, Runde-3 #1). */
.intro{ position:relative; display:grid; grid-template-columns:772px 1fr; gap:21px; align-items:start;
  max-width:var(--maxw); margin-inline:auto; padding:clamp(40px,6vw,70px) var(--gutter) 0; }
.intro__title{ margin:0 0 30px; }
/* Figma: body block is w-574 inside an items-center 772 column → centred,
   which yields the ~99px left indent Ivo asked for (not flush under title). */
.intro__body{ max-width:574px; margin-inline:auto; }
.intro__body a{ text-decoration:underline; }
/* Figma gap between text block and Contact/Offers links = 141px */
.intro__links{ display:flex; flex-direction:column; gap:14px; margin-top:clamp(48px,9vw,141px); }
.biglink{ display:inline-flex; align-items:center; gap:10px; /* r11 Sara: 20 -> 10, Pfeil näher am Text */ text-decoration:none;
  color:var(--blue); font-size:var(--fs-link); line-height:1; }
.biglink img{ width:clamp(28px,3vw,42px); height:auto; }
/* Runde 11 (Sara 2026-11-29): Kontakt ist eine eigene Seite, beide Pfeile zeigen
   jetzt nach oben rechts (↗). Vertical flip of arrow.svg (↘) gives ↗. */
.biglink--up img{ transform:scaleY(-1); }
.intro__photo{ padding-top:80px; }
/* Figma crop = fixed 576×761 portrait window (object-fit cover), not raw aspect */
.intro__photo img{ width:100%; aspect-ratio:576/761; border-radius:2px; object-fit:cover; object-position:79% top; }
@media (max-width:1100px){ .intro{ grid-template-columns:1fr; } .intro__photo{ padding-top:24px; max-width:520px; } }
/* NOTE (Designerin Runde-7 #3): the former mobile override that pinned the home
   sun STATIC in the flow (Anja Runde-5) is gone — the sun is now the same sticky
   bottom CTA on every breakpoint. See .sun-dot--intro below. */

/* offer rows (Home "Here's how I can help") */
.offerrow{ display:grid; grid-template-columns:1fr 1fr; gap:21px; align-items:start; padding:24px 0; }
.offerrow__desc{ display:flex; flex-direction:column; gap:16px; align-items:flex-start; }
@media (max-width:820px){ .offerrow{ grid-template-columns:1fr; gap:12px; } }
/* Home "So helfe ich dir" (Runde 8, Anja 18.11.2026): Spalten und Titelgrösse
   waren inline gesetzt und hebelten den Mobile-Umbruch aus; auf dem Handy lief
   der Titel in den Text. Jetzt Klasse, Umbruch greift, Titel kleiner. */
.offerrow--home{ grid-template-columns:minmax(0,772px) minmax(0,596px); justify-content:start; column-gap:40px; }
.offerrow__title{ font-size:clamp(1.6rem,2.6vw,44px); line-height:1.05; overflow-wrap:break-word; hyphens:auto; }
@media (max-width:820px){
  .offerrow--home{ grid-template-columns:1fr; gap:16px; }
  .offerrow__title{ font-size:clamp(1.45rem,6.2vw,1.9rem); }
}

/* small pill link (Get in touch / Website Collective / 404 button) = Figma
   "Button Links" component: white, 20px, radius 21, shadow. Never yellow. */
.linkpill{ display:inline-flex; align-items:center; gap:8px; text-decoration:none;
  background:var(--paper); color:var(--ink); font-weight:430; font-size:20px;
  padding:6px 18px; border-radius:21px; box-shadow:0 4px 4px rgba(0,0,0,.2); }
.linkpill:hover{ transform:translateY(-2px); }
.linkpill--white{ background:var(--paper); font-size:20px; }

/* stacked heading + body block */
.block{ display:flex; flex-direction:column; gap:20px; align-items:flex-start; }
.block p{ max-width:70ch; margin:0; }

/* ================= GROWTH HUB (blog grid) ================= */
.page--hub{ background:var(--yellow-new); }
.filters{ display:flex; flex-wrap:wrap; gap:15px; }
/* Runde 10 (Sara 2026-11-24): mobil die Zeilen enger, Abstand in der Breite bleibt 15 px. */
@media (max-width:700px){ .filters{ row-gap:8px; } }
/* Figma "Filter" component: every chip is blue (#3363ff) with white 20px text. */
.chip{ display:inline-flex; align-items:center; text-decoration:none; cursor:pointer;
  background:var(--blue); color:var(--paper); border:0; font-family:inherit; font-weight:430;
  font-size:20px; padding:6px 18px; border-radius:21px; box-shadow:0 4px 4px rgba(0,0,0,.2); }
.chip.is-active{ background:var(--blue); color:var(--paper); }
.grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.post{ text-decoration:none; color:var(--ink); display:flex; flex-direction:column; gap:14px; padding-bottom:50px; }
.post__img{ aspect-ratio:1200/800; overflow:hidden; border-radius:2px; background:var(--sage-3); }
.post__img img{ width:100%; height:100%; object-fit:cover; }
.post__body{ display:flex; flex-direction:column; gap:10px; width:100%; }
.post__tag{ align-self:flex-start; font-size:12px; line-height:16px; color:var(--blue); }
.post h3{ margin:0; padding-top:10px; font-weight:500; font-size:24px; line-height:26px; color:var(--ink); }
.post p{ margin:0; font-size:16px; line-height:20px; }
.post .more{ text-decoration:none; color:var(--blue); font-size:16px; line-height:20px; }
@media (max-width:900px){ .grid{ grid-template-columns:1fr 1fr; } }
/* Runde 9 (Sara 24.11.2026): Home-Teaser «Zum Weiterlesen» — im 2er-Raster
   (601–900px) nur zwei Beiträge, sonst bleibt neben dem dritten eine Lücke.
   Ab 3 Spalten und einspaltig mobil bleiben alle drei. */
@media (min-width:601px) and (max-width:900px){ .grid--teaser > .post:nth-child(n+3){ display:none; } }
@media (max-width:600px){ .grid{ grid-template-columns:1fr; } }

/* ================= ARTICLE ================= */
.article{ max-width:var(--maxw); margin-inline:auto; padding-inline:var(--gutter); }
.article__head{ display:flex; flex-direction:column; gap:16px; margin-bottom:40px; }
.article__meta{ font-size:18px; opacity:.75; }
.article__lede{ font-size:var(--fs-sub); line-height:1.4; max-width:60ch; }
.article__row{ display:grid; grid-template-columns:1fr 1.3fr; gap:clamp(30px,5vw,90px); padding:34px 0; }
.article__row + .article__row{ border-top:1px solid var(--ink); }
.article__row h2{ margin:0; font-weight:430; font-size:clamp(1.5rem,2.4vw,34px); line-height:1.15; }
.article__row .body > *{ max-width:66ch; }
.article__row pre{ background:#eef0f4; border:1px solid var(--ink); border-radius:8px;
  padding:1em; overflow:auto; font-size:14px; white-space:pre-wrap; word-break:break-word; }
.article__row .shot{ background:var(--sage-3); border:1px dashed var(--ink); border-radius:6px;
  padding:.9em 1.1em; font-size:15px; opacity:.85; margin:1rem 0; }
.article__row img{ border-radius:2px; margin:0 0 1rem; }
@media (max-width:820px){ .article__row{ grid-template-columns:1fr; gap:14px; } }

/* ================= CTA band (article) — Figma Frame 224 =================
   Blue box (#3363ff), pale-yellow (#FCF4A0) BoldItalic uppercase 84px heading,
   two WHITE pill buttons, gap 70. p-80. */
.ctaband{ background:var(--blue); text-align:center; }
.ctaband__inner{ max-width:var(--maxw); margin-inline:auto; padding:clamp(48px,8vw,80px) var(--gutter);
  display:flex; flex-direction:column; align-items:center; gap:clamp(34px,5vw,70px); }
.ctaband .display{ color:#FCF4A0; font-size:clamp(2.4rem,6.1vw,84px); line-height:.92; }
.ctaband__btns{ display:flex; flex-wrap:wrap; gap:clamp(20px,4vw,70px); justify-content:center; }
/* Subline unter der Headline (Anja 2026-11-23, Task 1219778003240725) */
.ctaband__sub{ color:#FCF4A0; font-size:clamp(1.15rem,1.6vw,24px); line-height:1.3; max-width:760px; margin:0; text-wrap:balance; }

/* blue tag pill (article header "SEO", "Strategy" = Figma Filter chip).
   Anja Runde-4 #5: these are links back to the tag-filtered Growth-Hub. */
.tag{ display:inline-flex; align-items:center; text-decoration:none; cursor:pointer;
  background:var(--blue); color:var(--paper); font-weight:430; font-size:20px;
  padding:6px 18px; border-radius:21px; box-shadow:0 4px 4px rgba(0,0,0,.2);
  transition:transform .15s ease; }
a.tag:hover{ transform:translateY(-2px); }
a.tag:focus-visible{ outline:3px solid var(--ink); outline-offset:2px; }

/* ================= FOOTER — big (blue CTA + legal) ================= */
.footer__cta{ background:var(--blue); color:var(--paper); }
.footer__cta-inner{ max-width:var(--maxw); margin-inline:auto; padding:clamp(48px,6vw,80px) var(--gutter) clamp(70px,9vw,120px); }
.footer__big{ display:block; font-weight:430; font-size:var(--fs-h); line-height:1.09; color:var(--paper); text-decoration:none; }
/* Designerin Runde-7 #2 (newsletter block): underline sits further away AND is
   FINER than the browser default — at 64px type the default stroke reads far too
   heavy. 2px + .3em offset for every underline inside the blue block. */
.footer__big--u{ text-decoration:underline; }
.footer__big2{ margin:.2em 0 0; font-weight:430; font-size:var(--fs-h); line-height:1.09; }
.footer__big2 a{ text-decoration:underline; }
.footer__cta a{ text-decoration-thickness:2px; text-underline-offset:var(--u-offset); }

/* footer legal strip (both variants) */
.footmark{ display:grid; place-items:center; padding:24px 0 14px; }
.footmark img{ width:44px; height:auto; }
.footer__legal{ border-top:1px solid var(--ink); }
.footer__legal-inner{ max-width:var(--maxw); margin-inline:auto; padding:18px var(--gutter);
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 16px; font-size:var(--fs-legal); }
.footer__legal-inner a{ text-decoration:none; }
.footer__legal-inner a:hover{ text-decoration:underline; }

/* ================= 404 ================= */
.err{ text-align:center; padding-block:clamp(80px,13vw,170px); max-width:var(--maxw); margin-inline:auto; padding-inline:var(--gutter); }
.err h1{ font-weight:430; font-size:var(--fs-h); line-height:1.1; margin:0 0 24px; }
.err p{ font-size:var(--fs-sub); line-height:1.35; max-width:60ch; margin-inline:auto; }
.err .linkpill{ margin-top:34px; font-size:20px; }

/* generic page title (terms / imprint) */
.pagehead{ max-width:var(--maxw); margin-inline:auto; padding:clamp(40px,6vw,80px) var(--gutter) 0; }
.placeholder{ background:var(--sage-3); border:1px dashed var(--ink); border-radius:8px;
  padding:1.1em 1.3em; margin-top:1.4rem; max-width:70ch; }

@media (max-width:640px){
  .footer__legal-inner{ font-size:16px; }
  .nav{ padding-top:48px; } /* Rund 4b: Platz für den Sprachswitch */
  .pill{ font-size:16px; }
  /* Rund 4: 3 nav pills overflowed 375px viewports by ~9px */
  .pill-nav{ gap:8px; }
  .pill-nav .pill{ padding-inline:12px; }
}

/* ================================================================
   INTERACTIONS — Draft Runde 1 "zum Leben erwecken" (Task 308532)
   Additive layer over the pixel-faithful static build. Four features:
     1. Principles-Slider   (hero, index.html)   → .principles / .principle-slide
     2. Hero-Dismiss        (hero, index.html)   → .hero.is-dismissed
     3. Sun-Dot + Newsletter(global)             → .sun-dot / .nl-popup
     4. Blog-Filter         (growth-hub.html)    → .chip / .post / .hub-empty
   Timing/mode knobs live as named constants in assets/js/*.js.
   prefers-reduced-motion is honoured for every moving part below.
   ================================================================ */

/* ---- Feature 1: Principles-Slider (hero) -----------------------
   7 principles (Anja Runde-2 #1). Each slide is ONE unit = yellow
   headline + white sentence together (1:1 from Figma component set
   "Slider Principles" 2019:132, variants Default + 2–7). The whole
   unit fades through; heading changes too, not just the sentence.
   Slides stack in one CSS grid cell → container auto-sizes to the
   tallest slide, so switching never changes height (no jump).
   Progressive enhancement: without JS the first slide stays visible.
   Fade duration is written by JS into --fade-duration (FADE_DURATION). */
.principles{ display:grid; justify-items:stretch; overflow:hidden; }
.principle-slide{
  grid-area:1 / 1;                       /* all slides share one cell */
  margin:0; opacity:0; width:100%;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:17px;  /* r25: kürzere Slides mittig statt oben (Anja 2026-11-27) */
}
.principle-slide:first-child{ opacity:1; }          /* no-JS fallback */
/* Designerin Runde-7 #1: SLIDE instead of fade. The incoming unit enters from
   the right while the outgoing one leaves to the left — both move at the same
   time (one simultaneous transition, no sequencing, no cross-fade). The parked
   state is translateX(100%) = waiting off-screen right; .is-leaving parks a
   slide off-screen left. --slide-duration is written by assets/js/hero.js. */
.principles.is-enhanced .principle-slide{
  opacity:0; transform:translateX(100%);
  transition:transform var(--slide-duration,700ms) cubic-bezier(.45,.05,.2,1),
             opacity   var(--slide-duration,700ms) ease;
}
.principles.is-enhanced .principle-slide.is-active{ opacity:1; transform:translateX(0); }
.principles.is-enhanced .principle-slide.is-leaving{ opacity:1; transform:translateX(-100%); }
/* Reset hop: after a slide has left, it must jump back to the right-hand
   parking spot WITHOUT animating back across the hero. hero.js adds this class
   for exactly one frame while it strips .is-leaving. */
.principles.is-enhanced .principle-slide.is-instant{ transition:none; }
/* Figma titles are whitespace-nowrap: each <br> line stays on one line (never
   re-wraps), so every principle heading is exactly 2 lines (Runde-3 #2). */
.principle-title{ color:var(--yellow-new); margin:0; white-space:nowrap; }
/* Runde-3 responsive check: on narrow screens the nowrap title was the widest
   thing in the hero and blew the grid column past the viewport — the longest
   line ("Tech-forward.") measured 389px inside a 350px content box, so the
   right-hand text was clipped by .principles' overflow:hidden. Below 700px the
   titles may wrap. The constant hero height is unaffected: every slide shares
   one grid cell, so the band is always as tall as the tallest slide. */
@media (max-width:700px){
  .principle-title{ white-space:normal; }
}
.principle-text{ color:var(--paper); max-width:919px; margin:0;
  font-size:var(--fs-sub); line-height:1.3; }

/* Runde-3 #5: reverse travel for the Prev control. Same geometry mirrored —
   parked slides wait on the LEFT, the outgoing one leaves to the right.
   hero.js toggles .is-rev on the container one reflow before it animates. */
.principles.is-enhanced.is-rev .principle-slide{ transform:translateX(-100%); }
.principles.is-enhanced.is-rev .principle-slide.is-active{ transform:translateX(0); }
.principles.is-enhanced.is-rev .principle-slide.is-leaving{ transform:translateX(100%); }
/* Direction flip must not animate: hero.js sets .is-flush for exactly one
   reflow while it moves the parked (invisible) slides to the other side. */
.principles.is-enhanced.is-flush .principle-slide{ transition:none; }

/* Runde-3 #5: Prev/Next controls. Geometry is the site's own pill token
   (radius 21, shadow 0 4 4) squared into a 42px circle; the glyph is the same
   thin 2px chevron the FAQ accordion uses, so nothing new enters the system. */
.hero__stage{
  width:100%; max-width:1400px;
  display:flex; flex-direction:column; align-items:center;
  gap:clamp(30px,4vw,52px);
}
.principles-nav{ display:flex; gap:20px; }
.principles-nav[hidden]{ display:none; }   /* beat the flex above when no JS */
.principles-nav__btn{
  flex:none; width:42px; height:42px; border:0; border-radius:21px; cursor:pointer;
  background:var(--paper); box-shadow:0 4px 4px rgba(0,0,0,.2);
  display:grid; place-items:center; padding:0;
  transition:transform .15s ease;
}
.principles-nav__btn:hover{ transform:translateY(-2px); }
.principles-nav__btn:focus-visible{ outline:3px solid var(--yellow-new); outline-offset:3px; }
.principles-nav__btn::before{
  content:''; width:11px; height:11px;
  border-right:2px solid var(--ink); border-bottom:2px solid var(--ink);
}
/* ‹ and › from the same square: rotate 135° / -45°. The 2px nudge re-centres
   the glyph, whose visual mass sits in the corner of its box, not the middle. */
.principles-nav__btn--prev::before{ transform:rotate(135deg); margin-left:3px; }
.principles-nav__btn--next::before{ transform:rotate(-45deg);  margin-right:3px; }

/* ---- Runde-3 #1: client logo band (Home) -----------------------
   Deliberately quiet: a lot of whitespace, logos dampened to 58 % (r24, vorher 42 %) and
   already normalised to black-on-transparent by tools/normalize-logos.py.
   The band lives inside the 1568px content column like every other section;
   a soft mask at both edges lets logos enter and leave instead of being
   chopped off at a hard border. Motion logic in assets/js/logoband.js. */
.logoband{
  --logo-scale:.40;
  max-width:var(--maxw); margin-inline:auto; padding-inline:var(--gutter);
  padding-block:clamp(26px,3.4vw,44px);
}
.logoband__viewport{
  overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 7%,#000 93%,transparent 100%);
          mask-image:linear-gradient(90deg,transparent 0,#000 7%,#000 93%,transparent 100%);
}
.logoband__track{
  display:flex; width:max-content; will-change:transform;
  transform:translate3d(var(--x-rest,0px),0,0);
}
.logoband__set{
  display:flex; align-items:center; flex:none;
  margin:0; padding:0; list-style:none;
  gap:clamp(40px,5.4vw,84px);
  /* half a gap of padding on each side, so the seam between two consecutive
     sets keeps exactly the same rhythm as the gaps inside one set. */
  padding-inline:clamp(20px,2.7vw,42px);
}
.logoband__set li{ flex:none; display:flex; align-items:center; }
/* Every logo scales by the SAME factor. --h carries each file's normalised
   intrinsic height, so FREITAG's 9.2:1 wordmark keeps its proportions instead
   of being blown up to the height of a square icon. */
.logoband__set img{
  height:calc(var(--h,104) * var(--logo-scale) * 1px);
  width:auto; max-width:none; opacity:.58; /* r24 Anja: minimal dunkler (vorher .42) */
}
.logoband.is-running .logoband__track{
  animation:logoband-scroll var(--dur,40s) linear infinite;
}
@keyframes logoband-scroll{
  from{ transform:translate3d(var(--x-rest,0px),0,0); }
  to  { transform:translate3d(calc(var(--x-rest,0px) - var(--set-w,0px)),0,0); }
}
@media (max-width:900px){ .logoband{ --logo-scale:.32; } }
/* Narrow screens: 7 % of ~350px is a 24px fade — too short to read as a fade,
   a logo looked chopped rather than eased out. Widen it so the edge stays soft. */
@media (max-width:560px){
  .logoband{ --logo-scale:.26; }
  .logoband__viewport{
    -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 14%,#000 86%,transparent 100%);
            mask-image:linear-gradient(90deg,transparent 0,#000 14%,#000 86%,transparent 100%);
  }
}

/* screen-reader-only page heading (one semantic h1 for the hero) */
.visually-hidden{ position:absolute; width:1px; height:1px; margin:-1px;
  padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

/* ---- Feature 2: Hero-Dismiss ----------------------------------
   Once fully scrolled past, the blue hero collapses for good; the
   15px .topbar (already at document top) remains as the thin blue line. */
.hero{ transition:max-height 300ms ease, opacity 300ms ease; max-height:2000px; overflow:hidden; }
.hero.is-dismissed{ max-height:0; opacity:0; padding-top:0; padding-bottom:0; }

/* ---- Feature 3: Sun icon + Newsletter pop-up (global) ---------
   The trigger IS the Digital Growth sun (Anja Runde-2 #3): filled disc
   + two concentric rings, exact vector from Figma "Bildmarke" (same
   logic as the big sun), reusable via assets/svg/sun.svg. Fixed in the
   viewport, opens the pop-up. Float toggled by JS (.is-floating,
   const ENABLE_FLOAT). No drop-shadow — the sun sits flat (Anja Runde-4 #1). */
.sun-dot{
  position:fixed; right:clamp(18px,3vw,32px); bottom:clamp(18px,3vw,32px);
  width:58px; height:58px; border:0; background:none; cursor:pointer; z-index:1000;
  display:grid; place-items:center; padding:0;
  transition:transform .18s ease, opacity .25s ease, visibility .25s;
}
/* Home (Designerin Runde-7 #3): the sun is a STICKY bottom CTA. It keeps Figma's
   horizontal page-centring (center-x 864/1728) but is pinned to the viewport and
   floats ABOVE the lower edge (never flush — the bottom offset is the "padding"
   the designer asked for). It hides as soon as the blue newsletter block enters
   the viewport (.is-hidden, toggled in assets/js/newsletter.js).
   ⚠ This replaces the Runde-5 "static, never bottom-stuck" placement. */
.sun-dot--intro{
  position:fixed; left:50%; margin-left:-29px;
  top:auto; right:auto; bottom:clamp(18px,3vw,32px); z-index:1000;
}
/* Anja Runde-4 #1: drop-shadow removed — the sun sits flat, no shadow. */
.sun-dot__icon{ width:100%; height:100%; }
.sun-dot:hover{ transform:scale(1.08); }
.sun-dot:focus-visible{ outline:3px solid var(--blue); outline-offset:4px; }
.sun-dot.is-floating{ animation:sun-float 5s ease-in-out infinite; }
@keyframes sun-float{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-8px); } }
/* Designerin Runde-7 #3: gone once the blue newsletter block shows up. Declared
   last so it out-ranks :hover / .is-floating at equal specificity. */
.sun-dot.is-hidden{
  opacity:0; transform:translateY(20px); pointer-events:none;
  animation:none; visibility:hidden;
}
.sun-dot__label{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }

.nl-popup{
  position:fixed; inset:0; z-index:1001; display:none;
  place-items:center; padding:clamp(16px,4vw,40px);
  background:rgba(0,0,0,.45);
}
.nl-popup.is-open{ display:grid; }
/* Daybox: fully square / sharp corners, no roundings (Anja Runde-2 #4)
   — matches the sharp-cornered blue hero band. */
.nl-popup__panel{
  background:var(--blue); color:var(--paper); border-radius:0;
  max-width:520px; width:100%; padding:clamp(28px,4vw,48px);
  box-shadow:0 20px 60px rgba(0,0,0,.4); position:relative;
  transform:translateY(12px); opacity:0;
  transition:transform .28s ease, opacity .28s ease;
}
.nl-popup.is-open .nl-popup__panel{ transform:translateY(0); opacity:1; }
.nl-popup__close{
  /* Runde 10 (Sara 2026-11-24): kein Kasten mehr, nur ein grösseres weisses Kreuz. */
  position:absolute; top:8px; right:10px; width:44px; height:44px; border-radius:50%;
  border:0; cursor:pointer; background:transparent; color:var(--paper);
  font-size:40px; font-weight:300; line-height:1; box-shadow:none; padding:0;
  display:grid; place-items:center;
}
.nl-popup__close:hover{ transform:scale(1.1); }
.nl-popup__close:focus-visible{ outline:3px solid var(--yellow-new); outline-offset:2px; }
.nl-popup h2{ color:var(--yellow-new); font-weight:700; font-style:italic; text-transform:uppercase;
  font-size:clamp(1.6rem,4vw,40px); line-height:.98; margin:0 0 14px; }
.nl-popup p{ font-size:var(--fs-sub); line-height:1.35; margin:0 0 22px; }
.nl-form{ display:flex; flex-wrap:wrap; gap:12px; }
.nl-form input[type=email], .nl-form input[type=text]{
  flex:1 1 220px; background:var(--paper); color:var(--ink); border:0; border-radius:0;
  padding:10px 18px; font-family:inherit; font-size:18px; box-shadow:0 4px 4px rgba(0,0,0,.2);
}
.nl-form input[type=email]:focus-visible, .nl-form input[type=text]:focus-visible{ outline:3px solid var(--yellow-new); outline-offset:2px; }
.nl-form button{
  /* Runde 10 (Sara): Pill wie alle anderen Buttons (.pill-Geometrie). */
  background:var(--paper); color:var(--ink); border:0; border-radius:21px; cursor:pointer;
  padding:6px 18px; font-family:inherit; font-weight:430; font-size:20px; box-shadow:0 4px 4px rgba(0,0,0,.2);
}
.nl-form button:hover{ transform:translateY(-1px); }
.nl-form button:disabled{ opacity:.6; cursor:progress; }
.nl-form__hp{ position:absolute !important; left:-9999px; width:1px; height:1px; opacity:0; }
.nl-form__consent{ flex:1 1 100%; display:flex; gap:10px; align-items:flex-start; font-size:14px; line-height:1.35; }
.nl-form__consent input{ margin-top:3px; flex:none; }
.nl-form__consent a{ color:inherit; text-decoration:underline; }
.nl-err{ margin:8px 0 0; font-size:14px; }
.nl-note{ margin:16px 0 0; font-size:14px; opacity:.85; }
.nl-done{ margin:8px 0 0; font-size:var(--fs-sub); }
/* Runde 10 (Sara 2026-11-24): «Kein Spam …» mehr Luft zum Eingabefeld. Eigene Regel mit
   .nl-popup davor, weil .nl-popup p{margin:0 0 22px} sonst gewinnt. */
.nl-popup .nl-note{ margin-top:28px; }

/* ---- Feature 4: Blog-Filter (growth-hub) ----------------------
   Active chips get a white fill; inactive stay brand-blue. Cards fade
   out (opacity) then leave the flow (hidden) so the grid reflows tight. */
.chip{ transition:background .18s ease, color .18s ease, transform .15s ease; }
@media (hover:hover){ .chip:hover{ transform:translateY(-2px); } }
.chip:focus-visible{ outline:3px solid var(--ink); outline-offset:2px; }
/* Runde 5b (Ivo 2026-11-03): Filter-Chips im GrowthNotes-Filter (button.chip) sind
   inaktiv transparent mit blauer Schrift; aktiv = blau gefüllt (Figma-Default-Chip).
   Startzustand: «Alle» aktiv. Logik: assets/js/hub-filters.js. Links mit .chip
   (z. B. Tags) bleiben unverändert blau. */
button.chip{ background:transparent; color:var(--blue); box-shadow:inset 0 0 0 1.5px var(--blue); }
/* Runde 11 (Sara 2026-11-29): Hover nur bei echter Maus. Auf Touch blieb nach dem
   Abwählen der :hover-Zustand hängen (graue Fläche). */
@media (hover:hover){ button.chip:hover{ background:rgba(51,99,255,.12); } }
button.chip.is-active,button.chip.is-active:hover{ background:var(--blue); color:var(--paper); box-shadow:0 4px 4px rgba(0,0,0,.2); }
/* Designerin Runde-7 #9: "Reset all" chip — appears as an EXTRA pill as soon as
   at least one filter is on, clears every filter on click. Same Figma chip
   geometry, but outlined so it reads as an action, not as a 7th tag. Injected +
   toggled by assets/js/hub-filters.js. */
.chip--reset{ background:transparent; color:var(--blue); box-shadow:none;
  border:1.5px solid var(--blue); }
@media (hover:hover){ .chip--reset:hover{ background:var(--blue); color:var(--paper); } }
.chip--reset[hidden]{ display:none; }
.post{ transition:opacity 250ms ease; }
.post.is-hidden{ display:none; }
.post.is-fading{ opacity:0; }
.hub-empty{ display:none; grid-column:1 / -1; padding:40px 0; font-size:var(--fs-sub); }
.hub-empty.is-visible{ display:block; }

/* ---- Reduced-motion: freeze every moving part ------------------ */
@media (prefers-reduced-motion: reduce){
  .principle-slide{ transition:none; }
  .hero{ transition:none; }
  .sun-dot,.sun-dot.is-floating{ animation:none; }
  .nl-popup__panel{ transition:none; }
  .post{ transition:none; }
  /* Runde-3 #1: the band stays where logoband.js parked it (On + FREITAG
     centred) and never scrolls. Belt and braces — the JS already refuses to
     add .is-running under reduced motion. */
  .logoband .logoband__track,
  .logoband.is-running .logoband__track{ animation:none; }
  .principles.is-enhanced .principle-slide{ transition:none; }
}

/* Growth Hub Runde 5 (Blog-Import): echte Excerpts sind 130-500 Zeichen lang.
   Auf 4 Zeilen kürzen, damit die Karten im Grid gleich hoch wirken. */
.post p{ display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; }

/* ================= MOTION (Anja 2026-11-26, Task 1220842423048354) =================
   Verhalten nach studio-nomad.ch, Code eigen. JS: assets/js/motion.js.

   1. Blog-Karten: Bild zoomt beim Hover sanft auf 103 %. Der Cursor-Titel
      ist auf Anjas Wunsch raus (2026-11-26). */
.post__img img{ transition:transform .6s cubic-bezier(.25,1,.5,1); }
@media (hover:hover){
  .post:hover .post__img img{ transform:scale(1.03); }
}
.post:focus-visible .post__img img{ transform:scale(1.03); }

/* 2. Unterstreichung, die sich beim Hinscrollen zieht (Route-Titel auf
      Angebot, Footer-Link «Hol dir meine GrowthNotes»). Gezeichnet als
      Hintergrund-Linie, damit sie wachsen kann und über Zeilenumbrüche
      läuft. Lage = dieselbe wie die globale Unterstreichung (--u-offset
      unter der Grundlinie): Abstand vom Unterrand der Inline-Box =
      Matter-Unterlänge (--u-descent) minus --u-offset. Stärke 2px wie
      im blauen Footer-Block. Ohne JS greift nichts davon. */
.u-draw{ --u-descent:.237em; --u-thick:2px;
  text-decoration:none !important;
  background-image:linear-gradient(currentColor, currentColor);
  background-repeat:no-repeat;
  background-size:0% var(--u-thick);
  background-position:0 calc(100% - var(--u-descent) + var(--u-offset) + var(--u-thick));
  transition:background-size .9s cubic-bezier(.25,1,.5,1) .1s; }
.u-draw.is-drawn{ background-size:100% var(--u-thick); }
/* Unterlängen (g, y, p, Klammern) frei lassen wie text-decoration-skip-ink:
   ein Rand in Seitenfarbe um die Glyphen deckt die Linie dort ab. Nur auf
   weissem Grund (Angebot); der Footer-Link hat keine Unterlängen. */
.route__title .u-draw{ --skip:#fff;
  text-shadow: .045em 0 var(--skip), -.045em 0 var(--skip), 0 .045em var(--skip),
    .03em .03em var(--skip), -.03em .03em var(--skip), .06em 0 var(--skip), -.06em 0 var(--skip); }

@media (prefers-reduced-motion: reduce){
  .post__img img, .post:hover .post__img img, .post:focus-visible .post__img img{ transition:none; transform:none; }
  .u-draw{ transition:none; }
}

/* ---- r24 (2026-11-27, Anja): Autorenbox auf allen GrowthNotes-Beiträgen ---- */
.art-author{ font-size:18px; line-height:1.35; padding:34px 0; border-top:1px solid var(--ink); }
.art-author h2{ font-weight:430; font-size:clamp(1.2rem,1.75vw,27px); margin:0 0 .6em; }
.art-author p{ margin:0; max-width:770px; }
.art-author p + p{ margin-top:.8em; }
.art-author a{ text-decoration:underline; text-underline-offset:var(--u-offset); }
/* r24: Sprungziele der Angebot-Routen (#fractional-cmo, #marketing-upgrade, #discoverability) nicht unter dem blauen Balken */
.route[id]{ scroll-margin-top:56px; }
