/* =========================================================
   JuLis Bezirk Aachen – Styles (Dark Theme · Parallax Hero)
   Farben aus dem JBV-Aachen-Logo: Anthrazit als Basis,
   Orange + Peach als Akzent.
   ========================================================= */

:root {
  /* Akzente aus dem Logo */
  --orange:        #EF7E1B;
  --orange-dark:   #C8620A;
  --orange-light:  #F5A45A;
  --orange-glow:   rgba(239,126,27,0.32);
  --peach:         #F7D2AC;
  --peach-soft:    #FCEAD5;

  /* Dunkle Basis-Töne */
  --bg:            #1A1C21;   /* Seitenhintergrund (tief) */
  --bg-elev:       #23262D;   /* Karten, alternierende Sektionen */
  --bg-elev-2:     #2E323B;   /* Inputs / Hover */
  --bg-topbar:     rgba(20, 22, 26, 0.82);
  --bg-footer:     #14161A;

  --border:        rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);

  --text:          rgba(255,255,255,0.86);
  --text-strong:   #FFFFFF;
  --text-muted:    rgba(255,255,255,0.62);
  --text-faint:    rgba(255,255,255,0.42);

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.25);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.45);

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;

  --max-width: 1200px;
  --header-h:  92px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               Roboto, Helvetica, Arial, sans-serif;

  --transition: 180ms ease;
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  background: var(--bg);
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: transparent;          /* macht den fixed Hero sichtbar */
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--orange-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange); }

h1, h2, h3, h4 { color: var(--text-strong); line-height: 1.2; margin: 0 0 .4em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; }

/* ============ Layout-Helpers ============ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section {
  position: relative;
  z-index: 2;                  /* scrollt über den fixierten Hero */
  background: var(--bg);
  padding: 4.5rem 0;
}
.section-alt { background: var(--bg-elev); }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head .kicker { display: inline-block; margin-bottom: .75rem; }
.section-head h2 { margin-bottom: .5rem; }
.section-lead, .page-lead { color: var(--text-muted); font-size: 1.05rem; max-width: 640px; margin: 0 auto; }

.kicker {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--peach);
  background: rgba(247,210,172,0.08);
  padding: .35rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(247,210,172,0.25);
}

/* ============ Topbar / Navigation ============ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-topbar);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text-strong);
  font-weight: 700;
}
.brand-logo {
  height: 64px;                /* deutlich größer */
  width: auto;
  max-width: 300px;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.45));
  transition: transform var(--transition);
}
.brand:hover .brand-logo { transform: translateY(-1px) scale(1.02); }
.brand-text { display: none; }
@media (max-width: 520px) {
  .brand-logo { height: 50px; max-width: 220px; }
  :root { --header-h: 76px; }
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: .55rem .65rem;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.nav-toggle:hover { border-color: var(--orange); background: rgba(239,126,27,0.12); }
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-strong);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: rgba(20, 22, 26, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition), opacity var(--transition);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.primary-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.primary-nav li { display: block; }
.primary-nav a {
  display: block;
  padding: .85rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.primary-nav a:hover { background: rgba(255,255,255,0.06); color: var(--orange-light); }
.primary-nav a.is-active { color: var(--orange); background: rgba(239,126,27,0.12); }
.primary-nav .nav-cta a { display: inline-flex; }
.nav-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1rem 0;
  border-top: 1px solid var(--border);
  margin-top: .5rem;
}
.nav-user { font-size: .85rem; color: var(--text-muted); }
.logout-form { margin: 0; }

