/* ══════════════════════════════════
   LFV Theme – Main Stylesheet
   Liechtensteinischer Feuerwehrverband
   ══════════════════════════════════ */

:root {
  --gold: #f9b000;
  --gold-hover: #e5a200;
  --gold-light: #fff8e5;
  --blue: #005caa;
  --blue-dark: #004080;
  --dark: #1f2324;
  --dark-deeper: #171a1b;
  --text: #333;
  --text-light: #666;
  --text-muted: #999;
  --border: #e5e5e5;
  --bg: #ffffff;
  --bg-soft: #f7f7f5;
  --font-body: 'DM Sans', sans-serif;
  --font-heading: 'Playfair Display', serif;
  --max-width: 1200px;
  --radius: 10px;
}

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { transition: color 0.2s, background 0.2s; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ══════════════════════════════════
   TOP BAR
   ══════════════════════════════════ */
.top-bar {
  background: var(--blue);
  color: white;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

.top-bar a:hover { color: white; }

.top-bar-social { display: flex; gap: 16px; }

.top-bar .notruf {
  font-weight: 700;
  color: var(--gold);
}

.top-bar .notruf span {
  font-size: 16px;
  margin-left: 4px;
}

/* ══════════════════════════════════
   HEADER
   ══════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--dark);
}

.logo img {
  height: 90px;
  width: auto;
}

.logo-text {
  font-size: 13px;
  line-height: 1.3;
  color: var(--text-light);
}

.logo-text strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.01em;
}

/* ── Navigation ── */
.main-nav { display: flex; align-items: center; gap: 4px; }

.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
}

.main-nav a:hover {
  background: var(--bg-soft);
  color: var(--blue);
}

.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  color: var(--blue);
  background: var(--bg-soft);
}

.main-nav .menu-item-has-children > a::after {
  content: ' ▾';
  font-size: 10px;
  color: var(--text-muted);
}

/* Dropdown */
.main-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  min-width: 200px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  list-style: none;
  z-index: 200;
}

.main-nav .menu-item-has-children {
  position: relative;
  list-style: none;
}

.main-nav .menu-item-has-children:hover > .sub-menu { display: block; }

.main-nav .sub-menu a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 4px;
}

.main-nav .sub-menu a:hover { background: var(--bg-soft); }

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-cta a {
  background: var(--gold) !important;
  color: var(--dark) !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
}

.nav-cta a:hover { background: var(--gold-hover) !important; }

/* Scrolled header */
.site-header.is-scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  font-size: 24px;
  color: var(--dark);
}

/* Mobile nav open state */
.main-nav.is-open ul {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  padding: 16px 24px;
  gap: 4px;
  z-index: 200;
}

.main-nav.is-open .sub-menu {
  position: static;
  box-shadow: none;
  border: none;
  padding: 0 0 0 16px;
}

/* ══════════════════════════════════
   HERO
   ══════════════════════════════════ */
.hero {
  position: relative;
  height: 320px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(31,35,36,0.85) 0%,
    rgba(31,35,36,0.35) 50%,
    rgba(31,35,36,0.1) 100%
  );
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-bottom: 48px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  line-height: 1.6;
}

.hero-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold);
  z-index: 3;
}

/* Hero für Unterseiten */
.hero--page { height: 280px; }
.hero--page h1 { font-size: 36px; }

/* ══════════════════════════════════
   PAGE HERO – kompakter Banner fuer Unterseiten (wie Original)
   ══════════════════════════════════ */
.page-hero {
  position: relative;
  padding: 60px 0 48px;
  overflow: hidden;
  text-align: center;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.92) 0%,
    rgba(255,255,255,0.85) 50%,
    rgba(255,245,220,0.8) 100%
  );
  z-index: 1;
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}

.page-hero-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 16px auto 0;
}

.page-hero-subtitle {
  font-size: 15px;
  color: var(--text-light);
  font-style: italic;
  position: relative;
  z-index: 2;
  margin-top: 12px;
}

/* ══════════════════════════════════
   CTA BANNER – goldener Banner unten auf Unterseiten
   ══════════════════════════════════ */
