/* =============================================================
   GRAZYBEATS THEME – Vollständiges CSS
   PHP-Fusion V9 kompatibel | Vanilla CSS | Mobile-First
   Jahreszeiten + Tageszeit System
   ============================================================= */

/* ── GOOGLE FONTS ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=Exo+2:ital,wght@0,300;0,400;0,600;0,700;1,300&display=swap');

/* ── CSS VARIABLEN – DEFAULT (Winter/Nacht = Grundzustand) ── */
:root {
    /* Basis-Farben */
    --clr-bg-deep:      #020810;
    --clr-bg-mid:       #050d1a;
    --clr-bg-panel:     rgba(5, 14, 30, 0.75);
    --clr-border:       rgba(0, 140, 220, 0.3);
    --clr-accent:       #00b8e6;
    --clr-accent-glow:  rgba(0, 184, 230, 0.45);
    --clr-accent2:      #0055a0;
    --clr-text:         #d0e8f5;
    --clr-text-muted:   #6a9bb5;
    --clr-heading:      #e8f4ff;
    --clr-cap-bg:       rgba(0, 80, 140, 0.6);
    --clr-cap-text:     #7ee8ff;
    --clr-footer-bg:    rgba(2, 8, 20, 0.95);
    --clr-nav-bg:       rgba(3, 10, 22, 0.92);
    --clr-nav-hover:    rgba(0, 140, 220, 0.15);

    /* Wassermühle / Animation */
    --water-color-1:    #003d6b;
    --water-color-2:    #006db3;
    --water-color-3:    #00b8e6;
    --water-foam:       rgba(180, 230, 255, 0.7);

    /* Transition */
    --transition-season: background-color 2s ease, color 1s ease, border-color 1.5s ease;

    /* Typographie */
    --font-display:     'Cinzel Decorative', serif;
    --font-body:        'Exo 2', sans-serif;

    /* Layout */
    --sidebar-width:    220px;
    --content-max:      1200px;
    --radius-panel:     12px;
    --radius-btn:       6px;
    --blur-panel:       blur(6px);
}

/* ── JAHRESZEITEN-KLASSEN ──────────────────────────────────── */

/* FRÜHLING */
body.season-spring {
    --clr-bg-deep:      #0a1a0d;
    --clr-bg-mid:       #122018;
    --clr-bg-panel:     rgba(10, 30, 15, 0.72);
    --clr-border:       rgba(60, 200, 100, 0.35);
    --clr-accent:       #3dca6e;
    --clr-accent-glow:  rgba(61, 202, 110, 0.4);
    --clr-accent2:      #1a7a40;
    --clr-text:         #c8f0d5;
    --clr-text-muted:   #6aaa80;
    --clr-heading:      #e0ffe8;
    --clr-cap-bg:       rgba(20, 90, 40, 0.65);
    --clr-cap-text:     #90ffb8;
    --water-color-1:    #1a4d2a;
    --water-color-2:    #2d8a50;
    --water-color-3:    #3dca6e;
    --water-foam:       rgba(180, 255, 210, 0.7);
}

/* SOMMER */
body.season-summer {
    --clr-bg-deep:      #0d0800;
    --clr-bg-mid:       #1a1000;
    --clr-bg-panel:     rgba(25, 15, 0, 0.72);
    --clr-border:       rgba(255, 180, 0, 0.35);
    --clr-accent:       #ffb800;
    --clr-accent-glow:  rgba(255, 184, 0, 0.4);
    --clr-accent2:      #cc6600;
    --clr-text:         #fff5d0;
    --clr-text-muted:   #b08840;
    --clr-heading:      #fff8e0;
    --clr-cap-bg:       rgba(120, 60, 0, 0.65);
    --clr-cap-text:     #ffd060;
    --water-color-1:    #00608a;
    --water-color-2:    #0099cc;
    --water-color-3:    #33ccff;
    --water-foam:       rgba(220, 245, 255, 0.8);
}

