/* ==========================================================
   Grundschule Tangstedt – gemeinsames Stylesheet
   Lokal gehostete Schriften (kein Nachladen von Google Fonts)
   ========================================================== */

@font-face {
    font-family: 'Fraunces';
    src: url('fonts/fraunces-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Fraunces';
    src: url('fonts/fraunces-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Fraunces';
    src: url('fonts/fraunces-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Source Sans 3';
    src: url('fonts/source-sans-3-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Source Sans 3';
    src: url('fonts/source-sans-3-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Source Sans 3';
    src: url('fonts/source-sans-3-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Source Sans 3';
    src: url('fonts/source-sans-3-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --navy-950: #0b1a30;
    --navy-900: #10233f;
    --navy-800: #17304f;
    --navy-700: #203c5d;
    --line: rgba(216, 226, 240, 0.14);
    --ink: #eef1f6;
    --ink-muted: #a9b7cc;
    --gold: #c7a86b;
    --gold-soft: rgba(199, 168, 107, 0.16);
    --radius: 10px;
    --max-width: 1040px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--navy-900);
    color: var(--ink);
    font-family: 'Source Sans 3', system-ui, -apple-system, Segoe UI, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    margin: 0;
    color: #fdfbf6;
}

a { color: inherit; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 28px;
}

/* Kopfbereich */
header {
    background: var(--navy-950);
    border-bottom: 1px solid var(--line);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    max-width: var(--max-width);
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 14px;
}

.topbar__mark {
    font-family: 'Fraunces', serif;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    color: var(--ink);
    text-decoration: none;
}

.topbar nav {
    display: flex;
    gap: 28px;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.topbar nav a {
    text-decoration: none;
    color: var(--ink-muted);
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.topbar nav a:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.hero {
    padding: 72px 28px 88px;
    max-width: var(--max-width);
    margin: 0 auto;
    animation: fade-up 0.7s ease both;
}

.hero--klein {
    padding: 56px 28px 60px;
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-size: clamp(2.3rem, 4.4vw, 3.4rem);
    line-height: 1.08;
    max-width: 16ch;
}

.hero--klein h1 {
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}

.hero__rule {
    width: 64px;
    height: 3px;
    background: var(--gold);
    margin: 26px 0 22px;
    border-radius: 2px;
}

.hero p {
    color: var(--ink-muted);
    max-width: 46ch;
    font-size: 1.08rem;
}

.hero__branding {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero__logo {
    height: 64px;
    width: auto;
    flex-shrink: 0;
}

/* Abschnitte */
section {
    padding: 64px 0;
}

.section-head {
    margin-bottom: 34px;
}

.section-head h2 {
    font-size: 1.7rem;
}

/* Fließtext-Seiten (Impressum, Datenschutz) */
.prose {
    max-width: 72ch;
}

.prose h2 {
    font-size: 1.35rem;
    margin-top: 44px;
    margin-bottom: 14px;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose h3 {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--gold);
    margin-top: 26px;
    margin-bottom: 8px;
}

.prose p {
    margin: 0 0 14px;
    color: var(--ink-muted);
}

.prose ul {
    margin: 0 0 14px;
    padding-left: 1.2em;
    color: var(--ink-muted);
}

.prose li {
    margin-bottom: 6px;
}

.prose strong {
    color: var(--ink);
    font-weight: 600;
}

.prose a {
    color: var(--gold);
    text-decoration: underline;
    text-decoration-color: rgba(199, 168, 107, 0.45);
}

.prose a:hover {
    text-decoration-color: var(--gold);
}

.prose .hinweis {
    border-left: 3px solid var(--gold);
    background: var(--gold-soft);
    padding: 14px 18px;
    border-radius: 0 6px 6px 0;
    font-size: 0.95rem;
}

.prose .hinweis p:last-child {
    margin-bottom: 0;
}

/* Footer */
footer {
    background: var(--navy-950);
    border-top: 1px solid var(--line);
    padding: 34px 0 30px;
}

.footer__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--ink-muted);
    font-size: 0.88rem;
}

.footer__row + .footer__row {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.footer__row strong {
    color: var(--ink);
    font-weight: 500;
}

.footer__links {
    display: flex;
    gap: 22px;
}

.footer__links a {
    text-decoration: none;
    color: var(--ink-muted);
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.footer__links a:hover {
    color: var(--gold);
    border-color: var(--gold);
}

@media (max-width: 720px) {
    .topbar nav { gap: 18px; }
    .hero { padding: 52px 28px 60px; }
    .footer__row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .hero { animation: none; }
    html { scroll-behavior: auto; }
}

a:focus-visible, .download-btn:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}
