html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1; /* Füllt den Platz zwischen Header und Footer */
}


/* =============================
   Farben & Variablen
   ============================= */
:root{
    --blue:#0C3274;
    --primary:burlywood;
    --primary-100:#fff6ea;
    --primary-200:#f5e4c7;
    --primary-300:#e8cfa0;
    --text:#0c0d0e;
    --muted:#6b7280;
    --bg:burlywood;
    --card: #ddcba5;
    --ring:rgba(12,50,116,.18);
    --shadow:0 10px 24px rgba(0,0,0,.08),0 2px 6px rgba(0,0,0,.06);
    --radius:18px;
}

[data-theme="dark"]{
    --bg:burlywood;
    --card:#0e172a;
    --text:#e3e4e8;
    --muted:#9ca3af;
    --primary-100:#1c2a3e;
    --primary-200:#273852;
    --primary-300:#374863;
}

/* Guard: mobile menu only visible when .open */
#mobile-menu:not(.open) {
    display: none !important;
}

/* =============================
   Reset & Basis
   ============================= */
*{box-sizing:border-box}
html,body{height:100%}
body{
    margin:0;
    font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
    color:var(--text);
    background:var(--bg);
    line-height:1.55;
    scroll-behavior:smooth;
    text-rendering:optimizeLegibility;
}
h1,h2,h3{font-family:"Secular One", Arial, sans-serif; letter-spacing:.3px; margin:0 0 .5rem 0; color:var(--blue)}
p{margin:.25rem 0 1rem}
a{color:var(--blue); text-decoration:none}
img{max-width:100%; height:auto; display:block}
.container{width:min(1100px, 92vw); margin-inline:auto}

/* =============================
   Header / Navigation
   ============================= */
header{position:sticky; top:0; z-index:50; backdrop-filter:saturate(160%) blur(6px); background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.72)); border-bottom:1px solid rgba(12,50,116,.08)}
[data-theme="dark"] header{background:linear-gradient(180deg, rgba(14,23,42,.92), rgba(14,23,42,.72)); border-bottom-color:rgba(255,255,255,.08)}
.nav{display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.65rem 0}
.brand{display:flex; align-items:center; gap:.75rem}
.brand img{width:56px; height:auto}
.brand .title{font-family:"Secular One"; font-size:1.15rem; line-height:1; color:var(--blue)}
.menu{display:flex; gap:1rem; align-items:center}
.menu a{padding:.6rem .9rem; border-radius:999px; font-weight:600; color:var(--blue)}
.menu a:hover{background:var(--primary-100)}
.burger{display:none; border:none; background:transparent; padding:.5rem; border-radius:10px}
.burger:focus-visible{outline:3px solid var(--ring)}
@media (max-width: 860px){.menu{display:none}.burger{display:block}.mobile{display:none; position:fixed; inset:56px 0 auto 0; background:var(--card); border-bottom:1px solid rgba(12,50,116,.08); box-shadow:var(--shadow)}.mobile a{display:block; padding:1rem 1.25rem; border-bottom:1px dashed rgba(12,50,116,.08); color:var(--blue); font-weight:600}.mobile a:last-child{border-bottom:none}.mobile.open{display:block}}

/* =============================
   Hero, Sections, Cards
   ============================= */
section{padding:clamp(2.2rem, 2.5vw + 1.2rem, 4rem) 0}
.card{background:var(--card); border-radius:var(--radius); box-shadow:var(--shadow); padding:clamp(1rem, 1.2rem + 1.2vw, 1.6rem)}

/* =============================
   Kalender
   ============================= */
.calendar .grid{display:grid; grid-template-columns:repeat(8, 1fr); gap:.5rem}
.calendar .head{font-weight:700; color:var(--blue)}
.calendar .cell{background:var(--card); border-radius:10px; padding:.5rem; min-height:48px; display:flex; align-items:start; justify-content:flex-end; font-weight:600; position:relative; box-shadow:var(--shadow)}
.calendar .cell.muted{opacity:.45}
.calendar .cell.open{background:#e6f7e6; outline:2px dashed rgba(16,128,16,.35)}
.calendar .kw{background:var(--primary-200); color:#222; display:flex; align-items:center; justify-content:center}
.legend{display:flex; gap:1rem; align-items:center; margin-top:.75rem; font-size:.95rem; color:#233}
.legend .dot{width:14px; height:14px; border-radius:5px; background:#e6f7e6; outline:2px dashed rgba(16,128,16,.35)}

/* =============================
   Footer
   ============================= */
footer{padding:2rem 0; background:var(--blue); color:#fff}
footer a{color:#fff; font-weight:600}

.panel.open{transform:translateX(0)}

/* Moderne Buttons */
.btn{
    --btn-bg: var(--primary-200);
    --btn-bg-hover: var(--primary-300);
    --btn-text: var(--blue);
    --btn-ring: var(--ring);

    display:inline-flex; align-items:center; gap:.5rem;
    padding:.55rem .9rem;
    font-weight:700;
    background:var(--btn-bg);
    color:var(--btn-text);
    border:1px solid rgba(12,50,116,.10);
    border-radius:999px;
    cursor:pointer;
    transition: background .15s ease, border-color .15s ease, transform .05s ease;
}
.btn:hover{ background:var(--btn-bg-hover); border-color:rgba(12,50,116,.2) }
.btn:active{ transform:translateY(1px) }
.btn:focus-visible{ outline:3px solid var(--btn-ring); outline-offset:2px }

/* „Ghost“-Variante (dezenter) */
.btn-ghost{
    --btn-bg: #fff;
    --btn-bg-hover: #f6f8fc;
}

/* Icon-Größe angleichen */
.btn .icon{ display:inline-flex; width:1.1rem; height:1.1rem; }

/* Optional: Mobil kompakter & Text ausblenden */
@media (max-width: 520px){
    .btn{ padding:.5rem .6rem; }
    .btn .label{ display:none; }
}
