/* =====================================================================
   @titel: Welle (Ozean)
   @beschreibung: Frisches Meeresblau mit Türkis, geschwungene Wellen-Übergänge oben und unten, runde Karten. Locker und modern.
   @farben: #0369a1, #06b6d4, #f97316, #fde047
   ---------------------------------------------------------------------
   Design-Datei für den Ordner design/. Legt sich über style.css und
   layout-fix.css. Wird im Backend unter "Design" automatisch angezeigt.
   Für eigene Varianten: Datei kopieren, umbenennen (z. B. welle-v2.css)
   und oben die Farben unter ":root" ändern.
   ===================================================================== */

/* ---------- 1. Farben & Grundwerte ---------- */
:root {
    --primary-color: #0369a1;
    --primary-hover: #075985;
    --accent-color:  #f97316;
    --design-zweit:  #06b6d4;
    --design-akzent: #fde047;

    --text-main:  #0b2233;
    --text-muted: #4a6577;

    --glass-bg:     #ffffff;
    --glass-border: #d9eaf3;
    --glass-blur:   none;
    --shadow-soft:  0 1px 2px rgba(0, 0, 0, .05), 0 8px 24px rgba(11, 34, 51, .07);
    --shadow-hover: 0 2px 4px rgba(3, 105, 161, .08), 0 18px 40px rgba(3, 105, 161, .18);

    --radius-l: 24px;
    --radius-m: 18px;
    --verlauf: linear-gradient(120deg, var(--primary-color) 0%, var(--design-zweit) 100%);
}

::selection { background: var(--design-akzent); color: var(--text-main); }

/* ---------- 2. Hintergrund & Schrift ---------- */
body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    background: #f2f8fb !important;
    animation: none !important;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { letter-spacing: -0.02em; }
h1, h2 { font-weight: 800; }
main h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
a { text-underline-offset: 3px; }
/* Überschriften und Links, die in den Seiten fest auf "primary" stehen */
main h2[style*="primary-color"], main h3[style*="primary-color"] { color: var(--primary-color) !important; }

/* ---------- 3. Header ---------- */
.glass-header {
    background: rgba(255, 255, 255, .94) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: 0 6px 30px rgba(0, 0, 0, .07) !important;
}
.glass-header.scrolled { background: rgba(255, 255, 255, .98) !important; }
.nav-links > li > a { font-weight: 650; }
.nav-links li a::after { background: var(--verlauf) !important; height: 3px; }
.dropdown-menu {
    background: #fff !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius-m) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .12) !important;
    overflow: hidden;
}
.dropdown-menu a:hover, .dropdown-menu a:focus {
    background: rgba(3, 105, 161, .07) !important;
    border-left-color: var(--primary-color) !important;
}
.slogan-text {
    background: linear-gradient(90deg, var(--primary-color), var(--design-zweit), var(--primary-color)) !important;
    background-size: 300% auto !important;
    -webkit-background-clip: text !important; background-clip: text !important;
}
.nav-search-form input { background: #f2f3f5 !important; border-color: transparent !important; }
.nav-search-form input:focus { background: #fff !important; border-color: var(--primary-color) !important; }

/* ---------- 4. Hero-Bereiche (alle Seiten) ----------
   Das Seitenfoto bleibt, bekommt aber eine Tönung im Design-Stil. */
.hero-section, .hero-mensa, .search-hero,
[class$="-hero"], [class*="-hero "] {
    position: relative;
    isolation: isolate;
    border-bottom: none !important;
}
.hero-section::before, .hero-mensa::before, .search-hero::before,
[class$="-hero"]::before, [class*="-hero "]::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg, rgba(3, 105, 161, .55) 0%, rgba(6, 182, 212, .35) 100%);
    
    pointer-events: none;
}
.hero-mensa::before { background: linear-gradient(120deg, rgba(234, 88, 12, .40), rgba(245, 158, 11, .30)); }

.hero-section h1, .hero-title, .hero-mensa h1, [class$="-hero"] h1, [class*="-hero "] h1, .search-hero h1 {
    font-size: clamp(2.1rem, 5.5vw, 3.6rem) !important;
    font-weight: 850;
    letter-spacing: -0.03em;
    line-height: 1.08;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .30) !important;
}
.hero-subtitle, [class$="-hero"] p { font-size: clamp(1.05rem, 2.2vw, 1.3rem) !important; }

