/* ============================================================
   Tobias Albers-Heinemann – Relaunch
   Design-Thinking / Sketchnote-Stil: aktiv, beweglich, modern,
   aber minimalistisch.
   Gilt für index.html, impressum.html, datenschutz.html
   ============================================================ */

/* ---------- 0. Schriften (lokal, keine Google-Server) ----------
   Caveat und Inter liegen als Variable-WOFF2 in fonts/ (SIL Open Font
   License 1.1, Lizenztexte in fonts/OFL-*.txt). Zeichenumfang:
   latin + latin-ext. Es werden keine Schriften von externen Servern
   nachgeladen. */

@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-variable-latin.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Caveat';
    src: url('fonts/caveat-variable-latin.woff2') format('woff2');
    font-weight: 600 700;
    font-style: normal;
    font-display: swap;
}

/* ---------- 1. Design Tokens ---------- */
:root {
    /* Reduzierte, kontrastreiche Palette auf hellem Grund */
    --ink:        #1f2d36;   /* Stiftfarbe, Überschriften */
    --ink-soft:   #52646e;   /* Fließtext-Sekundär, ~5.4:1 auf --paper */
    --text:       #2b3840;
    --paper:      #fdfcf9;   /* Papierweiß */
    --white:      #ffffff;

    --yellow:     #f5b700;   /* Marker */
    --orange:     #d95f00;   /* dekorativ: Linien, Marker, Punkte (>3:1) */
    --orange-text:#b04a00;   /* Textfarbe, 5,5:1 auf weiß */
    --blue:       #2477b3;   /* Primäraktion, AA auf weiß */
    --blue-light: #3498db;   /* nur dekorativ */
    --green:      #2f8f63;
    --coral:      #d8412a;

    --line:       rgba(31, 45, 54, 0.14);

    /* Handgezeichnete Rahmenradien */
    --sketch-1: 255px 15px 225px 15px / 15px 225px 15px 255px;
    --sketch-2: 15px 225px 15px 255px / 225px 15px 255px 15px;

    --wrap: 1120px;
    --ease: cubic-bezier(.22,.68,.32,1);

    --font-hand: 'Caveat', 'Segoe Script', 'Bradley Hand', cursive;
    --font-body: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ---------- 2. Reset & Basis ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--paper);
    /* Dot-Grid wie auf Workshop-Papier – sehr dezent */
    background-image: radial-gradient(circle, rgba(31,45,54,.085) 1px, transparent 1.2px);
    background-size: 26px 26px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* lange deutsche Komposita dürfen auf schmalen Displays umbrechen */
    overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; font-weight: 700; overflow-wrap: break-word; hyphens: manual; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 3px;
    border-radius: 4px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 1000;
    background: var(--ink); color: #fff; padding: 12px 22px;
    border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- 3. Handschrift-Akzente & Marker ---------- */
.hand {
    font-family: var(--font-hand);
    font-weight: 700;
    letter-spacing: .3px;
}