/* HERBST */
body.season-autumn {
    --clr-bg-deep:      #0d0500;
    --clr-bg-mid:       #1a0d00;
    --clr-bg-panel:     rgba(25, 10, 0, 0.75);
    --clr-border:       rgba(200, 90, 20, 0.35);
    --clr-accent:       #e06020;
    --clr-accent-glow:  rgba(220, 90, 30, 0.4);
    --clr-accent2:      #8b2500;
    --clr-text:         #f0d5b0;
    --clr-text-muted:   #9a6030;
    --clr-heading:      #ffe8c8;
    --clr-cap-bg:       rgba(100, 35, 0, 0.65);
    --clr-cap-text:     #ffaa55;
    --water-color-1:    #2a1500;
    --water-color-2:    #6b3000;
    --water-color-3:    #c05010;
    --water-foam:       rgba(255, 220, 160, 0.65);
}

/* WINTER = :root default, aber explizit: */
body.season-winter {
    --clr-bg-deep:      #020810;
    --clr-bg-mid:       #050d1a;
    --clr-bg-panel:     rgba(5, 14, 30, 0.75);
    --clr-border:       rgba(0, 140, 220, 0.3);
    --clr-accent:       #00b8e6;
    --clr-accent-glow:  rgba(0, 184, 230, 0.45);
    --water-color-3:    #aaddff;
    --water-foam:       rgba(200, 235, 255, 0.75);
}

/* ── TAGESZEITEN ──────────────────────────────────────────── */
/* time-day überschreibt Hintergrund/Text – Akzentfarben der Jahreszeit bleiben */
body.time-day {
    --clr-bg-deep:      #e8f0f8;
    --clr-bg-mid:       #d0dcea;
    --clr-bg-panel:     rgba(255, 255, 255, 0.78);
    --clr-text:         #1a2530;
    --clr-text-muted:   #4a6075;
    --clr-heading:      #0d1820;
    --clr-cap-bg:       rgba(0, 80, 140, 0.12);
    --clr-cap-text:     #004070;
    --clr-nav-bg:       rgba(230, 240, 255, 0.97);
    --clr-footer-bg:    rgba(215, 228, 245, 0.98);
    --clr-border:       rgba(0, 100, 180, 0.25);
}
/* Tagmodus: Hintergrund-Overlay stark reduzieren */
body.time-day::before { opacity: 0.08; }

/* Tagmodus + Jahreszeiten-Kombinationen */
body.time-day.season-spring {
    --clr-bg-deep:   #e8f5ec;
    --clr-bg-mid:    #d0ecda;
    --clr-bg-panel:  rgba(240, 255, 244, 0.8);
    --clr-text:      #0d2015;
    --clr-heading:   #051008;
    --clr-cap-bg:    rgba(20, 100, 50, 0.12);
    --clr-cap-text:  #0a5025;
    --clr-nav-bg:    rgba(220, 250, 230, 0.97);
}
body.time-day.season-summer {
    --clr-bg-deep:   #fff8e8;
    --clr-bg-mid:    #faefd0;
    --clr-bg-panel:  rgba(255, 252, 238, 0.8);
    --clr-text:      #2a1a00;
    --clr-heading:   #150d00;
    --clr-cap-bg:    rgba(180, 90, 0, 0.1);
    --clr-cap-text:  #7a3a00;
    --clr-nav-bg:    rgba(255, 248, 220, 0.97);
}
body.time-day.season-autumn {
    --clr-bg-deep:   #faf0e6;
    --clr-bg-mid:    #f0e0cc;
    --clr-bg-panel:  rgba(255, 248, 238, 0.8);
    --clr-text:      #2a1400;
    --clr-heading:   #180800;
    --clr-cap-bg:    rgba(150, 50, 0, 0.1);
    --clr-cap-text:  #7a2800;
    --clr-nav-bg:    rgba(255, 240, 220, 0.97);
}
body.time-day.season-winter {
    --clr-bg-deep:   #eaf4ff;
    --clr-bg-mid:    #d5e8fa;
    --clr-bg-panel:  rgba(240, 250, 255, 0.8);
    --clr-text:      #0a1a2a;
    --clr-heading:   #050e18;
    --clr-cap-bg:    rgba(0, 70, 140, 0.1);
    --clr-cap-text:  #003870;
    --clr-nav-bg:    rgba(225, 242, 255, 0.97);
}
/* Nachtmodus ist der Default (:root + season-Klassen) */
body.time-night { /* Explizit leer – Standardwerte gelten */ }

