/* ==========================================================================
   Elternzettel – Formular zum Ausdrucken
   Bildschirm: lesbare Vorschau. Druck: eine A4-Seite, schwarz-weiß-tauglich.
   ========================================================================== */

:root {
    --ink: #1a1a1a;
    --ink-muted: #55595e;
    --rule: #1a1a1a;
    --rule-soft: #b9bdc2;
}

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

body {
    margin: 0;
    padding: 2rem 1rem;

    /* Weltspiegel dark around the sheet, the sheet itself stays paper white.
       The screen has one job here: show what will come out of the printer, so
       the sheet is never restyled. Only the surround carries the brand — the
       page opens in a new tab from the cinema's site and must not look like a
       stray document. It is the way a PDF viewer presents a page, which says
       "this becomes an printout" without a word of explanation. */
    background-color: #100501;
    color: var(--ink);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.45;
}

/* --- Hinweis über dem Formular (nur Bildschirm) -------------------------- */

.screen-note {
    max-width: 48rem;
    margin: 0 auto 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    align-items: center;
}

.screen-note__brand {
    flex: 0 0 auto;
}

.screen-note__brand img {
    display: block;
    width: 11rem;
    height: auto;
}

.screen-note__text {
    margin: 0;
    flex: 1 1 16rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9375rem;
}

.screen-note__button {
    flex: 0 0 auto;
    min-height: 2.75rem;
    padding: 0 1.25rem;
    background-color: #f29400; /* Weltspiegel accent */
    color: #100501;
    border: 0;
    border-radius: 0.375rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.screen-note__button:hover {
    background-color: #ffad2e;
}

.screen-note__button:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

/* --- Das Blatt ----------------------------------------------------------- */

.sheet {
    max-width: 48rem;
    margin: 0 auto;
    padding: 2.5rem;
    background-color: #ffffff;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.5);
}

.sheet__header {
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--rule);
}

.sheet__cinema {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sheet__title {
    margin: 0.125rem 0 0.25rem;
    font-size: 1.625rem;
    line-height: 1.1;
}

.sheet__subtitle {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--ink-muted);
}

.sheet__intro {
    margin: 1rem 0 0;
    font-size: 0.875rem;
    color: var(--ink-muted);
}

/* --- Abschnitte ---------------------------------------------------------- */

.block {
    margin-top: 1.5rem;
    break-inside: avoid;
}

.block__title {
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.block__text {
    margin: 0 0 1rem;
    font-size: 0.875rem;
}

/* --- Ausfüllfelder ------------------------------------------------------- */

.field {
    margin-bottom: 1.125rem;
}

.field__label {
    display: block;
    margin-bottom: 1.5rem;   /* Schreibraum über der Linie */
    font-size: 0.75rem;
    color: var(--ink-muted);
}

.field__line {
    display: block;
    border-bottom: 1px solid var(--rule-soft);
}

/* Zwei Felder nebeneinander */
.field--split {
    display: flex;
    flex-wrap: wrap;
    gap: 1.125rem 2rem;
}

.field__group {
    flex: 1 1 14rem;
}

.field--signature .field__line {
    border-bottom-color: var(--rule);
}

.field--signature .field__label {
    margin-bottom: 2.25rem;
}

/* --- Fußzeile ------------------------------------------------------------ */

.sheet__footer {
    margin-top: 1.75rem;
    padding-top: 0.875rem;
    border-top: 1px solid var(--rule-soft);
    font-size: 0.75rem;
    color: var(--ink-muted);
    break-inside: avoid;
}

.sheet__footer p {
    margin: 0 0 0.5rem;
}

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

/* --- Druck --------------------------------------------------------------- */

@page {
    size: A4;
    margin: 12mm 16mm;
}

@media print {

    body {
        padding: 0;
        background-color: #ffffff;
        font-size: 10.5pt;
        line-height: 1.35;
    }

    .screen-note {
        display: none;
    }

    .sheet {
        max-width: none;
        margin: 0;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
    }

    /* Etwas kompakter, damit alles auf eine Seite passt */
    .block {
        margin-top: 0.85rem;
    }

    .block__title {
        margin-bottom: 0.5rem;
    }

    .block__text {
        margin-bottom: 0.65rem;
    }

    .field {
        margin-bottom: 0.7rem;
    }

    .field__label {
        margin-bottom: 1.15rem;
    }

    .field--signature .field__label {
        margin-bottom: 1.9rem;
    }

    .sheet__intro {
        margin-top: 0.7rem;
    }

    .sheet__footer {
        margin-top: 1.1rem;
    }
}
