/* Lokal gehostete Schriften (DSGVO-konform, kein Google-Server-Kontakt) */
@import url('/fonts/fonts.css');

/*
  ════════════════════════════════════════════════════════════
  BSC Karnische Region Hermagor – style_new.css
  Design: Alpine Editorial – Outfit (UI) + Lora (body)
  ════════════════════════════════════════════════════════════
*/

/* ── Design Tokens ──────────────────────────────────────── */
:root {
  --ink:        #111827;
  --ink-soft:   #374151;
  --muted:      #6b7280;
  --border:     #e5e7eb;
  --surface:    #ffffff;
  --bg:         #f8fafc;
  --primary:    #1e3a6e;       /* deep navy */
  --primary-lt: #2a4f96;
  --green:      #1a7a4a;       /* alpine green */
  --green-lt:   #22a060;
  --gold:       #d97706;
  --gold-lt:    #f59e0b;
  --brg-color:  #5c8a2a;       /* BRG green */
  --hlw-color:  #0369a1;       /* HLW blue */

  --radius-sm:  8px;
  --radius:     14px;
  --radius-lg:  20px;
  --shadow-sm:  0 1px 4px rgba(0,0,0,.06);
  --shadow:     0 4px 16px rgba(0,0,0,.09);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.13);
  --transition: 0.22s cubic-bezier(.4,0,.2,1);

  --max-w: 1160px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Outfit', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Section helpers ─────────────────────────────────────── */
.section-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
}

section h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: .75rem;
}

.section-sub {
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: .95rem;
}

/* ── Scroll-reveal ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s var(--transition), transform .55s var(--transition);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ════════════════════════════════════════════════════════════
   HEADER / NAV
   ════════════════════════════════════════════════════════════ */
#siteHeader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

#siteHeader.scrolled {
  background: rgba(14, 27, 77, .95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(0,0,0,.22);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: .9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: white;
  flex-shrink: 0;
}

.nav-logo {
  height: 38px;
  width: auto;
  border-radius: 6px;
  background: white;
  padding: 3px;
}

.nav-title {
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.3;
  color: white;
}
.nav-title em {
  display: block;
  font-style: normal;
  font-weight: 300;
  opacity: .8;
  font-size: .8rem;
}

#mainNav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .25rem;
}

#mainNav a {
  display: block;
  padding: .45rem .85rem;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

#mainNav a:hover,
#mainNav a.active {
  color: white;
  background: rgba(255,255,255,.15);
}

.nav-ext.brg-ext:hover { background: rgba(92,138,42,.3); }
.nav-ext.hlw-ext:hover { background: rgba(3,105,161,.3); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: white;
  text-align: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(10,20,55,.55) 0%,
    rgba(10,20,55,.35) 50%,
    rgba(10,20,55,.75) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 2rem 1.5rem;
  animation: heroFadeIn .9s ease both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-lt);
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: .3rem .9rem;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}

.hero-sub {
  font-size: clamp(.95rem, 1.6vw, 1.15rem);
  color: rgba(255,255,255,.82);
  margin-bottom: 2.25rem;
  font-weight: 300;
}

.hero-schools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .85rem;
}

.school-pill {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  backdrop-filter: blur(8px);
}

.school-pill img {
  height: 28px;
  width: auto;
  background: white;
  border-radius: 6px;
  padding: 2px 4px;
}

.school-pill .fa-chevron-right { font-size: .7rem; opacity: .7; }

.school-pill.brg {
  background: rgba(92,138,42,.8);
  color: white;
  border: 1px solid rgba(255,255,255,.25);
}
.school-pill.hlw {
  background: rgba(3,105,161,.8);
  color: white;
  border: 1px solid rgba(255,255,255,.25);
}
.school-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  filter: brightness(1.08);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 2s infinite;
  text-decoration: none;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ════════════════════════════════════════════════════════════
   QUICKLINKS BAR
   ════════════════════════════════════════════════════════════ */
.quicklinks-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.ql-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ql-inner::-webkit-scrollbar { display: none; }

.ql-item {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .75rem 1.1rem;
  font-size: .83rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  flex-shrink: 0;
}

.ql-item i {
  font-size: .95rem;
  color: var(--primary);
}

.ql-item:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ════════════════════════════════════════════════════════════
   ABOUT
   ════════════════════════════════════════════════════════════ */
.section-about {
  padding: 5rem 0;
  background: var(--surface);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-text h2 { margin-bottom: 1.25rem; }

.about-text p {
  font-family: 'Lora', Georgia, serif;
  color: var(--ink-soft);
  margin-bottom: 1rem;
  font-size: .98rem;
  line-height: 1.75;
}

.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 600;
}

