/* assets/style.css
   Reduziertes Layout der eigenständigen Seiten (nami, infotag, schulbuchausleihe,
   schulplatzanfrage) – gleicher Stand in allen vier Projekten.
   Farben aus der Homepage; Gelb nur für Unterstreichung, Fokus und Absende-Knopf
   (als Textfarbe zu kontrastarm). */

:root {
    --text: #1d252c;
    --text-leise: #4d5862;
    --linie: #d5dadf;
    --rahmen: #7d8890;
    --flaeche: #f4f5f6;
    --gelb: #f6b827;
    --gelb-dunkel: #e0a510;
    --gelb-hell: #fdf3d8;
    --fehler: #b3261e;
    --erfolg: #3f6e22;
    --breite: 62rem;
    --lesebreite: 46rem;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.55;
    color: var(--text);
    background: #fff;
}

[hidden] {
    display: none !important;
}

.breite {
    width: 100%;
    max-width: var(--breite);
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.sprung {
    position: absolute;
    left: 1rem;
    top: -10rem;
    padding: .5rem .75rem;
    background: #fff;
    z-index: 10;
}

.sprung:focus {
    top: 1rem;
}

/* Kopf und Fuß */

.kopf {
    border-bottom: 1px solid var(--linie);
}

.kopf .breite {
    padding-top: .875rem;
    padding-bottom: .875rem;
}

.logo {
    display: inline-block;
}

.logo img {
    display: block;
    width: auto;
    height: 3rem;
}

main {
    flex: 1;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.fuss {
    border-top: 1px solid var(--linie);
    font-size: .9375rem;
}

.fuss .breite {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

@media (min-width: 48rem) {
    .logo img {
        height: 4rem;
    }

    main {
        padding-top: 2.5rem;
    }
}

/* Text */

h1 {
    font-size: 1.75rem;
    line-height: 1.2;
    margin: 0 0 1.25rem;
}

h2 {
    font-size: 1.25rem;
    line-height: 1.3;
    margin: 2rem 0 .75rem;
}

.untertitel {
    margin: -.875rem 0 1.75rem;
    font-size: 1.125rem;
    color: var(--text-leise);
}

p,
ul,
dl {
    max-width: var(--lesebreite);
}

p {
    margin: 0 0 1rem;
}

ul {
    padding-left: 1.25rem;
}

li {
    margin-bottom: .5rem;
}

.wichtig {
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration-color: var(--gelb);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

a:hover {
    text-decoration-color: currentColor;
}

:focus-visible {
    outline: 3px solid var(--gelb);
    outline-offset: 2px;
}

/* Meldungen */

.meldung {
    max-width: var(--lesebreite);
    margin: 0 0 1.75rem;
    padding: .875rem 1rem;
    border-left: 4px solid var(--text-leise);
    background: var(--flaeche);
}

.meldung> :last-child {
    margin-bottom: 0;
}

.meldung h2 {
    margin: 0 0 .5rem;
    font-size: 1.125rem;
}

.meldung.fehler {
    border-left-color: var(--fehler);
}

.meldung.erfolg {
    border-left-color: var(--erfolg);
}

.meldung.vorschau {
    border-left-color: var(--gelb-dunkel);
    background: var(--gelb-hell);
}

/* Formular */

fieldset {
    min-width: 0;
    margin: 2.25rem 0 0;
    padding: 0;
    border: 0;
}

legend {
    padding: 0;
    margin-bottom: .875rem;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.felder {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 1rem 1.25rem;
}

.feld label {
    display: block;
    margin-bottom: .25rem;
    font-weight: 600;
}

.feld.ganz {
    grid-column: 1 / -1;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
    display: block;
    width: 100%;
    min-height: 2.75rem;
    padding: .5rem .75rem;
    font: inherit;
    color: inherit;
    background: #fff;
    border: 1px solid var(--rahmen);
    border-radius: 6px;
}

textarea {
    min-height: 7rem;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--text);
    outline: 3px solid var(--gelb);
    outline-offset: 0;
}

.wahl {
    display: flex;
    align-items: flex-start;
    gap: .625rem;
    max-width: var(--lesebreite);
    margin: 0 0 .75rem;
}

.wahl input {
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    margin: .15rem 0 0;
    accent-color: var(--text);
}

.wahl label {
    cursor: pointer;
}

.einschub {
    max-width: var(--lesebreite);
    margin: 0 0 1rem 1.875rem;
}

.knopf {
    display: inline-block;
    min-height: 2.75rem;
    margin-top: 1.75rem;
    padding: .625rem 1.75rem;
    font: inherit;
    font-weight: 700;
    color: var(--text);
    background: var(--gelb);
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.knopf:hover {
    background: var(--gelb-dunkel);
}

.knopf:disabled {
    opacity: .65;
    cursor: progress;
}

/* Nur für Screenreader */
.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Für Menschen unsichtbares Feld gegen Bots (Honeypot) */
.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

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