/* ── GLOBALE RESET & BASIS ────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0; padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--clr-bg-deep);
    background-image: url('../hg.jpg');
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--clr-text);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.75;
    transition: var(--transition-season);
    -webkit-user-select: none;
    user-select: none;
    overflow-x: hidden;
}

/* Tagmodus: weißer Overlay über hg.jpg damit Text lesbar bleibt */
body.time-day::after {
    content: "";
    position: fixed;
    inset: 0;
    background: var(--clr-bg-deep);
    opacity: 0.88;
    pointer-events: none;
    z-index: 0;
    transition: background 1.5s ease, opacity 1.5s ease;
}
/* Alle Content-Elemente müssen über dem Overlay liegen */
body.time-day .main-header,
body.time-day .sub-header,
body.time-day .content-wrapper,
body.time-day .main-footer {
    position: relative;
    z-index: 1;
}
/* Toggle immer fixed – niemals position:relative */
/* #season-toggle ist jetzt im Footer-Fluss, kein fixed mehr */

/* Hintergrund-Overlay für Tiefe */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 100%,
        var(--clr-accent2) 0%, transparent 70%),
        linear-gradient(to bottom, var(--clr-bg-deep) 0%, transparent 40%);
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
    transition: background 2s ease;
}

.news-body, .panel-body, .side-body, input, textarea, select {
    -webkit-user-select: text;
    user-select: text;
}

img, video {
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: auto;
}

a {
    color: var(--clr-accent);
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}
a:hover { color: var(--clr-heading); opacity: 0.9; }

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    color: var(--clr-heading);
    letter-spacing: 0.05em;
}

/* ── SEASON TOGGLE BUTTON ─────────────────────────────────── */
#season-toggle {
    display: inline-flex;
    gap: 4px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 30px;
    padding: 4px 8px;
    backdrop-filter: var(--blur-panel);
    margin: 0 auto 10px;
}
body.time-day #season-toggle {
    background: rgba(30,30,30,0.75);
    border-color: rgba(0,0,0,0.25);
}

.st-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px 6px;
    border-radius: 20px;
    transition: background 0.3s, transform 0.2s;
    line-height: 1;
}
.st-btn:hover { background: var(--clr-accent-glow); transform: scale(1.15); }
.st-btn.active { background: var(--clr-accent-glow); box-shadow: 0 0 8px var(--clr-accent); }

/* ── HEADER ───────────────────────────────────────────────── */
.main-header {
    position: relative;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, transparent 100%);
    border-bottom: 1px solid var(--clr-border);
    overflow: hidden;
    z-index: 100;
}

