/* style.css – FF Luttach (Milland-Look) – Firefox-kompatibel */

/* Font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root{
  --bg: #f6f6f4;
  --surface: #ffffff;
  --text: #1b1b1b;
  --muted: #6e6e6e;
  --line: #e6e6e0;

  --accent: #b20d0d;
  --accent-2: #8f0a0a;

  --radius: 14px;
  --radius-lg: 18px;

  --max: 1180px;
  --pad: 18px;

  --shadow-sm: 0 8px 18px rgba(0,0,0,.08);
  --shadow-md: 0 14px 30px rgba(0,0,0,.12);
}

*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; }

body{
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

/* Links */
a{ color: inherit; }
a:hover{ color: var(--accent-2); }

/* =========================
   TOPBAR / NAV
   ========================= */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,246,244,.98);
  border-bottom: 1px solid var(--line);
}

@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))){
  .topbar{
    background: rgba(246,246,244,.88);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

.topbar-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--pad);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  overflow: hidden;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  text-decoration:none;
  min-width: 0;
}

.brand-logo{
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-name{
  font-weight: 800;
  letter-spacing: .2px;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

@media (max-width: 360px){
  .brand-name{ font-size: 14px; }
}

/* =========================
   NAV (Desktop-Leiste wird NICHT genutzt)
   ========================= */
.nav{ display:none; }

/* =========================
   HAMBURGER (für ALLE Größen)
   ========================= */
.nav-toggle{
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.85);
  cursor:pointer;
  position: relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
}

.nav-toggle-bar{
  position:absolute;
  width:18px;
  height:2.5px;
  background:#202020;
  border-radius:999px;
  left:50%;
  transform: translateX(-50%);
  transition: transform .18s ease, opacity .18s ease, top .18s ease, background .18s ease;
}

.nav-toggle-bar:nth-child(1){ top: 14px; }
.nav-toggle-bar:nth-child(2){ top: 20.5px; }
.nav-toggle-bar:nth-child(3){ top: 27px; }

.nav-toggle:hover .nav-toggle-bar{
  background: var(--accent-2);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1){
  top: 20.5px;
  transform: translateX(-50%) rotate(45deg);
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(2){ opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3){
  top: 20.5px;
  transform: translateX(-50%) rotate(-45deg);
}

/* =========================
   DRAWER / OVERLAY
   ========================= */
.mobile-nav{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.40);
  opacity:0;
  pointer-events:none;
  transition: opacity .18s ease;
  z-index: 200;
}

.mobile-nav.is-open{
  opacity:1;
  pointer-events:auto;
}

.mobile-nav-panel{
  position:absolute;
  top:0;
  right:0;
  height:100%;
  width: min(360px, 92vw);
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  transform: translateX(12px);
  transition: transform .18s ease;
  padding: 14px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.mobile-nav.is-open .mobile-nav-panel{ transform: translateX(0); }

.mobile-nav-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 6px 6px 10px;
}

.mobile-nav-title{ font-weight: 900; letter-spacing: .2px; }

.mobile-nav-close{
  width:40px;
  height:40px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.03);
  cursor:pointer;
  font-weight: 900;
}

.mobile-nav-links{
  display:flex;
  flex-direction:column;
  gap: 6px;
  padding: 6px;
}

.mobile-nav-links a{
  text-decoration:none;
  font-weight: 800;
  font-size: 14px;
  padding: 12px 12px;
  border-radius: 12px;
}

.mobile-nav-links a:hover{ background: rgba(0,0,0,.05); }

.mobile-nav-links a.active{
  background: rgba(178,13,13,.12);
  color: var(--accent-2);
}

.no-scroll{ overflow:hidden; }

/* =========================
   SECTIONS
   ========================= */
main{ display:block; }

.section{
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px var(--pad);
}

.section-title{
  margin: 0 0 14px 0;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.4px;
  font-weight: 800;
}

.center{ text-align:center; }