.cta-banner {
  background: linear-gradient(135deg, #fdf0cc 0%, #fff8e5 50%, #fdf0cc 100%);
  padding: 48px 0;
  text-align: center;
  border-top: 1px solid rgba(249,176,0,0.2);
  border-bottom: 1px solid rgba(249,176,0,0.2);
}

.cta-banner h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.cta-banner-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  padding: 12px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 2px solid var(--gold);
  transition: all 0.2s;
}

.cta-banner-btn:hover {
  background: transparent;
  color: var(--dark);
}

/* ══════════════════════════════════
   MAIN CONTENT – 2-Spalten Layout
   ══════════════════════════════════ */
.main-content {
  padding: 56px 0;
}

.main-content .container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

/* Volle Breite fuer Unterseiten */
.main-content--full .container {
  grid-template-columns: 1fr;
}

.main-content--full .news-grid-small {
  grid-template-columns: repeat(3, 1fr);
}

.main-content--full .news-featured {
  grid-template-columns: 1fr 1fr;
}

/* ── Content Header ── */
.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gold);
}

.content-header h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
}

.content-header a {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}

.content-header a:hover { color: var(--gold); }

/* ══════════════════════════════════
   NEWS CARDS
   ══════════════════════════════════ */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Featured News */
.news-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
}

.news-featured:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  border-color: var(--gold);
}

.news-featured .news-img {
  height: 100%;
  min-height: 280px;
  overflow: hidden;
}

.news-featured .news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-featured:hover .news-img img { transform: scale(1.03); }

.news-featured .news-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* News Grid */
.news-grid-small {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.news-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
}

.news-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
  border-color: var(--gold);
}

.news-card a { text-decoration: none; color: inherit; }

.news-card .news-img {
  height: 180px;
  overflow: hidden;
}

.news-card .news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-img img { transform: scale(1.03); }

.news-card .news-body { padding: 20px; }

.news-date {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.news-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--dark);
}

.news-featured .news-title { font-size: 22px; }

.news-excerpt {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  transition: gap 0.2s;
}

.news-read-more:hover { gap: 8px; color: var(--gold); }

/* ══════════════════════════════════
   SIDEBAR
   ══════════════════════════════════ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar-widget {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
}

.sidebar-widget-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  color: var(--dark);
}

/* Mitglieder Widget */
.member-count {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.member-count-box {
  flex: 1;
  background: var(--bg);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  border: 1px solid var(--border);
}

.member-count-num {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.member-count-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.member-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.member-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.member-list li a:hover {
  background: var(--bg);
  color: var(--blue);
}

.member-list li a img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: contain;
  background: white;
}

.member-list .year {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted);
}

/* Termine Widget */
.termin-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.termin-item:last-child { border-bottom: none; }

.termin-date-badge {
  min-width: 48px;
  text-align: center;
  background: var(--gold-light);
  border-radius: 6px;
  padding: 8px 6px;
}

.termin-date-badge .day {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}

.termin-date-badge .month {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.termin-info h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.termin-info h4 a {
  color: var(--dark);
  text-decoration: none;
}

.termin-info h4 a:hover { color: var(--blue); }

.termin-info p {
  font-size: 12px;
  color: var(--text-muted);
}

/* Notruf Widget */
.notruf-widget {
  background: var(--blue) !important;
  color: white;
  text-align: center;
  border: none !important;
}

.notruf-widget .number {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin: 8px 0;
}

.notruf-widget .label {
  font-size: 15px;
  font-weight: 600;
  opacity: 0.9;
}

.notruf-widget .sub {
  font-size: 12px;
  opacity: 0.6;
  margin-top: 4px;
}

/* Abzeichen Widget */
.abzeichen-widget {
  background: var(--gold-light) !important;
  border-color: var(--gold) !important;
}

.abzeichen-widget .price {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--dark);
  margin: 8px 0 12px;
}

.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.2s;
}

.btn-gold:hover { background: var(--gold-hover); }

/* ══════════════════════════════════
   PAGE CONTENT (Gutenberg)
   ══════════════════════════════════ */
.page-content {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
}

.page-content h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--dark);
}

.page-content h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--dark);
}

.page-content p { margin-bottom: 16px; }

.page-content ul, .page-content ol {
  margin: 0 0 16px 24px;
}

.page-content a { color: var(--blue); }
.page-content a:hover { color: var(--gold); }

