/* Logo-Schriften (für das Inline-SVG-Logo, partials/logo.ejs) */
@font-face { font-family: 'Montserrat'; src: url('../fonts/Montserrat.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Nunito';     src: url('../fonts/Nunito.woff2') format('woff2');     font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Raleway';    src: url('../fonts/Raleway.woff2') format('woff2');    font-weight: 100 900; font-display: swap; }
        .stream-grid { display: flex; flex-direction: column; gap: 12px; }
        .stream-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; cursor: pointer; transition: border-color .2s, transform .15s; display: flex; align-items: center; justify-content: space-between; }
        .stream-card:hover { border-color: var(--accent); transform: translateX(4px); }
        .stream-card.active { border-color: var(--accent); background: rgba(230,57,70,0.06); }
        .stream-live { width: 8px; height: 8px; background: var(--accent2); border-radius: 50%; animation: pulse 1.5s infinite; margin-right: 8px; display: inline-block; }
        .stream-offline { width: 8px; height: 8px; background: var(--muted); border-radius: 50%; margin-right: 8px; display: inline-block; }
        @keyframes pulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:.4;transform:scale(0.8);} }

        
        .news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
        
        .news-img { width: 100%; height: 180px; object-fit: cover; display: block; }
        .news-img-placeholder { width: 100%; height: 180px; background: var(--border); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 2rem; }
        .news-body { padding: 16px 20px 20px; }
        .news-dept { font-size: 0.7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
        .news-title { font-size: 1rem; font-weight: 700; line-height: 1.35; margin-bottom: 8px; }
        .news-date { font-size: 0.78rem; color: var(--muted); }
        .news-list { 
  display: flex; 
  flex-direction: column; 
  gap: 20px; 
}

/* Container für die News-Liste (untereinander) */
.news-list { 
  display: flex; 
  flex-direction: column; 
  gap: 20px; 
}

/* Einzelne News-Card als Flex-Container */
.news-card { 
  display: flex; 
  flex-direction: row; 
  overflow: hidden; 
  transition: transform .2s, border-color .2s; 
  cursor: pointer; 
}

/* Jedes zweite Element tauscht die Richtung (Bild rechts, Text links) */
.news-card:nth-child(even) { 
  flex-direction: row-reverse; 
}

.news-card:hover { 
 
}

/* Bild-Container nimmt die Hälfte ein und begrenzt die max. Höhe */
.news-img-wrapper { 
  position: relative; 
  width: 50%; 
  max-height: 250px; /* Maximale Höhe des Bild-Bereichs */
  flex-shrink: 0; 
  overflow: hidden;
}

/* Das eigentliche Bild mit Cover-Eigenschaft */
.news-img { 
  width: 100%; 
  height: 100%; 
  max-height: 500px; /* Maximale Höhe des Bildes */
  object-fit: cover;  /* Schneidet das Bild proportional zu, sodass es den Bereich ausfüllt */
  display: block; 
}

/* Platzhalter falls kein Bild vorhanden ist */
.news-img-placeholder { 
  width: 100%; 
  height: 100%; 
  min-height: 250px;
  max-height: 500px;
  background: var(--border); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  color: var(--muted); 
  font-size: 2rem; 
}

/* Badge für externe Quellen */
.news-external-badge {
  position: absolute; 
  top: 10px; 
  right: 10px; 
  background: rgba(0,0,0,0.65); 
  backdrop-filter: blur(4px); 
  color: #fff; 
  font-size: 0.72rem; 
  padding: 4px 8px; 
  border-radius: 6px; 
  display: flex; 
  align-items: center; 
  gap: 5px; 
  font-weight: 600;
}

/* Inhaltsbereich */
.news-body { 
  padding: 24px; 
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  flex-grow: 1; 
}

.news-dept { 
  font-size: 0.7rem; 
  font-weight: 700; 
  letter-spacing: .12em; 
  text-transform: uppercase; 
  color: var(--color-primary); 
  margin-bottom: 8px; 
}

.news-title { 
  font-size: 1.15rem; 
  font-weight: 700; 
  line-height: 1.35; 
  margin-bottom: 8px; 
}

.news-content {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.news-date { 
  font-size: 0.78rem; 
  color: var(--muted); 
  margin-top: auto;
}

/* Responsive für mobile Geräte (stapelt sich wieder untereinander) */
@media (max-width: 768px) {
  .news-card,
  .news-card:nth-child(even) {
    flex-direction: column;
  }
  .news-img-wrapper,
  .news-img {
    width: 100%;
    max-height: 250px; /* Auf Smartphones etwas kompakter */
  }
}

/* Responsive Support für Mobilgeräte (bricht unter 640px wieder auf Stapel um) */
@media (max-width: 640px) {
  .news-card,
  .news-card:nth-child(even) {
    flex-direction: column;
  }
  .news-img-wrapper {
    width: 100%;
  }
}
        .partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
        .schedule-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
        .schedule-row { display: flex; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--border); gap: 20px; }
        .schedule-row:last-child { border-bottom: none; }
        .schedule-time { font-size: 0.85rem; color: var(--muted); min-width: 120px; }
        .schedule-title { font-weight: 600; }
        .schedule-mod { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }

        .apply-cta { background: linear-gradient(135deg, rgba(230,57,70,0.12) 0%, rgba(244,162,97,0.06) 100%); border: 1px solid rgba(230,57,70,0.2); border-radius: 16px; padding: 48px; text-align: center; }
        .apply-cta h2 { font-size: 2rem; margin-bottom: 12px; }
        .apply-cta p { color: var(--muted); margin-bottom: 28px; }
        .programm-cta { background: linear-gradient(135deg, rgba(17, 164, 241, 0.1) 0%,  rgba(246, 128, 38, 0.1) 100%); border: 1px solid rgba(230,57,70,0.2); border-radius: 16px; padding: 48px; text-align: center; }
        .programm-cta h2 { font-size: 2rem; margin-bottom: 12px; }
        .programm-cta p { color: var(--muted); margin-bottom: 28px; }

        footer { border-top: 1px solid var(--border); padding: 32px; display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; color: var(--muted); font-size: 0.85rem; }

        .player-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; backdrop-filter: blur(16px); border-top: 1px solid var(--border); height: 72px; display: flex; align-items: center; padding: 0 32px; gap: 24px; }
        .player-info { flex: 1; min-width: 0; }
        .player-stream { font-size: 0.7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color-primary); }
        .player-mod { color: var(--muted); }
        .player-song { font-size: 0.9rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
        .player-song.loading { color: var(--muted); }
        .player-controls { display: flex; gap: 12px; align-items: center; }
        .play-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--color-primary); border: none; color: white; font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s, transform .1s; }
        .play-btn:hover { background:white; border: 1px solid; color:  var(--color-primary); }
        .play-btn:active { transform: scale(0.95); }
        .stream-selector { background: var(--border); border: none; color: var(--color-text); border-radius: 6px; padding: 6px 12px; font-size: 0.82rem; font-family: inherit; cursor: pointer; }
        .listeners-badge { font-size: 0.75rem; color: var(--muted); white-space: nowrap; }

        .apply-form { max-width: 640px; margin: 0 auto; text-align: left; }
        .form-group { margin-bottom: 16px; }
        .form-group label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
        .form-group input, .form-group select, .form-group textarea { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; color: var(--color-text); padding: 11px 14px; font-size: 0.9rem; font-family: inherit; transition: border-color .2s; }
        .form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--color-primary); }
        .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

        @media (max-width: 768px) { .hero { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } nav { padding: 0 16px; } .section { padding: 40px 16px; } }
    .hover-border{transition:border-color .2s;} .hover-border:hover{border-color:rgba(230,57,70,0.3)!important;}       
            .sidebar {
            width: 240px; min-height: 100vh; background: var(--surface);
            border-right: 1px solid var(--border); padding: 0; position: fixed; top: 0; left: 0;
        }
        .sidebar-brand {
            padding: 15px 15px 15px;
            border-bottom: 1px solid var(--border);
            font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.1rem;
            color: var(--color-primary); letter-spacing: 0.05em;
            display: flex; align-items: center; gap: 10px;
        }
        .sidebar-brand .dot { width: 10px; height: 10px; background: var(--color-primary); border-radius: 50%; animation: pulse 2s infinite; }
        @keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

        

        .sidebar-footer { position: absolute; bottom: 0; width: 100%; padding: 16px 20px; border-top: 1px solid var(--border); }
        .sidebar-footer .user-info { font-size: 0.8rem; color: var(--muted); margin-bottom: 8px; }
        .sidebar-footer .user-name { font-weight: 600; color: var(--color-text); }

        /* Main content */
        .main-content { margin-left: 240px; padding: 32px; min-height: 100vh; }

        /* Cards */