.section-head{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-subtitle{
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.section-link{
  color: var(--accent-2);
  text-decoration:none;
  font-weight: 800;
  font-size: 13px;
}

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

.divider{
  border: 0;
  height: 1px;
  background: var(--line);
  max-width: var(--max);
  margin: 0 auto;
}

/* =========================
   HERO
   ========================= */
.hero{
  position: relative;
  width: 100%;
  height: clamp(380px, 55vh, 640px);
  overflow: hidden;
  background: #101010;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.hero-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
  filter: saturate(1.03) contrast(1.02);
}

.hero-overlay{
  position:absolute;
  inset: 0;
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  padding: 22px;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 60%);
}

.hero-box{
  width: min(390px, calc(100% - 8px));
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 14px 14px 12px;
}

@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))){
  .hero-box{
    background: rgba(255,255,255,.90);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

.hero-box-title{
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .3px;
  margin: 4px 4px 10px;
}

.hero-entry{
  display:grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  text-decoration:none;
}

.hero-entry:hover{ background: rgba(0,0,0,.05); }

.hero-entry-date{
  font-size: 12px;
  font-weight: 900;
  color: var(--accent-2);
}

.hero-entry-title{
  font-size: 13px;
  font-weight: 700;
}

.hero-more{
  display:inline-flex;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .4px;
  text-decoration:none;
}

.hero-more:hover{
  background: var(--accent-2);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

/* =========================
   WILLKOMMEN (FREIE COLLAGE)
   ========================= */
.section-welcome{ padding-top: 46px; }

.welcome-layout{
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 26px;
  align-items: start;
  margin-top: 14px;
}

.welcome-center{ display:flex; justify-content:center; }

.welcome-text{
  max-width: 760px;
  margin: 0 auto;
  font-size: 16px;
  text-align: center;
  color: #2a2a2a;
}
.welcome-text p{ margin: 10px 0; }

.welcome-side{
  position: relative;
  height: 520px;
  width: 100%;
}

.welcome-photo{
  position: absolute;
  object-fit: cover;
  display:block;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

/* LINKS */
.welcome-side-left .welcome-photo:nth-child(1){
  width: 78%; height: 160px; top: 0px; left: 10px; transform: rotate(-3.2deg);
}
.welcome-side-left .welcome-photo:nth-child(2){
  width: 62%; height: 120px; top: 130px; left: 88px; transform: rotate(2.6deg); z-index: 2;
}
.welcome-side-left .welcome-photo:nth-child(3){
  width: 84%; height: 150px; top: 250px; left: 0px; transform: rotate(-1.8deg);
}
.welcome-side-left .welcome-photo:nth-child(4){
  width: 58%; height: 130px; top: 390px; left: 96px; transform: rotate(3.1deg); z-index: 3;
}

/* RECHTS */
.welcome-side-right .welcome-photo:nth-child(1){
  width: 74%; height: 155px; top: 10px; right: 12px; transform: rotate(3.0deg);
}
.welcome-side-right .welcome-photo:nth-child(2){
  width: 64%; height: 135px; top: 145px; right: 92px; transform: rotate(-2.4deg); z-index: 2;
}
.welcome-side-right .welcome-photo:nth-child(3){
  width: 86%; height: 150px; top: 270px; right: 0px; transform: rotate(1.6deg);
}
.welcome-side-right .welcome-photo:nth-child(4){
  width: 56%; height: 125px; top: 405px; right: 108px; transform: rotate(-3.2deg); z-index: 3;
}

@media (max-width: 1040px){
  .welcome-layout{ grid-template-columns: 1fr; gap: 18px; }
  .welcome-side{
    height: 420px;
    max-width: 760px;
    margin: 0 auto;
  }
  .welcome-side-left .welcome-photo:nth-child(1),
  .welcome-side-right .welcome-photo:nth-child(1){
    width: 72%; height: 150px; top: 0px; left: 8px; right:auto;
  }
  .welcome-side-left .welcome-photo:nth-child(2),
  .welcome-side-right .welcome-photo:nth-child(2){
    width: 60%; height: 125px; top: 125px; left: 120px; right:auto;
  }
  .welcome-side-left .welcome-photo:nth-child(3),
  .welcome-side-right .welcome-photo:nth-child(3){
    width: 84%; height: 150px; top: 240px; left: 0px; right:auto;
  }
  .welcome-side-left .welcome-photo:nth-child(4),
  .welcome-side-right .welcome-photo:nth-child(4){
    width: 56%; height: 120px; top: 305px; left: 150px; right:auto;
  }
}

/* =========================
   STATISTIK-KACHELN
   ========================= */
.tiles{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (min-width: 1250px){
  .tiles{ grid-template-columns: repeat(5, 1fr); }
}

.tile{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow:hidden;
  box-shadow: var(--shadow-sm);
  text-decoration:none;
  transition: transform .18s ease, box-shadow .18s ease;
}

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

.tile-media{
  position: relative;
  border-radius: 0;
  overflow: hidden;
}

.tile img{
  width: 100%;
  height: 155px;
  object-fit: cover;
  display:block;
  border-radius: 0;
  filter: blur(0.79px) brightness(.82) contrast(1.05);
  transform: scale(1.04);
}

.tile-number{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-weight: 900;
  font-size: 64px;
  letter-spacing: .8px;
  line-height: 1;
  color: #fff;
  text-shadow: 0 12px 30px rgba(0,0,0,.70);
  pointer-events: none;
}

.tile-label{
  padding: 14px 14px 16px 14px;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .9px;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 520px){
  .tile-number{ font-size: 52px; }
  .tiles{ grid-template-columns: repeat(2, 1fr); }
}

/* =========================
   NEWS / VERANSTALTUNGEN
   ========================= */
.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}

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

.card-meta{
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.card-title{
  margin: 10px 0 8px;
  font-size: 16px;
  font-weight: 900;
}

.card-text{ font-size: 14px; }

/* =========================
   STARTSEITE: SCHNELLZUGRIFF-KACHELN
   ========================= */
.quick-card{
  display:flex;
  flex-direction: column;
  gap: 10px;
  text-decoration:none;
  color: inherit;
  height: 100%;
}

.quick-card-media{
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.quick-card-media img{
  width: 100%;
  height: 170px;
  object-fit: cover;
  display:block;
  transform: scale(1.02);
  transition: transform .22s ease, filter .22s ease;
  filter: saturate(1.02) contrast(1.02);
}

.quick-card-body{
  display:flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}

.quick-card-cta{
  margin-top: auto;
  display:inline-flex;
  align-items:center;
  gap: 8px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .4px;
  color: var(--accent-2);
  text-transform: uppercase;
}

.quick-card-cta::after{
  content: "→";
  font-weight: 900;
}

.card:hover .quick-card-media img{
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.05);
}

@media (max-width: 520px){
  .quick-card-media img{ height: 150px; }
}

/* =========================
   NOTRUF (Bild über ganze Box)
   ========================= */
.emergency-grid{
  display:grid;
  grid-template-columns: 1.35fr .85fr .85fr;
  gap: 16px;
}

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

.emergency-hero{
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(178,13,13,.20);
}

/* Background Bild über komplette Card */
.emergency-bg{
  position:absolute;
  inset:0;
  z-index:0;
}

.emergency-bg img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  opacity: .50;
  filter: contrast(.82) saturate(.82) brightness(1.10);
  transform: scale(1.04);
}

/* Overlay */
.emergency-hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:
    linear-gradient(135deg, rgba(178,13,13,.08), rgba(255,255,255,.92) 62%),
    radial-gradient(circle at 18% 10%, rgba(178,13,13,.14), transparent 58%);
  pointer-events:none;
}

.emergency-content{
  position: relative;
  z-index: 2;
}

.emergency-kicker{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 8px;
}

.emergency-kicker .dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(178,13,13,.12);
  animation: dotPulse 1.8s ease-in-out infinite;
}

@keyframes dotPulse{
  0%, 100%{
    box-shadow: 0 0 0 6px rgba(178,13,13,.10), 0 0 0 0 rgba(178,13,13,0);
    transform: scale(1);
  }
  50%{
    box-shadow: 0 0 0 10px rgba(178,13,13,.10), 0 0 18px rgba(178,13,13,.22);
    transform: scale(1.06);
  }
}

.emergency-row{
  display:flex;
  align-items:center;
  gap: 14px;
}

.emergency-112{
  font-weight: 900;
  font-size: 46px;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--accent-2);
}

.emergency-card{
  border: 1px solid rgba(178,13,13,.14);
}

.emergency-card .card-meta{
  color: var(--accent-2);
  font-weight: 800;
}

/* =========================
   FOOTER
   ========================= */
.ff-footer{
  margin-top: 30px;
  border-top: 1px solid rgba(0,0,0,.06);
  background: #101010;
  color: rgba(255,255,255,.92);
}

.ff-footer a{
  color: rgba(255,255,255,.92);
  text-decoration:none;
}
.ff-footer a:hover{ text-decoration: underline; }

.ff-footer-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px var(--pad);
  display:grid;
  grid-template-columns: 1.4fr .9fr 1fr;
  gap: 24px;
  align-items: start;
}