/* Kleiner Farbstrich unter der Hero-Überschrift */
.hero-section h1::after, [class$="-hero"] h1::after, [class*="-hero "] h1::after, .hero-mensa h1::after {
    content: "";
    display: block;
    flex: 0 0 100%;
    width: 100%;
    height: 6px;
    margin: 18px auto 0;
    background: linear-gradient(var(--design-akzent), var(--design-akzent)) center / 72px 6px no-repeat;
}

.kontakt-layout, .rdl-layout, .vollzeit-layout, .sekretariat-layout, .sv-layout, .filter-bar, .alerts-zentral { z-index: 20 !important; }

/* ---------- 5. Karten & Kacheln ---------- */
.glass-card-link, .glass-card, .info-box, .info-card, .form-panel, .team-card, .person-card, .board-card,
.beratung-card, .mensa-card, .result-card, .tab-content, .pdf-card, .anfrage-form, .admin-panel,
.explorer-panel, .editor-panel, .login-card, .abteilung-header, .tab-nav, .filter-bar {
    background: #fff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: var(--shadow-soft) !important;
}
.glass-card-link, .glass-card, .info-box, .info-card, .form-panel, .team-card, .person-card, .board-card,
.beratung-card, .mensa-card, .result-card, .tab-content, .login-card {
    border-radius: var(--radius-l) !important;
}
.glass-card-link, .team-card, .person-card, .board-card, .beratung-card, .mensa-card, .result-card, .pdf-card {
    transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease, border-color .25s ease !important;
}
.glass-card-link:hover, .glass-card-link:focus-visible,
.team-card:hover, .person-card:hover, .board-card:hover, .beratung-card:hover, .mensa-card:hover, .result-card:hover, .pdf-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: var(--shadow-hover) !important;
    border-color: rgba(3, 105, 161, .35) !important;
    background: #fff !important;
}

/* Schnellzugriff-Kacheln auf der Startseite */
.hero-section .glass-card-link { padding: 1.4rem 1rem !important; gap: .6rem !important; }
.hero-section .glass-card-link i {
    font-size: 1.6rem !important;
    width: 58px; height: 58px;
    display: grid; place-items: center;
    border-radius: 18px;
    background: rgba(3, 105, 161, .07);
    margin-bottom: .2rem !important;
}
.hero-section .glass-card-link h3 { font-size: 1rem !important; font-weight: 750; }
.hero-section .glass-card-link p { font-size: .8rem !important; }

.dynamic-news-grid article.glass-card-link img { border-bottom: none !important; }
.dynamic-news-grid article.glass-card-link:hover { transform: translateY(-4px) !important; }

.abteilung-header {
    border-left: 0 !important;
    border-radius: var(--radius-m) !important;
    position: relative;
    padding-left: 1.6rem !important;
    overflow: hidden;
}
.abteilung-header::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--verlauf); }