@media (min-width: 980px) {
  .nav-toggle { display: none; }
  .primary-nav {
    position: static;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    max-height: none;
    overflow: visible;
  }
  .primary-nav ul {
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: .25rem;
  }
  .primary-nav a {
    padding: .55rem .9rem;
    font-size: .95rem;
  }
  .nav-meta {
    border-top: 0;
    margin-top: 0;
    padding: 0 0 0 .9rem;
    margin-left: .25rem;
    border-left: 1px solid var(--border);
  }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  padding: .75rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), background var(--transition),
              color var(--transition), border-color var(--transition),
              box-shadow var(--transition);
  white-space: nowrap;
}
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.btn-xs { padding: .4rem .75rem; font-size: .82rem; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 18px var(--orange-glow);
}
.btn-primary:hover {
  background: var(--orange-light);
  color: #1A1C21;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(239,126,27,0.45);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: rgba(255,255,255,0.04);
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.btn-outline:hover {
  background: #fff;
  color: var(--bg);
  border-color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  color: var(--orange-light);
  border-color: var(--orange);
}

.btn-danger {
  background: transparent;
  color: #F2A8A2;
  border-color: rgba(242,168,162,0.4);
}
.btn-danger:hover { background: rgba(242,168,162,0.12); color: #FFB9B3; }

/* ============ Hero – fixiert, Sektionen scrollen darüber ============ */
.hero {
  position: relative;
  z-index: 1;                            /* unter den nachfolgenden Sektionen */
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  padding: 6rem 1.25rem 6rem;
  isolation: isolate;
}
.hero-media {
  position: fixed;                       /* Parallax-Effekt */
  inset: 0;
  z-index: -1;
  background-color: var(--bg);
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center 35%;
  will-change: transform;
}
.hero-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,22,26,0.30) 0%, rgba(20,22,26,0.55) 55%, rgba(20,22,26,0.85) 100%),
    radial-gradient(70% 55% at 85% 20%, var(--orange-glow) 0%, rgba(239,126,27,0) 70%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  text-align: left;
}
.hero-eyebrow {
  display: inline-block;
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  background: rgba(239,126,27,0.22);
  color: var(--peach);
  padding: .45rem .85rem;
  border-radius: 999px;
  border: 1px solid rgba(239,126,27,0.55);
  margin-bottom: 1.25rem;
}
.hero-title { color: #fff; max-width: 18ch; margin-bottom: 1rem; text-shadow: 0 2px 24px rgba(0,0,0,0.45); }
.hero-title .accent { color: var(--orange-light); }
.hero-subtitle { font-size: clamp(1.05rem, 1.8vw, 1.35rem); color: rgba(255,255,255,0.92); max-width: 44ch; margin-bottom: 2rem; text-shadow: 0 2px 18px rgba(0,0,0,0.45); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-scroll {
  position: absolute;
  bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 44px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 14px;
  display: none;
}
.hero-scroll span {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 8px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  animation: scroll 1.6s infinite;
}
@keyframes scroll {
  0% { opacity: 0; transform: translate(-50%, 0); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}
@media (min-width: 900px) { .hero-scroll { display: block; } }

/* iOS Safari hat Probleme mit position:fixed Bildern bei Touch-Scroll –
   für Mobile Geräte daher klassisch background-attachment fixed nutzen */
@media (hover: none) and (pointer: coarse) {
  .hero-media,
  .hero-overlay { position: absolute; }
}

/* ============ News-Grid ============ */
.news-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }

.news-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--orange);
}
.news-image {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(239,126,27,0.35) 0%, rgba(42,45,52,1) 100%);
  display: flex;
  align-items: flex-end;
  padding: .75rem;
}
.news-tag {
  background: rgba(20,22,26,0.85);
  color: var(--orange-light);
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .65rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .08em;
  border: 1px solid var(--border);
}
.news-body { padding: 1.25rem 1.25rem 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.news-date { font-size: .8rem; color: var(--text-faint); margin-bottom: .5rem; }
.news-title { font-size: 1.15rem; margin-bottom: .5rem; }
.news-excerpt { color: var(--text-muted); font-size: .95rem; margin-bottom: 1rem; flex-grow: 1; }
.news-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 600;
  color: var(--orange-light);
}
.news-link:hover { color: var(--orange); }
.news-link svg { transition: transform var(--transition); }
.news-link:hover svg { transform: translateX(3px); }