.eyebrow {
    font-family: var(--font-hand);
    font-size: 1.5rem;
    color: var(--orange-text);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.eyebrow::before {
    content: '';
    width: 34px; height: 2px;
    background: currentColor;
    border-radius: 2px;
    transform: rotate(-2deg);
}

/* Marker-Streifen am Zeilenfuß: wächst beim Scrollen ein.
   Als Hintergrundverlauf statt als Pseudoelement mit z-index: -1 —
   letzteres verschwindet hinter dem Hintergrund einer Karte, sobald der
   Elternknoten keinen eigenen Stapelkontext mehr aufspannt. */
.mark {
    --mk: rgba(245, 183, 0, .5);
    display: inline;
    background-image: linear-gradient(
        transparent 60%,
        var(--mk) 60%,
        var(--mk) 93%,
        transparent 93%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    border-radius: 3px;
    padding: 0 .08em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}
.mark-orange { --mk: rgba(217, 95, 0, .35); }
.mark-blue   { --mk: rgba(52, 152, 219, .4); }
.mark-green  { --mk: rgba(47, 143, 99, .35); }
.mark-red    { --mk: rgba(216, 65, 42, .38); }

.js .mark {
    background-size: 0% 100%;
    transition: background-size .7s var(--ease);
}
.js .is-in .mark,
.js .mark.is-in { background-size: 100% 100%; }

/* Textmarker: liegt HINTER dem Text, der Text bleibt also voll lesbar.
   Als Hintergrundverlauf umgesetzt, damit die Hervorhebung auch sauber
   aussieht, wenn die Wortgruppe über zwei Zeilen umbricht. */
.highlight {
    /* Deckkraft je Farbe so gewählt, dass der Fließtext (#52646e) auf der
       Markerfläche mindestens 4,5:1 erreicht. Gelb verträgt am meisten,
       die dunkleren Farben brauchen eine hellere Lasur. */
    --hl: rgba(245, 183, 0, .38);
    display: inline;
    background-image: linear-gradient(
        transparent 6%,
        var(--hl) 6%,
        var(--hl) 94%,
        transparent 94%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    border-radius: 5px 9px 6px 10px;
    padding: 0 .14em;
    margin: 0 -.04em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}
.highlight-orange { --hl: rgba(217, 95, 0, .20); }
.highlight-blue   { --hl: rgba(52, 152, 219, .23); }
.highlight-green  { --hl: rgba(47, 143, 99, .20); }

.js .highlight {
    background-size: 0% 100%;
    transition: background-size .85s var(--ease) .15s;
}
.js .is-in .highlight,
.js .highlight.is-in { background-size: 100% 100%; }

/* Sketch-Trennlinie zwischen den Abschnitten */
.sketch-divider {
    height: 22px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='22' viewBox='0 0 120 22'%3E%3Cpath d='M0 12 C20 2 40 20 60 11 S100 2 120 12' fill='none' stroke='%231f2d36' stroke-opacity='.22' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x center;
    margin: 8px 0;
}

/* ---------- 4. Scroll-Fortschritt ---------- */
.progress-line {
    position: fixed; top: 0; left: 0; height: 3px; width: 100%;
    transform: scaleX(0); transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--yellow), var(--orange), var(--coral));
    z-index: 120;
}

/* ---------- 5. Kopfzeile ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(253,252,249,.82);
    backdrop-filter: blur(9px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-stuck {
    border-bottom-color: var(--line);
    box-shadow: 0 6px 18px rgba(31,45,54,.05);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; padding-block: 14px;
}
.brand {
    font-family: var(--font-hand);
    font-size: 1.65rem;
    color: var(--ink);
    display: inline-flex; align-items: center; gap: 10px;
    text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-dot {
    width: 11px; height: 11px; border-radius: 50%;
    background: var(--orange);
    flex: 0 0 auto;
    transition: transform .4s var(--ease);
}
.brand:hover .brand-dot { transform: translateY(-4px) scale(1.15); }

.site-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.site-nav a {
    position: relative;
    font-size: .95rem; font-weight: 500;
    color: var(--ink-soft);
    padding: 7px 12px; border-radius: 8px;
    text-decoration: none;
    transition: color .25s var(--ease);
}
.site-nav a::after {
    content: '';
    position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px;
    background: var(--orange); border-radius: 2px;
    transform: scaleX(0); transform-origin: left;
    transition: transform .3s var(--ease);
}
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav a:hover::after,
.site-nav a[aria-current="true"]::after { transform: scaleX(1); }

/* ---------- 6. Hero ---------- */
.hero { position: relative; padding: 74px 0 40px; }
.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 48px; align-items: center;
}
/* Rasterzellen dürfen unter ihre Mindestbreite schrumpfen – sonst sprengen
   lange Komposita bei starker Textvergrößerung das Layout. */
.hero-grid > *, .ueber-grid > *, .angebote-grid > *, .header-inner > * { min-width: 0; }
.hero h1 {
    font-size: clamp(1.85rem, 5vw, 3.4rem);
    letter-spacing: -.5px;
    margin-bottom: 22px;
}
.hero-claim {
    font-family: var(--font-hand);
    font-size: clamp(1.75rem, 3.4vw, 2.35rem);
    color: var(--ink);
    display: flex; flex-wrap: wrap; gap: 4px 14px;
    margin-bottom: 20px;
}
.hero-claim span { position: relative; }
.hero-lead {
    font-size: 1.15rem; color: var(--ink-soft); max-width: 34em;
    margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual img {
    width: min(330px, 78vw);
    animation: float 7s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-.6deg); }
    50%      { transform: translateY(-14px) rotate(.6deg); }
}