.modal-content{
    background: var(--surface);
}
.table > :not(caption) > * > * {
    background-color: var(--surface) !important;
    color: var(--color-text) !important;
    border-bottom-color: var(--border) !important;
}
/* Container für das Dropdown */
.custom-dropdown {
    position: relative;
    display: inline-block;
}

/* Das Menü-Fenster */

.cookie-banner {
            position: fixed;
            bottom: 24px;
            left: 50%;
            transform: translateX(-50%) translateY(150%);
            width: calc(100% - 32px);
            max-width: 500px;
            background: #14141f; /* Dunkles Anthrazit */
            border: 1px solid var(--border, #2a2a3a);
            border-radius: 12px;
            padding: 24px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.5);
            z-index: 99999;
            transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        }
        .cookie-banner.show {
            transform: translateX(-50%) translateY(0);
        }
        .cookie-title {
            font-family: 'Syne', sans-serif;
            font-weight: 700;
            font-size: 1.2rem;
            margin-bottom: 8px;
            color: #fff;
        }
        .cookie-text {
            font-size: 0.85rem;
            color: var(--muted, #8e9297);
            line-height: 1.5;
            margin-bottom: 16px;
        }
        .cookie-options {
            margin-bottom: 20px;
            padding: 10px;
            background: #0f0f15;
            border-radius: 6px;
        }
        .cookie-opt {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 0.85rem;
            margin: 6px 0;
        }
        .cookie-opt input[type="checkbox"] {
            accent-color: var(--color-primary, #b82ef7);
            cursor: pointer;
        }
        .cookie-buttons {
            display: flex;
            gap: 12px;
        }
        .cookie-btn {
            flex: 1;
            padding: 10px;
            border-radius: 6px;
            border: none;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            transition: opacity 0.2s;
        }
        .cookie-btn:hover {
            opacity: 0.9;
        }
        .btn-accept {
            background: var(--color-primary, #b82ef7);
            color: #fff;
        }
        .btn-deny {
            background: #2a2a3a;
            color: var(--muted, #8e9297);
        }
/* Toggle Switch (z.B. Admin-Rechte-Umschalter in der User-Verwaltung) */
.toggle-switch { position:relative; display:inline-block; width:46px; height:26px; flex-shrink:0; }
.toggle-switch input { opacity:0; width:0; height:0; position:absolute; }
.toggle-slider {
    position:absolute; cursor:pointer; inset:0;
    background:#3a3f52; border-radius:26px; transition:.25s;
}
.toggle-slider::before {
    content:''; position:absolute;
    width:20px; height:20px; left:3px; bottom:3px;
    background:white; border-radius:50%; transition:.25s;
}
.toggle-switch input:checked + .toggle-slider { background:var(--color-primary); }
.toggle-switch input:checked + .toggle-slider::before { transform:translateX(20px); }

/* Abwesenheiten-Modul (absences) */
.abs-row {
    display:flex;align-items:center;gap:14px;padding:13px 18px;border-bottom:1px solid var(--border);
}
.abs-avatar {
    width:36px;height:36px;border-radius:50%;background:var(--accent);flex-shrink:0;
    display:flex;align-items:center;justify-content:center;
    font-family:'Syne',sans-serif;font-weight:800;font-size:0.9rem;color:white;
}
.abs-reason-badge {
    font-size:0.72rem;padding:3px 9px;border-radius:99px;background:var(--border);color:var(--muted);
    white-space:nowrap;
}
.abs-today { background:rgba(230,57,70,0.04);border-left:3px solid var(--accent); }

/* Sendeplan-Timeline (schedule-Modul) */
.slot-gap {
    text-align:center;color:var(--color-text);font-size:0.78rem;padding:8px 0;font-style:italic;opacity:.6;
}
.slot-card {
    display:flex;align-items:center;gap:20px;background:var(--surface);border:1px solid var(--border);
    border-radius:12px;padding:16px 20px;margin-bottom:8px;transition:all .2s;
}
.slot-card.is-live {
    border-color:var(--accent);background:linear-gradient(90deg, rgba(230,57,70,0.08) 0%, var(--surface) 40%);
    box-shadow:0 0 0 1px rgba(230,57,70,0.15);
}
.slot-time {
    flex-shrink:0;width:80px;text-align:center;font-family:'Syne',sans-serif;font-weight:800;font-size:1.05rem;
}
.slot-time-end { font-size:0.8rem;color:var(--color-text);font-weight:400;margin-top:2px; }
.slot-divider { width:1px;align-self:stretch;background:var(--border); }
.slot-info { flex:1;min-width:0; }
.slot-title { font-weight:700;font-size:1rem;margin-bottom:4px; }
.slot-mod { font-size:0.85rem;color:var(--muted); }
.live-badge {
    flex-shrink:0;display:flex;align-items:center;gap:6px;background:var(--accent);color:white;
    font-size:0.72rem;font-weight:700;letter-spacing:.05em;padding:5px 12px;border-radius:99px;
}
.live-dot { width:7px;height:7px;background:white;border-radius:50%;animation:pulse 1.4s infinite; }
.site-footer {
 
  border-top: 1px solid var(--border);
  padding: 48px 32px 24px;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Layout Grid */
.footer-grid {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

/* Spalte 1: About */


.footer-brand {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--color-text);
}

.footer-text {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 16px;
}

.footer-socials {
  display: flex;
  gap: 14px;
}

.footer-socials a {
  color: var(--muted);
  font-size: 1.15rem;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-socials a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

/* Spalten Headings & Links */
.footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 14px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--color-text);
  padding-left: 4px;
}

/* Bottom Bar */
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-heart {
  color: red;
}

/* Responsiveness für Smartphones */
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
.theme-switch {
  display: flex;
  gap: 2px;
  margin-left: .75rem;
  padding: 2px;
  background: #1e293b;
  border-radius: .5rem;
}
.theme-switch-p {
   padding: .3rem .65rem;
  border: none;
  border-radius: .375rem;
  background: transparent;
  color: var(--color-primary);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .03em;
  cursor: default;
  font-family: inherit;
  transition: color .15s, background .15s;
}
.theme-switch-btn.active {
  background: var(--color-primary);
  color: var(--on-primary-500);
}
.theme-switch-btn {
  padding: .3rem .65rem;
  border: none;
  border-radius: .375rem;
  background: transparent;
  color: var(--color-primary);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .03em;
  cursor: pointer;
  font-family: inherit;
  transition: color .15s, background .15s;
}
:root {
  --bg-card: #0d1117;
  --bg-header: #161b22;
  --border: #30363d;

  --accent-blue: #0FC3D2;
  --accent-green: #7ee787;
  --accent-orange: #ffa657;
  --accent-purple: #d2a8ff;
  --accent-red: #f85149;
  --font-mono: 'Fira Code', 'Consolas', 'Courier New', monospace;
}

/* Basis-Container für alle drei Seiten */
.wrap {
  max-inline-size: 820px;
  margin-block: 2rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.65;
 
}

/* Karten-Wrapper */
.card {
	font-family: var(--font-mono);
  
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

/* Karten-Kopfzeile */
.card-header {

  border-block-end: 1px solid var(--border);
  padding-block: 14px;
  padding-inline: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-blue);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.card-header i {
  color: var(--accent-blue);
  font-size: 1.05rem;
}

/* Karten-Inhalt & Unterteilungen */
.card-body {
  padding-block: 18px;
  padding-inline: 22px;
  font-size: 0.9rem;
}

.card-body p {
  margin-block: 0 14px;
}

.card-body p:last-child {
  margin-block-end: 0;
}

.section {
  padding-block: 16px;
  padding-inline: 22px;
  border-block-end: 1px dashed var(--border);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.section:last-child {
  border-block-end: none;
}

/* MOTD Hero-Header & Footer */
.hero {

  border-block-start: 2px dashed var(--accent-blue);
  border-block-end: 2px dashed var(--accent-blue);
  padding-block: 20px;
  padding-inline: 22px;
  text-align: center;
}

.hero h2 {
  margin-block: 0 8px;
  color: var(--accent-blue);
  font-size: 1.25rem;
  letter-spacing: 0.5px;
}

.hero p {
  margin-block: 4px;

}

.card-footer {

  border-block-start: 1px solid var(--border);
  padding-block: 12px;
  padding-inline: 22px;
  text-align: center;
  color: var(--accent-blue);
  font-weight: 700;
}

/* Zwischenüberschriften & Typografie-Hilfsklassen */
.subtitle {
  color: var(--accent-orange);
  font-weight: 700;
  font-size: 0.9rem;
  margin-block: 16px 6px;
}

.subtitle:first-child {
  margin-block-start: 0;
}

.bright {
  color: var(--text-bright);
  font-weight: 700;
}

.tag {
  color: var(--accent-blue);
  font-weight: 700;
}

.tag-fixed {
  color: var(--accent-blue);
  font-weight: 700;
  display: inline-block;
  min-inline-size: 75px;
}

.muted {
  color: var(--text-muted);
}

.link {
  color: var(--accent-blue);
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

/* Listen */
.list {
  list-style: none;
  padding: 0;
  margin-block: 8px 14px;
}

.list:last-child {
  margin-block-end: 0;
}

.list li {
  padding-block: 3px;
  display: flex;
  gap: 10px;
}

.bullet {
  color: var(--accent-orange);
  font-weight: 700;
  flex-shrink: 0;
}

.bullet-num {
  color: var(--accent-orange);
  font-weight: 700;
  min-inline-size: 28px;
  flex-shrink: 0;
}

/* Callouts & Rechte-Boxen */
.callout-danger {
  
  border-inline-start: 3px solid var(--accent-red);
  padding-block: 12px;
  padding-inline: 16px;
  border-radius: 0 4px 4px 0;
  font-size: 0.85rem;

}

.callout-danger p {
  margin-block: 0 8px;
}

.callout-danger p:last-child {
  margin-block-end: 0;
}

.callout-info {
 
  border-inline-start: 3px solid var(--accent-blue);
  padding-block: 10px;
  padding-inline: 14px;
  border-radius: 0 4px 4px 0;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.stack-sm {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-block: 12px 16px;
}

@media (max-width: 600px) {
  .wrap {
    margin-block: 1rem;
    font-size: 13px;
  }

  .card-header,
  .card-body,
  .section,
  .hero {
    padding-inline: 16px;
  }
}