/* ── WASSERMÜHLEN-ANIMATION ───────────────────────────────── */
.watermill-container {
    position: relative;
    width: 100%;
    /* Seitenverhältnis 1200:200 = 6:1 → skaliert mit jedem Viewport */
    aspect-ratio: 6 / 1;
    min-height: 80px;   /* nicht kleiner als 80 px auf sehr schmalen Screens */
    max-height: 220px;  /* nicht höher als 220 px auf sehr breiten Screens   */
    overflow: hidden;
    background: linear-gradient(135deg, #000 0%, var(--clr-bg-deep) 60%, var(--clr-bg-mid) 100%);
}

/* Hintergrund-Berge/Landschaft */
.wm-landscape {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
}

/* Fluss-Kanal */
.wm-river {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    height: 55px;
    background: linear-gradient(to bottom,
        var(--water-color-2) 0%,
        var(--water-color-1) 100%);
    overflow: hidden;
}

/* Fließende Wasser-Wellen */
.wm-river::before {
    content: "";
    position: absolute;
    top: 0; left: -200%;
    width: 400%;
    height: 18px;
    background: repeating-linear-gradient(90deg,
        transparent 0px, transparent 30px,
        var(--water-foam) 30px, var(--water-foam) 45px,
        transparent 45px, transparent 80px,
        var(--water-color-3) 80px, var(--water-color-3) 90px
    );
    opacity: 0.55;
    animation: river-flow 28s linear infinite;
}
.wm-river::after {
    content: "";
    position: absolute;
    top: 8px; left: -100%;
    width: 300%;
    height: 12px;
    background: repeating-linear-gradient(90deg,
        transparent 0px, transparent 20px,
        var(--water-foam) 20px, var(--water-foam) 28px,
        transparent 28px, transparent 55px
    );
    opacity: 0.35;
    animation: river-flow 42s linear infinite reverse;
}

@keyframes river-flow {
    from { transform: translateX(0); }
    to   { transform: translateX(50%); }
}

/* Mühlrad SVG-Container */
.wm-wheel-wrap {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    /* Breite relativ zum Container statt fix px */
    width: clamp(55px, 9%, 110px);
    height: clamp(55px, 9%, 110px);
}

/* Das rotierende Rad */
.wm-wheel {
    width: 100%;
    height: 100%;
    animation: wheel-spin 6s linear infinite;
    filter: drop-shadow(0 0 12px var(--clr-accent));
    transform-origin: center center;
}
@keyframes wheel-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Mühlgebäude */
.wm-mill-house {
    position: absolute;
    bottom: 22%;
    left: calc(50% + 3.2%);
    width: clamp(50px, 7%, 85px);
    height: clamp(50px, 7%, 85px);
}

/* Wasserfall vom Rad */
.wm-waterfall {
    position: absolute;
    bottom: 20%;
    left: calc(50% - 0.7%);
    width: clamp(10px, 1.5%, 18px);
    height: clamp(18px, 2.9%, 35px);
    overflow: hidden;
}
.wm-waterfall::before {
    content: "";
    position: absolute;
    top: -100%;
    left: 0; right: 0;
    height: 200%;
    background: linear-gradient(to bottom,
        var(--water-color-3) 0%,
        var(--water-foam) 40%,
        var(--water-color-2) 100%);
    animation: waterfall-drop 0.8s linear infinite;
    opacity: 0.85;
}
@keyframes waterfall-drop {
    from { transform: translateY(0); }
    to   { transform: translateY(50%); }
}

/* Spritzer */
.wm-splash {
    position: absolute;
    bottom: 21%;
    left: calc(50% - 1.7%);
    width: clamp(22px, 3.3%, 40px);
    height: clamp(10px, 1.7%, 20px);
}
.wm-splash span {
    position: absolute;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--water-foam);
    animation: splash-fly 1.2s ease-out infinite;
}
.wm-splash span:nth-child(1) { left: 10px; animation-delay: 0s; }
.wm-splash span:nth-child(2) { left: 20px; animation-delay: 0.3s; }
.wm-splash span:nth-child(3) { left: 30px; animation-delay: 0.6s; }
.wm-splash span:nth-child(4) { left: 5px;  animation-delay: 0.9s; }
@keyframes splash-fly {
    0%   { transform: translate(0, 0) scale(1); opacity: 1; }
    60%  { transform: translate(var(--dx, -8px), -15px) scale(0.7); opacity: 0.7; }
    100% { transform: translate(var(--dx, -12px), 5px) scale(0.3); opacity: 0; }
}
.wm-splash span:nth-child(1) { --dx: -10px; }
.wm-splash span:nth-child(2) { --dx: 5px; }
.wm-splash span:nth-child(3) { --dx: 12px; }
.wm-splash span:nth-child(4) { --dx: -6px; }

