:root {
    --bg: #ffffff;
    --surface: #f8f9fc;
    --card: rgba(255, 255, 255, 0.75);
    --border: rgba(255, 255, 255, 0.5);
    --text: #1a1c1e;
    --text-secondary: #5f6368;
    --text-muted: #5f6875;
    --primary: #0b3b5e;
    --primary-light: #e8f0f8;
    --radius-xl: 32px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow-card: 0 20px 40px -12px rgba(0, 0, 0, 0.12), 0 4px 18px rgba(0, 0, 0, 0.05);
    --shadow-nav: 0 4px 12px rgba(11, 59, 94, 0.15);
    --font-size-base: 1rem;
}

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

/* Skip-Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 10px;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 10px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f0f4fa 0%, #ffffff 50%, #f3f0fa 100%);
    color: var(--text);
    display: flex; flex-direction: column; min-height: 100vh;
    line-height: 1.5; -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
    font-size: var(--font-size-base);
}

/* Wellen */
.waves {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 20vh;
    min-height: 100px; z-index: 0; overflow: hidden;
}
.waves svg {
    position: absolute; bottom: 0; width: 200%; height: 100%;
    animation: waveMove 12s linear infinite;
}
.waves svg:nth-child(2) {
    animation-duration: 16s; opacity: 0.5;
}
@keyframes waveMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Header */
.site-header {
    background: rgba(255,255,255,0.7); backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 2rem; display: flex; align-items: center;
    justify-content: space-between; flex-wrap: wrap; gap: 1rem;
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.logo-area { display: flex; align-items: center; gap: 0.75rem; }
.logo-img { height: 42px; width: auto; display: block; border-radius: 8px; }
.logo-icon-fallback {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, #0b3b5e 0%, #1a5a7a 100%);
    border-radius: var(--radius-sm); display: flex; align-items: center;
    justify-content: center; color: white; font-weight: 700; font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(11, 59, 94, 0.3);
}
.logo-text { font-weight: 700; font-size: 1.3rem; color: var(--primary); }
.logo-text span { font-weight: 400; color: var(--text-secondary); font-size: 0.8rem; display: block; letter-spacing: 0.3px; }

/* Navigation */
.header-nav { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.header-nav a {
    text-decoration: none; color: var(--text-secondary); font-weight: 500;
    font-size: 0.95rem; padding: 0.5rem 1.1rem; border-radius: 30px;
    transition: all 0.25s ease; background: transparent;
}
.header-nav a:hover {
    background: var(--primary-light); color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.header-nav a.active {
    background: var(--primary); color: white; font-weight: 600;
    box-shadow: var(--shadow-nav);
}

/* Vorlese-Button */
.read-aloud-btn {
    background: var(--primary-light);
    border: none;
    border-radius: 30px;
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}
.read-aloud-btn:hover {
    background: var(--primary);
    color: white;
}
.read-aloud-btn:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Schriftgrößen-Umschalter */
.font-size-controls {
    display: flex;
    gap: 0.3rem;
    align-items: center;
}
.font-size-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-secondary);
    transition: background 0.2s;
}
.font-size-btn:hover,
.font-size-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.font-size-btn:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Main Content */
.main-content {
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: 2rem; position: relative; z-index: 1;
}
.bg-dots { position: absolute; top:0; left:0; width:100%; height:100%; pointer-events:none; z-index:0; opacity:0.4; }
.dot { position: absolute; width: 6px; height: 6px; background: var(--primary); border-radius: 50%; opacity: 0.12; animation: float 8s infinite ease-in-out; }
.dot:nth-child(1) { left:10%; top:20%; animation-delay:0s; }
.dot:nth-child(2) { left:85%; top:15%; animation-delay:-2s; }
.dot:nth-child(3) { left:25%; top:75%; animation-delay:-4s; }
.dot:nth-child(4) { left:70%; top:80%; animation-delay:-6s; }
.dot:nth-child(5) { left:50%; top:50%; animation-delay:-3s; }
@keyframes float {
    0%,100%{ transform: translateY(0) scale(1); }
    50%{ transform: translateY(-18px) scale(1.4); opacity:0.06; }
}

/* Karte */
.oneui-card {
    background: var(--card); backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    padding: 2.8rem 2.5rem; text-align: center;
    border: 1px solid var(--border);
    max-width: 600px; width: 100%;
    position: relative; overflow: hidden;
    animation: fadeSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.oneui-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 50px -16px rgba(0,0,0,0.15), 0 6px 20px rgba(0,0,0,0.06);
}
.card-shine {
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2) 0%, transparent 60%);
    animation: shimmer 8s infinite linear; pointer-events: none;
}
@keyframes shimmer { 0%{ transform:rotate(0deg); } 100%{ transform:rotate(360deg); } }
@keyframes fadeSlideUp { from{ opacity:0; transform:translateY(30px); } to{ opacity:1; transform:translateY(0); } }

