/*
    Buchfindomat – Design 2026
    Angelehnt an tollefortbildung.de (Inter, Navy, Karten, Pillen-Buttons)
*/

:root {
    --navy: #1a3056;
    --navy-2: #23406f;
    --muted: #4a5d80;
    --cream: #FFFAF3;
    --cream-2: #FFF8F0;
    --peach: #FFEEDB;
    --peach-2: #FFE6CC;
    --brown: #B45309;
    --brown-dark: #8A4300;
    --teal: #2F7F8C;
    --orange-grad: radial-gradient(ellipse 70% 90% at 72% 40%, #FFB52E 0%, #FF8A0A 45%, #FF6A00 100%);
    --orange-btn: linear-gradient(135deg, #FFA726 0%, #FF6A00 100%);
    --navy-grad: linear-gradient(150deg, #23406f 0%, #1a3056 60%, #142644 100%);
    --shadow-card: 0 1px 5px rgba(0, 0, 0, .12), 0 2px 7px rgba(0, 0, 0, .04);
    --text-shadow-orange: 0 1px 8px rgba(140, 60, 0, .3);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: Inter, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--navy);
    background: var(--cream);
    font-size: 18px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--brown); }
a:hover { color: #92400E; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0 0 14px; }

.wrap { max-width: 1240px; margin: 0 auto; }
.wrap-narrow { max-width: 1100px; margin: 0 auto; }
.section { padding: 56px 32px; }
.section-sm { padding: 32px 32px; }
.center { text-align: center; }
.hidden { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: inherit; font-size: 18px; font-weight: 700; line-height: 1.2;
    text-decoration: none; cursor: pointer; border: none;
    padding: 15px 26px; border-radius: 999px;
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { color: #fff; }
.btn-white { background: #fff; color: var(--navy); box-shadow: 0 4px 14px rgba(140, 60, 0, .25); }
.btn-white:hover { color: var(--navy); }
.btn-orange { background: var(--orange-btn); color: #fff; box-shadow: 0 4px 12px rgba(255, 106, 0, .3); border-radius: 14px; }
.btn-orange:hover { color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border: 2px solid rgba(26, 48, 86, .25); border-radius: 14px; font-weight: 600; }
.btn-outline:hover { color: var(--navy); }

.pill {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 14px; font-weight: 700; line-height: 1.2;
    background: var(--peach-2); color: var(--brown-dark);
    padding: 6px 12px; border-radius: 999px;
}

.card { background: #fff; border-radius: 24px; padding: 32px; box-shadow: var(--shadow-card); }

/* ---------- Header ---------- */
.bf-header { background: var(--cream-2); position: relative; z-index: 40; }
.bf-header-inner {
    max-width: 1240px; margin: 0 auto; padding: 18px 32px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.bf-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.bf-logo-icon {
    width: 44px; height: 44px; border-radius: 12px; background: var(--orange-btn);
    display: flex; align-items: center; justify-content: center; flex: none;
}
.bf-logo-word {
    font-size: 26px; font-weight: 800; letter-spacing: -0.02em;
    background: linear-gradient(90deg, #FF6A00, #FFA726);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bf-header-right { display: flex; align-items: center; gap: 8px; }
.bf-menu-wrap { position: relative; }
.bf-menu-btn {
    font-family: inherit; display: flex; align-items: center; gap: 12px;
    background: none; border: none; cursor: pointer; color: var(--navy);
    font-size: 17px; font-weight: 500; padding: 10px 12px; border-radius: 12px;
}
.bf-menu-btn .icon-close { display: none; }
.bf-menu-btn[aria-expanded="true"] .icon-open { display: none; }
.bf-menu-btn[aria-expanded="true"] .icon-close { display: block; }
.bf-menu {
    position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; width: 340px;
    background: #fff; border-radius: 22px; padding: 10px;
    box-shadow: 0 16px 40px rgba(26, 48, 86, .22);
    display: none; flex-direction: column;
}
.bf-menu.open { display: flex; }
.bf-menu a { display: flex; flex-direction: column; padding: 12px 16px; border-radius: 14px; text-decoration: none; color: var(--navy); }
.bf-menu a:hover { background: var(--peach); color: var(--navy); }
.bf-menu strong { font-size: 18px; }
.bf-menu span { font-size: 15px; color: var(--muted); }

/* ---------- Footer ---------- */
.bf-footer { background: var(--navy); color: #fff; padding: 28px 32px; }
.bf-footer-inner { max-width: 1240px; margin: 0 auto; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 16px; }
.bf-footer a { color: #fff; }
.bf-footer .accent { color: #FFB45E; }
.bf-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Orange Hero (Unterseiten) ---------- */
.page-hero { background: var(--orange-grad); padding: 56px 32px 64px; overflow: hidden; color: #fff; }
.page-hero-inner { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.page-hero-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; text-shadow: var(--text-shadow-orange); }
.page-hero .pill { background: var(--cream-2); color: var(--navy); text-shadow: none; font-size: 15px; padding: 7px 14px; }
.page-hero h1 { margin: 0; font-size: 60px; line-height: 1.04; font-weight: 800; letter-spacing: -0.03em; }
.page-hero p { margin: 0; font-size: 22px; line-height: 1.45; font-weight: 600; max-width: 680px; }

/* ---------- Video ---------- */
.video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: var(--navy); box-shadow: var(--shadow-card); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-tall { aspect-ratio: 9 / 13; }

/* ---------- Layout helpers ---------- */
.split { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.split > * { flex: 1 1 440px; min-width: 0; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.h2 { margin: 0 0 14px; font-size: 32px; font-weight: 800; }
.h2-center { margin: 0 0 24px; font-size: 36px; font-weight: 800; text-align: center; }

/* =========================================================
   STARTSEITE
   ========================================================= */
.start-hero { background: var(--orange-grad); padding: 40px 32px 64px; overflow: hidden; }
.start-hero-top { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px; }
.start-hero-text { flex: 999 1 520px; min-width: 0; padding-bottom: 56px; color: #fff; }
.start-hero h1 { margin: 0; font-size: clamp(48px, 6vw, 80px); line-height: 1; font-weight: 800; letter-spacing: -0.035em; text-shadow: 0 2px 12px rgba(140, 60, 0, .28); }
.start-hero-sub { margin: 22px 0 0; font-size: 24px; line-height: 1.35; font-weight: 700; text-shadow: var(--text-shadow-orange); }
.start-hero-illu { flex: 1 1 420px; min-width: 0; display: flex; justify-content: flex-end; position: relative; z-index: 2; margin-bottom: -22px; padding-right: 3%; }
.start-hero-illu img { width: 100%; max-width: 560px; height: auto; display: block; filter: drop-shadow(0 14px 18px rgba(120, 50, 0, .25)); }
.class-question { margin: 0 0 14px; font-size: 21px; font-weight: 700; color: #fff; text-shadow: var(--text-shadow-orange); position: relative; z-index: 1; }
.class-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; position: relative; z-index: 1; }
.class-card {
    font-family: inherit; text-align: left; border: none; cursor: pointer;
    color: var(--navy); background: #fff; border-radius: 24px; padding: 14px 14px 16px;
    box-shadow: 0 8px 24px rgba(140, 60, 0, .25);
    display: flex; flex-direction: column; gap: 14px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.class-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(140, 60, 0, .32); }
.class-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: 96px; gap: 8px; padding: 12px 10px; border-radius: 16px; }
.class-strip img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 4px; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); display: block; }
.class-card:nth-child(1) .class-strip { background: linear-gradient(160deg, #FFF3D6, #FFDDB0); }
.class-card:nth-child(2) .class-strip { background: linear-gradient(160deg, #FFEBD6, #FFBF8A); }
.class-card:nth-child(3) .class-strip { background: linear-gradient(160deg, #FFF0D9, #FFCB80); }
.class-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px; }
.class-card-label { display: flex; flex-direction: column; }
.class-card-label strong { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.class-card-label span { font-size: 16px; font-weight: 500; color: var(--muted); }
.round-arrow { width: 48px; height: 48px; border-radius: 50%; background: var(--orange-btn); display: flex; align-items: center; justify-content: center; flex: none; }

.banner {
    margin: 0 auto; max-width: 640px; display: flex; align-items: center; gap: 20px;
    background: var(--orange-grad); color: #fff; border-radius: 22px; padding: 22px 28px;
    text-decoration: none; box-shadow: 0 6px 20px rgba(255, 106, 0, .25);
    text-shadow: var(--text-shadow-orange);
}
.banner:hover { color: #fff; }
.banner-icon { flex: none; width: 56px; height: 56px; border-radius: 16px; background: rgba(255, 255, 255, .16); display: flex; align-items: center; justify-content: center; }
.banner-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.banner-text strong { font-size: 22px; }
.banner-text span { font-size: 17px; font-weight: 600; }

.divider { padding: 72px 32px 8px; text-align: center; }
.divider p { margin: 0 auto; max-width: 720px; font-size: 26px; line-height: 1.35; font-weight: 700; }
.divider span { color: #D35F00; }

.adult-card { text-decoration: none; color: var(--navy); background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column; transition: transform .2s ease; }
.adult-card:hover { transform: translateY(-3px); color: var(--navy); }
.adult-card-media { height: 180px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.adult-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.adult-card-body strong { font-size: 24px; letter-spacing: -0.02em; line-height: 1.25; }
.adult-card-body span:last-child { font-size: 17px; line-height: 1.5; }

.person-card { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.person-card img { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; flex: none; }
.person-card > div { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.person-card strong { font-size: 24px; }
.person-role { font-size: 16px; font-weight: 600; color: var(--brown); }

.automat-band {
    background: var(--navy-grad); color: #fff; border-radius: 28px; padding: 48px;
    display: flex; flex-wrap: wrap; gap: 48px; align-items: center;
}
.automat-band h2 { margin: 0; font-size: 40px; font-weight: 800; }
.contact-badge { display: flex; gap: 18px; align-items: center; background: #fff; color: var(--navy); border-radius: 20px; padding: 16px 20px 16px 16px; flex-wrap: wrap; max-width: 640px; }
.contact-badge img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: 52% 30%; flex: none; }

/* =========================================================
   BÜCHERSUCHE
   ========================================================= */
#books-view { min-height: 100vh; background: var(--orange-grad); background-attachment: fixed; padding-bottom: 80px; }
.class-switch { position: relative; display: flex; align-items: center; background: var(--peach-2); border-radius: 999px; padding: 4px; }
.class-switch-label { font-size: 15px; font-weight: 600; color: #4a5d80; padding: 0 10px 0 14px; }
.class-switch-thumb { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--navy); box-shadow: 0 3px 10px rgba(26, 48, 86, .25); }
.class-switch.thumb-ready .class-switch-thumb { transition: left .35s cubic-bezier(.3, 1.3, .5, 1), width .35s ease; }
.class-switch button {
    position: relative; z-index: 1;
    font-family: inherit; font-size: 16px; font-weight: 700; color: var(--navy);
    background: none; border: none; cursor: pointer; padding: 10px 18px; border-radius: 999px;
    transition: color .25s ease;
}
.class-switch button[aria-current="true"] { color: #fff; }

/* Einstieg in die Büchersammlung */
@keyframes bfd-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes bfd-cover-in { from { opacity: 0; transform: translateY(22px) scale(.92); } to { opacity: 1; transform: none; } }
#books-view.is-entering .books-title { animation: bfd-rise .45s ease-out both; }
#books-view.is-entering .filterbar { animation: bfd-rise .45s .08s ease-out both; }
#books-view.is-entering .wall-cover:not(.is-hidden) { animation: bfd-cover-in .5s cubic-bezier(.2, .8, .3, 1.15) both; animation-delay: calc(var(--d, 0ms) + 120ms); }
@media (prefers-reduced-motion: reduce) {
    #books-view.is-entering .books-title, #books-view.is-entering .filterbar, #books-view.is-entering .wall-cover { animation: none !important; }
    .class-switch.thumb-ready .class-switch-thumb { transition: none; }
}
.books-title { max-width: 1240px; margin: 0 auto; padding: 48px 32px 0; text-align: center; color: #fff; text-shadow: var(--text-shadow-orange); }
.books-title h1 { margin: 0; font-size: clamp(40px, 5vw, 64px); line-height: 1.05; font-weight: 800; letter-spacing: -0.035em; }
.books-title p { margin: 14px 0 0; font-size: 21px; font-weight: 700; }
.books-back { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 700; font-size: 17px; margin-bottom: 18px; background: none; border: none; cursor: pointer; font-family: inherit; }
.books-back:hover { color: #fff; text-decoration: underline; }

.filterbar-wrap { position: sticky; top: 0; z-index: 20; padding: 24px 32px 8px; }
.filterbar {
    max-width: 1100px; margin: 0 auto; border-radius: 26px; padding: 14px 16px;
    background: radial-gradient(ellipse 90% 160% at 55% 20%, #FFB52E 0%, #FF8A0A 50%, #FF6A00 100%);
    box-shadow: 0 8px 26px rgba(120, 50, 0, .38);
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.filterbar-label { font-size: 18px; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(140, 60, 0, .45); padding: 0 6px; flex: none; }
.mood-tiles { display: flex; gap: 10px; flex-wrap: wrap; flex: 1 1 520px; }
.mood-tile {
    font-family: inherit; flex: 1 1 96px; min-width: 96px; border: none; cursor: pointer;
    border-radius: 16px; padding: 8px 10px 9px; display: flex; flex-direction: column; align-items: center; gap: 4px;
    background: rgba(255, 255, 255, .3); transition: background .15s ease;
}
.mood-tile:hover { background: rgba(255, 255, 255, .45); }
.mood-tile img { width: 30px; height: 30px; }
.mood-tile span { font-size: 15px; font-weight: 600; color: #fff; text-shadow: 0 1px 4px rgba(140, 60, 0, .5); }
.mood-tile[aria-pressed="true"] { background: #fff; box-shadow: 0 4px 12px rgba(120, 50, 0, .3); }
.mood-tile[aria-pressed="true"] span { color: var(--navy); text-shadow: none; }

@media (max-width: 950px) {
    .filterbar { flex-direction: column; align-items: stretch; flex-wrap: nowrap; padding: 14px 16px 16px; gap: 12px; }
    .filterbar-label { text-align: center; font-size: 17px; }
    .filterbar-label br { display: none; }
    .mood-tiles { flex: none; justify-content: center; gap: 8px; }
    .mood-tile { flex: 0 0 auto; min-width: 0; flex-direction: row; gap: 7px; border-radius: 999px; padding: 8px 14px 8px 10px; }
    .mood-tile img { width: 22px; height: 22px; }
    .mood-tile span { font-size: 15px; white-space: nowrap; }
}

.wall-section { max-width: 1100px; margin: 0 auto; padding: 28px 32px 40px; }
.wall-count { margin: 0 0 18px; text-align: center; font-size: 17px; font-weight: 700; color: #fff; text-shadow: var(--text-shadow-orange); }
.wall { position: relative; width: 100%; transition: height .35s ease; }
.wall-cover {
    position: absolute; padding: 0; border: none; background: none; cursor: pointer;
    border-radius: 3px; box-shadow: 0 6px 14px rgba(120, 50, 0, .35);
    transition: left .35s ease, top .35s ease, transform .22s ease, box-shadow .22s ease, opacity .35s ease;
}
.wall-cover img { display: block; width: 100%; height: auto; border-radius: 3px; }
.wall-cover:hover, .wall-cover:focus-visible { transform: scale(1.35); z-index: 5; box-shadow: 0 14px 30px rgba(26, 48, 86, .35); }
.wall-cover.is-hidden { opacity: 0; pointer-events: none; transform: scale(.8); }

/* Buch-Detail */
.bd-overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.bd-backdrop { position: absolute; inset: 0; border: none; background: rgba(40, 20, 0, .62); cursor: pointer; }
.bd-card {
    position: relative; width: 100%; max-width: 1080px; max-height: calc(100vh - 48px); overflow: auto;
    border-radius: 28px; display: flex; flex-wrap: wrap; box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
    animation: bdpop .22s ease-out;
}
@keyframes bdpop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.bd-cover { flex: 1 1 300px; padding: 36px 28px 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.bd-cover img { width: 100%; max-width: 290px; height: auto; border-radius: 6px; box-shadow: 0 18px 38px rgba(0, 0, 0, .38); }
.bd-nav { display: flex; gap: 10px; }
.bd-round { flex: none; width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.bd-text { flex: 999 1 460px; min-width: 0; padding: 32px 32px 28px 8px; display: flex; flex-direction: column; gap: 16px; }
.bd-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.bd-head h2 { margin: 0 0 8px; font-size: 32px; line-height: 1.15; font-weight: 800; }
.bd-meta { margin: 0 0 10px; font-size: 17px; font-weight: 600; opacity: .9; }
.bd-moods { display: flex; gap: 8px; flex-wrap: wrap; }
.bd-mood { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; padding: 6px 12px 6px 8px; border-radius: 999px; }
.bd-mood img { width: 20px; height: 20px; }
.bd-panel { border-radius: 20px; padding: 22px 24px; display: flex; flex-direction: column; gap: 18px; }
.bd-panel p { margin: 0; font-size: 18px; line-height: 1.65; white-space: pre-line; }
.bd-player { display: flex; align-items: center; gap: 16px; border-radius: 16px; padding: 12px 16px 12px 12px; }
.bd-play { flex: none; width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0, 0, 0, .22); }
.bd-play .i-pause { display: none; }
.bd-play.playing .i-play { display: none; }
.bd-play.playing .i-pause { display: block; }
.bd-player-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.bd-player-top { display: flex; justify-content: space-between; font-size: 16px; font-weight: 700; }
.bd-track { height: 8px; border-radius: 999px; overflow: hidden; cursor: pointer; }
.bd-progress { height: 100%; width: 0; border-radius: 999px; }
.bd-foot { flex: 0 0 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 24px 32px 26px; }
.bd-foot > strong { font-size: 20px; flex: 0 0 100%; }
.bd-foot-grid { flex: 0 0 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.bd-foot-card { display: flex; flex-direction: column; gap: 12px; border-radius: 18px; padding: 16px 18px; }
.bd-foot-card-head { display: flex; align-items: center; gap: 12px; }
.bd-foot-icon { flex: none; width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.bd-foot-card-head span { display: flex; flex-direction: column; font-size: 16px; }
.bd-foot-card-head strong { font-size: 18px; }
.bd-buttons { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.bd-buttons a { flex: 1 1 120px; display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--navy); background: #fff; border-radius: 14px; padding: 12px; font-size: 17px; font-weight: 700; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.bd-buttons a:hover { color: var(--navy); }
.bd-note { flex: 0 0 100%; margin: 0; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; text-align: center; }

/* =========================================================
   UNTERSEITEN
   ========================================================= */
.tip { background: #fff; border-radius: 20px; padding: 18px 22px; box-shadow: var(--shadow-card); display: flex; gap: 16px; align-items: center; }
.num { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--orange-btn); color: #fff; font-size: 21px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.tip strong { font-size: 19px; line-height: 1.35; }

.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist label {
    display: flex; align-items: center; gap: 14px; cursor: pointer;
    background: #FFF6EC; border-radius: 16px; padding: 14px 16px; font-size: 18px; font-weight: 600;
}
.checklist input { appearance: none; -webkit-appearance: none; flex: none; width: 30px; height: 30px; border-radius: 9px; background: #fff; box-shadow: inset 0 0 0 2px rgba(26, 48, 86, .25); cursor: pointer; display: grid; place-content: center; margin: 0; }
.checklist input:checked { background: var(--orange-btn); box-shadow: none; }
.checklist input:checked::after { content: ''; width: 9px; height: 15px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -2px); }
.checklist label:has(input:checked) { background: var(--peach-2); }
.checklist-done { margin-top: 16px; background: var(--orange-grad); color: #fff; border-radius: 18px; padding: 18px 20px; font-size: 20px; font-weight: 800; text-shadow: var(--text-shadow-orange); }
.checklist-progress { margin: 18px 0 0; font-size: 16px; }

.course-card { text-decoration: none; color: var(--navy); background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 2px 10px rgba(26, 48, 86, .1); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.course-card:hover { color: var(--navy); transform: translateY(-3px); box-shadow: 0 10px 26px rgba(26, 48, 86, .16); }
.course-media { position: relative; }
.course-media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.course-trailer { position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 8px; background: rgba(26, 48, 86, .82); color: #fff; font-size: 15px; font-weight: 700; padding: 7px 14px 7px 9px; border-radius: 999px; }
.course-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.course-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.course-pills .pill.dark { background: var(--navy); color: #fff; }
.course-pills .pill.new { background: var(--orange-btn); color: #fff; }
.course-body strong { font-size: 21px; line-height: 1.3; }
.course-body > span { font-size: 17px; line-height: 1.6; }
.course-foot { margin-top: auto; padding-top: 6px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.course-foot span:first-child { font-size: 15px; color: var(--muted); }
.course-foot span:last-child { font-size: 17px; font-weight: 700; color: var(--brown); }

.legal-hero { background: var(--orange-grad); padding: 28px 32px 120px; }
.legal-wrap { padding: 0 32px 72px; }
.legal { max-width: 860px; margin: -96px auto 0; background: #fff; border-radius: 24px; padding: 48px 56px; box-shadow: var(--shadow-card); overflow-wrap: anywhere; }
.legal h1 { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 24px; }
.legal h3 { font-size: 22px; font-weight: 800; margin: 32px 0 10px; }
.legal p, .legal li { font-size: 17px; line-height: 1.7; margin: 0 0 12px; }
.legal ul { padding-left: 22px; margin: 0 0 12px; }

/* ---------- Formulare (Struktur für mail.js bleibt gleich) ---------- */
.contact_form { display: flex; flex-direction: column; gap: 14px; }
.contact_form h3 { margin: 6px 0 0; font-size: 20px; font-weight: 700; }
.contact_form .half { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.contact_form .contact_item, .contact_form .full { display: flex; flex-direction: column; gap: 6px; }
.contact_form label { font-size: 16px; font-weight: 600; }
.contact_form input, .contact_form textarea, .contact_form select {
    font-family: inherit; font-size: 17px; color: var(--navy);
    padding: 14px 16px; border-radius: 12px; border: 2px solid rgba(26, 48, 86, .16); background: var(--cream);
}
.contact_form textarea { min-height: 140px; resize: vertical; }
.contact_form .additional { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.contact_form .formMessage { display: none; border-radius: 14px; padding: 14px 16px; }
.contact_form .messageSuccess_kontakt { background: #E7F4E4; }
.contact_form .messageFailure_kontakt { background: var(--peach-2); }
.contact_form .formMessage p { margin: 0 0 6px; font-size: 17px; }
.contact_form button {
    font-family: inherit; font-size: 18px; font-weight: 700; cursor: pointer; border: none;
    background: var(--navy); color: #fff; padding: 15px 28px; border-radius: 999px;
}
.form-teal .contact_form input, .form-teal .contact_form textarea { background: #fff; border: none; box-shadow: 0 1px 4px rgba(26, 48, 86, .12); }
.form-teal .contact_form button { background: var(--orange-btn); border-radius: 14px; box-shadow: 0 4px 12px rgba(255, 106, 0, .3); }

/* ---------- Automat ---------- */
.subnav { position: sticky; top: 0; z-index: 30; background: var(--teal); box-shadow: 0 4px 14px rgba(26, 48, 86, .15); }
.subnav-inner { max-width: 1240px; margin: 0 auto; padding: 10px 24px; display: flex; gap: 8px; align-items: center; overflow-x: auto; }
.subnav a { flex: none; display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: #fff; text-decoration: none; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .14); }
.subnav a:hover { background: rgba(255, 255, 255, .26); color: #fff; }
.subnav a.subnav-cta { margin-left: auto; font-weight: 700; background: var(--orange-btn); padding: 5px 18px 5px 5px; border-radius: 999px; gap: 10px; }
.subnav-cta img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: 52% 30%; border: 2px solid #fff; }

.au-title { margin: 0 0 16px; font-size: 64px; line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; background: linear-gradient(90deg, #FF6A00, #FFA726); -webkit-background-clip: text; background-clip: text; color: transparent; }
.au-sub { margin: 0 0 16px; font-size: 26px; line-height: 1.4; font-weight: 500; }
.au-sub strong { font-weight: 800; }
.au-contact { margin-top: 28px; display: inline-flex; align-items: center; gap: 14px; background: #fff; border-radius: 999px; padding: 8px 22px 8px 8px; box-shadow: 0 2px 10px rgba(26, 48, 86, .1); }
.au-contact img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 52% 30%; }
.au-contact span { display: flex; flex-direction: column; line-height: 1.3; }
.au-contact small { font-size: 14px; font-weight: 700; color: var(--teal); }
.au-contact b { font-size: 17px; }
.feat { background: #fff; border-radius: 22px; box-shadow: 0 2px 10px rgba(26, 48, 86, .08); display: flex; gap: 16px; align-items: center; padding: 14px 18px; }
.feat img { flex: none; width: 40px; height: 40px; }
.feat p { margin: 0; font-size: 18px; line-height: 1.4; }
.price-teal { background: var(--teal); color: #fff; border-radius: 22px; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.price-teal p { margin: 0; font-size: 16px; }
.price-teal h2 { margin: 2px 0; font-size: 40px; font-weight: 800; }
.lib-row { display: flex; gap: 20px; overflow-x: auto; padding: 6px 4px 18px; scroll-snap-type: x mandatory; }
.lib-card { flex: 0 0 300px; scroll-snap-align: start; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 2px 10px rgba(26, 48, 86, .08); }
.lib-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.lib-card p { margin: 0; padding: 14px 18px 16px; font-size: 17px; font-weight: 700; }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(4, 190px); grid-template-areas: 'kh la rf' 'kh bf kn' 'pl bf ls' 'pl bf ls'; gap: 12px; }
.bento > div { position: relative; border-radius: 18px; overflow: hidden; min-height: 180px; box-shadow: 0 2px 10px rgba(26, 48, 86, .12); background-size: cover; background-position: center; transition: transform .3s ease, box-shadow .3s ease; }
.bento > div:hover { transform: scale(1.04); z-index: 2; box-shadow: 0 14px 34px rgba(26, 48, 86, .3); }
.bento h3 { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 48px 16px 16px; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .7) 100%); color: #fff; text-align: center; font-size: 21px; font-weight: 700; line-height: 1.2; }
.bento h3 span { font-size: 15px; font-weight: 500; }
.b-kh { grid-area: kh; } .b-la { grid-area: la; } .b-rf { grid-area: rf; } .b-kn { grid-area: kn; }
.b-pl { grid-area: pl; } .b-bf { grid-area: bf; } .b-ls { grid-area: ls; }
.steps-box li { background: #fff; border-radius: 22px; box-shadow: 0 2px 10px rgba(26, 48, 86, .08); padding: 14px 18px; }
.info-strip { background: #fff; border-radius: 22px; box-shadow: 0 2px 10px rgba(26, 48, 86, .08); display: flex; gap: 16px; align-items: center; padding: 20px 24px; }
.info-strip img { flex: none; width: 40px; height: 40px; }
.info-strip p { margin: 0; }
.ideal { background: var(--orange-grad); border-radius: 24px; padding: 40px 36px; text-align: center; }
.ideal h2 { margin: 0 0 14px; font-size: 32px; font-weight: 800; }
.ideal h2 + h2 { margin: 0; font-size: 21px; line-height: 1.6; font-weight: 600; }
.price-block { border-radius: 24px; overflow: hidden; box-shadow: 0 2px 10px rgba(26, 48, 86, .12); display: flex; flex-wrap: wrap; }
.price-block-main { flex: 1 1 440px; min-width: 0; background: var(--teal); color: #fff; padding: 40px 44px; }
.price-block-main h2 { margin: 0 0 6px; font-size: 34px; font-weight: 800; }
.price-block-main h3 { margin: 0 0 14px; font-size: 21px; font-weight: 600; }
.price-big { margin: 0 0 20px; font-size: 48px; font-weight: 800; line-height: 1; }
.price-big span { font-size: 18px; font-weight: 500; }
.price-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.price-list div { display: flex; gap: 12px; align-items: center; }
.price-list img { width: 26px; height: 26px; }
.price-list p { margin: 0; }
.price-block > img { flex: 1 1 380px; min-width: 0; width: 100%; min-height: 320px; object-fit: cover; display: block; }
.faq { max-width: 900px; margin: 0 auto; border-top: 1px solid rgba(26, 48, 86, .14); }
.faq details { border-bottom: 1px solid rgba(26, 48, 86, .14); }
.faq summary { list-style: none; display: flex; align-items: center; gap: 16px; cursor: pointer; padding: 18px 4px; font-size: 19px; font-weight: 600; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary img { flex: none; width: 30px; height: 30px; }
.faq summary::after { content: '+'; margin-left: auto; font-size: 30px; font-weight: 300; }
.faq details[open] summary::after { content: '−'; }
.faq .faq-body { padding: 0 40px 10px 50px; }
.contact-box { background: linear-gradient(160deg, #E6F6F8 0%, #CDEBF1 100%); border-radius: 24px; padding: 40px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; overflow: hidden; }
.form-badge { display: inline-flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 5px 16px 5px 5px; font-size: 15px; font-weight: 700; }
.form-badge img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: 52% 30%; }

/* ---------- Mobil ---------- */
@media (max-width: 950px) {
    .bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; grid-template-areas: 'bf bf' 'kh la' 'rf kn' 'pl ls'; }
    .bento > div { min-height: 160px; }
    .bento .b-bf { min-height: 320px; }
}

@media (max-width: 640px) {
    body { font-size: 17px; }
    .section { padding: 40px 16px; }
    .section-sm { padding: 24px 16px; }
    .bf-header-inner { padding: 12px 16px; gap: 10px; }
    .bf-logo-word { font-size: 22px; }
    .m-hide { display: none !important; }
    .bf-menu { width: calc(100vw - 32px); right: -4px; }
    .page-hero { padding: 36px 16px 44px; }
    .page-hero h1 { font-size: 38px; }
    .page-hero p { font-size: 19px; }
    .card { padding: 22px 18px; }
    .h2 { font-size: 27px; }
    .h2-center { font-size: 29px; }

    .start-hero { padding: 20px 16px 36px; }
    .start-hero-text { padding-bottom: 0; }
    .start-hero-sub { font-size: 19px; }
    .start-hero-sub br { display: none; }
    .start-hero-illu { justify-content: center; padding-right: 0; margin-top: 8px; }
    .start-hero-illu img { max-width: 320px; }
    .class-strip { grid-auto-rows: 78px; gap: 6px; }
    .banner { padding: 16px 18px; gap: 14px; }
    .banner-text strong { font-size: 19px; }
    .banner-text span { font-size: 15px; }
    .divider { padding: 48px 16px 8px; }
    .divider p { font-size: 22px; }
    .automat-band { padding: 28px 20px; gap: 24px; border-radius: 22px; }
    .automat-band h2 { font-size: 30px; }

    #books-view .bf-header-inner { flex-wrap: wrap; }
    .class-switch { order: 3; width: 100%; justify-content: space-between; }
    .class-switch button { flex: 1; padding: 10px 8px; }
    .class-switch-label { padding: 0 4px 0 10px; }
    .books-title { padding: 28px 16px 0; }
    .books-title p { font-size: 18px; }
    .filterbar-wrap { position: relative; padding: 16px 12px 4px; }
    .filterbar { border-radius: 20px; padding: 12px; gap: 10px; }
    .mood-tile { padding: 7px 12px 7px 9px; }
    .wall-section { padding: 20px 12px 40px; }
    .bd-overlay { padding: 0; align-items: flex-end; }
    .bd-card { max-height: 92vh; border-radius: 24px 24px 0 0; }
    .bd-cover { padding: 24px 20px 4px; flex-direction: row; align-items: flex-end; }
    .bd-cover img { max-width: 150px; }
    .bd-text { padding: 16px 18px 22px; }
    .bd-head h2 { font-size: 26px; }
    .bd-foot { padding: 18px 18px 24px; }

    .subnav a { padding: 9px 11px; font-size: 15px; }
    .au-title { font-size: 44px; }
    .au-sub { font-size: 21px; }
    .au-contact { border-radius: 22px; }
    .price-block-main { padding: 28px 22px; }
    .contact-box { padding: 24px 18px; }
    .faq .faq-body { padding: 0 4px 10px; }
    .legal { padding: 28px 20px; }
    .legal h1 { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