/* ---------- 6. Buttons & Formulare ---------- */
.btn-submit, .btn-login, .btn-save, .btn-new, .btn-tool, .btn-upload, .btn-consent, .btn-primary,
.search-box-large button, .map-consent button {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-radius: 999px !important;
    font-weight: 750 !important;
    box-shadow: 0 8px 20px rgba(3, 105, 161, .25) !important;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease !important;
}
.btn-submit:hover, .btn-login:hover, .btn-save:hover, .btn-new:hover, .btn-tool:hover, .btn-primary:hover,
.search-box-large button:hover, .map-consent button:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 26px rgba(3, 105, 161, .32) !important;
}
.tab-btn, .btn-filter { border-radius: 999px !important; font-weight: 700 !important; border-color: var(--glass-border) !important; background: #f4f4f5 !important; }
.tab-btn.active, .btn-filter.active { background: var(--primary-color) !important; color: #fff !important; border-color: transparent !important; box-shadow: 0 8px 18px rgba(3, 105, 161, .22) !important; }

input[type="text"], input[type="email"], input[type="number"], input[type="password"], input[type="search"],
input[type="date"], input[type="datetime-local"], select, textarea {
    border-radius: 14px !important;
    border: 2px solid #d9eaf3 !important;
    background-color: #fcfcfd !important;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(3, 105, 161, .14) !important;
    background-color: #fff !important;
}
.search-box-large { background: rgba(255, 255, 255, .16) !important; border-color: rgba(255, 255, 255, .35) !important; }

/* ---------- 7. Kleinigkeiten ---------- */
.alert-banner { border-radius: var(--radius-l); animation: none !important; }
.quick-nav-btn { background: #fff !important; border: 1px solid var(--glass-border) !important; color: var(--primary-color) !important; }
.quick-nav-btn:hover { background: var(--primary-color) !important; color: #fff !important; }
#a11y-toggle { background: var(--primary-color) !important; }
#trans-toggle { color: var(--primary-color) !important; border-color: var(--primary-color) !important; }
.float-panel { background: #fff !important; }
.scroll-container::-webkit-scrollbar-thumb { background: var(--primary-color); }
mark { background: var(--design-akzent) !important; color: var(--text-main) !important; }

/* ---------- 8. Footer ---------- */
.glass-footer { background: #062b40 !important; position: relative; border-top: none !important; }
.glass-footer::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--design-zweit), var(--design-akzent));
}
.glass-footer h4 { color: #fde047 !important; letter-spacing: .12em; font-size: .95rem !important; }
.glass-footer a:hover { color: #fde047 !important; }
.footer-contact i { color: #fde047 !important; }
.footer-social a:hover { background: var(--primary-color) !important; }

/* ---------- 9. Handy ---------- */
@media (max-width: 768px) {
    .hero-section .glass-grid { grid-template-columns: repeat(2, 1fr) !important; gap: .8rem !important; }
    .hero-section .glass-card-link i { width: 48px; height: 48px; font-size: 1.3rem !important; }
}

/* =====================================================================
   FORM-BAUSTEINE dieses Designs
   ===================================================================== */

/* ---------- Form: Wellen-Kante unten ---------- */
.hero-section, .hero-mensa, .search-hero, [class$="-hero"], [class*="-hero "] {
    -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 58px) no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0%2C0 H1200 V28 C1000%2C62 800%2C0 600%2C30 C400%2C60 200%2C0 0%2C32 Z' fill='black'/%3E%3C/svg%3E") bottom / 100% 60px no-repeat;
            mask: linear-gradient(#000 0 0) top / 100% calc(100% - 58px) no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0%2C0 H1200 V28 C1000%2C62 800%2C0 600%2C30 C400%2C60 200%2C0 0%2C32 Z' fill='black'/%3E%3C/svg%3E") bottom / 100% 60px no-repeat;
    padding-bottom: calc(5rem + 50px) !important;
}
@media (max-width: 768px) {
    .hero-section, .hero-mensa, .search-hero, [class$="-hero"], [class*="-hero "] {
        -webkit-mask-size: 100% calc(100% - 28px), 100% 30px; mask-size: 100% calc(100% - 28px), 100% 30px;
        padding-bottom: calc(3.5rem + 26px) !important;
    }
}

/* ---------- Karten: sehr rund, farbiger weicher Schatten ---------- */
:root { --radius-l: 28px; --radius-m: 18px; }
.glass-card-link:hover, .team-card:hover, .person-card:hover, .board-card:hover, .beratung-card:hover, .mensa-card:hover, .result-card:hover {
    transform: translateY(-8px) scale(1.01) !important;
}

/* ---------- Footer: Welle oben ---------- */
.glass-footer { margin-top: 6rem !important; }
.glass-footer::before { display: none !important; }
.glass-footer::after {
    content: ""; position: absolute; left: 0; right: 0; top: -44px; height: 46px; background: inherit;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0%2C30 C200%2C0 400%2C60 600%2C30 C800%2C0 1000%2C60 1200%2C28 V60 H0 Z' fill='black'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0%2C30 C200%2C0 400%2C60 600%2C30 C800%2C0 1000%2C60 1200%2C28 V60 H0 Z' fill='black'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
