/* ============================================================
   Sales-Seite Workbook (workbook.melicus-akademie.de)

   Grundgestaltung: Auszug aus assets/css/style.css des Funnels
   (nur, was die Seite braucht). Das Angebot selbst gestaltet
   workbook-angebot.css – unverändert von der Dankeseite übernommen.
   Diese Datei wird NACH workbook-angebot.css geladen und darf dort überschreiben.

   Die Schrift liegt lokal in fonts/, damit beim Aufruf keine
   Verbindung zu Google entsteht (kein Consent nötig).
   ============================================================ */

@font-face {
    font-family: 'Instrument Sans';
    font-style: normal; font-weight: 400 700; font-display: swap;
    src: url('../fonts/instrument-sans-latin-ext.woff2') format('woff2');
    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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Instrument Sans';
    font-style: normal; font-weight: 400 700; font-display: swap;
    src: url('../fonts/instrument-sans-latin.woff2') format('woff2');
    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;
}

/* ---- Grundlagen (wie style.css) ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
img, video { max-width: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 18px;
    line-height: var(--body-line);
    color: var(--color-text);
    background: var(--color-cream);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: var(--head-weight);
    letter-spacing: var(--head-spacing);
    line-height: var(--head-line);
    color: var(--color-dark);
    margin: 0 0 0.5em;
}
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
p { margin: 0 0 1em; }
a { color: var(--color-accent); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.dpage { background: var(--color-cream); min-height: 100vh; padding: 28px 16px 80px; color: var(--color-text); }
.dpage .container { max-width: 1080px; margin: 0 auto; }

/* ============================================================
   Abschnitt 1: Kopf – dunkle Navy-Fläche über die ganze Breite
   (Aufbau nach Daniels Vorlage: Titel oben, links Workbook + Vertrauen,
   rechts Angebotskarte mit Preis, Nutzen und Knopf)
   ============================================================ */
.sp-hero {
    position: relative; overflow: hidden; margin: 0;
    background: radial-gradient(1200px 600px at 75% 20%, #1c2c52 0%, transparent 60%), var(--wb-ink);
    color: #cfd6e3; padding: 28px 16px clamp(48px, 7vw, 80px);
}
.sp-hero::before {   /* fünf Notenlinien wie in der Abschlussbox */
    content: ""; position: absolute; left: 0; right: 0; bottom: 26px; height: 49px; pointer-events: none;
    background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .06) 0 1px, transparent 1px 12px);
}
.sp-hero__in { position: relative; max-width: 1120px; margin: 0 auto; padding: 0 4px; }
.sp-top { margin: 0 0 clamp(28px, 5vw, 44px); font-weight: 700; font-size: 1.05rem; color: #fff; letter-spacing: -0.01em; }
.sp-top span { color: var(--wb-gold); }
.sp-kicker {
    margin: 0 auto 12px; max-width: none; text-align: center;
    color: var(--wb-gold-soft); font-size: clamp(.82rem, 1.6vw, .98rem); font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase; line-height: 1.3;
}
.sp-hero h1 {
    margin: 0 auto; max-width: none; text-align: center; color: #fff; font-weight: 700;   /* volle Breite: am Desktop höchstens 2 Zeilen */
    font-size: clamp(2rem, 5vw, 3.35rem); line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance;
}
.sp-hero h1::after {
    content: ""; display: block; width: 64px; height: 5px; margin: 20px auto 0;
    border-radius: 3px; background: var(--wb-gold);
}
.sp-hero .sp-hero__sub {
    margin: 20px auto 0; max-width: 1000px; text-align: center; color: #dde2ec;   /* am Desktop 2 Zeilen */
    font-size: clamp(1.02rem, 1.9vw, 1.2rem); line-height: 1.55; text-wrap: balance;
}
.sp-hero__grid {
    display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 48px);
    align-items: start; margin-top: clamp(32px, 5vw, 52px);
}
.sp-hero__bild { margin: 0; }
.sp-hero__bild img {
    display: block; width: 100%; height: auto; border-radius: 22px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
}

