* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* FIX: html + body overflow */
html {
    height: 100%;
    overflow: hidden;
    max-width: 100vw;
}

body {
    height: 100%;
    padding-top: 0px;
    overflow: hidden;
    max-width: 100vw;

    /* Tiefes Zwielicht – ergänzt die Tag/Nacht-Bildsprache der Uhr */
    background: linear-gradient(160deg, #b1c0b6 0%, #839689 55%, #b1c0b6 100%);
}

body.privacy-page {
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

html.privacy-page {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

.clock {
    position: fixed;
    left: 50%;
    top: var(--clock-center-y, 50vh);
    width: 800px;
    height: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translate(-50%, -50%) scale(var(--clock-scale, 1));
    transform-origin: center center;
}

.clock::before {
    content: '';
    position: absolute;
    width: 35px;
    height: 35px;
    background: #3d3d3d;
    border-radius: 50%;
    z-index: 10000;
    box-shadow: -3px 3px 8px #8a8a8a;
}

.clock .daylenght,
.clock .sunrse,
.clock .sunset,
.clock .solarnoon,
.clock .moonmax,
.clock .grdrng,
.clock .zffrbltt,
.clock .hour,
.clock .zeitsunr,
.clock .zeitsunst,
.clock .min,
.clock .sec {
    position: absolute;
}

.clock .daylenght,
.dl {
    font-size: 27px;
    font-family: 'Times New Roman', Times, serif;
    color: rgb(13, 63, 0);
    justify-content: center;
    width: 260px;
    height: 228px;
    white-space: nowrap;
    text-align: center;
}

.clock .sunrse,
.snrs {
    width: 800px;
    height: 800px;
}

.clock .zeitsunr,
.sr {
    width: 190px;
    height: 743px;
    transform: rotate(180deg);
}

.clock .zeitsunst,
.sst {
    width: 190px;
    height: 747px;
    transform: rotate(180deg);
}

.clock .zeitsunr,
.clock .zeitsunst {
    z-index: 30;
}

.clock .sunset,
.snst {
    width: 800px;
    height: 800px;
}

.clock .solarnoon,
.solarn {
    width: 800px;
    height: 800px;
    z-index: 28;
    pointer-events: none;
}

.clock .moonmax,
.moonm {
    width: 800px;
    height: 800px;
    z-index: 29;
    pointer-events: none;
}

.clock .grdrng,
.grg {
    width: 800px;
    height: 800px;
    z-index: 50;
    pointer-events: none;
}

.clock .zffrbltt,
.zfbl {
    width: 800px;
    height: 800px;
}

.clock .hour,
.hr {
    width: 160px;
    height: 0px;
    transform: rotate(0.3deg);
}

.clock .min,
.mn {
    width: 190px;
    height: 486px;
    transform: rotate(0.3deg);
}

.clock .sec,
.sc {
    width: 230px;
    height: 485px;
    transform: rotate(0.1deg);
}

.dl,
.snrs,
.snst,
.solarn,
.moonm,
.grg,
.zfbl,
.hr,
.sr,
.sst,
.mn,
.sc {
    display: flex;
    justify-content: center;

    /* align-items: center; */
    position: absolute;
    border-radius: 50%;
}

.snrs::before {
    content: '';
    position: absolute;
    top: 15.5px;
    left: 15.5px;
    width: 769px;
    height: 769px;
    background: var(--day-night-ring, #001b30);
    border-radius: 50%;
    z-index: 7;
    -webkit-mask: radial-gradient(circle, transparent 0 312px, #000 313px);
    mask: radial-gradient(circle, transparent 0 312px, #000 313px);
}

.snrs::after {
    content: '';
    position: absolute;
    top: 88px;
    left: 88px;
    width: 624px;
    height: 624px;
    background: var(--day-night-center, var(--day-night-ring, #001b30));
    border-radius: 50%;
    z-index: 6;
    opacity: 0.24;
    pointer-events: none;
}

.sr {
    font-size: 50px;
    font-family: 'Times New Roman', Times, serif;
    color: #01290e;
    z-index: 30;
}

.sr::before {
    content: '';
    position: absolute;
    z-index: 7;
}

.sst {
    font-size: 50px;
    font-family: 'Times New Roman', Times, serif;
    color: #01290e;
    z-index: 30;
}

.sst::before {
    content: '';
    position: absolute;
    z-index: 9;
}

.snst::before {
    content: '';
    position: absolute;
    display: none;
}

.solarn::before {
    content: '';
    position: absolute;
    top: 15.5px;
    width: 73px;
    height: 73px;
    background: url(IMG/Sonne.png) center / contain no-repeat;
    z-index: inherit;
    transform: rotate(var(--solar-noon-counter-angle, 0deg));
}

.moonm::before {
    content: '';
    position: absolute;
    top: 28px;
    width: 46px;
    height: 47px;
    background: var(--moon-phase-image, url(IMG/Mond_.png)) center / contain no-repeat;
    z-index: inherit;
    transform: rotate(var(--moon-maximum-counter-angle, 0deg));
}

.dl::before {
    content: '';
    position: absolute;
}

.grg::before {
    content: '';
    position: absolute;
    display: none;
}

.zfbl::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: url(IMG/Zifferblatt_DE.png);
    border-radius: 50%;
    z-index: 0;
    transform: rotate(0deg);
}

.hr::before {
    content: '';
    position: absolute;
    width: 52px;
    height: 172px;
    background: url(IMG/StundenZeiger_ROT_Schatten.png);
    z-index: 10;
    border-radius: 6px 6px 0 0;
}

.mn::before {
    content: '';
    position: absolute;
    width: 52px;
    height: 235px;
    background: url(IMG/MinutenZeiger_ROT_Schatten.png);
    z-index: 11;
    border-radius: 6px 6px 0 0;
}

.sc::before {
    content: '';
    position: absolute;
    width: 3px;
    height: 300px;
    background: #353434;
    z-index: 12;
    border-radius: 6px 6px 0 0;
    box-shadow: -9px 6px 6px #cbcbcb;
}

/* ═══════════════════════════════════════════════
   JAHRESZEITEN-BUTTONS  –  responsives Layout
   ═══════════════════════════════════════════════

   Geräteklassen (Bootstrap-orientiert):
     xs   < 360 px   (kleine Phones: iPhone SE)
     sm   360–575 px (normale Phones: iPhone 14, Galaxy S)
     md   576–767 px (große Phones / kleines Tablet Hochformat)
     lg   768–991 px (Tablet Querformat / kleines Notebook)
     xl   ≥ 992 px   (Desktop / großes Tablet)

   Strategie:
     xs/sm  → 2 × 2  (zwei Spalten, zwei Zeilen), mittig
     md     → 4 × 1  (alle vier nebeneinander, eine Zeile)
     lg/xl  → 4 × 1  (wie md, etwas größere Schrift)
   ═══════════════════════════════════════════════ */
/* ── Einstellungen-Button (rechts oben) ── */
.settings-btn {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 100001;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(112, 130, 118, 0.82);
    border: 1.5px solid rgba(101, 122, 109, 0.82);
    border-radius: 50%;
    color: #b7d4c0;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: background 0.2s, box-shadow 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.settings-btn svg {
    width: 22px;
    height: 22px;
}

.settings-btn:hover {
    background: rgba(112, 130, 118, 0.97);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.site-menu {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 100001;
    font-family: 'Times New Roman', Times, serif;
}

.site-menu summary {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    background: rgba(112, 130, 118, 0.82);
    border: 1.5px solid rgba(101, 122, 109, 0.82);
    border-radius: 50%;
    color: #b7d4c0;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    font-variant: small-caps;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    -webkit-tap-highlight-color: transparent;
}

.site-menu summary::-webkit-details-marker {
    display: none;
}

.site-menu nav {
    position: absolute;
    top: 52px;
    left: 0;
    min-width: 178px;
    padding: 8px;
    background: rgba(183, 204, 192, 0.96);
    border: 1px solid rgba(101, 130, 109, 0.45);
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(13, 63, 0, 0.22);
}

.site-menu a {
    display: block;
    padding: 8px 10px;
    color: #0d3f00;
    text-decoration: none;
    font-variant: small-caps;
    font-size: 1rem;
}

.site-menu a:hover,
.site-menu a:focus-visible {
    background: rgba(101, 130, 109, 0.22);
    border-radius: 8px;
}

.privacy-main {
    width: min(760px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 76px 0 44px;
    color: #0d3f00;
    font-family: 'Times New Roman', Times, serif;
}

.privacy-panel {
    padding: 24px;
    background: rgba(183, 204, 192, 0.52);
    border: 1px solid rgba(101, 130, 109, 0.4);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(13, 63, 0, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.privacy-panel h1 {
    font-size: 2rem;
    font-variant: small-caps;
    line-height: 1.1;
    margin-bottom: 6px;
}

.privacy-panel h2 {
    margin-top: 22px;
    font-size: 1.15rem;
    font-variant: small-caps;
    color: #4a6652;
}

.privacy-panel p,
.privacy-panel li {
    font-size: 1.08rem;
    line-height: 1.55;
}

.privacy-panel p {
    margin-top: 10px;
}

.privacy-panel ul {
    margin: 10px 0 0 20px;
}

.privacy-panel a {
    color: #0d3f00;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.privacy-meta {
    color: #4a6652;
    font-style: italic;
}

@media (max-width: 520px) {
    .privacy-main {
        width: min(100vw - 20px, 760px);
        padding: 68px 0 28px;
    }

    .privacy-panel {
        padding: 18px;
        border-radius: 14px;
    }

    .privacy-panel h1 {
        font-size: 1.75rem;
    }

    .privacy-panel h2 {
        font-size: 1.18rem;
    }

    .privacy-panel p,
    .privacy-panel li {
        font-size: 1.12rem;
        line-height: 1.58;
    }
}

.jahreszeiten-buttons {
    position: fixed;
    width: 100vw;
    max-width: 100vw;
    bottom: 10px;
    left: 0;
    right: 0;

    /* volle Viewport-Breite als Basis */
    z-index: 100000;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    box-sizing: border-box;
}

.jz-btn {
    font-family: 'Times New Roman', Times, serif;
    font-variant: small-caps;
    color: rgb(183, 212, 192);
    background: rgba(112, 130, 118, 0.82);
    border: 1.5px solid rgba(101, 122, 109, 0.82);
    border-radius: 18px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    transition: background-color 0.2s, box-shadow 0.2s;
    -webkit-tap-highlight-color: transparent;
    text-align: center;
    white-space: nowrap;

    /* Standardgröße (Desktop) */
    font-size: 26px;
    padding: 0px 22px;
    flex: 0 0 auto;

    /* Desktop: Buttons wachsen nicht */
}

.jz-btn:hover {
    background: rgba(112, 130, 118, 0.82)!important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.jz-btn.aktiv {
    background: rgba(13, 63, 0, 0.18)!important;
    border-width: 2.5px;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

/* ── xs: < 360 px  (z.B. iPhone SE 1st gen 320 px) ── */
@media (max-width: 359px) {
    .jahreszeiten-buttons {
        flex-direction: column;
        gap: 6px;
        padding: 0 8px;
        bottom: 8px;
    }

    .jz-btn {
        /* 2 × 2 Raster: jeder Button nimmt knapp die Hälfte */
        flex: 0 0 auto;
        width: min(44vw, 320px);
        min-height: 38px;
        font-size: 17px;
        padding: 6px 8px;
        line-height: 1.1;
    }
}

/* ── sm: 360 – 575 px  (iPhone 14, Galaxy S, Pixel) ── */
@media (min-width: 360px) and (max-width: 575px) {
    .jahreszeiten-buttons {
        flex-direction: column;
        gap: 12px;
        padding: 0 10px;
        bottom: 10px;
    }

    .jz-btn {
        /* 2 × 2 Raster */
        flex: 0 0 auto;
        width: min(44vw, 320px);
        min-height: 42px;
        font-size: 19px;
        padding: 7px 10px;
        line-height: 1.1;
    }
}

/* ── md: 576 – 767 px  (große Phones / Tablet Hochformat) ── */
@media (min-width: 576px) and (max-width: 767px) {
    .jahreszeiten-buttons {
        gap: 8px;
        padding: 0 12px;
        bottom: 12px;
    }

    .jz-btn {
        /* 4 × 1: alle nebeneinander */
        flex: 0 0 auto;
        font-size: 16px;
        padding: 0px 16px;
    }
}

/* ── lg: 768 – 991 px  (Tablet Querformat / kleines Notebook) ── */
@media (min-width: 768px) and (max-width: 991px) {
    .jz-btn {
        font-size: 15px;
        padding: 0px 20px;
    }
}

/* ── xl: ≥ 992 px  (Desktop) – bereits durch Standardwerte abgedeckt ── */
/* ══════════════════════════════════════════════
   Vorschau-Banner (temporärer Ort)
   ══════════════════════════════════════════════ */
#vorschau-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px 9px 14px;
    background: rgba(112, 130, 118, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(58, 102, 69, 0.6);
    color: #cae6d3;
    font-family: 'Times New Roman', Times, serif;
    font-variant: small-caps;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    animation: vb-slide-in 0.3s ease;
}

#vorschau-banner.vb-fade {
    animation: vb-slide-out 0.4s ease forwards;
}

@keyframes vb-slide-in {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes vb-slide-out {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

.vb-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.vb-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-style: italic;
}

.vb-cancel {
    flex-shrink: 0;
    background: rgba(202, 230, 211, 0.18);
    border: 1.5px solid rgba(202, 230, 211, 0.6);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cae6d3;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    -webkit-tap-highlight-color: transparent;
    animation: vb-pulse 2s ease-in-out 3;
}

@keyframes vb-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(202, 230, 211, 0);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(239, 252, 243, 0.95);
    }
}

.vb-cancel:hover {
    background: rgba(202, 230, 211, 0.32);
    border-color: rgba(202, 230, 211, 0.8);
}
}