.page-content img {
  border-radius: var(--radius);
}

.page-content .wp-block-gallery { margin: 32px 0; }
.page-content .wp-block-gallery img { margin: 0; border-radius: 6px; }

/* ── Gutenberg Blocks: Columns ── */
.page-content .wp-block-columns {
  gap: 40px;
  margin-bottom: 32px;
}

.page-content .wp-block-column {
  margin-bottom: 0;
}

/* ── Gutenberg Blocks: Groups (Member Cards etc) ── */
.page-content .wp-block-group {
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.page-content .wp-block-group:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border-color: var(--gold) !important;
}

.page-content .wp-block-group p {
  margin-bottom: 4px;
  line-height: 1.6;
}

.page-content .wp-block-group p img {
  display: inline-block;
  margin: 0;
  border-radius: 4px;
}

.page-content .wp-block-group small {
  color: var(--text-muted);
  font-size: 13px;
}

.page-content .wp-block-group a {
  font-size: 13px;
}

/* ── Gutenberg Blocks: Separator ── */
.page-content .wp-block-separator {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
  opacity: 1;
}

/* ── Gutenberg Blocks: Image sizing within columns ── */
.page-content .wp-block-column .wp-block-image img {
  margin: 0;
  width: 100%;
  height: auto;
}

.page-content .wp-block-column .wp-block-image {
  margin-bottom: 12px;
}

/* ── Verbandsleitung: Person names as H3 within columns ── */
.page-content .wp-block-column > .wp-block-heading:is(h3) {
  font-size: 20px;
  margin-top: 24px;
  margin-bottom: 4px;
  padding-bottom: 0;
  border-bottom: none;
}

.page-content .wp-block-column > .wp-block-heading:is(h3):first-child {
  margin-top: 0;
}

/* ── Counters (11 / 4 big numbers) ── */
.page-content .wp-block-columns.has-background {
  border-radius: var(--radius);
  margin: 32px 0;
}

/* ── Betriebsfeuerwehr logos ── */
.page-content .wp-block-column p img[style*="height:40px"] {
  border-radius: 0;
  margin: 0 auto 8px;
  display: block;
}

/* ══════════════════════════════════
   VERBANDSLEITUNG
   ══════════════════════════════════ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.team-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  border: 1px solid var(--border);
}

.team-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-card .role {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.team-card .email a {
  font-size: 13px;
  color: var(--blue);
  text-decoration: none;
}

/* ══════════════════════════════════
   FOTOGALERIE
   ══════════════════════════════════ */

/* Galerie-Seite: H4 als Sektions-Header */
.page-content h4.wp-block-heading {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--gold-light) 100%);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  position: relative;
}

/* FooGallery Container in Seiten-Content */
.page-content .foogallery-container {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 0;
}

/* FooGallery Thumbnails runder */
.page-content .foogallery .fg-item .fg-thumb {
  border-radius: 6px;
  overflow: hidden;
}

.page-content .foogallery .fg-item .fg-image-wrap {
  border-radius: 6px;
  overflow: hidden;
}

/* Spacer zwischen Galerien schmaler */
.page-content .wp-block-spacer {
  height: 24px !important;
}

/* Custom Gallery Grid (fallback fuer non-FooGallery) */
.gallery-section {
  margin-bottom: 48px;
}

.gallery-section h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.gallery-grid a {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.gallery-grid a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-grid a:hover img { transform: scale(1.05); }

/* ══════════════════════════════════
   KONTAKT SEITE
   ══════════════════════════════════ */
.kontakt-section {
  padding: 72px 0 96px;
  background: var(--bg-soft);
}

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

/* ── Formular-Card ── */
.kontakt-form-wrap {
  background: #fff;
  border-radius: 16px;
  padding: 48px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 24px rgba(0,0,0,0.06);
}

.kontakt-form-header {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.kontakt-form-header h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.kontakt-form-header p {
  font-size: 15px;
  color: var(--text-light);
}

/* ── Info-Card ── */
.kontakt-info {
  position: sticky;
  top: 100px;
}

.kontakt-info-inner {
  background: var(--blue);
  color: #fff;
  border-radius: 16px;
  padding: 40px 32px;
}

.kontakt-info-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 12px;
}

.kontakt-info-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 32px;
}