/* Vertrauen: drei überlappende Kreise + Satz */
.sp-trust { display: flex; align-items: center; gap: 16px; margin-top: 26px; }
.sp-trust__faces { display: flex; flex: none; }
.sp-trust__faces img {
    width: 54px; height: 54px; border-radius: 50%; object-fit: cover;
    border: 3px solid var(--wb-ink); box-shadow: 0 0 0 2px var(--wb-gold);
}
.sp-trust__faces img + img { margin-left: -16px; }
.sp-trust p { margin: 0; text-align: left; font-size: .95rem; line-height: 1.45; color: #cfd6e3; }
.sp-trust strong { color: #fff; }

/* Angebotskarte: Papier mit Goldrand, nutzt Preis-Animation von .wb-price */
.wb-price.sp-offer {
    display: block; margin: 0; padding: clamp(22px, 3vw, 32px);
    background: var(--wb-paper); color: var(--wb-slate);
    border: 2px solid var(--wb-gold); border-radius: 24px;
    box-shadow: 0 0 0 6px rgba(232, 163, 61, .18), 0 30px 70px rgba(0, 0, 0, .35);
}
.sp-offer__top { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; }
.sp-offer__cover { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.sp-offer__label { margin: 0 0 4px; color: var(--wb-ink); font-weight: 700; }
.sp-offer .wb-price__save { margin-top: 10px; }
.sp-offer__lead { margin: 22px 0 12px; color: var(--wb-ink); font-weight: 700; font-size: 1.12rem; }
.sp-offer .wb-checks li { font-size: 1rem; }
.sp-offer .wb-checks strong { color: var(--wb-ink); }
/* Geschenke: fester Teil der Karte, abgesetzt durch eine feine Linie */
.sp-offer__gifts { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--wb-line); }
.sp-offer__giftlead {
    margin: 0 0 12px; color: var(--wb-ochre); font-weight: 700; font-size: .85rem;
    letter-spacing: .08em; text-transform: uppercase;
}
.sp-offer__gifts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sp-offer__gifts li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; font-size: .97rem; line-height: 1.4; }
.sp-offer__gifts strong { color: var(--wb-ink); }
.sp-offer__ico {
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--wb-ink);
}
.sp-offer__ico svg { width: 20px; height: 20px; }
.sp-offer__ico path, .sp-offer__ico ellipse { fill: var(--wb-gold); }
.sp-offer__ico .l { fill: none; stroke: var(--wb-gold); stroke-width: 1.4; stroke-linecap: round; }
.sp-offer__ico svg path.l:first-child { stroke: rgba(232, 163, 61, .45); }
.sp-offer .wb-cta { width: 100%; margin-top: 20px; }
.sp-offer .wb-price__note { text-align: center; }

/* Abstand zwischen Kopf und Problemabschnitt */
.dpage { padding-top: 8px; }

/* ============================================================
   Abschnitt 3: Methode – zwei .wb-blick-Kästen untereinander
   ============================================================ */
.sp-methoden .wb-blick { margin-top: 32px; }
.sp-method .wb-tag { margin-bottom: 8px; }
.sp-td { grid-template-columns: 1fr minmax(0, 1.25fr); }
.sp-td .wb-blick__score { order: 2; }

/* Top-down (Workbook S. 29, Takt 1–4): umgekehrt zum Fuchsgraben – erst die Akkorde
   Takt für Takt, dann schreibt sich die Melodie. Sprünge auf den Taktstrichen des Bildes
   (Anteile der Bildbreite: 32,3 % / 61,4 % / 83,0 % / 99,5 %). */
.wb-js .sp-td.is-in .wb-blick__chords { animation: sp-td-chords 2.4s .2s both; }
.wb-js .sp-td.is-in .wb-blick__melody { animation: wb-write 2.4s linear 2.8s both; }
@keyframes sp-td-chords {
    0%, 24%  { clip-path: inset(0 67.7% 0 0); }
    25%, 49% { clip-path: inset(0 38.6% 0 0); }
    50%, 74% { clip-path: inset(0 17% 0 0); }
    75%, 99% { clip-path: inset(0 0.5% 0 0); }
    100%     { clip-path: inset(0 0 0 0); }
}

/* ============================================================
   Abschnitt 4: Vorher / Nachher
   ============================================================ */
