/* =====================================================
   Racecoat – Base Styles (Dark default + Light toggle)
   Fonts: Play (headlines), Inter (text)
   Color tokens follow prior Racecoat design language.
   ===================================================== */
:root {
  --primary: #dc3545;
  --primary-hover: #b12c38;
  --secondary: #40464d;
  --secondary-hover: #353a40;
  --grey: #6c757d;
  --grey-hover: #5a6369;
  --white: #eeeeee;
  --white-hover: #dddddd;
  --blue: #17a2b8;
  --blue-hover: #138496;
  --bg: #101114;
  --bg-elev: #1b1c1f;
  --border: #26272b;
  --text: #f8f9fa;
  --text-dim: #c9ccd1;
  --muted: #8a8f98;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 14px;
  --container: 1200px;
}

body.theme-light {
  --bg: #ffffff;
  --bg-elev: #f4f5f7;
  --border: #e6e8eb;
  --text: #0f1115;
  --text-dim: #343840;
  --muted: #5b616b;
  --shadow: 0 10px 25px rgba(16,17,20,.08);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;

  a { color: var(--primary); text-decoration: none; transition: color 0.2s ease; }
}

.grecaptcha-badge { visibility: hidden; }

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

hr { 
  border: 0; height: 2px; margin: 14px 0; 
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--primary) 50%, var(--border) 50%), transparent);
}

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

/* Typography */
.headline-xxl { font-family: Play, Inter, sans-serif; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.15; letter-spacing: .4px; }
.headline-xl  { font-family: Play, Inter, sans-serif; font-size: clamp(1.8rem, 3.2vw, 2.4rem); line-height: 1.2; }
.headline-md  { font-family: Play, Inter, sans-serif; font-size: 1.25rem; line-height: 1.3; }

/* Typography - headline-xl bleibt weiß im Light Mode bei Leather Colors */
body.theme-light .leather-colors .headline-xl {
  color: #ffffff !important;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--bg-elev); color: var(--text);
  padding: .85rem 1.2rem;
  border: none;
  border-radius: var(--radius); text-decoration: none; font-weight: 600;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.btn:hover { background: var(--primary-hover);}
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); border-color: #b72b37; }
.btn-ghost { background: transparent; border-color: var(--border); }
.btn-outline { background: transparent; border: 2px solid var(--text); }
.btn-small { padding: .55rem .9rem; font-size: .95rem; }
.btn-icon { display: inline-flex; justify-content: center; width: 2.2rem; height: 2.2rem; }

.btn-outline {
    background: transparent;
    border: 2px solid;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.2s 
ease;
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

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

/* Blur */
.blur {
  backdrop-filter: blur(10px);
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  padding: 10px 0px 10px 0px;
  border-radius: var(--radius);
}

/* Blur Container in Video Section - Mobile Anpassung */
.section--video .blur {
  padding: 20px;
}

/* Navbar */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  backdrop-filter: blur(10px);
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  padding: 10px 0px 10px 0px;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }

/* Navbar Buttons - Textfarbe bleibt weiß im Light Mode */
.navbar .btn,
.navbar .btn i {
  color: #ffffff !important;
}

/* Ausnahmen: Guideline und Theme Toggle bekommen schwarze Textfarbe im Light Mode */
body.theme-light .navbar .btn-guideline,
body.theme-light .navbar .btn-guideline i,
body.theme-light .navbar #themeToggle,
body.theme-light .navbar #themeToggle i {
  color: #0f1115 !important;
}

/* Dropdown Links bleiben im Light Mode schwarz */
body.theme-light .dropdown-menu a,
body.theme-light .dropdown-menu a i {
  color: #0f1115 !important;
}

body.theme-light .dropdown-menu a:hover {
  color: var(--primary) !important;
}

/* Alle Buttons im Body behalten weiße Textfarbe im Light Mode */
body.theme-light .btn:not(.navbar .btn):not(.navbar .btn-guideline):not(.navbar #themeToggle),
body.theme-light .btn:not(.navbar .btn):not(.navbar .btn-guideline):not(.navbar #themeToggle) i {
  color: #ffffff !important;
}

.logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-weight: 800; width: 250px; }
.logo img { filter: invert(0); transition: filter 0.3s ease; }
 body.theme-light .logo img { filter: invert(1); }
 body.theme-light .footer-logo-btn img { filter: invert(1); }