/* ============ Join-Band ============ */
.join-band {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: 2.5rem 2rem;
  background:
    linear-gradient(135deg, rgba(239,126,27,0.15) 0%, rgba(42,45,52,0.7) 60%),
    var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.join-band::before {
  content: "";
  position: absolute;
  top: -40%; right: -10%;
  width: 50%; aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--orange-glow), transparent 70%);
  pointer-events: none;
}
.join-band h2 { color: #fff; }
.join-band p { color: var(--text-muted); margin: 0; }
.join-cta { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 800px) {
  .join-band { grid-template-columns: 1.4fr 1fr; padding: 3rem 3.5rem; }
}

/* ============ Page-Hero (innere Seiten) ============ */
.page-hero {
  position: relative;
  z-index: 2;
  padding: 5rem 0 2.5rem;
  background:
    linear-gradient(180deg, rgba(239,126,27,0.10) 0%, rgba(247,210,172,0.04) 50%, var(--bg) 100%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-top: .5rem; }

/* ============ List-Cards (Stellungnahmen/Beschlüsse) ============ */
.list-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.list-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: .5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.list-card:hover { border-color: var(--orange); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.list-card-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .85rem;
  color: var(--text-faint);
}
.list-card-meta time { font-weight: 500; color: var(--text-muted); }
.badge {
  background: rgba(239,126,27,0.15);
  color: var(--orange-light);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .06em;
  padding: .25rem .55rem;
  border-radius: 999px;
  text-transform: uppercase;
  border: 1px solid rgba(239,126,27,0.3);
}
.list-card-body h3 { margin-bottom: .35rem; }
@media (min-width: 700px) {
  .list-card { grid-template-columns: 200px 1fr; align-items: center; gap: 2rem; }
}

/* ============ Tile-Grid (Verbände/Vorstand) ============ */
.tile-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tile-grid { grid-template-columns: repeat(3, 1fr); } }

.tile {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  color: var(--text);
}
.tile:hover { transform: translateY(-3px); border-color: var(--orange); box-shadow: var(--shadow-md); }
.tile p { color: var(--text-muted); }
.tile .news-link { margin-top: auto; }
.tile-highlight { border-color: var(--orange); box-shadow: 0 8px 22px rgba(239,126,27,0.18); background: linear-gradient(135deg, rgba(239,126,27,0.10) 0%, var(--bg-elev) 70%); }
.tile-icon {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(239,126,27,0.15);
  color: var(--orange-light);
  margin-bottom: 1rem;
  border: 1px solid rgba(239,126,27,0.3);
}
.tile-person { text-align: center; align-items: center; }
.avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 2rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 20px var(--orange-glow);
}
.role { color: var(--text-faint); font-size: .9rem; }

.internal-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .internal-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============ Auth / Admin ============ */
.auth-section { display: flex; justify-content: center; }
.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  color: var(--text);
}
.auth-card h1 { font-size: 1.6rem; margin-bottom: .5rem; }
.auth-lead { color: var(--text-muted); margin-bottom: 1.5rem; }
.auth-hint { color: var(--text-faint); font-size: .85rem; margin-top: 1.25rem; }

.auth-form { text-align: left; display: flex; flex-direction: column; gap: 1rem; }
.auth-form label { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; font-size: .9rem; color: var(--text); }
.auth-form input[type="text"],
.auth-form input[type="password"] {
  font-family: inherit;
  font-size: 1rem;
  padding: .8rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-elev-2);
  color: var(--text-strong);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.auth-form input::placeholder { color: var(--text-faint); }
.auth-form input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(239,126,27,0.25);
  background: rgba(239,126,27,0.04);
}

.radio-group { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; display: flex; flex-direction: column; gap: .5rem; background: rgba(255,255,255,0.02); }
.radio-group legend { padding: 0 .5rem; font-weight: 700; font-size: .85rem; color: var(--text); }
.radio, .checkbox { display: flex; align-items: center; gap: .55rem; font-size: .92rem; color: var(--text); font-weight: 500; cursor: pointer; }
.radio input, .checkbox input { accent-color: var(--orange); width: 1rem; height: 1rem; }
.manual-pw { display: none; }
.radio-group:has(input[value="manual"]:checked) .manual-pw { display: block; }

.admin-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .admin-grid { grid-template-columns: 1fr 1.4fr; } }
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  color: var(--text);
}
.card h2 { font-size: 1.25rem; margin-bottom: 1rem; }