.ff-footer-buttons{
  display:flex;
  gap: 10px;
  margin-bottom: 14px;
}
.ff-footer-btn{
  display:inline-flex;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  font-weight: 800;
  font-size: 12px;
}
.ff-footer-btn:hover{ background: rgba(255,255,255,.12); }

.ff-footer-title{
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: .2px;
}
.ff-footer-meta{
  color: rgba(255,255,255,.78);
  font-size: 13px;
  line-height: 1.6;
}

.ff-footer-icons{
  display:flex;
  gap: 14px;
  align-items:flex-start;
}
.ff-icon{
  display:flex;
  flex-direction: column;
  align-items:center;
  gap: 8px;
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}
.ff-icon img{
  width: 34px;
  height: 34px;
  object-fit: contain;
  display:block;
}
.ff-icon-label{
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .8px;
  opacity: .9;
}

.ff-footer-apps{
  display:flex;
  flex-direction: column;
  gap: 12px;
}
.ff-app{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}
.ff-app img{
  width: 42px;
  height: 42px;
  object-fit: contain;
  display:block;
}
.ff-app-link{
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2px;
  color: rgba(255,255,255,.90);
}

.ff-footer-bottom{
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 14px var(--pad);
  text-align:center;
  color: rgba(255,255,255,.70);
  font-size: 12px;
  letter-spacing: .2px;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 1100px){
  .cards{ grid-template-columns: repeat(2, 1fr); }
  .ff-footer-inner{ grid-template-columns: 1fr; }
}

