/* ============================================================
   Illustratörscentrum (IC) — Static Templates
   style.css — Foundation + Homepage
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Nowstalgic";
  src: url("../fonts/nowstalgic-medium.woff2") format("woff2"),
       url("../fonts/nowstalgic-medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-v20-latin-300.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-v20-latin-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-v20-latin-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---------- Design Tokens ---------- */
:root {
  /* Brand-Palette (exakt aus den Vektor-Assets) */
  --purple:        #250451;
  --purple-soft:   #463867;
  --orange:        #FF7B48;
  --gold:          #FFB100;
  --lime:          #E6FF2F;
  --cream:         #F7F7E2;
  --beige:         #EBD293;
  --lavender:      #D6D1E2;
  --white:         #FEFEFC;

  --text:          #303030;   /* Body-Text (Wunsch Kunde: alle Fliesstexte ausser Footer) */
  --bg:            var(--cream);

  /* Typo */
  --font-display: "Nowstalgic", Georgia, serif;
  --font-body:    "Inter", system-ui, -apple-system, Arial, sans-serif;

  /* Layout */
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --radius: 18px;

  --section-y: clamp(3.5rem, 8vw, 7rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(0.85rem, 0.82rem + 0.14vw, 0.92rem);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button, input, textarea { font: inherit; color: inherit; }
picture { display: contents; }

/* ---------- Accessibility ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 0.75rem; top: -3.5rem; z-index: 100;
  background: var(--purple); color: var(--cream); font-weight: 600;
  padding: 0.6rem 1rem; border-radius: 8px; transition: top .15s ease;
}
.skip-link:focus { top: 0.75rem; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 2px; }

/* ---------- Layout-Primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-top: clamp(1.5rem, 3.5vw, 3rem); padding-bottom: var(--section-y); }

/* ---------- Typografie ---------- */
.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--purple);   /* Ueberschriften bleiben lila (Body ist #303030) */
}
h1 { font-size: clamp(2.2rem, 1.6rem + 3vw, 4.1rem); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.6vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.4rem); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.lead { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); }

/* Absatz-Abstände in Inhaltsspalten (Reset entfernt sonst alle Margins) */
.split p, .besok p, .darfor p, .cta__intro p { margin-bottom: 1.05rem; }
.split p:last-child, .besok p:last-child, .darfor p:last-child { margin-bottom: 0; }
/* Fett-Text (p strong) = gleiche Groesse wie Fliesstext + Bullets, nur fetteres Gewicht (kein 1.1em). */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: calc(1em + 2px);   /* Button-Text 2px groesser (Wunsch Kunde) */
  padding: 0.6em 1.7em;
  border: none; border-radius: 999px;
  background: var(--orange);
  color: var(--purple);
  cursor: pointer;
  transition: background .15s ease;
}
.btn:hover { background: var(--gold); }
.btn--ghost { background: transparent; color: var(--purple); box-shadow: inset 0 0 0 2px var(--purple); }

/* ---------- Bullet-Liste (Checkmarks) ---------- */
.ticks { display: grid; gap: 0.7rem; margin: 1.1rem 0; }
.ticks li { position: relative; padding-left: 1.4rem; font-weight: 600; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--purple);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: radial-gradient(125% 115% at 50% 0%, #3a1670 0%, #250451 58%);
  color: var(--cream);
  padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(2.5rem, 5vw, 4.5rem);
  overflow: hidden;
}
.hero__title { color: var(--lime); text-align: center; font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3.5rem); margin-top: 30px; margin-bottom: clamp(1.1rem, 2.6vw, 2rem); }
.hero__copy .rte strong { color: var(--lime); font-weight: 600; }
.hero__row {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 0.9fr;   /* Keychain-Spalte breiter -> Doodle groesser (Figma) */
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}
.hero__copy { text-align: center; max-width: 46ch; margin-inline: auto; align-self: start; }
.hero__copy p { margin-bottom: 1.1rem; color: #E7E3F0; }
.hero__copy .btn { margin-top: 1.7rem; padding-inline: 2.7em; }
/* Keychain-Doodle: animierte Lottie (Kunde geliefert). Poster (1. Frame) bis JS laedt; dann Lottie-SVG. */
.hero__doodle { position: relative; width: 100%; max-width: 460px; aspect-ratio: 387 / 399;
  justify-self: center; align-self: start; }
.hero__doodle > svg { display: block; width: 100%; height: 100%; }
.hero__doodle-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hero__figure { width: 100%; max-width: 430px; justify-self: center; align-self: start; margin-top: -50px; }
/* Welle nach unten (in Flieder der folgenden Sektion) */
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(70px, 9vw, 140px); display: block; }
.hero__wave path { fill: var(--lavender); }

