:root {
    --bg: #f6f0e4;
    --surface: rgba(255,255,255,.82);
    --surface-strong: rgba(255,255,255,.94);
    --text: #14203f;
    --muted: #60708e;
    --line: rgba(20,32,63,.09);
    --primary: #14727b;
    --primary-2: #2195a3;
    --blue: #2f6fda;
    --gold: #f1c35f;
    --gold-soft: #fff5d7;
    --shadow: 0 26px 70px rgba(20,32,63,.12);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 17px;
    --container: 1260px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
      radial-gradient(circle at 7% 18%, rgba(241,195,95,.36), transparent 35%),
      radial-gradient(circle at 91% 22%, rgba(33,149,163,.16), transparent 34%),
      linear-gradient(180deg, #fbf7ef 0%, #f2ecdf 100%);
}
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; color: var(--muted); line-height: 1.78; }
strong { color: var(--text); }
h1,h2,h3,h4 { margin: 0; color: var(--text); letter-spacing: -.035em; line-height: 1.08; }
ul { color: var(--muted); line-height: 1.75; }
.container { width: min(var(--container), calc(100% - 2rem)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 1rem; }
.skip-link:focus { left: 1rem; z-index: 99; padding: .75rem 1rem; background: #fff; border-radius: 999px; }
.ambient { position: fixed; pointer-events: none; z-index: -1; filter: blur(70px); opacity: .6; }
.ambient-a { width: 300px; height: 300px; left: 2%; top: 8rem; border-radius: 50%; background: rgba(241,195,95,.48); }
.ambient-b { width: 340px; height: 340px; right: 7%; top: 28%; border-radius: 50%; background: rgba(47,111,218,.12); }
.site-header { padding: 1.2rem 0 0; }
.nav-shell {
    min-height: 82px;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .85rem 1rem;
    background: rgba(255,255,255,.76);
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 999px;
    box-shadow: 0 18px 60px rgba(20,32,63,.09);
    backdrop-filter: blur(18px);
}
.brand-cluster { display: flex; align-items: center; gap: .9rem; font-weight: 800; min-width: 0; }
.brand-cluster > span:last-child { min-width: 0; }
.brand-cluster strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-mark {
    width: 58px; min-width: 58px; max-width: 58px;
    height: 58px; min-height: 58px; max-height: 58px;
    flex: 0 0 58px; display: grid; place-items: center; border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff;
    font-weight: 800; letter-spacing: .07em; box-shadow: 0 16px 34px rgba(20,114,123,.26); overflow: hidden;
}
.brand-mark-image { background: #fff; padding: 6px; }
.brand-logo-img {
    width: 100%; max-width: 100%;
    height: 100%; max-height: 100%;
    object-fit: contain; object-position: center; display: block; border-radius: 13px;
}
.brand-mark-image .brand-logo-img { image-rendering: auto; }
.brand-kicker, .eyebrow, .mini-label, .chapter-eyebrow {
    display: block; margin-bottom: .28rem; text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 800; color: var(--blue);
}
.top-nav { display: flex; align-items: center; gap: .25rem; }
.top-nav a { padding: .85rem 1rem; border-radius: 999px; color: var(--muted); font-weight: 700; }
.top-nav a:hover, .top-nav a[aria-current="page"] { background: #fff; color: var(--text); }
.top-nav .nav-button { color: var(--blue); background: #fff; border: 1px solid rgba(47,111,218,.14); box-shadow: 0 10px 28px rgba(47,111,218,.08); }
.surface-card {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,.82);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .95rem 1.25rem; border-radius: 999px; border: 0; cursor: pointer;
    font: inherit; font-weight: 800; transition: transform .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: 0 18px 38px rgba(20,114,123,.26); }
.button-secondary { background: #fff; color: var(--blue); border: 1px solid rgba(47,111,218,.14); box-shadow: 0 10px 28px rgba(47,111,218,.08); }
.button-muted { background: #eef2f8; color: var(--muted); cursor: default; }
.button-block { width: 100%; }
.home-hero { padding: 1.25rem 0 1rem; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 1.2rem; }
.home-grid-single { align-items: stretch; }
.home-copy { padding: clamp(2rem, 5vw, 4.2rem); min-height: 520px; display: flex; flex-direction: column; justify-content: center; }
.home-copy h1 { font-size: clamp(3.3rem, 7vw, 6.8rem); max-width: 10ch; }
.lead { margin-top: 1.2rem; font-size: clamp(1.2rem, 2vw, 1.55rem); color: var(--text); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.home-visual { min-height: 520px; padding: 1.4rem; position: relative; overflow: hidden; background-size: cover; background-position: center; background-repeat: no-repeat; }
.home-visual.has-bg {
    background-color: rgba(255,255,255,.72);
    background-size: cover, contain;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}
.home-visual.has-bg::before { display: none; }
.home-visual-placeholder { position: absolute; inset: 0; background: radial-gradient(circle at 58% 44%, rgba(241,195,95,.45), transparent 28%), linear-gradient(135deg, rgba(255,255,255,.68), rgba(255,245,215,.42)); }
.home-visual::before { content: ''; position: absolute; inset: 10% 8% auto auto; width: 270px; height: 270px; border-radius: 50%; background: radial-gradient(circle, rgba(241,195,95,.72), rgba(241,195,95,.08) 65%, transparent 66%); }
.sun-card { position: absolute; left: 1.6rem; bottom: 1.6rem; right: 1.6rem; padding: 1.3rem; border-radius: 24px; background: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.9); }
.sun-card span { display: block; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), #ffdf70); margin-bottom: 1rem; }
.sun-card strong { font-size: 1.35rem; display: block; margin-bottom: .45rem; }
.small-card { position: absolute; padding: .9rem 1rem; border-radius: 999px; background: #fff; font-weight: 800; box-shadow: 0 16px 40px rgba(20,32,63,.1); }
.small-card.one { top: 1.8rem; left: 2rem; }
.small-card.two { top: 6rem; right: 1.6rem; }
.home-section { padding: .6rem 0 2rem; }
.cards-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.slim { padding: 1.4rem; }
.slim h2 { font-size: 1.55rem; margin-bottom: .65rem; }
.hero-section { padding: 1.25rem 0 1rem; }
.hero-copy.full-hero { padding: clamp(2rem, 5vw, 4rem); overflow: hidden; position: relative; }
.hero-copy.full-hero h1 { font-size: clamp(3.6rem, 8vw, 7rem); max-width: 12ch; }
.hero-copy.full-hero::after { content: ''; position: absolute; right: -80px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(47,111,218,.16), transparent 68%); }
.hero-badges { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.1rem; }
.info-pill { display: inline-flex; align-items: center; padding: .72rem 1rem; border-radius: 999px; background: #fff; border: 1px solid rgba(20,32,63,.07); color: var(--text); font-weight: 800; }
.link-pill { color: var(--blue); }
.content-section { padding: .35rem 0 2rem; }
.content-grid { display: grid; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); align-items: start; gap: 1.25rem; }
.toc-panel { position: sticky; top: 1rem; }
.toc-card { padding: 1.15rem; background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.82); border-radius: var(--radius-xl); box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.reading-progress { height: 8px; border-radius: 99px; background: rgba(20,32,63,.08); overflow: hidden; }
.reading-progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--blue)); transition: width .2s ease; }
.toc-head { display: grid; gap: .85rem; margin-bottom: .85rem; }
.toc-nav { display: grid; gap: .42rem; }
.toc-link { display: grid; grid-template-columns: 42px 1fr; gap: .75rem; align-items: center; padding: .82rem; border-radius: 17px; color: var(--muted); font-weight: 800; }
.toc-link:hover { background: rgba(255,255,255,.7); }
.toc-link.is-active { background: linear-gradient(135deg, rgba(20,114,123,.12), rgba(47,111,218,.10)); color: var(--text); box-shadow: inset 0 0 0 1px rgba(20,114,123,.08); }
.toc-number { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: #fff; color: var(--text); }
.toc-link.is-active .toc-number { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; }
.toc-text { line-height: 1.28; overflow-wrap: anywhere; }
.document-column { display: grid; gap: 1rem; }
.meta-card { padding: 1.4rem; }
.meta-list { display: grid; gap: .25rem; color: var(--text); font-weight: 650; }
.chapter-card { padding: clamp(1.4rem, 2.8vw, 2rem); scroll-margin-top: 1rem; }
.chapter-head { padding-bottom: 1rem; margin-bottom: 1.05rem; border-bottom: 1px solid var(--line); }
.chapter-head h2 { font-size: clamp(2rem, 4vw, 3.15rem); }
.chapter-eyebrow { color: var(--primary); }
.chapter-content p, .chapter-content li { font-size: 1.02rem; }
.chapter-content h4 { margin: 1.35rem 0 .65rem; font-size: 1.22rem; letter-spacing: -.025em; padding-left: .85rem; border-left: 4px solid var(--gold); }
.chapter-content ul { margin: .5rem 0 1rem 1.1rem; }
.download-card { padding: 1.6rem; display: grid; gap: 1rem; }
.download-card h2, .empty-state-large h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.site-footer { padding: 0 0 2rem; }
.footer-row { padding: 0 .2rem; color: var(--muted); }
.footer-row p { margin: 0; }
.admin-page { min-height: 100vh; padding: 1.2rem; }
.admin-wrap { width: min(1320px, 100%); margin: 0 auto; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem; margin-bottom: 1rem; }
.admin-top h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
.admin-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 1rem; align-items: start; }
.admin-side { padding: 1rem; position: sticky; top: 1rem; }
.admin-tabs { display: grid; gap: .5rem; }
.admin-tab { width: 100%; border: 0; background: transparent; text-align: left; padding: .9rem 1rem; border-radius: 16px; font: inherit; font-weight: 800; color: var(--muted); cursor: pointer; }
.admin-tab.is-active { background: linear-gradient(135deg, rgba(20,114,123,.12), rgba(47,111,218,.10)); color: var(--text); }
.admin-main { display: grid; gap: 1rem; }
.admin-panel { padding: 1.35rem; display: none; }
.admin-panel.is-active { display: block; }
.panel-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.panel-head h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-grid .span-2 { grid-column: 1 / -1; }
.field { display: grid; gap: .45rem; }
.field label { font-weight: 800; color: var(--text); }
.text-input, .text-area, .editor-box {
    width: 100%; padding: .95rem 1rem; border-radius: 16px; border: 1px solid rgba(20,32,63,.12); background: rgba(255,255,255,.92); font: inherit; color: var(--text);
}
.text-area { min-height: 140px; resize: vertical; }
.editor-box { min-height: 190px; line-height: 1.65; overflow: auto; }
.dropzone {
    min-height: 220px; display: grid; place-items: center; text-align: center; gap: .45rem; padding: 1.5rem; border-radius: 24px;
    border: 2px dashed rgba(20,114,123,.28); background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,245,215,.55)); cursor: pointer;
}
.dropzone.is-dragover { border-color: var(--primary); background: rgba(223,244,238,.85); }
.dropzone input { display: none; }
.dropzone strong { display: block; font-size: 1.25rem; }
.dropzone small { color: var(--muted); }
.progress-shell { margin-top: 1rem; display: grid; gap: .55rem; }
.progress-info { display: flex; justify-content: space-between; font-weight: 800; color: var(--text); }
.notice-box { margin-top: 1rem; padding: 1rem; border-radius: 18px; background: #fff; border: 1px solid rgba(20,32,63,.08); }
.notice-box.success { background: rgba(223,244,238,.88); }
.notice-box.error { background: rgba(255,235,235,.9); }
.section-editor-list { display: grid; gap: 1rem; }
.section-editor { padding: 1rem; border-radius: 22px; background: rgba(255,255,255,.66); border: 1px solid rgba(255,255,255,.78); }
.section-editor-head { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: .75rem; margin-bottom: .75rem; }
.editor-help { color: var(--muted); font-size: .92rem; margin-top: .55rem; }
.save-bar { position: sticky; bottom: 1rem; z-index: 5; display: flex; justify-content: flex-end; margin-top: 1rem; }
@media (max-width: 1080px) {
    .home-grid, .content-grid, .admin-layout, .cards-three { grid-template-columns: 1fr; }
    .toc-panel, .admin-side { position: static; }
}
@media (max-width: 740px) {
    .nav-shell, .admin-top, .panel-head { border-radius: 26px; flex-direction: column; align-items: flex-start; }
    .brand-cluster { max-width: 100%; }
    .brand-mark { width: 50px; min-width: 50px; max-width: 50px; height: 50px; min-height: 50px; max-height: 50px; flex-basis: 50px; border-radius: 16px; }
    .brand-logo-img { border-radius: 11px; }
    .top-nav { flex-wrap: wrap; }
    .home-copy h1, .hero-copy.full-hero h1 { font-size: clamp(2.7rem, 13vw, 4.2rem); }
    .form-grid, .section-editor-head { grid-template-columns: 1fr; }
    .home-copy, .home-visual { min-height: auto; }
    .home-visual { min-height: 320px; }
}

/* Kontakt-CTA zwischen Logo/Titel und Navigation */
.header-contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 460px;
    padding: .78rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(20,114,123,.11), rgba(47,111,218,.08));
    border: 1px solid rgba(20,114,123,.13);
    color: var(--text);
    font-weight: 800;
    font-size: clamp(.82rem, 1.05vw, .98rem);
    line-height: 1.25;
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
}
.header-contact-link:hover {
    background: #fff;
    color: var(--primary);
}