/* schwebende Klebezettel im Hero */
.sticky-tag {
    position: absolute;
    font-family: var(--font-hand);
    font-size: 1.2rem;
    color: var(--ink);
    background: var(--yellow);
    padding: 9px 16px 11px;
    box-shadow: 3px 4px 0 rgba(31,45,54,.13);
    border-radius: 3px 12px 5px 10px;
    white-space: nowrap;
}
.sticky-tag.t1 { top: 2%;  left: -2%;  transform: rotate(-6deg); background: #ffe27a; }
.sticky-tag.t2 { bottom: 14%; right: -4%; transform: rotate(5deg);  background: #bfe3ff; }
.sticky-tag.t3 { bottom: -2%; left: 6%;  transform: rotate(3deg);  background: #ffd0c4; }
.sticky-tag { animation: tagFloat 9s ease-in-out infinite; }
.sticky-tag.t2 { animation-delay: -3s; }
.sticky-tag.t3 { animation-delay: -6s; }
@keyframes tagFloat {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -9px; }
}

/* Handgezeichneter Pfeil nach unten */
.scroll-hint {
    display: flex; justify-content: center; margin-top: 30px;
}
.scroll-hint svg { width: 52px; height: 60px; overflow: visible; }
.scroll-hint path {
    fill: none; stroke: var(--ink); stroke-opacity: .38;
    stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.scroll-hint { animation: nudge 2.6s ease-in-out infinite; }
@keyframes nudge {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(9px); }
}

/* ---------- 7. Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--blue); color: #fff;
    padding: 14px 30px;
    font-weight: 600; font-size: 1.02rem;
    border: 2px solid var(--blue);
    border-radius: var(--sketch-1);
    text-decoration: none;
    transition: transform .3s var(--ease), background .3s var(--ease), border-radius .4s var(--ease), box-shadow .3s var(--ease);
    box-shadow: 3px 4px 0 rgba(36,119,179,.28);
}
.btn:hover {
    background: var(--ink); border-color: var(--ink);
    border-radius: var(--sketch-2);
    transform: translate(-1px, -3px);
    box-shadow: 5px 7px 0 rgba(31,45,54,.22);
    text-decoration: none;
}
.btn-ghost {
    background: transparent; color: var(--ink);
    border-color: var(--ink); box-shadow: 3px 4px 0 rgba(31,45,54,.15);
}
.btn-ghost:hover { background: var(--yellow); border-color: var(--ink); color: var(--ink); }

/* ---------- 8. Abschnitte allgemein ---------- */
section { position: relative; }
.section { padding: 68px 0; }
.section-head { margin-bottom: 44px; max-width: 46em; }
.section-head h2 {
    font-size: clamp(1.8rem, 3.6vw, 2.5rem);
    letter-spacing: -.3px;
}
.section-head p { color: var(--ink-soft); margin-top: 12px; }

/* Scroll-Reveal */
.js .reveal {
    opacity: 0; transform: translateY(22px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

/* ---------- 9. Angebote als Klebezettel-Karten ---------- */
.angebote { background: rgba(255,255,255,.55); }

.angebote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
    gap: 34px;
    align-items: start;
}

.angebot-card {
    position: relative;
    background: var(--white);
    border: 2px solid var(--ink);
    border-radius: var(--sketch-1);
    box-shadow: 6px 8px 0 rgba(31,45,54,.10);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-radius .5s var(--ease);
}
.angebot-card:nth-child(odd)  { transform: rotate(-.8deg); }
.angebot-card:nth-child(even) { transform: rotate(.8deg); }
.angebot-card:hover,
.angebot-card:focus-within,
.angebot-card.active {
    transform: rotate(0deg) translateY(-4px);
    box-shadow: 9px 12px 0 rgba(31,45,54,.13);
    border-radius: var(--sketch-2);
}
/* farbige Reißzwecke */
.angebot-card::before {
    content: '';
    position: absolute; top: -11px; left: 34px;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--coral);
    box-shadow: inset -2px -2px 0 rgba(0,0,0,.13);
}
.angebot-card:nth-child(even)::before { background: var(--blue-light); left: auto; right: 34px; }

.angebot-head {
    position: relative;
    display: grid;
    grid-template-columns: 96px 1fr;
    align-items: center;
    gap: 20px;
    padding: 30px 78px 30px 26px;
}
.angebot-icon { width: 96px; }
.angebot-icon img { width: 96px; height: 96px; transition: transform .45s var(--ease); }
.angebot-card:hover .angebot-icon img { transform: rotate(-5deg) scale(1.07); }

.angebot-headtext h3 { font-size: 1.42rem; margin-bottom: 4px; }

/* Button trägt nur den Titel als Beschriftung; die Fläche des ganzen
   Kartenkopfs bleibt über ein aufgespanntes Pseudoelement klickbar. */
.angebot-btn {
    background: none; border: none; padding: 0;
    font: inherit; color: inherit; text-align: left;
    cursor: pointer;
}
.angebot-btn::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
}
.angebot-btn:focus-visible { outline: none; }
.angebot-btn:focus-visible::before {
    outline: 3px solid var(--orange);
    outline-offset: -4px;
    border-radius: 10px;
}
.angebot-headtext .teaser { color: var(--ink-soft); font-size: .99rem; }
.angebot-toggle {
    pointer-events: none;
    position: absolute; top: 50%; right: 26px;
    transform: translateY(-50%);
    width: 38px; height: 38px;
    border: 2px solid var(--ink); border-radius: 50%;
    display: grid; place-items: center;
    font-size: 1.1rem; line-height: 1; color: var(--ink);
    transition: transform .4s var(--ease), background .3s var(--ease);
}
.angebot-card.active .angebot-toggle { transform: translateY(-50%) rotate(180deg); background: var(--yellow); }

/* Aufklapp-Inhalt: animiert über grid-template-rows */
.angebot-content {
    display: grid; grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows .5s var(--ease), visibility 0s linear .5s;
}
.angebot-card.active .angebot-content {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: grid-template-rows .5s var(--ease), visibility 0s;
}
.angebot-content > .inner { overflow: hidden; }
.angebot-content .pad { padding: 0 30px 4px; }
.angebot-card.active .angebot-content .pad {
    padding: 4px 30px 32px;
    border-top: 2px dashed rgba(31,45,54,.22);
    margin-top: 6px;
}
.angebot-content p { color: var(--ink-soft); margin-bottom: 14px; }
.angebot-content h4 {
    font-family: var(--font-hand);
    font-size: 1.5rem; color: var(--orange-text);
    margin: 24px 0 12px;
}
.angebot-content ul { list-style: none; display: grid; gap: 8px; }
.angebot-content li {
    position: relative;
    padding-left: 30px;
    color: var(--text);
}
.angebot-content li::before {
    content: '';
    position: absolute; left: 0; top: .62em;
    width: 15px; height: 8px;
    border-left: 2.5px solid var(--green);
    border-bottom: 2.5px solid var(--green);
    transform: rotate(-45deg);
    border-radius: 1px;
}

/* ---------- 10. Über mich ---------- */
.ueber-grid {
    display: grid; grid-template-columns: 1fr .8fr;
    gap: 56px; align-items: center;
}
.ueber-text p { color: var(--ink-soft); margin-bottom: 16px; }
.ueber-text a { color: var(--blue); font-weight: 500; }

.portrait { position: relative; justify-self: center; }
.portrait img {
    width: min(280px, 70vw); aspect-ratio: 1; border-radius: 50%;
    border: 3px solid var(--ink);
    box-shadow: 8px 10px 0 rgba(31,45,54,.10);
    position: relative; z-index: 2;
}
.portrait::before {
    content: '';
    position: absolute; inset: -16px;
    border: 2px dashed rgba(36,119,179,.5);
    border-radius: 50%;
    animation: spin 34s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 11. Referenzen ---------- */
.referenzen { background: rgba(255,255,255,.55); }

.slider-container { max-width: 780px; margin: 0 auto; position: relative; overflow: hidden; padding: 6px 0 4px; }
.slider { display: flex; transition: transform .75s var(--ease); }
.slide { min-width: 100%; padding: 0 14px; display: flex; justify-content: center; }

.speech-bubble {
    position: relative;
    background: var(--white);
    border: 2px solid var(--ink);
    border-radius: var(--sketch-1);
    padding: 30px 30px 26px;
    box-shadow: 6px 8px 0 rgba(31,45,54,.10);
    max-width: 620px;
}
.speech-bubble::after {
    content: '';
    position: absolute; bottom: -15px; left: 44px;
    width: 0; height: 0;
    border-left: 15px solid transparent;
    border-right: 9px solid transparent;
    border-top: 15px solid var(--ink);
}
.speech-bubble::before {
    content: '';
    position: absolute; bottom: -11px; left: 47px;
    width: 0; height: 0; z-index: 2;
    border-left: 12px solid transparent;
    border-right: 7px solid transparent;
    border-top: 12px solid var(--white);
}
.speech-bubble p {
    color: var(--text); line-height: 1.75;
    font-size: 1.04rem;
}
.speech-bubble .author {
    font-family: var(--font-hand);
    font-size: 1.3rem;
    color: var(--orange-text);
    text-align: right;
    margin-top: 14px;
}

.slider-nav { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.nav-btn {
    width: 44px; height: 44px; border-radius: 50%;
    border: 2px solid var(--ink); background: var(--white); color: var(--ink);
    font-size: 1.3rem; line-height: 1; cursor: pointer;
    display: grid; place-items: center;
    transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
    box-shadow: 2px 3px 0 rgba(31,45,54,.14);
}
.nav-btn:hover { background: var(--yellow); transform: translateY(-3px); }

.slider-pause-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 20px; font: inherit; font-size: .92rem;
    border: 2px solid var(--ink); background: var(--white); color: var(--ink);
    border-radius: 50px; cursor: pointer;
    box-shadow: 2px 3px 0 rgba(31,45,54,.14);
    transition: background .3s var(--ease);
}
.slider-pause-btn:hover { background: var(--yellow); }

.slider-dots { display: flex; justify-content: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.dot {
    width: 26px; height: 26px; padding: 0;
    border: none; background: none; cursor: pointer;
    display: grid; place-items: center;
}
.dot > span {
    width: 13px; height: 13px; border-radius: 50%;
    border: 2px solid var(--ink); background: transparent;
    transition: background .3s var(--ease), transform .3s var(--ease);
}
.dot.active > span { background: var(--orange); border-color: var(--orange); transform: scale(1.25); }
.slider-dots { gap: 4px; }

/* ---------- 12. Kontakt ---------- */
.kontakt { padding: 72px 0 84px; text-align: center; }
.kontakt-card {
    position: relative;
    max-width: 760px; margin: 0 auto;
    background: var(--white);
    border: 2px solid var(--ink);
    border-radius: var(--sketch-2);
    box-shadow: 7px 9px 0 rgba(31,45,54,.10);
    padding: 46px 32px 44px;
}
.kontakt-card img { margin: 0 auto 8px; width: 190px; }
.kontakt h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); margin-bottom: 14px; }
.kontakt p { color: var(--ink-soft); margin-bottom: 28px; }

.kontakt .kontakt-tel {
    margin: 22px 0 0;
    font-size: .98rem;
}
.kontakt-tel a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--coral);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}
.kontakt-tel a:hover { text-decoration-thickness: 3px; }