/* Top-Bar / Logo */
.topbar { position: absolute; top: 0; right: 0; margin: 0; z-index: 5; }
.logo { font-family: var(--font-display); color: var(--orange); font-size: 1.9rem; line-height: 1; display: block; }
.logo img { height: clamp(5.85rem, 10.4vw, 9.1rem); display: block; }

/* ============================================================
   Generische Inhaltssektionen
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
/* Illustrationen begrenzen, damit hohe Motive keine Riesenlücken reissen */
.split img { max-height: 380px; width: auto; max-width: 100%; margin-inline: auto; }
.section--beige { background: var(--beige); }
.section--lavender { background: var(--lavender); }
.section--white { background: #FFFFFF; padding-bottom: 200px; }

/* Bild links + grösser (Modul "Det här kan ni boka") */
.split--media-left { grid-template-columns: 1.1fr 1fr; }
.split--media-left .split__media { order: -1; }
.split--media-left .split__media img { max-height: 460px; }
.boka__title { margin-bottom: clamp(1.2rem, 3vw, 2rem); }
.split--media-left .rte { color: #303030; }
/* Abschluss-Satz (fett, letzter <p>) im Boka-Block wie die Bullet-Liste stylen (statt 1.1em/700) */
.split--media-left .rte p:last-of-type strong { font-weight: 600; font-size: 1em; }
.boka__lead { font-family: var(--font-display); font-weight: 500; line-height: 1.15;
  font-size: clamp(1.25rem, 1rem + 0.9vw, 1.4rem); color: var(--purple); }
.kort-sagt { font-weight: 700; }
.t-bold { font-weight: 700; }

/* Modul "Illustratörsbesök": Bild ragt unten in die nächste Sektion */
.besok { overflow: visible; padding-bottom: clamp(5rem, 7vw, 6rem); }
.besok .split { align-items: end; grid-template-columns: 1.7fr 1fr; }
.besok h2 { margin-bottom: clamp(1rem, 2.5vw, 1.6rem); line-height: calc(1.05em + 4px); }
.besok__media { align-self: end; }
.besok__media img { max-height: 432px; position: relative; z-index: 2; margin-bottom: -130px; }

/* Modul "Därför väljer": Headline über dem Bild, ic.png in Flieder-Box */
.darfor__title { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); max-width: 22ch; line-height: calc(1.05em + 4px); }
.darfor .split { align-items: start; }
.darfor { overflow: visible; }
.darfor__box { display: flex; align-items: center; justify-content: flex-start; overflow: visible; }
/* Bild fuellt Spalte; -16% schiebt die Lavendel-Flaeche buendig zur Headline,
   Schere/Herzen ragen links darueber hinaus (vgl. Layout) */
.darfor__box img { width: 140%; max-width: none; height: auto; max-height: none; margin-left: -42.6%; }
.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { margin-bottom: 0.6rem; }

/* "Så går det till" — 3 Schritte */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.step { text-align: center; }
.step__icon { width: clamp(122px, 11.5vw, 162px); height: clamp(122px, 11.5vw, 162px); object-fit: contain; margin: 0 auto 1.3rem; }
.step h3 { margin-bottom: calc(0.6rem + 8px); line-height: calc(1.05em + 4px); }

/* "Några exempel" — Personen-Karten */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.card { text-align: center; }
.card__photo { width: clamp(220px, 24vw, 320px); height: clamp(220px, 24vw, 320px); border-radius: 0; object-fit: cover; margin: 0 auto 1.4rem; }
.card h3 { color: var(--purple); margin-bottom: 0.8rem; }
.card p { max-width: 38ch; margin-inline: auto; }
.card__link { font-weight: 700; color: var(--purple); display: inline-flex; gap: 0.4em; margin-top: 1rem; }
.card__link::after { content: "›"; }

/* ============================================================
   CTA + Formular
   ============================================================ */
.cta {
  background: var(--purple);
  color: var(--cream);
  padding-block: clamp(3.5rem, 7vw, 6rem);
  position: relative;
}
.cta__head { display: grid; grid-template-columns: 1.5fr 1fr; align-items: start; gap: 2rem; margin-bottom: 0; }
.cta__img { max-width: 360px; width: 100%; justify-self: end; margin-top: clamp(-206px, -16.4vw, -150px); }
.cta h2 { color: var(--lime); margin-bottom: calc(0.6rem + 8px); }
.form__title { color: var(--lime); font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); margin-bottom: 1.3rem; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.form__col { display: grid; gap: 2.35rem; align-content: start; }
.form input, .form textarea {
  background: var(--white); border: none; border-radius: 8px;
  padding: 0.95em 1.1em; color: var(--purple); width: 100%;
}
.form input::placeholder, .form textarea::placeholder { color: #6b6385; }
.form textarea { min-height: 160px; resize: vertical; }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; line-height: 1.4; }
.consent input { width: 1.15rem; height: 1.15rem; flex: none; margin-top: 0.1rem; }
.form .btn { justify-self: end; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--purple); color: var(--cream); padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer__top { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2rem; align-items: start; }
.footer__top > .logo { grid-column: 1 / -1; justify-self: start; }
.footer__top > p { grid-column: 1; padding-right: 14%; }
.footer .logo { display: inline-block; margin-bottom: 1.2rem; }
.footer .logo img { height: 3rem; width: auto; }
.footer__links { display: grid; grid-column: 2; gap: 0.6rem; text-align: left; align-content: start; }
.footer__links a { color: var(--orange); font-weight: 700; display: inline-flex; align-items: center; gap: 0.4em; transition: color .15s ease; }
.footer__links a:hover { color: #fff; }
.footer__links a::after { content: "›"; font-size: 1.15em; line-height: 1; }
.footer__partners {
  display: grid; grid-template-columns: repeat(3, 1fr); align-items: center;
  gap: 1.5rem; margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(1.5rem, 3vw, 2.5rem); border-top: 1px solid rgba(247,247,226,0.25);
}
.footer__partners img { max-height: 78px; max-width: 100%; width: auto; height: auto; }
.footer__partners img:nth-child(1) { justify-self: start; }
.footer__partners img:nth-child(2) { justify-self: center; }
.footer__partners img:nth-child(3) { justify-self: end; }

/* ============================================================
   DETAIL-/UNTERSEITE (Artikel — vgl. Layout Seite 2/3)
   ============================================================ */
.detail-bar { background: var(--purple); }
.detail-bar .container { display: flex; justify-content: flex-end; align-items: center; padding-block: 0.9rem; }
.detail-bar .back { color: var(--cream); font-weight: 600; display: inline-flex; align-items: center; gap: 0.45em; }
.detail-bar .back::before { content: "‹"; font-size: 1.3em; line-height: 1; }
.detail-bar .back:hover { color: var(--gold); }
.detail-bar .logo img { height: 2.2rem; width: auto; }

.article { background: var(--cream); padding-bottom: clamp(3rem, 7vw, 6rem); --article-w: 760px; }
/* Alles in einer zentrierten Spalte = Breite des Hero-Bilds.
   Copytext 70% davon, Bild/Text-Reihen 100%; alle linksbuendig. */
.article__inner { max-width: calc(var(--article-w) + 2 * var(--gutter)); }
.article__back { display: inline-flex; align-items: center; gap: 0.45em; color: var(--purple);
  font-weight: 600; margin: clamp(1.2rem, 3vw, 2rem) 0 clamp(1rem, 2.5vw, 1.6rem); transition: color .15s ease; }
.article__back::before { content: "‹"; font-size: 1.3em; line-height: 1; }
.article__back:hover { color: var(--gold); }
.article__hero { margin: 0 0 clamp(1.5rem, 4vw, 2.5rem); }
.article__hero img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 0; }
.article__title { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3.2rem); margin-bottom: clamp(1rem, 2.5vw, 1.6rem); }
.article__lead { font-weight: 700; font-size: 1.12em; margin-bottom: 1.3rem; }
.article__body { max-width: 80%; color: #303030; }
.article__body p { margin-bottom: 1.15rem; }
.article__body h2 { font-size: clamp(1.3rem, 1.05rem + 0.9vw, 1.7rem); margin: 1.8rem 0 0.7rem; }
.article__figure { margin: clamp(1.8rem, 4vw, 2.6rem) 0; }
.article__figure img { width: 100%; border-radius: 0; }
.article__figure figcaption { font-size: 0.85em; color: var(--purple-soft); margin-top: 0.6rem; }
/* Bild + Text nebeneinander, alternierend (Bild links / Bild rechts) */
.article__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center; margin: clamp(2rem, 5vw, 3.2rem) 0; }
.article__row img { width: 100%; border-radius: 0; }
.article__row p { margin-bottom: 0; }
.article__row--rev .article__row-media { order: 2; }