.kontakt-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.kontakt-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}

.kontakt-info-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.kontakt-info-list a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.2s;
}
.kontakt-info-list a:hover { color: var(--gold); }

.kontakt-info-divider {
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin-bottom: 24px;
}

.kontakt-info-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kontakt-social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.kontakt-social-link:hover { color: var(--gold); }

/* ══════════════════════════════════
   CONTACT FORM
   ══════════════════════════════════ */
.contact-form {
  width: 100%;
}

/* Fehlermeldung */
.form-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 24px;
}
.form-alert--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

/* Feldgruppen */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  margin-bottom: 20px;
}

.contact-form label,
.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-light);
  margin-bottom: 7px;
}

.contact-form label span,
.form-field label span { color: #dc2626; margin-left: 2px; }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--dark);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: #ccc;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,92,170,0.1);
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.6;
}

/* Checkbox */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
  cursor: pointer;
}

.form-check input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--blue);
  cursor: pointer;
}

.form-check span {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

/* Button */
.contact-form button[type="submit"],
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--dark);
  border: none;
  padding: 15px 36px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}

.contact-form button[type="submit"]:hover,
.btn-submit:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
}

.contact-form button[type="submit"]:active,
.btn-submit:active {
  transform: translateY(0);
}

/* Erfolg */
.form-success {
  text-align: center;
  padding: 56px 32px;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #16a34a;
}

.form-success h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--dark);
  margin-bottom: 8px;
}

.form-success p {
  font-size: 15px;
  color: var(--text-light);
  max-width: 380px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 900px) {
  .kontakt-grid {
    grid-template-columns: 1fr;
  }
  .kontakt-info {
    position: static;
    order: -1;
  }
  .kontakt-info-inner {
    padding: 28px 24px;
  }
  .kontakt-form-wrap {
    padding: 32px 24px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════
   FOOTER
   ══════════════════════════════════ */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  border-top: 4px solid var(--gold);
}

.footer-main {
  padding: 56px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
}

.footer-brand-text {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  margin-top: 16px;
}

.footer-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 18px;
}

.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }

.site-footer ul a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 14px;
}

.site-footer ul a:hover { color: var(--gold); }

.footer-address {
  color: rgba(255,255,255,0.5);
  font-style: normal;
  font-size: 14px;
  line-height: 1.8;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 14px;
}

.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
}

.footer-bottom a {
  color: rgba(255,255,255,0.3);
  text-decoration: none;
}

.footer-bottom a:hover { color: var(--gold); }