.sp-wandel__grid { display: grid; grid-template-columns: 1fr 56px 1fr; gap: 12px; align-items: center; margin-top: 28px; }
.sp-wandel__col { height: 100%; padding: 28px; border-radius: 22px; }
.sp-wandel__col--vor { background: #f6ebe4; border: 1px solid #ecd6ca; }
.sp-wandel__col--nach { background: var(--wb-paper); border: 2px solid var(--wb-gold); }
.sp-wandel__tag {
    display: inline-block; margin: 0 0 16px; padding: 4px 14px; border-radius: 99px;
    font-weight: 700; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase;
}
.sp-wandel__col--vor .sp-wandel__tag { background: var(--wb-rust); color: #fff; }
.sp-wandel__col--nach .sp-wandel__tag { background: var(--wb-gold); color: var(--wb-ink); }
.sp-wandel__col--vor .wb-crosses li::before { background-color: #ecd0c2; }
.sp-wandel__pfeil svg { display: block; width: 48px; height: 48px; margin: 0 auto; }
.sp-wandel__pfeil path { fill: none; stroke: var(--wb-gold); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================
   Abschnitt 5: 4 Schritte – .wb-parts als Karten nebeneinander
   ============================================================ */
.wb-parts.sp-steps {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; border: 0;
}
.sp-steps li {
    display: block; padding: 24px 22px; border: 1px solid var(--wb-line); border-radius: 20px;
    background: var(--wb-paper); position: relative;
}
.sp-steps li:not(:last-child)::after {   /* kleine Verbindung zum nächsten Schritt */
    content: ""; position: absolute; top: 44px; right: -13px; width: 10px; height: 2px; background: var(--wb-gold);
}
.sp-steps .wb-parts__num { margin-bottom: 12px; }
.sp-steps h3 { font-size: 1.1rem; }
.sp-steps p { font-size: .98rem; line-height: 1.5; }

/* ============================================================
   Abschnitt 8: Kein Musikstudium
   ============================================================ */
.wb-good.sp-studium { margin-top: 0; padding: clamp(28px, 5vw, 52px); }
.sp-studium h2 { color: #fff; max-width: 24ch; }
.sp-studium p + p { margin-top: 14px; }

@media (max-width: 960px) {
    .wb-parts.sp-steps { grid-template-columns: 1fr 1fr; }
    .sp-steps li::after { display: none; }
}
@media (max-width: 860px) {
    /* Am Handy: Foto (kleiner) → Angebot → Vertrauen, damit der Preis früh im Bild ist */
    .sp-hero::before { display: none; }
    .sp-hero__grid { grid-template-columns: 1fr; gap: 24px; }
    .sp-hero__links { display: contents; }
    .sp-hero__bild { order: 1; width: 100%; max-width: 340px; margin: 0 auto; }
    .wb-price.sp-offer { order: 2; }
    .sp-trust { order: 3; width: 100%; max-width: 520px; margin: 0 auto; }
    .sp-td .wb-blick__score { order: 0; }
    .sp-td { grid-template-columns: 1fr; }
    .sp-wandel__grid { grid-template-columns: 1fr; }
    .sp-wandel__pfeil svg { transform: rotate(90deg); }
}
@media (max-width: 560px) {
    .wb-parts.sp-steps { grid-template-columns: 1fr; }
    .sp-offer__top { grid-template-columns: 90px 1fr; gap: 14px; }
    .sp-trust__faces img { width: 46px; height: 46px; }
}

/* „System" als roter Faden: Lücke im Problem-Abschnitt, Oberzeile der 4 Schritte */
.wb .sp-luecke {
    max-width: none; margin: 44px 0 0; padding: 22px 28px; border-radius: 18px;
    background: var(--wb-ink); color: #dde2ec; text-align: center;
    font-size: clamp(1.2rem, 2.6vw, 1.55rem); font-weight: 600; line-height: 1.35; letter-spacing: -0.01em;
}
.sp-luecke strong { color: var(--wb-gold); }
.wb .sp-label {
    margin: 28px 0 -12px; color: var(--wb-ochre); font-weight: 700; font-size: .9rem;
    letter-spacing: .08em; text-transform: uppercase;
}
.sp-studium .wb-cta { margin-top: 26px; }

/* ============================================================
   Farbbänder: jeder Abschnitt bekommt eine eigene Hintergrundfarbe
   über die volle Fensterbreite (Schatten-Trick, erzeugt keinen
   seitlichen Scrollbalken). Farben aus der Familie Creme/Papier/Gold.
   ============================================================ */
.dpage { padding: 0 16px; }
.dpage > .container > .wb { margin-top: 0; }
.sp-band {
    background: var(--band); box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax);
    padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px);
}
.sp-band--papier { --band: #faf8f3; }
.sp-band--creme  { --band: #efecea; }
.sp-band--weiss  { --band: #ffffff; }
.sp-band--sand   { --band: #f3eadb; }
.sp-band--gold   { --band: #fbf1dc; }
.sp-band--blau   { --band: #e7ebf2; }
/* Karten, die sonst mit dem Band verschmelzen würden */
.sp-band--papier .wb-pain__icon { background: #fff; }
.sp-band--weiss .wb-fit__col--yes { background: var(--wb-paper); }
.sp-band--gold .wb-gift { background: #fff; border-color: var(--wb-gold-soft); }
.sp-band--sand .sp-steps li { background: #fff; }
/* Abschluss-Box steht auf eigenem Creme-Streifen zwischen den Bändern */
.wb-final { margin: 0 auto; }
.sp-band + .wb-final, .wb-final + .sp-band { margin-top: 0; }
.wb > .wb-final { margin-top: clamp(56px, 8vw, 96px); margin-bottom: clamp(56px, 8vw, 96px); }

/* ---- Fuß ---- */
.sp-foot {
    border-top: 1px solid #e4ded1; margin-top: 0; padding: 28px 20px 40px;
    text-align: center; font-size: .9rem; color: #6b7386;
}
.sp-foot nav { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }
.sp-foot a { color: #3d475b; }