/* Logo-Titel über Wassermühle */
.wm-title {
    position: absolute;
    top: 18px;
    left: 0; right: 0;
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--clr-heading);
    text-shadow:
        0 0 20px var(--clr-accent),
        0 0 40px var(--clr-accent-glow),
        0 2px 4px rgba(0,0,0,0.8);
    animation: title-glow 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 10;
}
@keyframes title-glow {
    0%, 100% { text-shadow: 0 0 20px var(--clr-accent), 0 0 40px var(--clr-accent-glow), 0 2px 4px rgba(0,0,0,0.8); }
    50%       { text-shadow: 0 0 30px var(--clr-accent), 0 0 60px var(--clr-accent), 0 0 80px var(--clr-accent-glow), 0 2px 4px rgba(0,0,0,0.8); }
}

/* Optionales Banner-Bild als Fallback wenn kein Canvas/SVG */
.wm-banner-fallback {
    display: none;
    width: 100%;
    max-height: 180px;
    object-fit: cover;
}
@media (prefers-reduced-motion: reduce) {
    .wm-wheel { animation: none; }
    .wm-river::before, .wm-river::after { animation: none; }
    .wm-waterfall::before { animation: none; }
    .wm-splash span { animation: none; }
    .wm-title { animation: none; }
    .wm-banner-fallback { display: block; }
}

/* ── NAVIGATION ───────────────────────────────────────────── */
.sub-header {
    background: var(--clr-nav-bg);
    border-bottom: 1px solid var(--clr-border);
    backdrop-filter: var(--blur-panel);
    position: sticky;
    top: 0;
    z-index: 500;
    transition: background 1.5s ease;
}

.nav-container {
    max-width: var(--content-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.nav-container > a {
    display: inline-flex;
    align-items: center;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--clr-text) !important;
    position: relative;
    transition: color 0.25s, background 0.25s;
}
.nav-container > a::after {
    content: "";
    position: absolute;
    bottom: 0; left: 50%; right: 50%;
    height: 2px;
    background: var(--clr-accent);
    transition: left 0.25s ease, right 0.25s ease;
}
.nav-container > a:hover {
    color: var(--clr-accent) !important;
    background: var(--clr-nav-hover);
}
.nav-container > a:hover::after { left: 10%; right: 10%; }

/* Dropdown-Support */
.nav-item { position: relative; }
.nav-dropdown {
    position: absolute;
    top: 100%; left: 0;
    min-width: 180px;
    background: var(--clr-nav-bg);
    border: 1px solid var(--clr-border);
    border-radius: 0 0 var(--radius-panel) var(--radius-panel);
    opacity: 0; pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s;
    z-index: 600;
}
.nav-item:hover .nav-dropdown {
    opacity: 1; pointer-events: auto; transform: translateY(0);
}
.nav-dropdown a {
    display: block;
    padding: 10px 16px;
    color: var(--clr-text) !important;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s, color 0.2s;
}
.nav-dropdown a:hover { background: var(--clr-nav-hover); color: var(--clr-accent) !important; }

.menu-toggle {
    display: none;
    background: var(--clr-accent);
    color: #000;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 10px 18px;
    cursor: pointer;
    border-radius: var(--radius-btn);
    margin: 8px 16px;
    letter-spacing: 0.05em;
    transition: background 0.2s, transform 0.1s;
}
.menu-toggle:active { transform: scale(0.97); }

/* ── LAYOUT CONTAINER ─────────────────────────────────────── */
.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 20px 12px;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.main-content {
    flex: 1;
    min-width: 0;
    order: 2;
}

.side-column {
    width: var(--sidebar-width);
    flex-shrink: 0;
}
.left-side  { order: 1; }
.right-side { order: 3; }

/* ── PANELS ───────────────────────────────────────────────── */
.news-box, .panel-container, .side-panel {
    background: var(--clr-bg-panel);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-panel);
    margin-bottom: 12px;
    backdrop-filter: var(--blur-panel);
    overflow: hidden;
    transition: border-color 1.5s ease, background 1.5s ease;
    position: relative;
}