.credentials-box {
  background: linear-gradient(135deg, rgba(239,126,27,0.18) 0%, var(--bg-elev) 60%);
  border: 1px solid var(--orange);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 12px 30px var(--orange-glow);
}
.credentials-header h2 { margin-bottom: .25rem; color: var(--orange-light); }
.credentials-header p { color: var(--text); }
.credentials-list { display: grid; gap: .75rem; margin: 1rem 0 0; }
.credentials-list > div { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: .75rem 1rem; background: var(--bg); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.credentials-list dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); min-width: 110px; margin: 0; }
.credentials-list dd { margin: 0; font-weight: 600; color: var(--text-strong); }
.credentials-list code { background: var(--bg-elev-2); padding: .25rem .55rem; border-radius: var(--radius-sm); font-size: .95rem; color: var(--peach); border: 1px solid var(--border); }

.table-wrap { overflow-x: auto; }
.users-table { width: 100%; border-collapse: collapse; }
.users-table th, .users-table td { text-align: left; padding: .9rem 1rem; border-bottom: 1px solid var(--border); font-size: .92rem; vertical-align: middle; color: var(--text); }
.users-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); background: rgba(255,255,255,0.03); }
.user-cell { display: flex; flex-direction: column; }
.user-cell .muted { font-size: .82rem; color: var(--text-faint); font-weight: 400; }
.muted { color: var(--text-faint); }
.pill { background: rgba(255,255,255,0.06); color: var(--text); padding: .25rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 600; border: 1px solid var(--border); }
.pill-admin { background: rgba(239,126,27,0.15); color: var(--orange-light); border-color: rgba(239,126,27,0.4); }
.actions { display: flex; flex-wrap: wrap; gap: .35rem; }
.actions form { margin: 0; }

