/* Abschnittsgerüst: jede Sektion beginnt mit einer 1-px-Linie, Überschrift links, Inhalt rechts (ab 900 px). */
.section { padding-block: var(--section-y); }
.section__inner { border-top: 1px solid var(--line); padding-top: clamp(32px, 5vw, 56px); display: grid; gap: 28px; }
.section__body > * + * { margin-top: 1.1em; }
.split { display: grid; gap: 28px; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; }
  .section__inner--split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; }
}

/* Hero */
.hero { padding: clamp(16px, 2.5vw, 32px) 0 0; }
.hero h1 { max-width: 15ch; }
.hero__sub { margin-top: clamp(24px, 3vw, 48px); font-size: clamp(1.125rem, 1rem + 0.5vw, 1.875rem); line-height: 1.45; max-width: 52ch; }
.hero__cta { margin-top: clamp(28px, 4vw, 44px); display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 28px; }
.hero__cta .textlink { min-height: 52px; }
.hero__book { display: flex; flex-direction: column; align-items: center; }
.hero__free { margin-top: 6px; font-size: var(--fs-small); line-height: 1.2; color: var(--muted); }

/* Analytics-Laufband: schwarz, volle Breite, die eine mutige Stelle */
.band { background: var(--bg-inverse); color: var(--ink-inverse); padding-block: clamp(24px, 3vw, 40px) clamp(36px, 5vw, 64px); overflow: hidden; }
.band__head { margin-top: clamp(24px, 3.5vw, 40px); text-align: center; }
.band__head p { margin-top: 12px; color: var(--muted-inverse); }
.marquee { --shot-h: clamp(380px, 40vw, 700px); --shot-gap: 16px; overflow: hidden; }
.marquee:focus-visible { outline: 2px solid var(--ink-inverse); outline-offset: -2px; }
.marquee__track { display: flex; width: max-content; animation: marquee var(--marquee-dur, 70s) linear infinite; }
.marquee__row { display: flex; flex: none; }
.shot { flex: none; border-radius: 24px; overflow: hidden; height: var(--shot-h); aspect-ratio: 9 / 19; margin-right: var(--shot-gap); background: #f2f2f2; }
.shot img { height: 100%; width: auto; max-width: none; background: #fff; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee__track { animation: none; }
  .marquee__track .marquee__row:nth-child(2) { display: none; }
}

/* Angebot */
.offers__intro { margin-top: 0; font-size: var(--fs-small); color: var(--muted); }
#angebot .split { gap: 10px; }
#angebot .split + .offer { margin-top: 0; }
/* Überschrift über die ganze Breite, die drei Angebote darunter, nummeriert 1 bis 3 */
#angebot .split { grid-template-columns: minmax(0, 1fr); }
#angebot .split > h2 { max-width: none; text-wrap: pretty; }
#angebot .section__inner { counter-reset: offer; }
.offer { counter-increment: offer; }
.offer__text h3::before { content: counter(offer); display: block; margin-bottom: 8px; font-size: var(--fs-ui); font-weight: 500; letter-spacing: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.offer { margin-top: clamp(48px, 7vw, 80px); border-top: 1px solid var(--line); padding-top: clamp(28px, 4vw, 40px); }
.offer__title p { margin-top: 10px; color: var(--muted); }

/* Gericht aus dem Sushi-Band oben rechts im Angebots-Kopf */
.offer__title { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.offer__text { min-width: 0; }
.offer__dish { flex: none; width: clamp(80px, 11vw, 200px); height: auto; aspect-ratio: 1; object-fit: contain; margin-top: -8px; }

.tabs { display: flex; flex-wrap: wrap; gap: 0 28px; margin-top: 28px; border-bottom: 1px solid var(--line); }
.tab { min-height: 48px; padding: 0 2px; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; font: inherit; font-size: var(--fs-ui); font-weight: 500; color: var(--muted); cursor: pointer; text-align: left; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }

/* Segment-Umschalter (Angebot 1): zwei gleich breite Buttons, einer immer aktiv */
[data-segment].is-enhanced > .tabs { display: grid; grid-template-columns: 1fr; gap: 10px; border-bottom: 0; }
[data-segment] .tab { min-height: 56px; padding: 12px 20px; margin: 0; border: 1px solid var(--ink); border-radius: 24px; color: var(--ink); text-align: left; line-height: 1.3; transition: background-color .15s, color .15s; }
[data-segment] .tab:hover { background: var(--line); }
[data-segment] .tab[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
@media (min-width: 700px) { [data-segment].is-enhanced > .tabs { grid-template-columns: 1fr 1fr; gap: 14px; } }
[data-segment].is-enhanced > .way { animation: way-in .18s ease-out; }
@keyframes way-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { [data-segment].is-enhanced > .way, [data-segment] .tab { animation: none; transition: none; } }

.way { margin-top: 28px; }
.way + .way { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
[data-tabs].is-enhanced .way, [data-tabs].is-enhanced .way + .way { margin-top: 28px; padding-top: 0; border-top: 0; }
.way__title { font-weight: 500; font-size: var(--fs-h4); letter-spacing: -0.015em; }
.way__lead { margin-top: 12px; }

.clip__cols { display: grid; gap: 40px; margin-top: 28px; }
.clip__cols > div > * + * { margin-top: 1em; }
.clip ul li { padding-block: 8px; border-top: 1px solid var(--line); }
.clip ul li:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .clip__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; } }

/* Nummerierte Listen (Clipping-Ablauf, Erstgespräch): hier ist die Reihenfolge der Inhalt */
.steps { counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.25rem 1fr; gap: 12px; padding-block: 18px; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.steps strong { font-weight: 500; }

/* KI */
.ki__after { margin-top: 0.5em; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.875rem); line-height: 1.4; }

.ablauf .steps { margin-top: 0; }
.ablauf .steps li { grid-template-columns: 3.5rem 1fr; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.875rem); }
.ablauf .steps li::before { font-size: var(--fs-h3); letter-spacing: -0.02em; line-height: 1.2; }

/* Über mich */
.about { display: grid; gap: 32px; }
.about__photo { aspect-ratio: 4 / 5; width: 100%; max-width: clamp(360px, 28vw, 620px); height: auto; object-fit: cover; object-position: 50% 30%; background: #ededed; }
.about__arrow { display: none; }
@media (min-width: 900px) {
  /* Text steht mittig neben dem Foto, ein Pfeil zeigt vom Namen zum Bild */
  .about { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; align-items: center; }
  .about__body { position: relative; top: calc(-1 * clamp(28px, 4.5vw, 88px)); } /* etwas über der Fotomitte */
  .about__body > h2 { margin-top: 0; }
  .about__arrow { display: block; position: absolute; right: 100%; top: calc(var(--fs-h2) * 0.2); margin-right: 20px; width: clamp(72px, 6vw, 132px); height: auto; }
}

/* Abschluss-CTA */
.cta { background: var(--bg-inverse); color: var(--ink-inverse); padding-block: var(--section-y); }
.cta h2 { max-width: 18ch; }
.cta__actions { margin-top: clamp(28px, 4vw, 40px); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.cta__note { margin-top: 16px; color: var(--muted-inverse); font-size: var(--fs-small); }
.cta__note a { color: var(--ink-inverse); display: inline-flex; align-items: center; min-height: 44px; }

/* Rechtsseiten */
.legal { padding-block: clamp(48px, 8vw, 96px); }
.legal h1 { font-size: var(--fs-h2); margin-bottom: 32px; }
.legal h2 { font-size: var(--fs-h4); margin-top: 40px; margin-bottom: 8px; letter-spacing: -0.015em; }
.legal p + p { margin-top: 1em; }
.legal { overflow-wrap: anywhere; }
.legal p, .legal li { max-width: var(--measure); }
.legal a { text-decoration: underline; text-underline-offset: 3px; }

/* Beim Anspringen eines Wegs (Hash) bleiben Überschrift und Tabs unter der fixen Navigation sichtbar */
[data-way] { scroll-margin-top: calc(var(--nav-h) + 150px); }

/* Listen direkt unter der Abschnittslinie: keine zweite Linie darüber */
.section__inner--split .steps li:first-child { border-top: 0; }

/* Sushi-Band: Rückfall ohne JavaScript und Sprungziele der Angebote unter der fixen Navigation */
.belt-fallback { display: flex; flex-wrap: wrap; gap: 0 28px; }
.offer { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* Hero mit Sushi-Band oben rechts (ab 960 px nebeneinander, darunter untereinander) */
.hero__grid { display: grid; gap: clamp(32px, 5vw, 48px); align-items: start; }
.hero__belt { min-width: 0; }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); column-gap: 32px; }
  .hero__grid h1 { font-size: clamp(2.75rem, 1.2rem + 3.2vw, 7.5rem); }
}

/* Zahlen direkt unter dem Hero schon im ersten Bildschirm sichtbar: weniger Luft über dem Counter */
.hero + .reichweite { padding-top: clamp(24px, 3.5vw, 48px); padding-bottom: clamp(24px, 3vw, 40px); }
.hero + .reichweite .reichweite__note { margin-top: 24px; }

/* Footer: weniger Luft über dem Wortzeichen "scalingsocial". Die Höhe folgt der Wortgröße (Breite),
   auf schmalen Bildschirmen bleibt Platz für die umbrechenden Linkspalten. */
#site-footer .hwf-root { height: calc(160px + 15.3vw) !important; }
#site-footer .hwf-top, #site-footer .hwf-rule { font-size: clamp(10.5px, 0.55vw + 4px, 20px) !important; }
@media (max-width: 720px) { #site-footer .hwf-root { height: 380px !important; } }

/* Über mich direkt unter "Unsere Ergebnisse": keine Trennlinie, weniger Luft darüber */
#ueber-mich { padding-top: clamp(28px, 3.5vw, 48px); padding-bottom: clamp(24px, 3.5vw, 56px); }
#ueber-mich .section__inner { border-top: 0; padding-top: 0; }

/* Footer-Text bündig mit dem Seitenrand (wächst mit dem Bildschirm) */
#site-footer .hwf-top { padding-inline: var(--gutter) !important; }
#site-footer .hwf-rule { margin-inline: var(--gutter) !important; }

/* KI-Abschnitt direkt unter "Über mich": weniger Luft darüber */
#ki { padding-top: clamp(32px, 4vw, 64px); }

/* KI-Orb rechts neben dem Text, darunter (schmal) zentriert */
.ki__cloud { min-width: 0; align-self: center; }
.ki__tools { color: var(--muted); }
@media (min-width: 900px) {
  .ki.section__inner--split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 48px; }
  .ki__cloud { order: -1; justify-self: start; width: 100%; }
}

/* Weniger Luft zwischen KI-Abschnitt und Angeboten */
#ki { padding-bottom: clamp(16px, 2.5vw, 40px); }
#angebot { padding-top: clamp(32px, 4vw, 64px); }
