/* ===========================================================================
   menrath-nickenich.de — privater Webauftritt Familie Menrath
   Bildsprache: Postkarte aus der Pellenz.
   Farben aus der Region: Basalt, Bimsstein, Eifelwald, Laacher See, Abendlicht.
   Schriften ausschliesslich vom System (kein externer Abruf, DSGVO).
   Version: 1.1.0
   =========================================================================== */

:root {
    --basalt:      #22262c;
    --tinte:       #313944;
    --tinte-hell:  #5c6672;
    --papier:      #fdfbf6;
    --papier-kant: #e7dfd0;
    --laub:        #3d6b4f;
    --laub-hell:   #4d8262;
    --see:         #2f5d78;
    --gold:        #b8862f;

    --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
    --sans:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --rund: 3px;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 18px;
    line-height: 1.65;
    color: var(--tinte);
    background: var(--basalt);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--see); }

/* ===========================================================================
   Startseite, Kennwortabfrage und Bilderbereich — die Postkarte
   =========================================================================== */

.seite-start {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Die Karte sitzt links, damit rechts das Dorf mit dem Kirchturm frei bleibt —
   das Bild ist hier nicht Dekoration, sondern der Ortsbezug. */
.buehne {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1rem, 4vw, 3.5rem);
}

.buehne-bild {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(to bottom, rgba(20, 24, 30, 0.3), rgba(20, 24, 30, 0.52)),
        url("nickenich.jpg");
    background-size: cover;
    background-position: 32% 42%;
}

/* --- die Karte selbst --- */

.karte {
    width: min(100%, 700px);
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    background: var(--papier);
    background-image: linear-gradient(148deg, #ffffff 0%, var(--papier) 46%, #f7f2e8 100%);
    border-radius: var(--rund);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.6) inset,
        0 18px 50px -12px rgba(10, 14, 20, 0.55),
        0 3px 10px rgba(10, 14, 20, 0.3);
    overflow: hidden;
}

.karte-schmal { width: min(100%, 620px); grid-template-columns: 1fr; }

.karte-text {
    padding: clamp(1.6rem, 3.4vw, 2.7rem);
}

/* senkrechte Trennlinie wie auf einer echten Postkarte */
.karte-marke {
    position: relative;
    padding: clamp(1.6rem, 3.4vw, 2.7rem) clamp(1.2rem, 2.4vw, 1.8rem);
    border-left: 1px solid var(--papier-kant);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
}

.gruss {
    margin: 0 0 0.75rem;
    font-size: 0.78rem;
    letter-spacing: 0.19em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--gold);
}

.karte h1 {
    margin: 0 0 1.1rem;
    font-family: var(--serif);
    font-size: clamp(1.85rem, 4.4vw, 2.65rem);
    line-height: 1.1;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--basalt);
}

/* feine Linie unter dem Namen */
.karte h1::after {
    content: "";
    display: block;
    width: 4.5rem;
    height: 2px;
    margin-top: 1.1rem;
    background: var(--laub);
}

.einleitung {
    margin: 0 0 1.9rem;
    font-size: 1.06rem;
    color: var(--tinte);
    max-width: 34em;
}

/* --- Knopf --- */

.knopf {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.95rem 1.7rem;
    background: var(--laub);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    border: 0;
    border-radius: var(--rund);
    cursor: pointer;
    font-family: var(--sans);
    transition: background 0.18s ease, transform 0.18s ease;
}

.knopf:hover,
.knopf:focus-visible { background: var(--laub-hell); transform: translateY(-1px); }
.knopf span { transition: transform 0.18s ease; }
.knopf:hover span { transform: translateX(3px); }

.hinweis {
    margin: 1.4rem 0 0;
    font-size: 0.92rem;
    color: var(--tinte-hell);
}
.hinweis a { color: var(--see); }

/* --- Kennwortformular --- */

.anmeldung { margin: 0; }

.anmeldung label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--tinte-hell);
}