/* ---------- 13. Fußzeile ---------- */
.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(255,255,255,.6);
    padding: 30px 0;
    font-size: .92rem; color: var(--ink-soft);
}
.footer-inner {
    display: flex; flex-wrap: wrap; gap: 12px 22px;
    align-items: center; justify-content: space-between;
}
.footer-links { display: flex; gap: 8px; align-items: center; }
.footer-links a { color: var(--ink-soft); }
.footer-links a:hover { color: var(--orange-text); }
.footer-separator { color: var(--line); }

/* ---------- 14. Responsive ---------- */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 30px; text-align: left; }
    .sticky-tag.t1 { left: 0; }
    .sticky-tag.t2 { right: 0; }
    .ueber-grid { grid-template-columns: 1fr; gap: 36px; }
    .portrait { order: -1; }
}

@media (max-width: 640px) {
    body { font-size: 1rem; }
    .section { padding: 52px 0; }
    .hero { padding: 46px 0 26px; }
    /* Auf kleinen Displays nimmt die zweizeilige Kopfzeile zu viel Höhe weg,
       deshalb scrollt sie dort mit, statt oben zu kleben. */
    .site-header { position: static; }
    html { scroll-padding-top: 16px; }
    .header-inner { flex-direction: column; align-items: flex-start; gap: 6px; padding-block: 12px 10px; }
    .site-nav { margin: 0 -8px; }
    .site-nav { gap: 0; }
    .site-nav a { padding: 6px 8px; font-size: .9rem; }
    .brand { font-size: 1.3rem; gap: 8px; }
    .angebot-head {
        grid-template-columns: 1fr;
        padding: 26px 20px 26px 20px;
        gap: 12px;
    }
    .angebot-toggle { top: 26px; right: 18px; transform: none; }
    .angebot-card.active .angebot-toggle { transform: rotate(180deg); }
    .angebot-icon, .angebot-icon img { width: 76px; height: 76px; }
    .angebot-content .pad,
    .angebot-card.active .angebot-content .pad { padding-left: 22px; padding-right: 22px; }
    .sticky-tag { font-size: 1rem; padding: 7px 12px 9px; }
}