@media (max-width: 720px){
  .hero-overlay{ padding: 14px; }
  .section{ padding: 46px var(--pad); }
  .section-title{ font-size: 28px; }
}

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

/* =========================
   EINSÄTZE & ÜBUNGEN (Jahres-Accordion + Tabellen)
   ========================= */
.year-block{ margin-top:14px; }

.year-summary{
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:14px 16px;
  border-radius: var(--radius-lg);
  border:1px solid var(--line);
  background:#fff;
  box-shadow: var(--shadow-sm);
  font-weight:900;
}

.year-summary:hover{ background: rgba(0,0,0,.02); }

.year-count{
  color: var(--muted);
  font-weight:800;
  font-size: 13px;
}

/* Details: Standardmarker weg + schöner Pfeil */
details > summary{ list-style:none; }
details > summary::-webkit-details-marker{ display:none; }
details > summary::after{
  content:"▾";
  font-weight:900;
  color: var(--muted);
  transform: translateY(-1px);
}
details[open] > summary::after{ content:"▴"; }

.year-table-wrap{
  margin-top:10px;
  border:1px solid var(--line);
  background:#fff;
  border-radius: var(--radius-lg);
  overflow:auto;
  box-shadow: var(--shadow-sm);
}

/* Tabellen-Layout */
table.year-table{
  width:100%;
  border-collapse:collapse;
  min-width: 980px;
  font-size: 13px;
}

.year-table th,
.year-table td{
  padding:10px 12px;
  border-bottom:1px solid rgba(0,0,0,.06);
  vertical-align:top;
  text-align:left;
}

.year-table th{
  font-size:12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing:.5px;
  font-weight:900;
  background: rgba(0,0,0,.02);
  position: sticky;
  top: 0;
  z-index: 1;
}

/* Text in Tabellenzellen (nicht zu hoch) */
.cell-text{
  display:block;
  max-width: 680px;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* kleine Pills (z.B. Alarmstufe) */
.pill{
  display:inline-flex;
  align-items:center;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  font-weight:900;
  font-size:12px;
  background:#fff;
}

/* Abstand zwischen Einsätzen und Übungen */
.section-split{ margin-top:34px; }

/* Mobile: Tabelle horizontal scrollbar (wrap ist overflow:auto) */
@media (max-width: 720px){
  table.year-table{ min-width: 920px; }
  .cell-text{ max-width: 520px; }
}

/* =========================================================
   ADMIN ASSETS (Thumbs sauber)
   ========================================================= */
.thumb{
  width:72px;
  height:72px;
  object-fit:cover;
  border-radius:12px;
  border:1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.thumb-empty{
  width:72px;
  height:72px;
  border-radius:12px;
  border:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,.03);
  font-weight:900;
  color: var(--muted);
}

/* =========================================================
   MANNSCHAFT – FINAL (zentrierte Reihen + runde Bilder)
   ========================================================= */

/* Subnav (falls du sie nutzt) */
.team-subnav{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin: 10px 0 18px;
}

.team-subnav a{
  display:inline-flex;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.85);
  font-weight:900;
  font-size:12px;
  letter-spacing:.35px;
  text-transform:uppercase;
  text-decoration:none;
}