/* Teaser-Karten klickbar (Homepage) — Bild zoomt bei Hover */
.card__media { display: block; overflow: hidden; }
.card__media img { transition: transform .35s ease; }
.card__media:hover img { transform: scale(1.06); }
/* Text-Links: Hover orange */
.card h3 a, .card__link { transition: color .15s ease; }
.card h3 a:hover, .card__link:hover { color: var(--orange); }

/* ============================================================
   Rich-Text (CMS-editierbar): fett, kursiv, lista, länk
   Reproduziert das Design (ticks-lista, fett, links) 1:1.
   p-Abstaende kommen weiter aus den Sektions-Regeln (.split p etc.).
   ============================================================ */
.rte > :first-child { margin-top: 0; }
.rte > :last-child { margin-bottom: 0; }
.rte strong, .rte b { font-weight: 700; }
.rte em, .rte i { font-style: italic; }
.rte a { color: var(--purple); text-decoration: underline; text-underline-offset: 2px; transition: color .15s ease; }
.rte a:hover { color: var(--orange); }
.rte ul { display: grid; gap: 0.7rem; margin: 1.1rem 0; list-style: none; padding: 0; }
.rte li { position: relative; padding-left: 1.4rem; font-weight: 600; }
.rte li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--purple);
}

/* ============================================================
   RESPONSIVE (mobil, vgl. layout_Seite_5/6)
   ============================================================ */