.logo-mark { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--rc-red), #ff6b6b); display: inline-block; }
.logo-text { font-family: Play, Inter, sans-serif; letter-spacing: 1px; }
.nav-links { display: flex; align-items: center; gap: 20px; text-transform: uppercase;}
.nav-links a { color: var(--text); text-decoration: none; opacity: .9; font-family: Play; transition: color 0.3s ease-in-out; }
.nav-links a:hover { 
  color: var(--primary);
}
.menu-toggle { 
  display: none; 
  background: none; 
  border: 0; 
  color: var(--text); 
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

.menu-toggle:hover {
  color: var(--primary);
  transform: scale(1.1);
}

.menu-toggle:active {
  transform: scale(0.95);
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  
  /* Mobile Navigation Layout */
  .nav-inner {
    position: relative;
    padding: 12px 1rem;
  }
  
  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
  }
  
  .logo img {
    height: 32px;
    width: auto;
  }
  
  .menu-toggle {
    margin-left: auto;
    padding-right: 0.5rem;
  }
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed; inset: 0 0 0 auto; width: min(86%, 420px);
  box-shadow: var(--shadow); transform: translateX(100%);
  transition: transform .28s ease; z-index: 1100; display: flex; flex-direction: column;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer a, .mobile-drawer button {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  color: var(--text); text-decoration: none; background: none; text-align: left;
}
.mobile-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }

/* Sections */
.section { padding: 80px 0; }
.section .headline-xl { margin-bottom: 24px; }
.card {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.card-body { padding: 16px 18px; }

/* Hero */
.hero { position: relative; min-height: calc(100vh - 64px); display: grid; place-items: center; }
.hero-media {
  position: absolute; inset: 0;
  background-image:
    url('/assets/img/racecoat_hero_bg_1.jpg');
  background-size: cover; background-position: center;
}
.hero-overlay { position: absolute; inset: 0; }
.hero-inner { position: relative; text-align: left; padding: 80px 20px; }
.hero .subline { max-width: 760px; color: var(--text-dim); margin: 10px 0 24px; font-size: 1.1rem; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero Slider - Text bleibt immer weiß (auch im Light Mode) */
.hero-slider .hero-inner span,
.hero-slider .hero-inner h1,
.hero-slider .hero-inner p {
  color: #ffffff !important;
}

.hero-slider .hero-inner span {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Hero Slider Buttons - Textfarbe bleibt weiß im Light Mode */
.hero-slider .hero-ctas .btn {
  color: #ffffff !important;
}

.hero-slider .hero-ctas .btn i {
  color: #ffffff !important;
}

/* Products */
.product-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 18px;
}
.product-card img { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; }
.product-card .link { color: var(--rc-red); text-decoration: none; font-weight: 700; }
.product-card .price { margin: 6px 0 10px; font-weight: 700; color: var(--primary); }

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

/* USP */
.usp-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.usp-item { padding: 22px; text-align: left; }
.usp-item i { font-size: 1.8rem; color: var(--rc-red); margin-bottom: 10px; display: inline-block; }
@media (max-width: 960px) { .usp-grid { grid-template-columns: 1fr; } }

/* Gallery / Instagram Feed */
.gallery { text-align: center; }
.instagram-feed-wrapper { 
  max-width: 1200px; 
  margin: 0 auto; 
  border-radius: var(--radius); 
  box-shadow: var(--shadow);
  /* Enable scrolling when content exceeds block height */
  overflow: auto; 
  max-height: 520px;
}
.lightwidget-widget { 
  width: 100%; 
  border: 0;
  height: 6100px;
}

@media (max-width: 960px) {
  .lightwidget-widget {
    height: 1200px;
  }
}

@media (max-width: 600px) {
  .lightwidget-widget {
    height: 900px;
  }
}

/* Custom scrollbar for Instagram feed wrapper */
.instagram-feed-wrapper { scrollbar-width: thin; scrollbar-color: var(--primary) var(--bg-elev); }
.instagram-feed-wrapper::-webkit-scrollbar { height: 10px; width: 10px; }
.instagram-feed-wrapper::-webkit-scrollbar-track { background: var(--bg-elev); border-radius: 10px; }
.instagram-feed-wrapper::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }
.instagram-feed-wrapper::-webkit-scrollbar-thumb:hover { background: var(--primary-hover); }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.testimonial { padding: 20px; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.testimonial figcaption img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.testimonial blockquote { margin: 0; color: var(--text-dim); font-style: italic; }
@media (max-width: 960px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* CTA */
.cta { position: relative; padding: 100px 0; }
.cta-media {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(180deg, rgba(16,17,20,.6), rgba(16,17,20,.9)),
    url('/assets/img/racecoat_lederkombi_bg_2.jpg');
  background-size: cover; background-position: center;
}
.cta-inner { position: relative; display: grid; gap: 16px; place-items: center; text-align: center; }
.cta .btn { border-color: var(--text); }

/* CTA Section - Text bleibt weiß im Light Mode */
body.theme-light .cta h2,
body.theme-light .cta h3,
body.theme-light .cta p,
body.theme-light .cta .headline-xl {
  color: #ffffff !important;
}

/* Page Hero (inner pages) */
.page-hero { position: relative; padding: 80px 0; }
.page-hero-media {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(180deg, rgba(16,17,20,.65), rgba(16,17,20,.85)),
    url('/assets/img/racecoat_hero-small_bg_1.jpg');
  background-size: cover; background-position: center;
}

.page-hero-media-uber-uns {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(180deg, rgba(16,17,20,.65), rgba(16,17,20,.85)),
    url('/assets/img/racecoat_hero_bg_4.jpg');
  background-size: cover; background-position: center;
}

.page-hero-media-refferenzen {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(180deg, rgba(16,17,20,.65), rgba(16,17,20,.85)),
    url('/assets/img/racecoat_hero_bg_5.jpg');
  background-size: cover;
}
.page-hero-inner { position: relative; text-align: center; display: grid; gap: 10px; }
.breadcrumb { color: var(--text-dim); font-size: .95rem; }
.breadcrumb a { color: var(--text-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }

/* Page Hero Inner - Text behält Standard-Farbe im Light Mode */
body.theme-light .page-hero-inner h1,
body.theme-light .page-hero-inner p,
body.theme-light .page-hero-inner .breadcrumb,
body.theme-light .page-hero-inner .breadcrumb a {
  color: #c9ccd1 !important;
}

/* Payments page */
.payments .section { scroll-margin-top: 90px; }
.payment-method .payment-icon { height: 54px; width: auto; margin: 0 auto 10px; }
.payment-method h2 { margin-top: 6px; }
.payments ul, .payments ol { padding-left: 1.2rem; }

/* Careers page */
.jobs .jobs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.job-card {
  padding: 18px 18px 16px;
}
.job-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.job-head h3 { margin: 0; }
.job-meta { color: var(--text-dim); }
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .2px;
  line-height: 1;
  white-space: nowrap;
  width: 100%;
  text-align: center;
  margin-bottom: 25px;
}
.badge-open {
  color: #2ecc71;
  background: rgba(46, 204, 113, .14);
  border: 1px solid rgba(46, 204, 113, .5);
}
.badge-closed {
  color: #e74c3c;
  background: rgba(231, 76, 60, .14);
  border: 1px solid rgba(231, 76, 60, .5);
}
/* Careers: details inside job cards */
.job-attrs { color: var(--text-dim); margin: 6px 0 8px; }
.job-subtitle { margin: 10px 0 6px; font-size: 1rem; font-family: Play;}
.job-card ul { 
  margin: 0 0 10px; 
  padding: 0; 
  list-style: none; 
  border: 1px solid var(--border);
  border-radius: 10px; 
  overflow: hidden; 
}
.job-card li { 
  margin: 0; 
  padding: 10px 12px; 
}
.job-card li + li { border-top: 1px solid var(--border); }
/* zebra striping */
.careers .job-card ul li:nth-child(odd){ background: color-mix(in oklab, var(--bg-elev) 92%, #fff 8%); }
.careers .job-card ul li:nth-child(even){ background: color-mix(in oklab, var(--bg-elev) 96%, #000 4%); }
/* nicer HR inside careers */
.careers hr { 
  border: 0; height: 2px; margin: 14px 0; 
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--primary) 50%, var(--border) 50%), transparent);
}

/* job images inside cards */
.job-card img { width: 100%; height: auto; border-radius: var(--radius); margin: 8px 0; display: block; }
@media (max-width: 1100px){
  .jobs .jobs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px){
  .jobs .jobs-grid { grid-template-columns: 1fr; }
}

/* Wissensbank / FAQ page */
.wissensbank {
  width: 100%;
}

.wissensbank * {
  box-sizing: border-box;
}

.faq-section {
  width: 100%;
}

.faq-section .container {
  width: 100%;
  max-width: 100%;
}

.faq-wrapper {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
  width: 100%;
  max-width: 100%;
}

/* Category sidebar - sticky navigation */
.faq-categories {
  position: -webkit-sticky; /* Safari support */
  position: sticky;
  top: 120px;
  align-self: start;
  z-index: 5;
}
.faq-cat-sticky {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.faq-cat-link {
  display: block;
  padding: 10px 14px;
  color: var(--text-dim);
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}
.faq-cat-link:hover {
  background: color-mix(in oklab, var(--bg) 90%, var(--primary) 10%);
  color: var(--text);
}
.faq-cat-link.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

/* FAQ content area */
.faq-content {
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: 100%;
  max-width: 100%;
  min-width: 0; /* Erlaubt Flex-Items zu schrumpfen */
}

.faq-group {
  scroll-margin-top: 100px;
  width: 100%;
  max-width: 100%;
}

.faq-group-title {
  color: var(--primary);
  margin: 0 0 18px;
  font-family: Play, Inter, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
}

/* FAQ accordion items */
.faq-item {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease;
  width: 100%;
  max-width: 100%;
}
.faq-item:hover {
  border-color: color-mix(in oklab, var(--border) 70%, var(--primary) 30%);
}
.faq-item[open] {
  border-color: var(--primary);
}

.faq-question {
  padding: 16px 18px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  transition: background 0.2s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}
.faq-question:hover {
  background: color-mix(in oklab, var(--bg-elev) 94%, var(--primary) 6%);
}
.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  line-height: 1;
  grid-column: 2;
}
.faq-item[open] .faq-question::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 18px 18px;
  color: var(--text-dim);
  line-height: 1.7;
  animation: fadeIn 0.3s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
  width: 100%;
  box-sizing: border-box;
}
.faq-answer p {
  margin: 0 0 10px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.faq-answer p:last-child {
  margin-bottom: 0;
}
.faq-answer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.faq-answer a:hover {
  text-decoration: underline;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive layout */
@media (max-width: 1100px) {
  .faq-wrapper {
    display: block; /* Grid auf Mobile deaktivieren */
    width: 100%;
    max-width: 100%;
  }
  .faq-categories {
    position: -webkit-sticky;
    position: sticky;
    top: 90px; /* Header-Höhe */
    width: 100%;
    max-width: 100%;
    z-index: 100;
    background: var(--bg);
    padding: 12px 0;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  .faq-cat-sticky {
    position: relative;
    top: 0;
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: thin;
    padding: 12px;
    width: 100%;
    max-height: none;
  }
  .faq-cat-link {
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  
  .faq-content {
    width: 100%;
  }
  
  .faq-group {
    scroll-margin-top: 180px; /* Header + Sticky Navigation */
  }
}

@media (max-width: 768px) {
  .faq-categories {
    top: 80px; /* Kleinerer Header auf Mobile */
    padding: 10px 0;
  }
  
  /* Sticky navigation als horizontale Scrollbar */
  .faq-cat-sticky {
    gap: 6px;
    padding: 10px;
  }
  
  .faq-cat-link {
    padding: 8px 14px;
    font-size: 0.88rem;
  }
  
  .faq-group {
    scroll-margin-top: 160px; /* Angepasst für kleineren Header */
  }
  
  /* FAQ-Fragen umbrechen bei langen Texten */
  .faq-question {
    padding: 14px 12px;
    font-size: 0.98rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    grid-template-columns: minmax(0, 1fr) 28px;
    gap: 8px;
    max-width: 100%;
  }
  
  .faq-item {
    max-width: 100%;
    overflow: hidden;
  }
  
  .faq-question::after {
    font-size: 1.3rem;
  }
  
  .faq-group-title {
    font-size: 1.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .faq-item {
    margin-bottom: 8px;
  }
  
  .faq-answer {
    padding: 0 12px 12px;
    font-size: 0.95rem;
  }
}

@media (max-width: 600px) {
  .wissensbank .container {
    padding: 0 12px; /* Reduziertes Padding auf sehr kleinen Screens */
  }
  
  .faq-categories {
    top: 70px; /* Noch kleinerer Header */
    padding: 8px 0;
  }
  
  .faq-group {
    scroll-margin-top: 140px; /* Angepasst für sehr kleine Screens */
  }
  
  .faq-question {
    padding: 12px 10px;
    font-size: 0.92rem;
    line-height: 1.4;
    grid-template-columns: minmax(0, 1fr) 24px;
    gap: 6px;
    word-break: break-word;
  }
  
  .faq-question::after {
    font-size: 1.2rem;
  }
  
  .faq-answer {
    padding: 0 10px 10px;
    font-size: 0.9rem;
  }
  
  .faq-cat-sticky {
    padding: 8px;
    gap: 4px;
  }
  
  .faq-cat-link {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
  
  .faq-group-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
  }
  
  .faq-content {
    gap: 24px;
  }
  
  .faq-item {
    margin-bottom: 6px;
  }
}

/* Über uns / About page */
.about-mission-grid {
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 48px; 
  align-items: start;
}
.about-mission-image {
  border-radius: 12px; 
  object-fit: cover; 
  align-self: center;
  width: 100%;
  height: auto;
}

.about-craft-grid {
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 48px; 
  align-items: start;
}
.about-craft-image {
  border-radius: 12px; 
  object-fit: cover; 
  align-self: center;
  width: 100%;
  height: auto;
}

.about-innovation-grid {
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 48px; 
  align-items: start;
}
.about-innovation-image {
  border-radius: 12px; 
  object-fit: cover; 
  align-self: center;
  width: 100%;
  height: 100%;
}

.about .features-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 16px;
}
.about .feature-card {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; text-align: left; transition: transform .2s ease, border-color .2s ease;
}
.about .feature-card:hover { transform: translateY(-2px); border-color: var(--primary); }
.about .feature-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 10px;
  background: color-mix(in oklab, var(--primary) 18%, var(--bg) 82%); color: #fff; }
.about .stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.about .stat-card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; text-align: center; }
.about .stat-num { font-family: Play, Inter, sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.about .stat-label { color: var(--text-dim); font-size: .95rem; }
.about .about-list { 
  margin: 10px 0 0; padding: 0; list-style: none; 
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden; 
}
.about .about-list li { padding: 10px 12px; }
.about .about-list li + li { border-top: 1px solid var(--border); }
.about .about-list li:nth-child(odd){ background: color-mix(in oklab, var(--bg-elev) 92%, #fff 8%); }
.about .about-list li:nth-child(even){ background: color-mix(in oklab, var(--bg-elev) 96%, #000 4%); }
.about .about-quote { margin-top: 14px; font-size: 1.05rem; color: var(--text); font-style: italic; border-left: 3px solid var(--primary); padding-left: 10px; }

@media (max-width: 1100px){
  .about .features-grid { grid-template-columns: repeat(2,1fr); }
  .about .stat-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px){
  /* Video Section Blur Container mit Abstand zum Bildschirmrand */
  .section--video .container {
    width: auto;
    max-width: none;
  }
  
  .section--video .blur {
    margin: 0 16px;
  }
  
  .section--video .blur img {
    display: block;
    margin: 0 auto;
  }
  
  .section--video .blur #partner-title {
    text-align: center;
  }
  .about-mission-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .about-mission-image {
    order: -1; /* Bild kommt vor dem Content */
  }
  
  .about-craft-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .about-craft-image {
    order: -1; /* Bild kommt vor dem Content */
  }
  
  .about-innovation-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .about-innovation-image {
    order: -1; /* Bild kommt vor dem Content */
  }
}
@media (max-width: 600px){
  .about .features-grid { grid-template-columns: 1fr; }
  .about .stat-grid { grid-template-columns: 1fr 1fr; }
}

/* Generic section background video helper */
.section--video { position: relative; overflow: hidden; }
.section--video .section-video { position: absolute; inset: 0; z-index: 0; }
.section--video .section-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.section--video .section-video .video-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.28); }
.section--video .container { position: relative; z-index: 1; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info {
  position: sticky;
  top: 100px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}
.contact-item:last-child { margin-bottom: 0; }
.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: color-mix(in oklab, var(--primary) 18%, var(--bg) 82%);
  color: var(--primary);
  flex-shrink: 0;
}
.contact-form-wrapper {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-form .form-group {
  margin-bottom: 20px;
}
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form .form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}
.contact-form .required {
  color: var(--primary);
}
.contact-form .form-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form .form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 15%, transparent 85%);
}
.contact-form textarea.form-input {
  resize: vertical;
  min-height: 120px;
}
.contact-form select.form-input {
  cursor: pointer;
}

/* File upload */
.upload-wrapper {
  position: relative;
}
.form-file-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.upload-label:hover {
  border-color: var(--primary);
  background: color-mix(in oklab, var(--bg) 96%, var(--primary) 4%);
}
.upload-label.drag-active {
  border-color: var(--primary);
  background: color-mix(in oklab, var(--bg) 90%, var(--primary) 10%);
  transform: scale(1.02);
}
.upload-label i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 8px;
  transition: transform 0.2s ease;
}
.upload-label.drag-active i {
  transform: scale(1.1);
}
.upload-label span {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* Upload preview */
.upload-preview {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.preview-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 0; /* Wichtig: Erlaubt Flex-Children zu schrumpfen */
}
.preview-item i {
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0; /* Icon behält feste Größe */
}
.preview-name {
  flex: 1;
  min-width: 0; /* Wichtig: Erlaubt Text-Overflow */
  font-size: 0.9rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preview-size {
  font-size: 0.85rem;
  color: var(--text-dim);
  flex-shrink: 0; /* Größe behält feste Breite */
  white-space: nowrap;
}
.preview-remove {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
  flex-shrink: 0; /* Button behält feste Größe */
}
.preview-remove:hover {
  background: color-mix(in oklab, var(--primary) 15%, transparent 85%);
  color: var(--primary);
}

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  cursor: pointer;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.checkbox-label span {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Submit button */
.btn-submit {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  background: var(--primary);
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--muted);
  pointer-events: none;
}
.btn-submit:not(:disabled):hover {
  transform: translateY(-1px);
}

.form-note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: center;
}

/* Form Error Banner */
.form-error-banner {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.05));
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  animation: slideInDown 0.4s ease;
  transition: opacity 0.3s ease;
}

.form-error-banner i {
  font-size: 2rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.form-error-banner strong {
  display: block;
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.form-error-banner p {
  color: var(--text-dim);
  margin: 0;
  line-height: 1.6;
}

.form-error-banner a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
}

.form-error-banner a:hover {
  color: var(--primary-hover);
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-info {
    position: relative;
    top: 0;
  }
}
@media (max-width: 600px) {
  .contact-form .form-row {
    grid-template-columns: 1fr;
  }
  .contact-form-wrapper {
    padding: 20px;
  }
}

/* Referenzen page - Full Instagram Gallery */
.referenzen-gallery .lightwidget-full {
  width: 100%;
  margin: 0 auto;
}
.referenzen-gallery .lightwidget-widget {
  width: 100%;
  min-height: 800px;
  border: 0;
  overflow: hidden;
}

/* Lederfarben Section */

/* job images inside cards */
.job-card img { width: 100%; height: auto; border-radius: var(--radius); margin: 8px 0; display: block; }
@media (max-width: 1100px){
  .jobs .jobs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px){
  .jobs .jobs-grid { grid-template-columns: 1fr; }
}

/* Lederfarben Section */
.leather-colors {
  position: relative;
  background-image:
    linear-gradient(0deg, rgba(16,17,20,.55), rgba(16,17,20,.55)),
    url('/assets/img/racecoat_bg_leder.jpg');
  background-size: cover; background-position: center;
}

.lc-grid {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: center;
}
.lc-kicker { letter-spacing: 2px; color: var(--primary); font-size: 0.95rem; font-weight: 800; font-family: Inter, sans-serif; }
.lc-divider { height: 4px; width: 60px; background: var(--primary); margin: 14px 0 18px; border-radius: 2px; }
.lc-text { color: var(--text-dim); font-size: 1.075rem; margin: 0 0 14px; }
.lc-btn { margin-top: 8px; }
.lc-content .btn {
  margin-top: 24px;
}
.lc-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: auto; object-fit: cover; }
@media (max-width: 1100px){ .lc-grid { grid-template-columns: 1fr; } .lc-media { order: -1; } }
@media (max-width: 768px) {
  .lc-content .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* Leather Colors Section - Text bleibt weiß im Light Mode */
body.theme-light .leather-colors h2,
body.theme-light .leather-colors h3,
body.theme-light .leather-colors .lc-text {
  color: #ffffff !important;
}

body.theme-light .leather-colors p,
body.theme-light .leather-colors .lc-text { 
  color: #c9ccd1 !important;
}

/* Modal (image lightbox) */
.modal { 
  position: fixed; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  /* Modal selbst ist der Backdrop mit Blur */
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal.open { 
  display: flex;
}

/* Backdrop Element - nur für Click-Handler */
.modal-backdrop { 
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Dialog - liegt ÜBER dem Backdrop */
.modal-dialog { 
  position: relative;
  background: var(--bg-elev); 
  border: 1px solid var(--border); 
  border-radius: var(--radius); 
  box-shadow: 0 20px 60px rgba(0,0,0,0.5); 
  max-width: min(95vw, 1100px); 
  max-height: 90vh; 
  overflow: auto;
  z-index: 1;
  margin: 20px;
}
.modal-dialog img { 
  display: block; 
  width: 100%; 
  height: auto; 
  border-radius: var(--radius); 
}
.modal-close { 
  position: absolute; 
  top: 8px; 
  right: 10px; 
  background: rgba(0,0,0,.7); 
  color: #fff; 
  border: 0; 
  width: 36px; 
  height: 36px; 
  border-radius: 50%; 
  font-size: 1.2rem; 
  cursor: pointer; 
  display: grid; 
  place-items: center;
  z-index: 2;
  transition: background 0.2s ease;
}
.modal-close:hover { 
  background: rgba(0,0,0,.9); 
}

/* Back to Top Button */
.back-to-top {
  position: fixed; bottom: 30px; right: 30px; z-index: 1000;
  width: 50px; height: 50px;
  background: var(--primary); color: #fff;
  border: none; border-radius: 50%;
  box-shadow: var(--shadow);
  cursor: pointer;
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease, background .2s ease, transform .2s ease;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-hover); transform: translateY(-2px); }
.back-to-top:active { transform: translateY(0); }

/* About Racecoat Section */
.about-racecoat-container {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
  max-width: 100%;
}

.about-img-1 {
  grid-row: 1 / span 2;
  grid-column: 1;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.about-img-2 {
  grid-row: 1;
  grid-column: 2;
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.about-img-3 {
  grid-row: 2;
  grid-column: 2;
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.about-content {
  max-width: 100%;
}

.about-kicker {
  letter-spacing: 2px;
  color: var(--primary);
  font-size: 1rem;
  font-family: Inter, sans-serif;
  font-weight: 700;
  display: inline-block;
}

.about-title {
  margin-top: 10px;
  margin-bottom: 18px;
}

.about-divider {
  height: 4px;
  width: 60px;
  background: var(--primary);
  margin-bottom: 24px;
  border-radius: 2px;
}

.about-text {
  color: var(--text-dim);
  font-size: 1.1rem;
  margin-bottom: 18px;
  line-height: 1.6;
}

.about-text:last-child {
  margin-bottom: 0;
}

/* Desktop: Nebeneinander Layout (nur für große Bildschirme) */
@media (min-width: 1024px) {
  .about-racecoat-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
  }
}

/* Tablet und Mobile: Bilder oberhalb */
@media (max-width: 768px) {
  .about-images {
    gap: 12px;
  }
  
  .about-racecoat-container {
    gap: 32px;
  }
  
  .about-text {
    font-size: 1rem;
  }
}

/* Order Process Section */
.order-process { 
  background: linear-gradient(180deg, var(--bg), color-mix(in oklab, var(--bg) 96%, #000 4%)); 
  text-align: center; 
}
.op-kicker { 
  letter-spacing: 2px; color: var(--primary); font-size: 0.95rem; 
  font-weight: 800; font-family: Inter, sans-serif; display: inline-block; margin-bottom: 10px; 
}
.op-divider { 
  height: 4px; width: 60px; background: var(--primary); margin: 14px auto 18px; border-radius: 2px; 
}
.op-intro { 
  color: var(--text-dim); font-size: 1.1rem; max-width: 700px; margin: 0 auto 48px; 
}
.op-grid { 
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; 
}
.op-step { 
  padding: 30px 20px; text-align: center; 
  transition: transform .3s ease, box-shadow .3s ease; 
}
.op-step:hover { 
  transform: translateY(-4px); box-shadow: 0 14px 35px rgba(0,0,0,.4); 
}
.op-step-icon { 
  width: 80px; height: 80px; margin: 0 auto 16px; 
  background: var(--bg); border: 2px solid var(--border); border-radius: 50%; 
  display: grid; place-items: center; font-size: 2rem; color: var(--primary); 
}
.op-step-number { 
  font-family: Play, Inter, sans-serif; font-weight: 700; font-size: 0.9rem; 
  letter-spacing: 1px; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; 
}
.op-step h3 { 
  margin: 10px 0 12px; 
}
.op-step p { 
  color: var(--text-dim); font-size: 0.95rem; line-height: 1.6; text-align: left; 
}
.op-step a { 
  color: var(--primary); text-decoration: none; font-weight: 600; 
}
.op-step a:hover { 
  text-decoration: underline; 
}
.op-cta { 
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; 
}

@media (max-width: 1100px) { 
  .op-grid { grid-template-columns: repeat(2, 1fr); } 
}
@media (max-width: 700px) { 
  .op-grid { grid-template-columns: 1fr; }
  
  .op-cta {
    flex-direction: column;
    width: 100%;
  }
  
  .op-cta .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* Partners Section */
.partners { 
  background: linear-gradient(180deg, color-mix(in oklab, var(--bg) 96%, #000 4%), var(--bg));
  text-align: center; /* Center title and kicker */
}
.partners-kicker { 
  letter-spacing: 2px; color: var(--primary); font-size: 0.95rem; 
  font-weight: 800; font-family: Inter, sans-serif; display: inline-block; margin-bottom: 10px; 
}
.partners-divider { height: 4px; width: 60px; background: var(--primary); margin: 14px auto 24px; border-radius: 2px; }

.partners-slider { position: relative; }
.partners-track { 
  display: flex; gap: 16px; align-items: center; 
  overflow-x: auto; overflow-y: hidden; padding: 8px 4px; scroll-snap-type: x mandatory; 
  -webkit-overflow-scrolling: touch; scrollbar-width: none; /* Firefox: hide scrollbar */
  -ms-overflow-style: none; /* IE/Edge legacy */
}
.partners-track::-webkit-scrollbar { display: none; } /* WebKit: hide scrollbar */

.partner-card {
  flex: 0 0 auto; width: 180px; height: 100px; display: grid; place-items: center;
  scroll-snap-align: start; text-decoration: none;
}
.partner-card img { max-width: 80%; max-height: 70%; filter: grayscale(100%); opacity: .9; transition: filter .2s ease, opacity .2s ease, transform .2s ease; }
.partner-card:hover img { filter: grayscale(0%); opacity: 1; transform: scale(1.03); }

.partners-nav { 
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; 
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); 
  background: color-mix(in oklab, var(--bg) 75%, #000 25%); color: var(--text); 
  display: grid; place-items: center; cursor: pointer; 
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.partners-nav:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-50%) scale(1.06); }
.partners-nav:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.partners-nav.prev { left: -6px; }
.partners-nav.next { right: -6px; }

@media (max-width: 600px){
  .partner-card { width: 150px; height: 90px; }
  .partners-nav { display: none; }
}

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 40px 0 20px; background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--bg) 85%, #000 15%)); }

/* Footer Logo (backToTop) */
.footer-logo-wrap { text-align: center; margin-bottom: 32px; }
.footer-logo-btn { 
  background: none; border: none; cursor: pointer; 
  padding: 8px; display: inline-flex; align-items: center; justify-content: center;
  transition: opacity .3s ease, transform .3s ease; 
}
.footer-logo-btn img { 
  max-width: 180px; width: 180px; height: auto; 
  display: block; 
  filter: brightness(0) invert(1); /* Make logo white on dark theme */
}
.footer-logo-btn:hover { opacity: 0.8; transform: translateY(-4px); }

.footer-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-bottom: 18px;
}
.footer-col h4 { margin: 0 0 8px; font-family: Play, Inter, sans-serif; }
.footer-col a { display: block; color: var(--text-dim); text-decoration: none; padding: 4px 0; }
.footer-col a:hover { color: var(--text); }
.footer-meta { color: var(--text-dim); font-size: .95rem; line-height: 1.6; margin-top: 10px;}

/* Footer Payment Methods */
.footer-payments { 
  text-align: center; margin: 32px 0 24px; 
}
.footer-payments h4 { 
  margin: 0 0 16px; font-family: Play, Inter, sans-serif; color: var(--text); 
}
.payment-icons { 
  display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; 
}
.payment-icons img { 
  height: 40px; width: auto; border-radius: 6px; opacity: 0.9; 
  transition: opacity .2s ease, transform .2s ease; 
}
.payment-icons img:hover { 
  opacity: 1; transform: scale(1.05); 
}

.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); padding-top: 14px; }
.footer-bottom .social a { color: var(--text-dim); margin-right: 12px; font-size: 1.1rem; }
.footer-bottom .social a:hover { color: var(--text); }
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Footer Toggle Button (Mobile) */
.footer-toggle {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text);
  transition: all 0.3s ease;
}

.footer-toggle h4 {
  margin: 0;
  font-family: Play, Inter, sans-serif;
  text-align: left;
}

.footer-toggle-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: var(--primary);
}

.footer-toggle[aria-expanded="true"] .footer-toggle-icon {
  transform: rotate(45deg);
}

.footer-collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.footer-toggle[aria-expanded="true"] + .footer-collapse {
  max-height: 500px;
  padding: 12px 0;
}

/* Desktop: Normale Anzeige ohne Toggle */
@media (min-width: 769px) {
  .footer-toggle {
    pointer-events: none;
    border-bottom: none;
    padding: 0;
    cursor: default;
  }
  
  .footer-toggle-icon {
    display: none;
  }
  
  .footer-collapse {
    max-height: none;
    overflow: visible;
  }
  
  .footer-col h4 {
    margin-bottom: 8px;
  }
}

@media (max-width: 768px) {
  /* Footer: Eine Spalte auf Mobile */
  .footer-grid { 
    grid-template-columns: 1fr; 
    gap: 0;
  }
  
  /* Logo zentrieren */
  .footer-col:first-child {
    text-align: center;
    margin-bottom: 24px;
  }
  
  .footer-logo-btn {
    margin: 0 auto;
  }
  
  /* .footer-meta {
    text-align: center;
  } */
  
  /* Aufklappbare Footer-Spalten */
  .footer-col-collapsible {
    text-align: left;
    border-bottom: 1px solid var(--border);
  }
  
  .footer-col-collapsible:last-child {
    border-bottom: none;
  }
  
  .footer-col-collapsible a {
    padding: 8px 0;
  }
  
  /* Footer Bottom zentrieren */
  .footer-bottom { 
    flex-direction: column; 
    align-items: center;
    text-align: center;
    gap: 16px;
    margin-top: 24px;
  }
  
  /* Social Icons zentrieren */
  .footer-bottom .social {
    display: flex;
    justify-content: center;
    gap: 8px;
  }
  
  .footer-bottom .social a {
    margin-right: 0;
  }
  
  /* Copyright zentrieren */
  .footer__copyright {
    text-align: center !important;
    flex: none !important;
    width: 100%;
  }
}

/* Normalize browser default for <address> (no italics) */
address { font-style: normal; }

/* Animations via data-animate */
[data-animate] { opacity: 0; transform: translateY(10px); }
[data-animate].in-view { opacity: 1; transform: translateY(0); transition: .6s ease; }
[data-animate][data-animate-delay="100"].in-view { transition-delay: .1s; }
[data-animate][data-animate-delay="150"].in-view { transition-delay: .15s; }
[data-animate][data-animate-delay="200"].in-view { transition-delay: .2s; }

/* Utilities */
.link { text-decoration: none; }
.link:hover { color: var(--primary-hover); transition: all 0.2s;}
.hidden { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; border: 0; padding: 0; clip: rect(0 0 0 0); overflow: hidden; }