/* ---------- 15. Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .reveal { opacity: 1 !important; transform: none !important; }
    .mark { background-size: 100% 100% !important; }
    .highlight { background-size: 100% 100% !important; }
    .progress-line { display: none; }
}

/* ---------- 16. Unterseiten: Impressum / Datenschutz ---------- */
.legal-page {
    max-width: 860px; margin: 0 auto; padding: 48px 24px 64px;
    hyphens: auto;
}
.legal-page a { overflow-wrap: anywhere; }
.legal-page p, .legal-page li, .legal-page address { hyphens: auto; }
.legal-page h1, .legal-page h2, .legal-page h3, .legal-page h4 { hyphens: manual; }

.legal-page h1 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    margin-bottom: 28px; padding-bottom: 16px;
    border-bottom: 3px solid var(--yellow);
}
.legal-page h2 { font-size: 1.35rem; margin: 34px 0 12px; }
.legal-page h3 { font-size: 1.15rem; margin: 26px 0 10px; }
.legal-page h4 { font-size: 1.03rem; margin: 20px 0 8px; color: var(--orange-text); }
.legal-page p { margin-bottom: 14px; color: var(--text); }
.legal-page ul { list-style: none; display: grid; gap: 6px; margin: 10px 0 18px; }
.legal-page li { position: relative; padding-left: 26px; }
.legal-page li::before {
    content: ''; position: absolute; left: 4px; top: .68em;
    width: 7px; height: 7px; border-radius: 50%; background: var(--blue);
}
.legal-page a { color: var(--blue); }
.contact-info { font-style: normal; margin: 16px 0; }
.contact-info p { margin: 6px 0; }

