/* ------------------------------------------------------------------
 * app.css — Fallback-Design
 * Wird wirksam, solange das UHU-CMS-Design noch nicht eingespielt ist.
 * Sobald public/assets/css/cms.css existiert, wird es zusätzlich geladen
 * und überschreibt diese Regeln, wo nötig.
 *
 * Farben:   Blau #003366 / Gold #d4af37 / Off-White #faf7ef / Grau #4a4a4a
 * Schriften: Source Sans (Text), Source Serif (Headlines, wenn verfügbar)
 * ------------------------------------------------------------------ */

:root {
    --c-blau:    #003366;
    --c-gold:    #d4af37;
    --c-creme:   #faf7ef;
    --c-grau:    #4a4a4a;
    --c-hellgrau:#e5e2d8;

    --ff-text:    "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
    --ff-head:    "Source Serif 4", "Source Serif Pro", Georgia, serif;

    --maxw:       68rem;
    --radius:     2px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--c-creme);
    color: var(--c-grau);
    font-family: var(--ff-text);
    font-size: 17px;
    line-height: 1.55;
}

a {
    color: var(--c-blau);
    text-decoration: underline;
    text-decoration-color: var(--c-gold);
    text-underline-offset: 2px;
}
a:hover { color: #001b3a; }

h1, h2, h3, h4 {
    font-family: var(--ff-head);
    color: var(--c-blau);
    line-height: 1.25;
    margin-top: 1.6em;
    margin-bottom: 0.4em;
}
h1 { font-size: 2rem; border-bottom: 2px solid var(--c-gold); padding-bottom: .3rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }

header.site-header {
    background: var(--c-blau);
    color: var(--c-creme);
    border-bottom: 3px solid var(--c-gold);
}
header.site-header .kopf {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
header.site-header .logo {
    width: 48px; height: 48px; flex: 0 0 auto;
}
header.site-header .titel {
    font-family: var(--ff-head);
    font-size: 1.35rem;
    margin: 0;
}

nav.haupt {
    background: #002244;
}
nav.haupt ul {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: .4rem 1.25rem;
    list-style: none;
    display: flex;
    gap: 1.1rem;
    flex-wrap: wrap;
}
nav.haupt a {
    color: var(--c-creme);
    text-decoration: none;
    padding: .3rem .1rem;
    border-bottom: 2px solid transparent;
}
nav.haupt a:hover,
nav.haupt a.aktiv { border-bottom-color: var(--c-gold); }

main {
    max-width: var(--maxw);
    margin: 2rem auto;
    padding: 0 1.25rem;
}

.karte {
    background: #fff;
    border: 1px solid var(--c-hellgrau);
    border-left: 4px solid var(--c-gold);
    padding: 1.25rem 1.5rem;
    margin: 1rem 0;
    border-radius: var(--radius);
}

form.stack { display: grid; gap: .75rem; max-width: 34rem; }
form.stack label { display: block; font-weight: 600; color: var(--c-blau); }
form.stack input[type="text"],
form.stack input[type="email"],
form.stack input[type="password"],
form.stack textarea,
form.stack select {
    width: 100%;
    padding: .55rem .7rem;
    border: 1px solid var(--c-hellgrau);
    border-radius: var(--radius);
    font: inherit;
    background: #fff;
}
form.stack textarea { min-height: 7rem; }
form.stack button,
.button {
    background: var(--c-blau);
    color: var(--c-creme);
    border: 0;
    padding: .6rem 1.1rem;
    border-radius: var(--radius);
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
form.stack button:hover,
.button:hover { background: #001b3a; }

table.tabelle {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}
table.tabelle th,
table.tabelle td {
    padding: .5rem .7rem;
    border-bottom: 1px solid var(--c-hellgrau);
    text-align: left;
    vertical-align: top;
}
table.tabelle th { background: #f2ede0; color: var(--c-blau); }

footer.site-footer {
    margin-top: 3rem;
    padding: 1.5rem 1.25rem;
    background: var(--c-blau);
    color: var(--c-creme);
    font-size: .9rem;
}
footer.site-footer .innen {
    max-width: var(--maxw);
    margin: 0 auto;
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: space-between;
}
footer.site-footer a { color: var(--c-creme); }
footer.site-footer .motto {
    font-family: var(--ff-head);
    font-style: italic;
    color: var(--c-gold);
}

/* Kapitel-Ansicht */
.kapitel-layout {
    display: grid;
    grid-template-columns: 14rem 1fr;
    gap: 2rem;
}
.kapitel-nav ul { list-style: none; padding: 0; margin: 0; }
.kapitel-nav li { margin: .15rem 0; }
.kapitel-nav a.aktiv { font-weight: 700; }

/* Responsive ab 640px */
@media (max-width: 640px) {
    main { margin: 1rem auto; }
    .kapitel-layout { grid-template-columns: 1fr; }
    header.site-header .titel { font-size: 1.1rem; }
    nav.haupt ul { gap: .6rem; }
}