/* ══════════════════════════════════
   PAGINATION
   ══════════════════════════════════ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 40px;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: all 0.2s;
}

.pagination a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.pagination .current {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
}

/* ══════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════ */
@media (max-width: 900px) {
  .main-content .container {
    grid-template-columns: 1fr;
  }

  .news-featured { grid-template-columns: 1fr; }
  .news-featured .news-img { min-height: 220px; }
  .news-grid-small { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  .main-nav ul { display: none; }
  .menu-toggle { display: block; }

  .hero { height: 240px; }
  .hero h1 { font-size: 32px; }

  .team-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .top-bar-social { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { height: 160px; }
  .hero h1 { font-size: 26px; }
  .member-count { flex-direction: column; }
  .team-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════
   LEGAL PAGES – Impressum & Datenschutz
   ══════════════════════════════════ */
.impressum-content hr,
.datenschutz-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 8px;
  font-size: 14px;
}

.legal-table th,
.legal-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.legal-table th {
  background: var(--bg-soft);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-light);
}

.legal-table code {
  font-size: 13px;
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ══════════════════════════════════
   COOKIE CONSENT – Banner & Modal
   Mobile-first, DSGVO-konform
   ══════════════════════════════════ */

/* ── Banner ── */
.cc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #ffffff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
  padding: 1.25rem 1rem;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cc-banner.is-visible { transform: translateY(0); }

.cc-banner-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cc-banner-heading {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.cc-banner-text p {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

.cc-banner-text a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.cc-banner-text a:hover { color: var(--gold); }

.cc-banner-actions {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.cc-banner-actions .cc-btn { flex: 1; }
.cc-banner-actions .cc-btn-link { flex: none; width: 100%; }

/* ── Buttons ── */
.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  white-space: nowrap;
  min-height: 44px;
}

.cc-btn-primary { background: var(--blue); color: #fff; }
.cc-btn-primary:hover { background: var(--blue-dark); }

.cc-btn-secondary { background: var(--bg-soft); color: var(--text); border: 1px solid var(--border); }
.cc-btn-secondary:hover { background: var(--border); color: var(--dark); }

.cc-btn-link { background: transparent; color: var(--text-light); padding: 0.7rem 0.5rem; font-weight: 500; }
.cc-btn-link:hover { color: var(--blue); }

@media (hover: none) {
  .cc-btn:active { transform: scale(0.98); }
}

/* ── Settings Modal Overlay ── */
.cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(31,35,36,0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.cc-overlay.is-visible { opacity: 1; visibility: visible; }

/* ── Modal ── */
.cc-modal {
  background: #ffffff;
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cc-overlay.is-visible .cc-modal { transform: translateY(0); }

.cc-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cc-modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}

.cc-modal-close {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: none;
  background: var(--bg-soft);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: all 0.2s;
}

.cc-modal-close:hover { background: var(--border); color: var(--dark); }

.cc-modal-body { padding: 1.25rem 1.5rem; }

.cc-modal-intro {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* ── Cookie Category Cards ── */
.cc-category {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.cc-category:last-child { margin-bottom: 0; }

.cc-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.cc-category-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--dark);
}

.cc-category-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ── Toggle Switch (touch-friendly) ── */
.cc-toggle {
  position: relative;
  width: 48px;
  height: 26px;
  min-width: 48px;
  flex-shrink: 0;
}

.cc-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }

.cc-toggle-slider {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 26px;
  cursor: pointer;
  transition: background 0.25s;
}

.cc-toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
  transition: transform 0.25s;
}

.cc-toggle input:checked + .cc-toggle-slider { background: var(--blue); }
.cc-toggle input:checked + .cc-toggle-slider::before { transform: translateX(22px); }
.cc-toggle input:disabled + .cc-toggle-slider { background: #22c55e; cursor: default; }

.cc-toggle-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
  white-space: nowrap;
}

/* ── Modal Footer ── */
.cc-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.cc-modal-footer .cc-btn { width: 100%; }

/* ── Cookie Details (expandable) ── */
.cc-details {
  margin-top: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.cc-details summary {
  cursor: pointer;
  color: var(--blue);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.4rem 0;
  user-select: none;
}

.cc-details summary:hover { color: var(--gold); }
.cc-details[open] summary { margin-bottom: 0.75rem; }

.cc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.cc-table th,
.cc-table td {
  text-align: left;
  padding: 0.5rem 0.4rem;
  border-bottom: 1px solid var(--border);
}

.cc-table th {
  font-weight: 700;
  color: var(--dark);
  background: #fff;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cc-table td { color: var(--text-light); }
.cc-table tr:last-child td { border-bottom: none; }

.cc-privacy-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: #fff;
  border-radius: 6px;
}

.cc-privacy-note a { color: var(--blue); }

/* ── Responsive: Tablet+ ── */
@media (min-width: 480px) {
  .cc-banner-actions .cc-btn-link { flex: 1; width: auto; }
  .cc-modal-header { padding: 1.5rem; }
  .cc-modal-body { padding: 1.5rem; }
  .cc-category { padding: 1.25rem; }
  .cc-modal-footer {
    flex-direction: row;
    padding: 1.25rem 1.5rem;
    justify-content: flex-end;
  }
  .cc-modal-footer .cc-btn { width: auto; }
}

@media (min-width: 768px) {
  .cc-banner { padding: 1.5rem 2rem; }
  .cc-banner-content {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }
  .cc-banner-text { min-width: 300px; }
  .cc-banner-actions { justify-content: flex-end; }
  .cc-banner-actions .cc-btn { flex: none; }
  .cc-banner-actions .cc-btn-link { flex: none; width: auto; }
}

/* ── Mobile: hide Anbieter column ── */
@media (max-width: 480px) {
  .cc-table th:nth-child(2),
  .cc-table td:nth-child(2) { display: none; }
}