/* Glow-Rand-Effekt beim Hover */
.news-box:hover, .panel-container:hover, .side-panel:hover {
    border-color: var(--clr-accent);
    box-shadow: 0 0 18px var(--clr-accent-glow), inset 0 0 20px rgba(0,0,0,0.2);
}

/* Caption / Header */
.capmain, .scapmain {
    background: var(--clr-cap-bg);
    padding: 10px 16px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--clr-cap-text);
    border-bottom: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 1.5s ease;
}
.capmain::before, .scapmain::before {
    content: "";
    display: inline-block;
    width: 4px; height: 14px;
    background: var(--clr-accent);
    border-radius: 2px;
    flex-shrink: 0;
}

.news-body, .panel-body, .side-body {
    padding: 14px 16px;
    line-height: 1.8;
    color: var(--clr-text);
}

/* Trennlinie unter Panels */
.side-panel::after, .panel-container::after, .news-box::after {
    content: "";
    display: block;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--clr-accent), transparent);
    margin: 0 auto 6px;
    opacity: 0.4;
}

/* ── SPACER ───────────────────────────────────────────────── */
.spacer { height: 14px; }

/* ── AVATAR ───────────────────────────────────────────────── */
.avatar-spin img {
    width: 150px !important;
    height: 150px !important;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--clr-accent);
    box-shadow: 0 0 16px var(--clr-accent-glow);
    transition: transform 0.9s cubic-bezier(.17,.67,.44,1.3), box-shadow 0.5s;
}
.avatar-spin img:hover {
    transform: rotate(360deg) scale(1.06);
    box-shadow: 0 0 30px var(--clr-accent), 0 0 60px var(--clr-accent-glow);
}

/* ── BANNER GLOW ──────────────────────────────────────────────────── */
.glow-banner {
    display: block;
    width: 100%;                      /* fluid – füllt den Link-Container */
    max-width: min(400px, 100%);      /* max. 400 px, aber nie breiter als Screen */
    height: auto;                     /* Seitenverhältnis erhalten */
    margin: 0 auto;                   /* zentrieren */
    border-radius: 8px;
    box-shadow: 0 0 15px 3px var(--clr-accent);
    animation: glow-pulse 3s infinite ease-in-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Banner-Link selbst auch fluid machen */
a:has(> .glow-banner),
.banner-link {
    display: block;
    width: 100%;
    max-width: min(400px, 100%);
    margin: 0 auto;
    text-align: center;
}

@keyframes glow-pulse {
    0%,100% { box-shadow: 0 0 15px 3px var(--clr-accent-glow); }
    50%      { box-shadow: 0 0 28px 8px var(--clr-accent); }
}
.glow-banner:hover {
    animation-play-state: paused;
    box-shadow: 0 0 25px 8px #ffc800;
    transform: scale(1.02);
}

@media (max-width: 480px) {
    .glow-banner { border-radius: 5px; }
    .glow-banner:hover { transform: none; } /* kein Scale auf Touch */
}

/* ── RUNDES BILD MIT DREHUNG ──────────────────────────────── */
.rundes-bild {
    width: 100px; height: 100px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.6s ease-in-out;
}
.rundes-bild:hover { transform: rotate(360deg); }

/* ── RESPONSIVE BILD ──────────────────────────────────────── */
/* ── RESPONSIVE BILD ──────────────────────────────────────────────── */
.responsive-img {
    display: block;
    width: 100%;           /* füllt den Container */
    max-width: 100%;       /* niemals breiter als Elternelement */
    height: auto;          /* Seitenverhältnis erhalten */
    margin: 0 auto;        /* horizontal zentrieren */
    object-fit: contain;   /* kein Abschneiden */
}

/* Optionale Größenbegrenzungen per Modifier-Klasse */
.responsive-img.img-sm { max-width: 240px; }
.responsive-img.img-md { max-width: 400px; }
.responsive-img.img-lg { max-width: 700px; }

@media (max-width: 480px) {
    .responsive-img { max-width: 100vw; }
}

/* ── ONLINE PANEL ─────────────────────────────────────────── */
#smart_online_panel a.aou-name-link,
#smart_online_panel a.aou-name-link:link,
#smart_online_panel a.aou-name-link:visited { color: inherit !important; text-decoration: none !important; }
#smart_online_panel a.aou-name-link:hover { opacity: 0.75; }

/* ── FOOTER ───────────────────────────────────────────────── */
.main-footer {
    background: var(--clr-footer-bg);
    border-top: 1px solid var(--clr-border);
    padding: 22px 16px;
    text-align: center;
    font-size: 0.78rem;
    color: var(--clr-text-muted);
    transition: background 1.5s ease;
    position: relative;
    z-index: 10;
}
.footer-link { color: var(--clr-text-muted); transition: color 0.3s; }
.footer-link:hover { color: var(--clr-accent); }
.footer-separator { color: var(--clr-border); margin: 0 8px; }

/* ── SEASON INDICATOR ─────────────────────────────────────── */
.season-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    padding: 3px 10px;
    border: 1px solid var(--clr-border);
    border-radius: 20px;
    color: var(--clr-text-muted);
    margin-top: 6px;
}