.school-cards-stack {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.scard {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--bg);
  border-left: 4px solid;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.scard:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.scard.brg-card { border-color: var(--brg-color); }
.scard.hlw-card { border-color: var(--hlw-color); }
.scard.ews-card { border-color: var(--gold); }

.scard-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  color: white;
}

.brg-card .scard-icon { background: var(--brg-color); }
.hlw-card .scard-icon { background: var(--hlw-color); }
.ews-card .scard-icon { background: var(--gold); }

.scard strong {
  display: block;
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: .1rem;
}

.scard span {
  font-size: .82rem;
  color: var(--muted);
}

/* ════════════════════════════════════════════════════════════
   NEWS SECTION
   ════════════════════════════════════════════════════════════ */
.section-news {
  padding: 5rem 0;
  background: var(--bg);
}

.news-sources {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.news-source {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.news-source-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.1rem;
  border-bottom: 1px solid var(--border);
}

.news-source-header.brg-header {
  background: linear-gradient(135deg, #f0f7e6, #e8f5d6);
}
.news-source-header.hlw-header {
  background: linear-gradient(135deg, #e8f4fd, #daedfb);
}

.news-source-title {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-weight: 700;
  font-size: .95rem;
}

.ns-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: .85rem;
  flex-shrink: 0;
}

.ns-icon.brg-bg { background: var(--brg-color); }
.ns-icon.hlw-bg { background: var(--hlw-color); }

.ns-link {
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: .3rem;
  opacity: .8;
  transition: opacity var(--transition);
  white-space: nowrap;
}
.ns-link:hover { opacity: 1; text-decoration: underline; }

.news-posts {
  display: flex;
  flex-direction: column;
}

/* Individual post row */
.news-post {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .85rem 1.1rem;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), transform var(--transition);
}
.news-post:last-child { border-bottom: 0; }
.news-post:hover {
  background: var(--bg);
}
.news-post:hover .np-arrow { opacity: 1; transform: translateX(3px); }
.news-post:hover .np-title { color: var(--primary); }

/* Thumbnail */
.np-thumb {
  width: 72px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg);
  border: 1px solid var(--border);
}
.np-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.news-post:hover .np-thumb img { transform: scale(1.06); }

/* Placeholder thumb – shown when no image available */
.np-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: rgba(255,255,255,.7);
  border: none;
}

.np-thumb-placeholder.brg-placeholder {
  background: linear-gradient(135deg, #6ea832, #4a7a20);
}
.np-thumb-placeholder.hlw-placeholder {
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
}

/* Hide img if error, show placeholder bg */
.np-thumb.np-thumb-err img { display: none; }

.np-body {
  flex: 1;
  min-width: 0;
}

.np-title {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  line-height: 1.35;
  margin-bottom: .25rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color var(--transition);
}

.np-date {
  font-size: .75rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .3rem;
}

.np-arrow {
  color: var(--muted);
  font-size: .8rem;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
}

/* Skeleton loader */
.news-skeleton {
  height: 72px;
  margin: .75rem 1.1rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.news-empty {
  padding: 1.5rem 1.1rem;
  color: var(--muted);
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* ════════════════════════════════════════════════════════════
   CALENDAR – lokales JSON, kein Google-Kontakt beim Laden
   ════════════════════════════════════════════════════════════ */
.section-calendar {
  padding: 5rem 0;
  background: var(--surface);
}

/* Ladezustand / Fehler */
.cal-state {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--muted);
  font-size: .95rem;
  padding: 2rem 0;
}

.cal-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Monats-Gruppe */
.cal-month {
  margin-bottom: 2rem;
}

.cal-month-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--border);
}

.cal-month-events {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

/* Einzelner Termin */
.cal-event {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1.1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  transition: box-shadow var(--transition), transform var(--transition);
}

.cal-event:hover {
  box-shadow: var(--shadow);
  transform: translateX(3px);
}

.cal-event-today {
  border-left-color: var(--gold);
  background: #fffbf0;
}

/* Datum-Box links */
.cal-date-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 44px;
  flex-shrink: 0;
  line-height: 1.1;
}

