/* ==================================================================
   KEROLINA – Basis-Layout (kerolina-base.css)
   ------------------------------------------------------------------
   Die Rundreise-Detailseiten tragen ihr Layout-CSS bis heute inline
   im <style>-Block. Diese Datei enthaelt den daraus unveraendert
   uebernommenen GEMEINSAMEN Sockel (CI-Tokens, Grundlayout, Buttons,
   Kopfzeile, Fusszeile) fuer eigenstaendige Seiten, die kein eigenes
   Seiten-CSS mitbringen.

   Aktuell genutzt von: /merkzettel/

   Bewusst NICHT in bestehende Seiten eingebunden – dort bleibt das
   vorhandene Inline-CSS unangetastet. Die Datei ist damit ein erster
   Schritt in Richtung zentraler Stylesheets, ohne bestehende Seiten
   zu veraendern.
   ================================================================== */

:root {
    --ink: #1e1122;
    --plum: #2a1c33;
    --plum-mid: #3e2a4a;
    --gold: #d2c485;
    --cream: #fdf1d1;
    --gold-deep: #bca572;
    --gold-12: rgba(210, 196, 133, .12);
    --gold-25: rgba(210, 196, 133, .25);
    --gold-45: rgba(210, 196, 133, .45);
    --plum-06: rgba(42, 28, 51, .06);
    --plum-12: rgba(42, 28, 51, .12);
    --plum-45: rgba(42, 28, 51, .45);
    --cream-06: rgba(253, 241, 209, .06);
    --cream-80: rgba(253, 241, 209, .80);
    --ink-92: rgba(30, 17, 34, .92);
    --ink-70: rgba(30, 17, 34, .70);
    /* --font-display und --font-body stehen NICHT mehr hier, sondern in
       assets/css/kerolina-schrift.css. Diese Datei wird immer zusammen
       mit ihr geladen (includes/kerolina-assets.php bindet erst die
       Schrift, dann dieses Basis-Layout ein). Bitte hier nichts
       nachtragen: Zwei Definitionen wären zwei Pflegeorte, und die
       spätere gewänne stillschweigend. */
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 10px 30px rgba(30, 17, 34, .18);
    --shadow-soft: 0 4px 16px rgba(30, 17, 34, .10);
    --maxw: 1180px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    color: inherit;
}
.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 22px;
}
h1, h2, h3 {
    font-family: var(--font-display);
    line-height: 1.22;
    font-weight: 700;
}
h1 {
    font-size: clamp(2rem, 4.6vw, 3.2rem);
}
h2 {
    font-size: clamp(1.6rem, 3vw, 2.15rem);
}
h3 {
    font-size: 1.15rem;
}
.section {
    padding: 62px 0;
}
.section--plum {
    background: var(--plum);
    color: var(--cream);
}
.section--light {
    background: linear-gradient(180deg, rgba(253, 241, 209, .35), #fff 70%);
}
.eyebrow {
    display: inline-block;
    font-size: .8rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--gold-deep);
    margin-bottom: 12px;
}
.section--plum .eyebrow {
    color: var(--gold);
}
.lead {
    max-width: 780px;
    font-size: 1.04rem;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--gold);
    color: var(--ink);
    font-weight: 600;
    padding: 10px 18px;
    z-index: 200;
    border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
    left: 0;
}
[hidden] {
    display: none !important;
}

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .98rem;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background .2s, color .2s, border-color .2s;
    min-height: 46px;
    text-align: center;
}
.btn--gold {
    background: var(--gold);
    color: var(--ink);
    border-color: var(--gold);
}
.btn--gold:hover {
    background: var(--gold-deep);
    border-color: var(--gold-deep);
}
.btn--ghost {
    background: transparent;
    color: var(--plum);
    border-color: var(--plum-45);
}
.btn--ghost:hover {
    border-color: var(--plum);
    background: var(--plum-06);
}
.btn--outline-light {
    background: transparent;
    color: var(--cream);
    border-color: var(--gold-45);
}
.btn--outline-light:hover {
    border-color: var(--gold);
    background: var(--cream-06);
}
.btn--big {
    font-size: 1.05rem;
    padding: 15px 28px;
}
.btn[disabled] {
    opacity: .65;
    cursor: not-allowed;
}

/* ---------------- Kopfzeile / Navigation ----------------
   Passend zur zentralen /includes/hauptnavigation.php. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    /* Ruhige, deckende Fläche – wie im Redesign-Layer der Detailseiten. */
    background: var(--ink);
    border-bottom: 1px solid var(--gold-25);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 22px;
    max-width: var(--maxw);
    margin: 0 auto;
}
/* Logohöhe wie auf den Detailseiten (Redesign-Layer: 50px statt 56px). */
.site-header__logo img {
    height: 50px;
    width: auto;
}
.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 14px;
    list-style: none;
}
@media (min-width: 1081px) {
    .main-nav li.nav-item--rating {
        margin-left: 8px;
        padding-left: 14px;
        border-left: 1px solid var(--gold-25);
    }
    .main-nav li.nav-item--social a {
        color: var(--cream-80);
        font-weight: 500;
    }
    .main-nav li.nav-item--social a:hover {
        color: var(--gold);
    }
    .main-nav li.nav-item--rating a {
        letter-spacing: 1px;
        font-size: .8rem;
    }
}
.main-nav a {
    color: var(--cream);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    padding: 8px 2px;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
    border-bottom-color: var(--gold);
    color: var(--gold);
}
.nav-toggle {
    display: none;
    background: transparent;
    border: 2px solid var(--gold-45);
    color: var(--cream);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .9rem;
}
@media (max-width: 1080px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }
    .main-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--ink);
        border-bottom: 1px solid var(--gold-25);
        padding: 10px 16px 18px;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    .main-nav.is-open {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    .main-nav a {
        display: block;
        padding: 12px 10px;
        font-size: 1rem;
        border-bottom: 1px solid rgba(253, 241, 209, .08);
    }
}

/* ---------------- Fusszeile ----------------
   Passend zur zentralen /includes/footer.php. */
.site-footer {
    background: var(--ink);
    color: var(--cream);
    padding: 56px 0 60px;
    font-size: .92rem;
}
.site-footer a {
    color: var(--cream);
    text-decoration: none;
}
.site-footer a:hover {
    color: var(--gold);
}
.site-footer__claim {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--gold);
    max-width: 700px;
    margin-bottom: 36px;
}
.site-footer__grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 36px;
}
.site-footer h3 {
    font-size: 1rem;
    color: var(--gold);
    margin-bottom: 14px;
    font-family: var(--font-body);
    font-weight: 700;
}
.site-footer ul {
    list-style: none;
    display: grid;
    gap: 9px;
}
.site-footer__legal {
    border-top: 1px solid var(--gold-25);
    padding-top: 22px;
    color: var(--cream-80);
    font-size: .85rem;
}
@media (max-width: 980px) {
    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 560px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
    }
}

/* ---------------- Reduzierte Bewegung ---------------- */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
    html {
        scroll-behavior: auto;
    }
}