/* ── FORMULAR / PROFILE ───────────────────────────────────── */
#userfieldsform .profile-field-cat,
#userfieldsform fieldset legend,
#userfieldsform h4 {
    width: 100%;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--clr-cap-text);
    margin-top: 20px;
    margin-bottom: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--clr-border);
    clear: both;
}
#userfieldsform .form-group {
    display: table;
    width: 100%;
    margin-bottom: 8px;
}
#userfieldsform .form-group > label,
#userfieldsform .form-group > .control-label {
    display: table-cell;
    width: 35%;
    vertical-align: middle;
    padding-right: 15px;
    color: var(--clr-text-muted);
    white-space: nowrap;
}
#userfieldsform .form-group > .col-xs-12,
#userfieldsform .form-group > div:not(.checkbox):not(.radio) {
    display: table-cell;
    width: 65%;
    vertical-align: middle;
    float: none !important;
}
#userfieldsform input[type="text"],
#userfieldsform input[type="email"],
#userfieldsform input[type="password"],
#userfieldsform select,
#userfieldsform textarea {
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-btn);
    color: var(--clr-text);
    padding: 7px 10px;
    width: 100%;
    max-width: 400px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
#userfieldsform input:focus,
#userfieldsform select:focus,
#userfieldsform textarea:focus {
    border-color: var(--clr-accent);
    box-shadow: 0 0 8px var(--clr-accent-glow);
    outline: none;
}

/* ── MOBILE ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    body { background-attachment: scroll; }

    .watermill-container { min-height: 60px; }
    .wm-title { font-size: clamp(0.9rem, 3.5vw, 1.2rem); top: 8px; }

    .content-wrapper { flex-direction: column; padding: 10px 8px; }
    .side-column { width: 100%; order: 3; }
    .main-content { order: 1; width: 100%; }

    .menu-toggle { display: block; }
    .sub-header { display: none; position: static; }
    .sub-header.open { display: block; }
    .nav-container { flex-direction: column; }
    .nav-container > a { width: 100%; justify-content: center; padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.06); }


    #userfieldsform .form-group { display: block; }
    #userfieldsform .form-group > label { display: block; width: 100%; white-space: normal; }
    #userfieldsform .form-group > div { display: block; width: 100%; }
}

@media (max-width: 480px) {
    .watermill-container { min-height: 50px; }
    .wm-banner-fallback { display: none; }
}

/* ── ACCESSIBILITY ────────────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--clr-accent);
    outline-offset: 3px;
}
@media (prefers-contrast: high) {
    :root {
        --clr-text: #ffffff;
        --clr-bg-panel: rgba(0,0,0,0.9);
        --clr-border: rgba(255,255,255,0.5);
    }
}