.cal-wd {
  font-size: .68rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.cal-day {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.cal-event-today .cal-day { color: var(--gold); }

.cal-mon {
  font-size: .72rem;
  color: var(--muted);
  font-weight: 600;
}

/* Event Body */
.cal-event-body {
  flex: 1;
  min-width: 0;
}

.cal-event-title {
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  margin-bottom: .25rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
}

.cal-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  font-size: .78rem;
  color: var(--muted);
}

.cal-time, .cal-loc, .cal-multi {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

/* Badges */
.cal-badge {
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.cal-badge.today {
  background: var(--gold);
  color: white;
}

.cal-badge.soon {
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
}

.cal-gcal-link {
  text-align: center;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.cal-gcal-link a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
}

.cal-gcal-link a:hover { color: var(--primary); }

.cal-more-wrap {
  text-align: center;
  margin-top: 1rem;
}

.cal-more-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.5rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.cal-more-btn:hover {
  background: var(--surface);
  border-color: var(--primary);
  box-shadow: 0 2px 12px rgba(30,58,110,.12);
}

/* ── alte Gate-Card (nicht mehr verwendet, bleibt für Kompatibilität) ── */
.cal-gate-card {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.cal-gate-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #4285f4;
  color: white;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.cal-gate-card h3 { font-size: 1.2rem; margin-bottom: .75rem; }
.cal-gate-card p { font-size: .88rem; color: var(--ink-soft); margin-bottom: .75rem; line-height: 1.6; }
.cal-gate-small { font-size: .8rem !important; color: var(--muted) !important; margin-bottom: 1.5rem !important; }
.cal-gate-small a { color: var(--primary); text-decoration: underline; }

#cal-frame {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ════════════════════════════════════════════════════════════
   EXPLORE / LINKS
   ════════════════════════════════════════════════════════════ */
.section-explore {
  padding: 5rem 0;
  background: linear-gradient(160deg, #eef2ff 0%, #e8f5ec 100%);
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.1rem;
  margin-top: 1rem;
}

.explore-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.explore-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0,0,0,.12);
}

.ec-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ec-color) 12%, transparent);
  color: var(--ec-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: .5rem;
}

.explore-card h3 {
  font-size: 1rem;
  font-weight: 700;
}

.explore-card p {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ════════════════════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════════════════════ */
.section-contact {
  padding: 5rem 0;
  background: var(--surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.contact-card {
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.cc-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.contact-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--primary);
}

.contact-card p {
  font-size: .88rem;
  color: var(--ink-soft);
  margin-bottom: .2rem;
}

.contact-card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.contact-card a:hover { text-decoration: underline; }

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .25rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: filter var(--transition), transform var(--transition);
}

.social-btn:hover { filter: brightness(.9); transform: scale(1.04); }

.social-btn.fb { background: #1877f2; color: white; }
.social-btn.ig {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
}

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,.85);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .85rem;
}

.footer-logo {
  height: 42px;
  background: white;
  border-radius: 8px;
  padding: 3px;
}

.footer-brand strong {
  display: block;
  font-size: .92rem;
  color: white;
}

.footer-brand span {
  font-size: .76rem;
  opacity: .65;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
}

.footer-links a {
  font-size: .83rem;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: white; text-decoration: underline; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 880px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .news-sources {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  /* Nav */
  .nav-toggle { display: flex; }

  #mainNav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(14,27,77,.97);
    backdrop-filter: blur(12px);
    padding: .75rem;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  #mainNav.open { display: block; }
  #mainNav ul { flex-direction: column; gap: 0; }
  #mainNav a { padding: .7rem 1rem; border-radius: var(--radius-sm); }

  /* Hero */
  .hero-schools { flex-direction: column; align-items: center; }

  /* Quicklinks – show only 3 key ones */
  .ql-item:nth-child(n+4) { display: none; }
  .ql-item[href="./speise.html"],
  .ql-item[href="./lehrer/kacheln.php"],
  .ql-item[href="./hausordnung.pdf"] { display: flex; }

  /* About */
  .about-stats { gap: 1.25rem; }
  .stat-num { font-size: 1.8rem; }

  /* Explore */
  .explore-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }

  /* Footer */
  .footer-inner { flex-direction: column; }
}

@media (max-width: 400px) {
  .explore-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════
   SUBPAGE SHARED STYLES
   ════════════════════════════════════════════════════════════ */

/* Page hero band (replaces big hero on subpages) */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2a4f96 60%, #1a7a4a 100%);
  color: white;
  /* Oben genug Platz für den fixierten Header (~64px) + sichtbarer Atemraum */
  padding: 9rem 0 3.5rem;
}

.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  opacity: .75;
  margin-bottom: 1.25rem;
}
.page-hero .breadcrumb a { color: white; text-decoration: none; }
.page-hero .breadcrumb a:hover { text-decoration: underline; }
.page-hero .breadcrumb i { font-size: .6rem; }