.anmeldung input {
    width: 100%;
    max-width: 22rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1.3rem;
    font-size: 1.15rem;
    font-family: var(--sans);
    color: var(--basalt);
    background: #fff;
    border: 1px solid var(--papier-kant);
    border-bottom-width: 2px;
    border-radius: var(--rund);
}

.anmeldung input:focus {
    outline: 2px solid var(--see);
    outline-offset: 1px;
    border-color: var(--see);
}

.fehler {
    margin: 0 0 1.3rem;
    padding: 0.8rem 1rem;
    background: #fbeeee;
    border-left: 3px solid #9d3b3b;
    color: #7d2f2f;
    font-size: 0.97rem;
}

/* --- Stempel und Anschriftfeld --- */

.stempel {
    align-self: flex-end;
    width: 6.6rem;
    height: 6.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    border: 2px solid var(--see);
    border-radius: 50%;
    color: var(--see);
    opacity: 0.62;
    transform: rotate(-11deg);
    box-shadow: 0 0 0 1px rgba(47, 93, 120, 0.35) inset;
    text-align: center;
    user-select: none;
}

.stempel-ort {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.stempel-linie { width: 3rem; height: 1px; background: currentColor; }

.stempel-region {
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.adresse {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    margin: 0.5rem 0;
}

.adress-zeile { height: 1px; background: var(--papier-kant); }

.absender {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.16rem;
    color: var(--basalt);
    line-height: 1.35;
}

.absender span {
    display: block;
    font-family: var(--sans);
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--tinte-hell);
    margin-top: 0.25rem;
}

/* --- Fuss --- */

.fuss {
    padding: 1.4rem;
    text-align: center;
    font-size: 0.87rem;
}

.seite-start .fuss a { color: rgba(255, 255, 255, 0.82); }
.seite-start .fuss a:hover { color: #fff; }

/* ===========================================================================
   Textseite (Datenschutz)
   =========================================================================== */

.seite-text { background: #f3efe6; }

.textblatt {
    max-width: 44rem;
    margin: clamp(1.5rem, 5vw, 3.5rem) auto;
    padding: clamp(1.8rem, 5vw, 3.2rem);
    background: var(--papier);
    border-radius: var(--rund);
    box-shadow: 0 10px 30px -14px rgba(10, 14, 20, 0.35);
}

.textblatt h1 {
    margin: 0 0 1.6rem;
    font-family: var(--serif);
    font-size: clamp(1.7rem, 4vw, 2.3rem);
    font-weight: 400;
    color: var(--basalt);
}

.textblatt h2 {
    margin: 2.1rem 0 0.6rem;
    font-family: var(--serif);
    font-size: 1.28rem;
    font-weight: 400;
    color: var(--basalt);
}

.textblatt p { margin: 0 0 1rem; }
.seite-text .fuss a { color: var(--see); }

/* ===========================================================================
   Schmale Bildschirme
   =========================================================================== */

@media (max-width: 760px) {
    body { font-size: 17px; }

    /* Oben bleibt bewusst ein Streifen Landschaft stehen — sonst sieht man
       auf dem Handy nur noch die weisse Karte und der Ort ist verschwunden. */
    .buehne {
        align-items: flex-start;
        justify-content: center;
        padding-top: clamp(3.5rem, 15vh, 8rem);
        padding-bottom: 1.5rem;
    }

    .karte { grid-template-columns: 1fr; }
    .karte-text { padding: 1.6rem 1.5rem 1.4rem; }

    .karte-marke {
        border-left: 0;
        border-top: 1px solid var(--papier-kant);
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 1.1rem 1.5rem;
    }

    .einleitung { margin-bottom: 1.5rem; }
    .adresse { display: none; }
    .stempel { width: 5.2rem; height: 5.2rem; align-self: center; }

    /* Leicht herangezoomt und nach unten gerueckt, damit im schmalen Streifen
       ueber der Karte der Kirchturm steht und nicht nur Himmel. */
    .buehne-bild {
        background-size: auto 125%;
        background-position: 62% 88%;
    }
}

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