/* Bessere Lesbarkeit und Umbrüche auf kleinen Bildschirmen */
.lead,
.home-copy p,
.hero-copy p,
.chapter-content p,
.chapter-content li,
.meta-list,
.toc-text {
    overflow-wrap: anywhere;
    hyphens: auto;
}

@media (max-width: 920px) {
    .nav-shell {
        border-radius: 28px;
        align-items: stretch;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .brand-cluster {
        flex: 1 1 100%;
    }
    .header-contact-link {
        order: 2;
        width: 100%;
        max-width: none;
        padding: .8rem .95rem;
    }
    .top-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    :root {
        --radius-xl: 24px;
        --radius-lg: 20px;
    }
    .container {
        width: min(var(--container), calc(100% - 1rem));
    }
    body {
        font-size: 15px;
    }
    p {
        line-height: 1.62;
    }
    .site-header {
        padding-top: .55rem;
    }
    .nav-shell {
        gap: .65rem;
        padding: .7rem;
    }
    .brand-cluster strong {
        font-size: .98rem;
    }
    .header-contact-link {
        font-size: .86rem;
        line-height: 1.25;
    }
    .top-nav {
        gap: .35rem;
    }
    .top-nav a {
        flex: 1 1 auto;
        text-align: center;
        padding: .78rem .7rem;
        font-size: .92rem;
    }
    .top-nav .nav-button {
        flex-basis: 100%;
    }
    .home-hero,
    .hero-section {
        padding-top: .75rem;
    }
    .home-grid {
        gap: .75rem;
    }
    .home-copy,
    .hero-copy.full-hero,
    .surface-card,
    .toc-card,
    .chapter-card,
    .download-card,
    .meta-card {
        border-radius: 24px;
    }
    .home-copy,
    .hero-copy.full-hero {
        padding: 1.35rem;
    }
    .home-copy h1,
    .hero-copy.full-hero h1 {
        font-size: clamp(2.35rem, 12vw, 3.35rem);
        max-width: 100%;
    }
    .lead {
        margin-top: .85rem;
        font-size: clamp(1.02rem, 4.8vw, 1.18rem);
        line-height: 1.55;
    }
    .home-copy p:not(.lead),
    .hero-copy p:not(.lead) {
        font-size: .95rem;
    }
    .home-visual {
        min-height: 260px;
    }
    .content-section {
        padding-top: 0;
    }
    .content-grid {
        gap: .75rem;
    }
    .toc-card {
        padding: .9rem;
    }
    .toc-link {
        grid-template-columns: 36px 1fr;
        padding: .64rem;
        gap: .58rem;
        font-size: .9rem;
    }
    .toc-number {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }
    .chapter-card {
        padding: 1.15rem;
    }
    .chapter-head h2 {
        font-size: clamp(1.45rem, 8vw, 2.1rem);
    }
    .chapter-content p,
    .chapter-content li {
        font-size: .94rem;
        line-height: 1.68;
    }
    .chapter-content h4 {
        font-size: 1.03rem;
        line-height: 1.25;
    }
    .download-card h2,
    .empty-state-large h2 {
        font-size: clamp(1.55rem, 8vw, 2.1rem);
    }
    .button {
        width: 100%;
        padding: .88rem 1rem;
        font-size: .95rem;
    }
}

@media (max-width: 420px) {
    .container {
        width: min(var(--container), calc(100% - .75rem));
    }
    .brand-mark {
        width: 44px;
        min-width: 44px;
        max-width: 44px;
        height: 44px;
        min-height: 44px;
        max-height: 44px;
        flex-basis: 44px;
        border-radius: 14px;
    }
    .brand-logo-img {
        border-radius: 9px;
    }
    .top-nav a {
        flex-basis: 100%;
    }
    .home-copy,
    .hero-copy.full-hero,
    .chapter-card,
    .download-card,
    .meta-card {
        padding: 1rem;
    }
    .home-copy h1,
    .hero-copy.full-hero h1 {
        font-size: clamp(2rem, 11vw, 2.8rem);
    }
}

/* Mobile overflow fix: verhindert seitliches Blättern auf der Datenschutzseite */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.site-page,
.site-header,
main,
section,
.site-footer,
.container,
.nav-shell,
.surface-card,
.hero-copy,
.content-grid,
.toc-panel,
.toc-card,
.document-column,
.meta-card,
.chapter-card,
.chapter-head,
.chapter-content,
.download-card,
.footer-row {
    min-width: 0;
    max-width: 100%;
}

.chapter-head h2,
.download-card h2,
.empty-state-large h2,
.chapter-content,
.chapter-content p,
.chapter-content li,
.chapter-content h4,
.meta-list,
.meta-list div,
.toc-text,
.info-pill,
.button,
.header-contact-link,
.top-nav a,
.brand-cluster strong {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.chapter-content img,
.chapter-content video,
.chapter-content iframe,
.chapter-content svg {
    max-width: 100%;
    height: auto;
}

.chapter-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.chapter-content pre,
.chapter-content code {
    max-width: 100%;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 700px) {
    .privacy-page .container {
        width: calc(100% - .85rem);
    }

    .privacy-page .content-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .privacy-page .toc-panel,
    .privacy-page .document-column {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .privacy-page .toc-card,
    .privacy-page .chapter-card,
    .privacy-page .meta-card,
    .privacy-page .download-card,
    .privacy-page .hero-copy.full-hero {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .privacy-page .hero-badges {
        width: 100%;
    }

    .privacy-page .info-pill {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .privacy-page .chapter-content {
        font-size: .94rem;
    }
}