/* ============ Flash messages ============ */
.flash-container { max-width: var(--max-width); margin: 1rem auto 0; padding: 0 1.25rem; display: flex; flex-direction: column; gap: .5rem; position: relative; z-index: 5; }
.flash {
  padding: .85rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  border: 1px solid;
  backdrop-filter: blur(6px);
}
.flash-success { background: rgba(34,197,94,0.12);  color: #86EFAC; border-color: rgba(34,197,94,0.35); }
.flash-error   { background: rgba(244,63,94,0.12);   color: #FCA5A5; border-color: rgba(244,63,94,0.35); }
.flash-warning { background: rgba(234,179,8,0.14);   color: #FDE68A; border-color: rgba(234,179,8,0.4); }
.flash-info    { background: rgba(96,165,250,0.12);  color: #BFDBFE; border-color: rgba(96,165,250,0.35); }

/* ============ Footer ============ */
.site-footer {
  position: relative;
  z-index: 2;
  background: var(--bg-footer);
  color: var(--text-muted);
  padding: 3.5rem 0 1rem;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 700px) { .footer-inner { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-col h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--orange-light); }
.footer-brand .footer-logo { height: 64px; margin-bottom: .75rem; width: auto; max-width: 240px; }
.footer-tagline { color: var(--text-faint); font-size: .95rem; }
.social-row { display: flex; gap: .5rem; }
.social-btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--text);
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}
.social-btn:hover { background: var(--orange); border-color: var(--orange); color: #fff; transform: translateY(-2px); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 2.5rem auto 0;
  padding: 1.25rem 1.25rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-faint);
  font-size: .82rem;
}

/* ============ Instagram-Karten (Aktuelles) ============ */
.section-foot { text-align: center; margin-top: 2.5rem; }
.ig-handle { color: var(--orange-light); font-weight: 700; }
.ig-handle:hover { color: var(--orange); }

.ig-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.ig-card:hover { transform: translateY(-4px); border-color: var(--orange); box-shadow: var(--shadow-lg); }
.ig-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  color: #fff;
  overflow: hidden;
}
.ig-tone-orange .ig-card-media {
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(255,255,255,0.18) 0%, transparent 50%),
    linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
}
.ig-tone-peach .ig-card-media {
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(255,255,255,0.25) 0%, transparent 50%),
    linear-gradient(135deg, var(--peach) 0%, var(--orange-light) 100%);
  color: #2A2D34;
}
.ig-watermark {
  position: absolute;
  top: 12px;
  right: 12px;
  opacity: .9;
}
.ig-quote {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  line-height: 1.15;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0,0,0,0.25);
  max-width: 16ch;
}
.ig-card-body { padding: 1.25rem 1.25rem 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.ig-meta { font-size: .82rem; color: var(--text-faint); display: flex; align-items: center; gap: .35rem; margin-bottom: .5rem; }
.ig-meta time { color: var(--text-muted); font-weight: 500; }
.ig-handle-small { color: var(--orange-light); font-weight: 600; }
.ig-title { font-size: 1.1rem; margin-bottom: .5rem; line-height: 1.3; }
.ig-caption {
  color: var(--text-muted);
  font-size: .92rem;
  margin-bottom: .75rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ig-hashtags { display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin: 0 0 1rem; font-size: .8rem; }
.ig-hashtags span { color: var(--orange-light); font-weight: 600; }

/* ============ Beschluss-Filter & Grid ============ */
.beschluss-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.filter-chip {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: .5rem 1rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.filter-chip:hover { background: rgba(255,255,255,0.06); color: var(--orange-light); border-color: var(--orange-light); }
.filter-chip.is-active { background: var(--orange); border-color: var(--orange); color: #fff; }

.beschluss-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .beschluss-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .beschluss-grid { grid-template-columns: repeat(3, 1fr); } }

.beschluss-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.beschluss-card:hover { transform: translateY(-4px); border-color: var(--orange); box-shadow: var(--shadow-lg); }
.beschluss-card.is-hidden { display: none; }
.beschluss-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  color: inherit;
}
.beschluss-link:hover { color: inherit; }
.beschluss-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.beschluss-meta {
  font-size: .8rem;
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.beschluss-sachgebiet { color: var(--text-muted); font-weight: 600; }
.beschluss-title { font-size: 1.15rem; line-height: 1.3; margin-bottom: .65rem; }
.beschluss-summary { color: var(--text-muted); font-size: .92rem; flex-grow: 1; margin-bottom: 1rem; }
.beschluss-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
  font-size: .85rem;
}
.beschluss-author { color: var(--text-faint); }

/* ============ Beschluss-Detailseite ============ */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  font-size: .85rem;
  color: var(--text-faint);
  margin-bottom: .75rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--orange-light); }

.beschluss-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.25rem;
  margin-top: 1.25rem;
  font-size: .9rem;
  color: var(--text-muted);
}
.beschluss-meta-row .meta-item strong { color: var(--text); margin-right: .35rem; }

.beschluss-detail {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .beschluss-detail { grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; align-items: start; }
}

.beschluss-prose { color: var(--text); font-size: 1.05rem; line-height: 1.75; }
.beschluss-prose .lead {
  font-size: 1.15rem;
  color: var(--text);
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(239,126,27,0.12) 0%, var(--bg-elev) 70%);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-sm);
  margin-bottom: 2rem;
}
.beschluss-prose p { margin-bottom: 1.25rem; }

.beschluss-aside { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 900px) {
  .beschluss-aside { position: sticky; top: calc(var(--header-h) + 1rem); }
}
.card-meta .meta-list { display: grid; gap: .5rem; margin: 0; }
.card-meta dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); margin: 0; }
.card-meta dd { margin: 0 0 .5rem; color: var(--text); font-size: .92rem; font-weight: 500; }

.beschluss-nav {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
@media (min-width: 700px) {
  .beschluss-nav { grid-template-columns: 1fr 1fr; }
  .beschluss-nav-next { text-align: right; }
}
.beschluss-nav a {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem 1.25rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color var(--transition), transform var(--transition);
}
.beschluss-nav a:hover { border-color: var(--orange); transform: translateY(-2px); color: var(--text); }
.beschluss-nav strong { color: var(--text-strong); font-size: .98rem; line-height: 1.3; }

/* ============ Accessibility ============ */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: var(--orange);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .hero-media, .hero-overlay { position: absolute; }
}