.team-subnav a:hover{
  background: rgba(0,0,0,.05);
  color: var(--accent-2);
}

/* =========================
   MANNSCHAFT – IMMER ZENTRIERT (Flex Wrap)
   5 = 3 + 2 (unten mittig)
   ========================= */

.team-grid{
  --card: 260px;  /* minimal größer */
  --gap: 24px;

  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);

  justify-content: center;   /* 🔥 jede Zeile zentriert */
  align-items: stretch;

  /* max. 3 pro Reihe */
  max-width: calc(var(--card) * 3 + var(--gap) * 2);
  margin-left: auto;
  margin-right: auto;
}

.team-grid .person-card{
  width: var(--card);
}

/* ✅ Spezialfall: genau 4 → 2 + 2 (statt 3 + 1) */
.team-grid:has(> .person-card:nth-child(4)):not(:has(> .person-card:nth-child(5))){
  max-width: calc(var(--card) * 2 + var(--gap));
}

/* Card */
.person-card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px 18px 24px;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}

/* Rundes Foto */
.person-photo{
  width: 170px;
  height: 170px;
  border-radius: 999px;
  overflow:hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: rgba(0,0,0,.04);
}

.person-photo img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

/* Text */
.person-body{ padding-top: 14px; }

.person-role{
  font-size: 12px;
  font-weight: 900;
  color: var(--accent-2);
  letter-spacing: .4px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.person-name{
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}

/* Badges */
.person-tags{
  margin-top: 12px;
  display:flex;
  gap: 8px;
  flex-wrap:wrap;
  justify-content:center;
}

.person-tag{
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 900;
  font-size: 12px;
}

/* Tablet: max. 2 pro Reihe */
@media (max-width: 900px){
  .team-grid{
    --card: 240px;
    max-width: calc(var(--card) * 2 + var(--gap));
  }
}

/* Mobile: 1 pro Reihe */
@media (max-width: 520px){
  .team-grid{
    --card: 220px;
    max-width: none;
  }

  .team-grid .person-card{
    width: min(100%, var(--card));
  }
}

/* =========================
   MANNSCHAFT – RAHMEN (dezent)
   ========================= */

/* 🔴 Leitung: Kommandant + Stv. */
.person-card.is-leitung{
  border-color: rgba(178, 13, 13, .45);
  box-shadow:
    0 0 0 1px rgba(178, 13, 13, .10),
    var(--shadow-sm);
}

/* 🟡 Führung: Zug + Gruppen (inkl. Stellvertreter) */
.person-card.is-fuehrung{
  border-color: rgba(215, 170, 40, .55);
  box-shadow:
    0 0 0 1px rgba(215, 170, 40, .12),
    var(--shadow-sm);
}

/* =========================
   HERO: Mobile – 3 Einsätze, aber weniger im Weg
   ========================= */
@media (max-width: 720px){
  .hero{
    height: clamp(440px, 68vh, 680px); /* mehr Bildfläche */
  }

  .hero-overlay{
    align-items:flex-end;
    justify-content:center; /* Box unten mittig statt rechts */
    padding: 12px;
    background: linear-gradient(to top, rgba(0,0,0,.34), rgba(0,0,0,0) 72%);
  }

  .hero-box{
    width: min(520px, calc(100% - 10px));
    padding: 10px 10px 8px;

    /* weniger “Block”, mehr “Overlay” */
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(255,255,255,.45);

    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .hero-box-title{
    margin: 2px 4px 6px;
    font-size: 13px;
  }

  /* 3 Einträge bleiben sichtbar, aber kompakter */
  .hero-entry{
    padding: 8px;
    gap: 8px;
    grid-template-columns: 86px 1fr;
  }

  .hero-entry-date{
    font-size: 11px;
    line-height: 1.1;
  }

  .hero-entry-title{
    font-size: 12px;
    line-height: 1.2;
  }

  .hero-more{
    margin-top: 8px;
    padding: 9px 12px;
    font-size: 12px;
  }
}

/* sehr kleine Phones: noch kompakter, aber weiterhin 3 Einträge */
@media (max-width: 420px){
  .hero-overlay{ padding: 10px; }

  .hero-box{
    padding: 9px 9px 7px;
    background: rgba(255,255,255,.76);
  }

  .hero-entry{
    padding: 7px;
    grid-template-columns: 80px 1fr;
  }

  .hero-entry-date{ font-size: 10.5px; }
  .hero-entry-title{ font-size: 11.5px; }
}