.legal-top {
    max-width: 860px;
    margin: 0 auto;
    padding: 24px 24px 0;
}
.legal-top .back-link { margin-top: 0; }

.legal-footer-links {
    justify-content: center;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px 8px;
}

.back-link {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 36px; padding: 11px 22px;
    border: 2px solid var(--ink); border-radius: var(--sketch-1);
    background: var(--white); color: var(--ink); font-weight: 600;
    box-shadow: 3px 4px 0 rgba(31,45,54,.13);
    transition: background .3s var(--ease), transform .3s var(--ease), border-radius .4s var(--ease);
}
.back-link:hover {
    background: var(--yellow); text-decoration: none;
    transform: translate(-1px,-2px); border-radius: var(--sketch-2);
}

/* ---------- 17. Klebezettel-Gruppe im Hero ---------- */
.sticky-notes { position: absolute; inset: 0; pointer-events: none; }
@media (max-width: 900px) {
    .hero-visual { flex-direction: column; align-items: center; }
    .sticky-notes {
        position: static; inset: auto; width: 100%;
        display: flex; flex-wrap: wrap; gap: 12px;
        justify-content: center; margin-top: 18px;
    }
    .sticky-tag { position: static; animation: none; }
    .sticky-tag.t1 { transform: rotate(-4deg); }
    .sticky-tag.t2 { transform: rotate(3deg); }
    .sticky-tag.t3 { transform: rotate(-2deg); }
}