.icon-circle {
    width: 80px; height: 80px; margin: 0 auto 1rem;
    background: var(--primary-light);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; color: var(--primary);
    animation: pulse 3s infinite ease-in-out; position: relative; z-index: 1;
}
@keyframes pulse { 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.08); } }

h1 { font-size: 2rem; font-weight: 700; color: var(--primary); margin-bottom: 0.4rem; position: relative; z-index: 1; }
.subheadline { font-size: 1rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.8rem; z-index: 1; position: relative; }
.description { font-size: 1rem; color: var(--text-secondary); margin-bottom: 1.8rem; line-height: 1.7; z-index: 1; position: relative; }
.divider { width: 60px; height: 4px; background: linear-gradient(90deg, var(--primary), #4a90e2); margin: 1.5rem auto; border-radius: 4px; opacity: 0.7; }
.date-badge {
    display: inline-block; background: var(--surface); color: var(--text);
    font-weight: 600; padding: 0.5rem 1.4rem; border-radius: 30px;
    font-size: 0.9rem; border: 1px solid var(--border); position: relative; z-index: 1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.small-info { font-size: 0.85rem; color: var(--text-muted); margin-top: 1.5rem; position: relative; z-index: 1; }
.small-info strong { color: var(--primary); }

/* Footer */
.site-footer {
    background: rgba(255,255,255,0.7); backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); border-top: 1px solid var(--border);
    padding: 1rem 2rem; display: flex; align-items: center;
    justify-content: space-between; flex-wrap: wrap; gap:0.8rem;
    font-size:0.85rem; color:var(--text-muted); z-index: 2; position: relative;
}
.footer-links { display:flex; gap:1.5rem; flex-wrap:wrap; }
.footer-links a { text-decoration:none; color:var(--text-muted); font-weight:500; transition: color 0.2s; }
.footer-links a:hover { color:var(--primary); }

@media (max-width: 650px) {
    .site-header { padding:0.8rem 1rem; flex-direction:column; align-items:flex-start; }
    .header-nav { gap:0.2rem; width:100%; overflow-x:auto; }
    .header-nav a { font-size:0.8rem; padding:0.4rem 0.8rem; }
    .site-footer { flex-direction:column; align-items:flex-start; padding:1rem; }
    .oneui-card { padding:2rem 1.2rem; }
    h1 { font-size:1.5rem; }
}

/* ========== Cookie-Banner ========== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    z-index: 1000;
    font-size: 0.9rem;
    color: var(--text);
}

.cookie-banner p {
    margin: 0;
    flex: 1 1 300px;
}

.cookie-banner a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.cookie-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
    color: var(--text-secondary);
}

.cookie-btn:hover,
.cookie-btn:focus-visible {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    outline: none;
}

.cookie-btn.primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.cookie-btn.primary:hover {
    background: #0a3350;
}

.cookie-btn:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* ========== Cookie-Modal (Einstellungen) ========== */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    padding: 1rem;
}

.cookie-modal {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    max-width: 500px;
    width: 100%;
    padding: 2rem 1.8rem;
    position: relative;
}

.cookie-modal h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.cookie-category {
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-category:last-of-type {
    border-bottom: none;
}

.cookie-category label {
    font-weight: 600;
    cursor: pointer;
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    border-radius: 26px;
    transition: 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary);
}

.toggle-switch input:focus-visible + .toggle-slider {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

.toggle-switch input:disabled + .toggle-slider {
    background-color: #e0e0e0;
    cursor: not-allowed;
}

.toggle-switch input:disabled + .toggle-slider:before {
    background-color: #f5f5f5;
}

.modal-buttons {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.5rem;
    justify-content: flex-end;
}

@media (max-width: 650px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}