/* wendlat.de – neues Design (Abend in Rom). Schriften selbst gehostet. */
:root {
  --bg: #101634; --surface: #18204a; --line: #2a3466; --ink: #f3f1ec; --muted: #aab2d8;
  --accent: #f0b45a; --accent-ink: #0f1220;
  --serif: 'Marcellus', Georgia, serif; --sans: 'Atkinson Hyperlegible Next', system-ui, sans-serif;
}
:root[data-theme="light"] {
  --bg: #ebe5d9; --surface: #f5f0e6; --line: #d9cfbd; --ink: #1c1f2e; --muted: #5a5e70;
  --accent: #b5562f; --accent-ink: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); transition: background .2s, color .2s; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Kopf */
header .wrap { display: flex; align-items: center; gap: 22px; min-height: 72px; flex-wrap: wrap; }
.brand { font: 800 1.3rem/1 var(--sans); text-decoration: none; }
nav { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; font-weight: 600; font-size: .95rem; }
nav a { text-decoration: none; color: var(--muted); } nav a:hover { color: var(--ink); }
.toggle { background: var(--surface); border: 1px solid var(--line); color: var(--ink); border-radius: 99px;
  padding: 6px 12px; font: 600 .85rem var(--sans); cursor: pointer; }

/* Einstieg */
.hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; padding: 36px 0 28px; }
.eyebrow { font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
h1 { font: 400 clamp(2.2rem, 4.6vw, 3.4rem)/1.12 var(--serif); margin: 12px 0 16px; }
.hero p { color: var(--muted); font-size: 1.1rem; margin: 0 0 26px; max-width: 480px; }
.btn { display: inline-block; text-decoration: none; font-weight: 800; padding: 13px 26px; border-radius: 99px;
  background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: none; color: var(--ink); border: 1px solid var(--line); margin-left: 8px; }
.scene { width: 100%; height: auto; border-radius: 22px; display: block; box-shadow: 0 20px 50px rgb(0 0 0 / .25); }
.scene .walk { animation: walk 40s ease-in-out infinite; }
@keyframes walk { 0%, 8% { transform: translateX(0); } 46%, 54% { transform: translateX(132px); } 92%, 100% { transform: translateX(0); } }
/* Rom am Tag (helles Design) */
.scene * { transition: fill .6s, stroke .6s, stop-color .6s, opacity .6s, transform .8s; }
:root[data-theme="light"] .scene .night { opacity: 0; }
:root[data-theme="light"] .scene .sun { transform: translate(-150px, -280px); }
:root[data-theme="light"] .scene .sun circle:last-child { fill: #fff8de; }
:root[data-theme="light"] .scene #glow stop:nth-child(1) { stop-color: #fffbe6; }
:root[data-theme="light"] .scene #glow stop:nth-child(n+2) { stop-color: #fff4c8; }
:root[data-theme="light"] .scene #sky stop:nth-child(1) { stop-color: #6fa2d4; }
:root[data-theme="light"] .scene #sky stop:nth-child(2) { stop-color: #8cbbe2; }
:root[data-theme="light"] .scene #sky stop:nth-child(3) { stop-color: #b2d2ec; }
:root[data-theme="light"] .scene #sky stop:nth-child(4) { stop-color: #d3e5ef; }
:root[data-theme="light"] .scene #sky stop:nth-child(5) { stop-color: #ebefe6; }
:root[data-theme="light"] .scene #haze stop { stop-color: #ffffff; }
:root[data-theme="light"] .scene .clouds { fill: #fff; opacity: .85; }
:root[data-theme="light"] .scene [stroke="#2b2147"] { stroke: #5d6475; }
:root[data-theme="light"] .scene [fill="#6a5288"] { fill: #a3b3c9; }
:root[data-theme="light"] .scene [fill="#3e3166"] { fill: #aab98f; }
:root[data-theme="light"] .scene [fill="#3a2d5e"] { fill: #d6c4a2; }
:root[data-theme="light"] .scene [fill="#5b4579"] { fill: #b09c7b; }
:root[data-theme="light"] .scene [fill="#33285a"] { fill: #a87f50; stroke: #a87f50; }
:root[data-theme="light"] .scene [fill="#251b40"] { fill: #e3d0ae; }
:root[data-theme="light"] .scene [fill="#1f1738"] { fill: #cbb690; }
:root[data-theme="light"] .scene [stroke="#2f2450"] { stroke: #b7a17c; }
:root[data-theme="light"] .scene [fill="#e08f78"], :root[data-theme="light"] .scene [fill="#e3967a"],
:root[data-theme="light"] .scene [fill="#d88472"] { fill: #8f7a5d; }
:root[data-theme="light"] .scene [stroke="#34275a"] { stroke: #c6ae87; }
:root[data-theme="light"] .scene [fill="#20173a"] { fill: #d7c29d; }
:root[data-theme="light"] .scene [fill="#2c2148"] { fill: #c2ab85; }
:root[data-theme="light"] .scene [fill="#3b2d60"] { fill: #c5b08b; }
/* am Tag kein Tiber: Wiese statt Wasser, Brücke und Spiegelungen ausgeblendet */
:root[data-theme="light"] .scene #river stop:nth-child(1) { stop-color: #b4c38f; }
:root[data-theme="light"] .scene #river stop:nth-child(2) { stop-color: #9cb078; }
:root[data-theme="light"] .scene [stroke="#ffcf8f"] { opacity: 0; }
:root[data-theme="light"] .scene [fill="#221a3b"] { opacity: 0; }
:root[data-theme="light"] .scene [fill="#141026"] { fill: #8a9d6a; }
:root[data-theme="light"] .scene [fill="#1b1631"] { fill: #c8b48f; }
:root[data-theme="light"] .scene [fill="#100c1f"] { fill: #4a6541; }
:root[data-theme="light"] .scene { box-shadow: 0 16px 40px rgb(60 50 30 / .15); }
.scene .dayonly { opacity: 0; visibility: hidden; }
:root[data-theme="light"] .scene .dayonly { opacity: 1; visibility: visible; }
:root[data-theme="light"] .scene g[transform="translate(70,334)"] { opacity: 0; visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .scene * { transition: none; } }
@media (prefers-reduced-motion: reduce) { .scene .walk { animation: none; transform: translateX(52px); } }

/* Neu-Hinweis, bewusst zurückhaltend */
.news { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: .95rem; color: var(--muted);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; margin: 12px 0 0; }
.news b { color: var(--accent); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.news:hover span { color: var(--ink); }

/* Bereiche */
h2 { font: 400 2.2rem/1.1 var(--serif); margin: 56px 0 6px; }
.sub { color: var(--muted); margin: 0 0 24px; }
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.cat h3 { margin: 0 0 4px; font-size: 1.15rem; }
.cat > p { margin: 0 0 14px; color: var(--muted); font-size: .92rem; }
.cat .head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.cat .icon { width: 44px; height: 44px; flex: none; }
.cat .head h3 { margin: 0; font: 400 1.35rem/1.2 var(--serif); }
.cat a { display: block; text-decoration: none; padding: 10px 0; border-top: 1px solid var(--line); font-weight: 600; }
.cat a small { display: block; color: var(--muted); font-weight: 400; }
.cat a:hover { color: var(--accent); }

.religion { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; background: var(--surface);
  border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px; margin-top: 40px; }
.religion h2 { font-size: 1.5rem; margin: 0; }
.religion p { margin: 0; color: var(--muted); flex: 1; min-width: 220px; }

footer { margin-top: 70px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; padding: 22px 20px 36px; color: var(--muted); font-size: .9rem; }
footer .r { margin-left: auto; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; } .cats { grid-template-columns: 1fr; }
  nav { margin-left: 0; order: 3; width: 100%; } .toggle { margin-left: auto; }
}
@media (max-width: 560px) { .wrap { padding: 0 16px; } }

/* Unterseiten */
.hero.simple { grid-template-columns: 1fr; padding-bottom: 8px; }
.hero.simple p { max-width: 640px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }
nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }
.cats.top { margin-top: 28px; }

/* Latein: Schnellzugriff nach Lektion */
.latein-hero { grid-template-columns: 1.15fr 1fr; align-items: end; padding-bottom: 8px; }
.lektion { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.lektion h2 { font: 400 1.25rem/1.2 var(--serif); margin: 0 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chips button { font: 700 .95rem var(--sans); color: var(--ink); background: none; border: 1px solid var(--line);
  border-radius: 99px; padding: 6px 14px; cursor: pointer; }
.chips button:hover { border-color: var(--accent); }
.chips button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.panel a { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 8px 0; border-top: 1px solid var(--line); font-weight: 600; }
.panel a:hover { color: var(--accent); }
.panel .icon { width: 34px; height: 34px; flex: none; }
.panel small { display: block; color: var(--muted); font-weight: 400; font-size: .85rem; }
.lektion .hint { margin: 10px 0 0; font-size: .85rem; color: var(--muted); }
@media (max-width: 820px) { .latein-hero { grid-template-columns: 1fr; } }

/* Logo in der Kopfzeile */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand .logo { width: 30px; height: 30px; border-radius: 7px; }

/* Lernplan-Übersicht */
.plans a.cat { text-decoration: none; display: block; transition: transform .15s ease, border-color .15s ease; }
.plans a.cat:hover { transform: translateY(-2px); border-color: var(--accent); }
.plans .title { font: 400 1.2rem/1.3 var(--serif); color: var(--ink); margin: 0 0 6px; }
.plans .go { display: inline-block; margin-top: 4px; color: var(--accent); font-weight: 700; }
.note-neu { margin-top: 28px; color: var(--muted); font-size: .9rem; border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; max-width: 720px; }
.cats.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .cats.two { grid-template-columns: 1fr; } }

/* Fließtext (Impressum, Datenschutz) */
.prose { max-width: 720px; }
.prose h2 { font: 400 1.4rem/1.3 var(--serif); margin: 32px 0 8px; }
.prose p { color: var(--ink); }
.prose a { color: var(--accent); }