/* Icon + H1 nebeneinander */
.page-hero-title {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: .6rem;
}

.page-hero-title .page-hero-icon {
  margin-bottom: 0;   /* override standalone-icon spacing */
  flex-shrink: 0;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-top: 0;
}

.page-hero .hero-sub {
  margin-top: .75rem;
  opacity: .82;
  font-size: .95rem;
  font-weight: 300;
  max-width: 600px;
}

.page-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.2);
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
}

/* Page body */
.page-body {
  padding: 3.5rem 0 6rem;
}

/* Content cards on subpages */
.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.75rem;
}

.content-card h3,
.content-card > h3:first-child {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--border);
}

.content-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 1.75rem 0 .6rem;
}

.content-card h4:first-child {
  margin-top: 0;
}

.content-card h5 {
  font-size: .82rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin: 1.25rem 0 .5rem;
}

.content-card p {
  font-family: 'Lora', Georgia, serif;
  font-size: .93rem;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: .85rem;
}

.content-card p:last-child { margin-bottom: 0; }

.content-card ul,
.content-card ol {
  padding-left: 1.6rem;
  color: var(--ink-soft);
  font-size: .92rem;
  line-height: 1.7;
}

.content-card li {
  margin-bottom: .55rem;
}

.content-card li:last-child { margin-bottom: 0; }

.content-card strong { color: var(--ink); }

/* Form-style download list */
.form-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.form-list li a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .8rem 1.1rem .8rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: .9rem;
  line-height: 1.4;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border);
}

.form-list li a::before {
  content: '\f019';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: .82rem;
  color: var(--gold);
  flex-shrink: 0;
  width: 1.2rem;
  text-align: center;
}

.form-list li a[href*="mailto"]::before { content: '\f0e0'; }
.form-list li a[href*="http"]::before   { content: '\f35d'; }

.form-list li a:hover {
  background: #e8f0fb;
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(30,58,110,.08);
}

/* Section labels */
.section-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
  display: block;
}

/* Content grid (for cards) */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-bottom: 2rem;
}

/* Chips */
.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .75rem;
}

.chip {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .35rem .85rem;
  font-size: .82rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* External link chips */
.link-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .75rem;
}

.link-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .9rem;
  border-radius: 999px;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}

.link-chip:hover {
  background: var(--primary);
  color: white;
}

/* Big link grid (matura page) */
.big-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
  margin-top: 1.5rem;
}

.big-link-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-lt) 100%);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  min-height: 110px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.big-link-card .blc-icon {
  font-size: 1.6rem;
}

.big-link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.08);
}

/* Video grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.video-card iframe {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  border: none;
}

.video-card-body {
  padding: 1rem 1.25rem;
}

.video-card-body h3 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .4rem;
  line-height: 1.35;
}

.video-card-body p {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Info table for datenschutz / impressum */
.prose-content {
  max-width: 800px;
}

.prose-content h2 {
  font-size: 1.3rem;
  color: var(--primary);
  margin: 2rem 0 .6rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-weight: 700;
}

.prose-content h2:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.prose-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin: 1.25rem 0 .4rem;
}

.prose-content h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin: 1rem 0 .35rem;
}

.prose-content p {
  font-family: 'Lora', Georgia, serif;
  font-size: .9rem;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: .75rem;
}

.prose-content ul {
  padding-left: 1.4rem;
  margin-bottom: .75rem;
  font-size: .9rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.prose-content a {
  color: var(--primary);
  text-decoration: underline;
}

/* Speiseplan image */
.speiseplan-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 1.5rem 0;
}

/* SGA / persons grid */
.persons-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .4rem 0 .8rem;
}

.person-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .82rem;
  color: var(--ink-soft);
}

.person-tag strong { color: var(--ink); }

/* Kollegium link card */
.kollegium-intro {
  max-width: 640px;
  margin: 0 auto 2rem;
  text-align: center;
}

@media (max-width: 640px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
  .big-link-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-hero {
    padding: 7.5rem 0 2.5rem;
  }
}

/* ════════════════════════════════════════════════════════════
   SUBPAGES – Preserved compatibility styles
   (formulare, kollegium, karriere, etc. still use style.css
   via their own <link> tags, so these are only extras here
   if those pages ever switch to style_new.css)
   ════════════════════════════════════════════════════════════ */