@media (max-width: 800px) {
  .split,
  .split--media-left,
  .steps,
  .cards,
  .form,
  .cta__head,
  .article__row,
  .footer__top,
  .footer__partners { grid-template-columns: 1fr; }
  .article__row--rev .article__row-media { order: 0; }
  .article__body { max-width: 100%; }

  /* Hero mobil: erst Grafik (linke = doodle), dann Headline, dann Copy.
     display:contents loest die Row auf, container ordnet per flex/order. */
  .hero { padding-bottom: clamp(3.5rem, 11vw, 5rem); }
  .hero .container { display: flex; flex-direction: column; }
  .hero__row { display: contents; }
  .hero__doodle { display: block; order: 1; max-width: 330px; margin: 0 auto 0.5rem; align-self: center; }
  .hero__title { order: 2; }
  .hero__copy { order: 3; align-self: center; }
  .hero__figure { display: none; }
  .cta__img { justify-self: center; order: -1; max-width: 240px; margin-top: clamp(-206px, -16.4vw, -130px); }
  .form .btn { justify-self: stretch; justify-content: center; }
  .besok .split { grid-template-columns: 1fr; align-items: stretch; }
  .besok__media { align-self: center; }
  .besok__media img { max-width: 180px; max-height: none; margin: 1.2rem auto -60px; }
  
  .darfor { padding-top: 80px; }
  
  /* Darfor: ic.png voll sichtbar, kein Links-Versatz */
  .darfor__box img { width: 100%; max-width: 100%; margin-left: 0; }
  .footer__top > p,
  .footer__links { grid-column: auto; }
  .footer__links { text-align: left; margin-top: 1.6rem; }
  .footer__partners { gap: 2rem; justify-items: center; }
  .footer__partners img:nth-child(1),
  .footer__partners img:nth-child(2),
  .footer__partners img:nth-child(3) { justify-self: center; }
}
