/* ==========================================================
   NEXGENsmartinstore – style.css
   Version: 2025-11
   ========================================================== */

/* ----------- Farbdefinitionen & Variablen ----------- */
:root {
  --brand: #cb0005;
  --text: #333232;
  --bg: #ffffff;
  --bg-alt: #f8f8f8;
  --border: #e4e4e4;
  --radius: 14px;
  --maxw: 1200px;
  --shadow: 0 8px 18px rgba(0,0,0,.05);
  --brand-dark: #8c0004;
  scroll-behavior: smooth;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  :root {
    --text: #f4f4f4;
    --bg: #1b1b1b;
    --bg-alt: #222;
    --border: #333;
    --shadow: 0 4px 20px rgba(0,0,0,.4);
  }
}

/* ----------- Global ----------- 

'Inter', system-ui, -apple-system, 

*/
* { box-sizing: border-box; }
html { overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  font-family: Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; border-radius: var(--radius); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin-top: 0; color: var(--text); }
p { margin: 0 0 1em; }

/* ----------- Header / Navigation ----------- */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
@media (prefers-color-scheme: dark) {
  .header { background: rgba(27,27,27,0.9); }
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; color: var(--text); }
.logo img { height: 48px; width: auto; }
.logo-nb { white-space: nowrap; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-book { display: flex; gap: 10px; align-items: center; }
.nav-book .btn, .menu-book .btn { padding: 7px 16px; }
.menu { display: flex; gap: 24px; align-items: center; }
.menu > a { font-weight: 600; }
.menu > a:not(.btn) {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  white-space: nowrap;
}
.menu-book, .menu-social { display: none; }
.menu-social a { color: var(--text); display: flex; align-items: center; opacity: 0.7; transition: opacity 0.2s; }
.menu-social a:hover { opacity: 1; }
.menu-social svg { width: 26px; height: 26px; }
.menu-social a[aria-label*="WTB"] svg { width: auto; height: 18px; }
.burger {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
}
@media (max-width: 1200px) {
  .nav-book { display: none; }
  .menu { display: none; }
  @keyframes menuFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes menuFadeOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-10px); }
  }
  .menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 80px; left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg);
    z-index: 999;
    overflow-y: auto;
    padding: 0;
    animation: menuFadeIn 0.22s ease forwards;
    overscroll-behavior: contain;
  }
  .menu.open.closing {
    animation: menuFadeOut 0.2s ease forwards;
    pointer-events: none;
  }
  .menu.open > a {
    text-align: left;
    padding: 0.38rem 1.5rem;
    font-size: 1.3rem;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid var(--border);
  }
  .menu.open > a:last-of-type { border-bottom: none; }
  .burger {
    display: block;
    font-size: 2rem;
  }
  .menu.open .menu-book {
    display: flex;
    gap: 10px;
    padding: 1rem 1.5rem;
    border-bottom: 2px solid var(--border);
  }
  .menu.open .menu-social {
    display: flex;
    gap: 20px;
    padding: 0.38rem 1.5rem 1rem;
    border-top: 1px solid var(--border);
    align-items: center;
  }
}

/* ----------- Hero ----------- */
.hero {
  position: relative;
  background-size: cover;
  background-position: center 25%;
  color: #fff;
  text-align: left;
  display: flex;
  align-items: center;
  min-height: 64vh;
  transition: background-image 0s linear;
}

.hero-fader {
  position:absolute; inset:0;
  background-size:cover; background-position:center 25%;
  opacity:0; pointer-events:none;
  transition: opacity 1.8s linear;
}
.hero-fader.show { opacity:1; }

.hero.fading::after { transform: translateX(0); }

.hero-content {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px 20px;
  z-index: 2;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.2;
  margin-bottom: 16px;
  color: #fff;
  text-shadow:
    0 0 60px rgba(0,0,0,0.55),
    0 0 20px rgba(0,0,0,0.35),
    0 1px 4px  rgba(0,0,0,0.25);
}
.hero p {
  max-width: 700px;
  margin-bottom: 24px;
  font-size: 18px;
  color: #fff;
  text-shadow:
    0 0 2px  rgba(0,0,0,0.95),
    1px 1px 2px rgba(0,0,0,0.95),
   -1px -1px 2px rgba(0,0,0,0.9),
    0 0 20px rgba(0,0,0,0.8),
    0 0 50px rgba(0,0,0,0.6);
}
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta-social { display: flex; align-items: center; gap: 14px; margin-left: 6px; }
.cta-social a {
  color: #fff;
  display: flex;
  align-items: center;
  opacity: 0.9;
  transition: opacity 0.2s;
  text-decoration: none;
  filter: drop-shadow(0 0 6px rgba(0,0,0,0.6)) drop-shadow(0 0 2px rgba(0,0,0,0.4));
}
.cta-social a:hover { opacity: 1; }
.cta-social svg { width: 28px; height: 28px; }

/* ----------- Buttons ----------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 10px;
  border: 2px solid var(--brand);
  background: #ffffff;
  color: var(--brand);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn.primary {
  background: var(--brand);
  color: #fff;
}
.btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* ----------- Sections ----------- */
.section {
  padding: 80px 20px;
  scroll-margin-top: 90px; /* Offset für sticky Header */
}
.section.alt {
  background: var(--bg-alt);
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
}
.section h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.tcn-section {
  padding: 30px 20px;
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
}

.lead {
  color: #666;
  margin-bottom: 40px;
}
@media (prefers-color-scheme: dark) {
  .lead { color: #ccc; }
}

/* ----------- Leistungen ----------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 10px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: left;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}
.card img {
  height: 48px;
  width: auto;
  margin-bottom: 12px;
}

/* --- Referenz- & Portfolio-Details --- */
.ref a { color: inherit; display:block; }
.ref-detail-section,
.port-detail-section,
.news-detail-section {
  display: none;
  max-width: 850px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
  scroll-margin-top: 100px; /* Offset für sticky Header */
}

.news-detail-section:target,
.ref-detail-section:target,
.port-detail-section:target {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.ref-detail-section .back,
.port-detail-section .back {
  margin-top:16px;
  display:block;
}


/* ----------- News-Slider ----------- */
.news-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
}
.news-slider-wrap {
  flex: 1;
  overflow: hidden;
  touch-action: pan-y;
}
.news-slider-track {
  display: flex;
  gap: 24px;
  transition: transform 0.35s ease;
}
.news-slider-track .ref {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
}
/* Carousel-Controls (Pfeile + Dots) */
.news-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}
.news-prev,
.news-next {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  padding: 0;
}
.news-prev:hover,
.news-next:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.news-prev:disabled,
.news-next:disabled {
  opacity: 0.25;
  pointer-events: none;
}
/* Carousel-Dots */
.news-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
}
.news-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: #d0d0d0;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, width 0.25s;
  flex-shrink: 0;
}
.news-dot.active {
  background: var(--brand);
  width: 24px;
}
@media (max-width: 1000px) and (min-width: 701px) {
  .news-slider-track .ref { flex: 0 0 calc((100% - 24px) / 2); }
}
@media (max-width: 700px) {
  .news-slider { position: relative; }
  .news-slider-wrap { width: 100%; }
  .news-slider-track .ref { flex: 0 0 calc(100% - 8px); }
}

/* ----------- Referenzen ----------- */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.ref {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s ease;
}
.ref:hover { transform: translateY(-3px); }
.ref img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.ref .meta { padding: 18px; }
.ref .meta h3 { margin: 0 0 6px; font-size: 18px; }
.ref .meta p { color: #666; font-size: 14px; margin: 0; }

/* ----------- Über uns ----------- */
.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
  align-items: stretch;
}
.box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.team-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.team-gallery img {
  width: 30%;
  min-width: 200px;
  object-fit: cover;
}

/* ----------- News ----------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.news-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.news-item time {
  font-size: 12px;
  color: var(--brand);
  display: block;
  margin-bottom: 6px;
}
.news-item h3 {
  margin: 0 0 8px;
}

/* --- Fix: News-Details sichtbar nur bei aktivem Target --- */
#news-details { padding-top: 0; }
.news-detail-section {
  visibility: hidden;
  height: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
  margin: 0 0 24px;
  padding: 0 24px;
}
.news-detail-section:target {
  visibility: visible;
  height: auto;
  padding: 24px;
}
.news-detail-section .meta {
  color:#777; font-size:14px; margin:6px 0 14px;
}
.news-detail-section .back { margin-top:16px; display:block; }


/* ----------- Kontakt ----------- */
.contact {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
}
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .row { grid-template-columns: 1fr; } }

.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.full { grid-column: 1 / -1; }
input, textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  font: inherit;
  background: var(--bg);
  color: var(--text);
}
textarea { min-height: 120px; resize: vertical; }
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.small { font-size: 12px; color: #777; }
.contact-info {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

/* ===== Kontakt & Anfahrt ===== */
.contact-anfahrt-grid {
  grid-template-columns: 1fr 1fr;
  margin-top: 28px;
  margin-bottom: 0;
}
@media (max-width: 700px) {
  .contact-anfahrt-grid { grid-template-columns: 1fr; }
}

/* Bild-Box (z.B. Timmy): kein Innenabstand, Bild füllt sauber aus */
.box.box-img {
  padding: 0 !important;
  overflow: hidden;
}
.box.box-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}
.contact-box {
  display: flex;
  flex-direction: column;
}
.contact-box .map-preview {
  flex: 1;
}
.contact-block-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text);
}
address.nap-block {
  font-style: normal;
  line-height: 1.7;
  margin-bottom: 12px;
}
.nap-meta {
  margin: 6px 0;
  font-size: 0.95rem;
}
.nap-meta a { color: var(--text); text-decoration: none; }
.nap-meta a:hover { color: var(--brand); }
.nap-legal {
  margin-top: 14px;
  font-size: 0.75rem;
  color: #999;
  line-height: 1.6;
}
.contact-map-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.map-preview {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--bg-alt, #f5f5f5);
  border: 1px solid var(--border);
}
.map-placeholder {
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.5;
}
.map-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.map-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  padding: 8px 14px;
}
.map-hint {
  font-size: 0.78rem;
  color: #888;
  margin: 0;
  line-height: 1.5;
}

/* ----------- Footer ----------- */
/* ===== SPONSOREN-SEKTION ===== */
.sponsors-section {
  background: var(--brand);
  padding: 48px 20px 44px;
}
.sponsors-eyebrow {
  color: rgba(255,255,255,0.65);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 36px;
}
/* Tier layout */
.sponsors-tier { margin-bottom: 28px; }
.sponsors-tier:last-child { margin-bottom: 0; }
.sponsors-tier-label {
  display: block;
  text-align: center;
  color: rgba(255,255,255,0.45);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.sponsors-tier-label::before,
.sponsors-tier-label::after {
  content: '——';
  margin: 0 10px;
  opacity: 0.4;
}
.sponsors-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
  align-items: center;
}
.sponsor-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  opacity: 0.85;
  transition: opacity 0.2s;
  text-decoration: none;
}
.sponsor-logo:hover { opacity: 1; }
.sponsor-logo img {
  width: auto;
  height: auto;
  display: block;
  transition: opacity 0.25s;
  border-radius: 0;
}
/* Size by tier — temporarily unrestricted for image quality check */

/* ===== FOOTER ===== */
footer {
  background: var(--brand-dark);
  font-size: 14px;
}
.footer-main {
  padding: 32px 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-main-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.footer-brand img {
  width: 36px;
  height: 36px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.footer-brand span {
  color: rgba(255,255,255,0.85);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  font-family: var(--font-head, "Barlow Condensed", sans-serif);
  text-transform: uppercase;
}
.footer-social { display: flex; gap: 14px; align-items: center; }
.footer-social a { color: rgba(255,255,255,0.6); display: flex; align-items: center; text-decoration: none; transition: color 0.2s; }
.footer-social a:hover { color: #fff; }
.footer-social svg { width: 20px; height: 20px; }
.footer-social a[aria-label*="WTB"] svg { width: auto; height: 20px; }
.footer-social a::after { display: none !important; }
.footer-bottom {
  padding: 14px 20px;
}
.footer-bottom-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255,255,255,0.45);
}
.links { display: flex; gap: 18px; }
.footer-bottom a { color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 600px) {
  .footer-main-inner { justify-content: center; text-align: center; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
  .sponsors-grid { gap: 8px 12px; }
  .sponsor-logo { padding: 6px 10px; }
  .sponsors-premium .sponsor-logo img { max-height: 44px; max-width: 180px; }
  .sponsors-platin  .sponsor-logo img { max-height: 36px; max-width: 140px; }
  .sponsors-gold    .sponsor-logo img { max-height: 28px; max-width: 110px; }
}

/* ----------- Animationen ----------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.divider{
  height: 40vh; min-height: 280px;
  background-size: cover; background-position: center;
  position: relative; margin: 0; 
}
.divider::before{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.15));
}
/* ================= Stats Counter ================= */
.tcn-stats {
  background: var(--brand);
  padding: 52px 20px;
}

.tcn-stats-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.tcn-stat {
  flex: 1 1 200px;
  max-width: 280px;
  text-align: center;
  color: #fff;
  padding: 20px 24px;
  position: relative;
}

/* Trennlinie zwischen Items */
.tcn-stat + .tcn-stat::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: rgba(255,255,255,0.25);
}

.tcn-stat-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  color: rgba(255,255,255,0.85);
}

.tcn-stat-icon svg {
  width: 100%;
  height: 100%;
}

.tcn-stat-number {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 6px;
}

.tcn-stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.tcn-stat-sub {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
}

/* 4 Stats nebeneinander */
.tcn-stat { flex: 1 1 160px; max-width: 220px; }

/* ============================
   TERMINE-GRID + MONATSFILTER
   ============================ */
.termine-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1.6rem;
}
.tf-btn {
  padding: 5px 14px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: #fff;
  font-size: 0.82rem;
  cursor: pointer;
  color: #444;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.tf-btn:hover { border-color: #cb0005; color: #cb0005; }
.tf-btn.active { background: #cb0005; color: #fff; border-color: #cb0005; }

.termine-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 1.4rem;
}
.termin-kachel {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 14px 16px;
  background: #fff;
  cursor: default;
  transition: box-shadow 0.18s;
}
.termin-kachel:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.08); }
.termin-datum {
  font-size: 0.75rem;
  color: #cb0005;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
}
.termin-titel {
  font-size: 0.9rem;
  font-weight: 600;
  color: #222;
  line-height: 1.35;
  margin: 0;
}
.termin-typ {
  font-size: 0.72rem;
  color: #999;
  margin-top: 4px;
}
.termine-more-wrap { text-align: center; margin-top: 0.5rem; }

@media (max-width: 640px) {
  .termine-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .termine-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .tcn-stat + .tcn-stat::before { display: none; }
  .tcn-stat { border-top: 1px solid rgba(255,255,255,0.2); }
  .tcn-stat:first-child { border-top: none; }
}

/* --- Active Nav & Scroll-to-Top --- */
.menu > a.active { color: var(--brand); text-decoration: underline; }
#toTop {
  position: fixed; right: 24px; bottom: 28px;
  background: var(--brand); color: #fff; border: none;
  border-radius: 50%; width: 44px; height: 44px;
  font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; line-height: 1;
  opacity: 0; pointer-events: none;
  transition: all .3s ease; box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
#toTop.show { opacity: 0.9; pointer-events: all; }
#toTop:hover { opacity: 1; transform: translateY(-3px); }

/* --- Karriere-Box --- */
.career {
  background: var(--bg-alt);
  text-align: center;
}
.career h2 { color: var(--text); margin-bottom: 12px; }
.career p { max-width: 700px; margin: 0 auto 14px; }

.form-success {
  background: #e8f7ee;
  border: 1px solid #bde5c8;
  color: #2f6d36;
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-top: 20px;
  font-size: 15px;
  text-align: center;
  box-shadow: var(--shadow);
  animation: fadeIn .5s ease;
}
/* Große Icons in Detailbereichen */
.detail-icon {
  width: 150px;
  height: auto;
  float: left;
  margin: 0 24px 12px 0;
  border-radius: var(--radius);
  background: var(--bg-alt);
  padding: 12px;
  box-shadow: var(--shadow);
}

@media (max-width: 700px) {
  .detail-icon {
    float: none;
    display: block;
    margin: 0 auto 20px;
    width: 120px;
  }
}

/* ---------- Header-Bild in Detailbereichen ---------- */
.detail-header-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  display: block;
}

/* ---------- Galerien in Detailbereichen ---------- */
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.detail-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1; /* sorgt für gleichmäßige Quadrate */
  object-fit: cover;   /* schneidet passend zu */
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--bg-alt);
  transition: transform .3s ease, box-shadow .3s ease;
}

.detail-gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
}

@media (max-width: 700px) {
  .detail-gallery {
    grid-template-columns: 1fr; /* auf Mobilgeräten einspaltig */
  }
}
/* Countdown-Banner – volle Breite zwischen Hero und News */

.tcn-countdown {
  background: var(--brand);
  color: #fff;
  padding: 13px 20px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.tcn-countdown a {
  color: #fff;
  text-decoration: underline;
}

.tcn-countdown-label {
  font-weight: 700;
  margin-right: 8px;
}

/* ============================
   TCN – Termine / Events
   ============================ */

/* Section allgemein */
#termine.tcn-section {
  padding: 30px 20px;
  max-width: 1100px;
  margin: 0 auto;
  background: #ffffff;
}

/* (tcn-countdown rules consolidated above) */

/* Carousel-Layout: Pfeile links/rechts, Track in der Mitte */
.tcn-events-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 12px;
  margin-bottom: 20px;
}

/* Track in der mittleren Spalte */
.tcn-events-track {
  display: flex;
  align-items: stretch;  /* alle Cards gleich hoch */
  width: 100%;
  overflow: visible;
  padding: 15px 24px;   /* links & rechts Abstand, damit Pfeile „frei" stehen */
  gap: 16px;
}

/* Pfeile stehen jeweils alleine */
.tcn-events-nav {
  justify-self: center;
  border: none;
  background: #eeeeee;
  padding: 6px 9px;
  border-radius: 50%;
  cursor: pointer;
}

/* Karten – optisch an News-/Ref-Cards angelehnt */

.tcn-event-card {
  flex: 0 0 auto;             /* Breite kommt inline aus JS (0 0 XX%) */
  box-sizing: border-box;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: var(--shadow, 0 10px 30px rgba(0, 0, 0, 0.12)) !important;
  display: flex;
  align-items: stretch;
  min-height: 200px;          /* einheitliche Kartenhöhe */
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;           /* damit border-radius auch innen greift */
}

.tcn-event-card--link {
  cursor: pointer;
}

.tcn-event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.18) !important;
}


/* Link-Darstellung: ganze Karte klickbar, nur Titel wie Link */

a.tcn-event-card,
a.tcn-event-card:link,
a.tcn-event-card:visited,
a.tcn-event-card:hover,
a.tcn-event-card:active {
  text-decoration: none !important;
  color: inherit;
}

a.tcn-event-card {
  text-decoration: underline;
}

a.tcn-event-card:hover {
  color: #1f3c88;
}

/* Innenlayout: 
   Zeile 1: [Icon] [Datum/Kategorie]
   Darunter: Titel, Ort, Text über volle Breite
*/

.tcn-event-inner {
  display: flex;
  flex-direction: column;
  padding: 14px;
  gap: 8px;
  width: 100%;
  flex: 1 1 auto;             /* füllt die volle Kartenhöhe aus */
  overflow: hidden;
}

/* erste Zeile */
.tcn-event-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tcn-event-icon {
  width: 40px;
  height: 40px;
  background: #f0f0f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #666;
}

.tcn-event-header {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

/* Text-Hierarchie */

.tcn-event-date {
  font-size: 0.85rem;
  font-weight: 500;
  color: #555;
}

.tcn-event-category {
  font-size: 0.85rem;
  font-weight: 600;
  color: #f08100;
}

/* Body – alles beginnt linksbündig unter Icon-Zeile */

.tcn-event-body {
  display: flex;
  flex-direction: column;
}

.tcn-event-location {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 4px;
}

.tcn-event-location-pin {
  margin-right: 5px;
  color: #888;
}

.tcn-event-location-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tcn-event-text {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.4;
  max-height: 5.6em; /* ca. 4 Zeilen */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}
/* ============================
   Vorstand & Organisation
   ============================ */

.vorstand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  margin: 20px 0 28px;
}

.vorstand-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vorstand-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
}

.vorstand-card img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  object-position: top;
  display: block;
  border-radius: 0;
}

/* Kassierer-Karte: Querformat, nimmt 2 Spalten ein */
.vorstand-card--wide {
  grid-column: span 2;
}

.vorstand-card--wide img {
  aspect-ratio: 4/3;
  object-position: center center;
}

.vorstand-info {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vorstand-role {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand);
}

.vorstand-info strong {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.3;
}

.vorstand-mail {
  display: block;
  margin-top: 4px;
  font-size: 0.68rem;
  color: #999;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.vorstand-mail:hover {
  color: var(--brand);
}

/* ===== E-Mail Links ===== */
.mail-icon {
  vertical-align: middle;
  margin-right: 4px;
  position: relative;
  top: -1px;
  flex-shrink: 0;
}
a.email-link {
  white-space: nowrap;
  text-decoration: none;
}
a.email-link:hover { text-decoration: underline; }

/* ============================
   Teams
   ============================ */

.team-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.team-card {
  margin: 0;
  text-align: center;
}
.team-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  transition: transform 0.2s;
}
.team-card a:hover img {
  transform: scale(1.03);
}
.team-card figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.4;
}
.team-card .team-names {
  color: #666;
  font-size: 0.8rem;
}
.team-note {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: #888;
  font-style: italic;
  text-align: center;
}

/* ============================
   NEU BEI UNS – Drei-Spalten-Grid
   ============================ */
.neu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 1.5rem 0;
}
.neu-block {
  background: #f9f9f9;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
}
.neu-block h3 {
  margin-top: 0;
  font-size: 1.1rem;
  color: var(--tcn-red, #cb0005);
}
.neu-block ul {
  padding-left: 1.2rem;
  font-size: 0.9rem;
}
.neu-block ul li {
  margin-bottom: 0.3rem;
}
@media (max-width: 900px) {
  .neu-grid { grid-template-columns: 1fr; }
}

/* ============================
   ANLAGE – Karte + Text
   ============================ */
.anlage-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin: 1.5rem 0;
}
.anlage-map {
  min-width: 0;
}
.anlage-text h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: var(--tcn-red, #cb0005);
}
.anlage-text p {
  font-size: 0.95rem;
  line-height: 1.6;
}
.anlage-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.anlage-list li {
  padding: 0.35rem 0 0.35rem 1.4rem;
  position: relative;
  font-size: 0.93rem;
  line-height: 1.4;
  border-bottom: 1px solid #f0f0f0;
}
.anlage-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--tcn-red, #cb0005);
}
@media (max-width: 700px) {
  .anlage-layout {
    grid-template-columns: 1fr;
  }
}

/* ============================
   Alle Termine – Liste
   ============================ */

.tcn-events-list {
  border-top: 1px solid #eeeeee;
  margin-top: 10px;
}

.tcn-event-row {
  padding: 6px 0;
  border-bottom: 1px solid #eeeeee;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.9rem;
}

.tcn-event-row-date {
  min-width: 90px;
  font-weight: 600;
}

.tcn-event-row-title {
  flex: 1;
}

.tcn-event-row-title span {
  font-size: 0.85rem;
  color: #555555;
}

.success-box {
  background: #d4edda;
  color: #155724;
  padding: 12px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #c3e6cb;
  font-size: 1rem;
}

/* ============================================================
   DESIGN OVERHAUL B – Bold & Modern
   Alle Overrides am Ende für maximale Spezifität
   ============================================================ */

/* --- 1. Global Radius 18px, verfeinerte Schatten-Variable --- */
:root {
  --radius: 18px;
  --shadow: 0 2px 6px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.07);
  --border: #e8e8e8;
}

/* --- 2. Section-Headings: Akzentlinie + mehr Luftigkeit --- */
.section h2,
.tcn-section h2,
.wrap h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  line-height: 1.15;
}
.section h2::after,
.tcn-section h2::after,
.wrap h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--brand);
  border-radius: 2px;
  margin-top: 10px;
  margin-bottom: 0;
}
.lead { margin-top: 14px; margin-bottom: 36px; }

/* --- 3. Karten: einheitlicher radius, hover mit Top-Border-Highlight --- */
.ref,
.card,
.box,
.neu-block,
.termin-kachel,
.contact-form,
.contact-info,
.news-detail-section,
.ref-detail-section,
.port-detail-section,
.vorstand-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* Hover: roter Top-Border + subtiles Scale */
.ref:hover,
.card:hover,
.box:hover {
  transform: translateY(-3px) scale(1.012);
  box-shadow: 0 4px 12px rgba(0,0,0,.06), 0 16px 40px rgba(0,0,0,.10);
  border-top: 3px solid var(--brand);
  /* Kompensiere Top-Border damit Layout nicht springt */
  padding-top: calc(var(--card-pt, 0px) - 2px);
}
.ref:hover { padding-top: 0; } /* ref hat kein padding, border ist außen */

/* --- 4. News-Slider Karten: scale statt nur translateY --- */
.news-slider-track .ref {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-top 0.15s ease;
}
.news-slider-track .ref:hover {
  transform: scale(1.018);
  border-top: 3px solid var(--brand);
}

/* --- 5. Termin-Kacheln: Left-Border-Akzent statt Full-Border --- */
.termin-kachel {
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 14px 18px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.termin-kachel:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,.10);
  transform: translateY(-2px);
}
.termin-datum {
  font-size: 0.72rem;
  color: var(--brand);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.termin-titel {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}
.termin-ort {
  font-size: 0.8rem;
  color: var(--text-muted, #888);
  margin-top: 2px;
}
.termin-sub {
  font-size: 0.82rem;
  color: var(--text);
  margin-top: 4px;
}

/* --- 6. Monatsfilter-Buttons: radius 18px, kräftigerer active-State --- */
.tf-btn {
  border-radius: var(--radius);
  padding: 6px 16px;
  font-size: 0.83rem;
  font-weight: 600;
  border: 1.5px solid #ddd;
  letter-spacing: 0.01em;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.tf-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 2px 10px rgba(203,0,5,.25);
}
.tf-btn:hover:not(.active) {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(203,0,5,.04);
}

/* --- 7. .neu-block und .box (Training): identisches Styling --- */
.neu-block,
.box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow);
}
.neu-block h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand);
  margin-top: 0;
  margin-bottom: 0.75rem;
}

/* --- 8. Vereinheitlichung max-width: Termine == Teams --- */
#termine .wrap,
#tcnteams .wrap {
  max-width: var(--maxw);
}

/* --- 9. Vorstand- & Team-Cards: gleicher radius --- */
.vorstand-card { border-radius: var(--radius); overflow: hidden; }
.vorstand-card img { border-radius: 0; }

/* --- 10. News-Slider-Buttons: stärkere Hover-Wirkung --- */
.news-slider-btn {
  width: 46px;
  height: 46px;
  border: 1.5px solid #ddd;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.news-slider-btn:hover:not(:disabled) {
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: 0 4px 16px rgba(203,0,5,.18);
  transform: scale(1.08);
}

/* --- 11. Scroll-to-Top Button: gleiche Optik wie Slider-Pfeile --- */
#toTop {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: #444;
  border: 1.5px solid #d8d8d8;
  box-shadow: 0 2px 8px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  font-size: 0; /* Unicode-Zeichen verstecken, SVG übernimmt */
}
#toTop svg { display: block; flex-shrink: 0; }
#toTop.show { opacity: 1; }
#toTop:hover {
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: 0 4px 16px rgba(203,0,5,.18);
  transform: scale(1.08) translateY(-2px);
}

/* ============================================================
   FONT SYSTEM – max. 2 Schriften
   Headings + Hero  →  Barlow Condensed (fett, kompakt, sportlich)
   Body-Text        →  Inter (klar, modern, lesbar)
   ============================================================ */

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

h1, h2, h3, h4,
.hero h1,
.logo span,
.tcn-stat-number {
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  letter-spacing: 0.01em;
}

/* Headings etwas mehr Gewicht & Abstand */
h2 { font-weight: 800; }
h3 { font-weight: 700; }

/* Stat-Zahlen im Stats-Banner bleiben kräftig */
.tcn-stat-number {
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ============================================================
   MAX-WIDTH – einheitlich var(--maxw) überall
   ============================================================ */

/* tcn-section hat eigene 1100px – überschreiben */
.tcn-section {
  max-width: var(--maxw);
}

/* .grid hatte 1050px – soll den Eltern-Wrap ausfüllen */
.grid {
  max-width: 100%;
}

/* ============================================================
   TCN & TEAMS KARTEN – Red Left-Border + Icon neben Heading
   ============================================================ */

/* Roter linker Rahmen wie bei Termin-Kacheln */
#tcnteams .card {
  border-left: 4px solid var(--brand);
}

/* Icon + Heading nebeneinander in einer Zeile */
.card-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

/* Icon: klein, rote Tönung via CSS-Filter */
.card-heading img {
  height: 38px;
  width: auto;
  flex-shrink: 0;
  border-radius: 0;
  margin-bottom: 0;
  /* Konvertiert jede Farbe zu var(--brand) ≈ #cb0005 */
  filter: brightness(0) saturate(100%)
          invert(9%) sepia(99%) saturate(7356%)
          hue-rotate(356deg) brightness(96%) contrast(114%);
}

/* Foto-Variante (null:40): kein Filter, kleines rounding */
.card-heading img.card-photo {
  filter: none;
  border-radius: 8px;
  height: 44px;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Heading hat kein eigenes margin wenn im flex-container */
.card-heading h3 {
  margin: 0;
  line-height: 1.25;
}

/* ============================================================
   HOVER SYSTEM v2 – 2 Varianten, konsequent & ohne Layout-Sprung
   ============================================================ */

/* Global: kein underline auf hover, sanfter Farb-Übergang */
a { transition: color 0.15s, opacity 0.15s; }
a:hover { text-decoration: none; }

/* Buttons bekommen kein filter-Dimmen */
.btn:hover { filter: none; }

/* --- Variante A: Slide-In Unterstrich ---
   Gilt für: Hauptnavi, Back-Links, Footer-Links           */
.menu > a,
.back a,
.footer-inner a {
  position: relative;
  text-decoration: none;
}
.menu > a::after,
.back a::after,
.footer-inner a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 2px;
  background: var(--brand);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}
.menu > a:hover::after,
.menu > a.active::after,
.back a:hover::after,
.footer-inner a:hover::after { transform: scaleX(1); }

/* Active-State: kein underline mehr, Farbe reicht */
.menu > a.active { color: var(--brand); text-decoration: none; }

/* Card- & Ref-Links: kein underline */
.card a, .ref a, .termin-kachel a { text-decoration: none; }

/* --- Variante B: minimaler Lift, schnell, kein roter Rahmen oben ---
   Gilt für News, TCN&Teams, Termine, Training – alle Kacheln gleich  */

/* Schnelle Transition für alle Karten */
.ref, .card, .box, .termin-kachel, .neu-block,
.news-slider-track .ref {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ref:hover,
.card:hover,
.box:hover,
.termin-kachel:hover,
.neu-block:hover,
.news-slider-track .ref:hover {
  transform: translateY(-2px);                          /* minimal, nicht ablenkend */
  box-shadow: 0 6px 22px rgba(0,0,0,.13);               /* kein roter Inset-Akzent */
  border-top: 1px solid var(--border);                  /* unveränderter border */
}

/* Heading-Text auf allen Karten beim Hover rot färben */
.card:hover h3,
.ref:hover h3,
.termin-kachel:hover .termin-titel {
  color: var(--brand);
  transition: color 0.15s ease;
}

/* Padding-Reset (vorherige Kompensation entfernen) */
.card:hover   { padding-top: 22px; }
.box:hover    { padding-top: 20px; }
.neu-block:hover { padding-top: 1.6rem; }
.ref:hover    { padding-top: 0; }

/* --- SVG Card-Icon (Tennisball) ---                       */
.card-icon {
  color: var(--brand);
  flex-shrink: 0;
  display: block;
}

/* ============================================================
   MANNSCHAFTEN – 3-spaltig (Desktop), Hinweis-Box
   ============================================================ */
#port-tcn02 .team-gallery {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 700px) {
  #port-tcn02 .team-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 440px) {
  #port-tcn02 .team-gallery { grid-template-columns: 1fr; }
}
.team-meta-note {
  font-size: 0.88rem;
  color: #666;
  margin-bottom: 1.6rem;
  background: var(--bg-alt);
  padding: 10px 16px;
  border-radius: 10px;
  border-left: 3px solid var(--brand);
  line-height: 1.5;
}

/* ============================================================
   NEU BEI UNS – gleichhohe Boxen, Fotos, Button unten bündig
   ============================================================ */
.neu-grid { align-items: stretch; }

/* Flex-Column damit Button ans Ende sinkt */
.neu-block {
  display: flex;
  flex-direction: column;
}
/* Foto + Heading nebeneinander */
.neu-person-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1rem;
}
.neu-person-header > div { min-width: 0; }
.neu-person-header h3 { margin: 0 0 3px; }
.neu-person-name {
  font-size: 0.82rem;
  color: #777;
  margin: 0;
}
.neu-person-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  flex-shrink: 0;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
}
/* CTA-Button immer am unteren Rand */
.neu-cta {
  margin-top: auto;
  padding-top: 0.5rem;   /* Abstand zum Text darüber */
  align-self: flex-start;
  display: inline-flex;
}

/* ============================================================
   DETAIL-BEREICHE – mehr Innenabstand
   ============================================================ */
.port-detail-section:target,
.ref-detail-section:target {
  padding: 2.5rem 3rem;
}

/* NEU BEI UNS: volle Breite (wie andere 3-Spalter), kein roter Seitenrand */
#port-tcn05:target {
  max-width: var(--maxw);
}
#port-tcn05 .neu-block {
  border-left: 1px solid var(--border);
}

@media (max-width: 700px) {
  .port-detail-section:target,
  .ref-detail-section:target {
    padding: 1.5rem 1.25rem;
  }
}

/* ===========================================================
   Mitglied-Konfigurator (Scroll-Wizard)
   =========================================================== */

.mgl-wizard {
  max-width: 680px;
  margin: 2rem auto 0;
}

/* --- Einzelner Step --- */
.mgl-step {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .35s ease, transform .35s ease;
  margin-bottom: 12px;
}
.mgl-step.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Aktiver Step: weißer Container */
.mgl-step:not(.answered) .mgl-step-inner {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow);
}

/* Beantworteter Step: schlank, gedimmt */
.mgl-step.answered .mgl-step-inner {
  background: transparent;
  padding: 0 4px;
}

/* Step-Nummer klein oben */
.mgl-step-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}

/* Frage-Text */
.mgl-question {
  font-size: clamp(17px, 2.5vw, 21px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--text);
}

/* Optionen-Grid */
.mgl-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 480px) {
  .mgl-options { grid-template-columns: 1fr; }
}

/* Option-Karte */
.mgl-opt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  cursor: pointer;
  text-align: left;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  min-height: 90px;
}
.mgl-opt:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 16px rgba(203,0,5,.12);
  transform: translateY(-2px);
}
.mgl-opt-icon {
  font-size: 1.6rem;
  line-height: 1;
}
.mgl-opt-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}
.mgl-opt-sub {
  font-size: 13px;
  color: #888;
  line-height: 1.3;
}

/* Zusammenfassung (answered) */
.mgl-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: #777;
  font-size: 14px;
}
.mgl-summary-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mgl-summary-text {
  flex: 1;
}
.mgl-summary-question {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 1px;
}
.mgl-summary-answer {
  font-weight: 600;
  color: var(--text);
}
.mgl-change {
  background: none;
  border: none;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  flex-shrink: 0;
}
.mgl-change:hover { opacity: .75; }

/* --- Ergebnis-Karte --- */
.mgl-result {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 4px;
}
.mgl-result-top {
  background: var(--brand);
  padding: 28px 28px 24px;
  color: #fff;
}
.mgl-result-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .85;
  margin-bottom: 6px;
}
.mgl-result-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.2;
}
.mgl-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.mgl-price {
  font-size: clamp(42px, 7vw, 62px);
  font-weight: 800;
  line-height: 1;
}
.mgl-price-unit {
  font-size: 16px;
  font-weight: 600;
  opacity: .85;
}
.mgl-result-body {
  padding: 24px 28px;
}
.mgl-result-info {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 16px;
}
.mgl-result-info p { margin: 0 0 8px; }
.mgl-result-info p:last-child { margin-bottom: 0; }
.mgl-result-work {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: #7a5c00;
  margin-bottom: 20px;
}
.mgl-result-work-icon { font-size: 1.1rem; flex-shrink: 0; }
.mgl-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .2s, transform .15s;
  width: 100%;
}
.mgl-cta:hover { opacity: .88; transform: translateY(-1px); }

/* Neustart-Link */
.mgl-restart {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: #aaa;
  cursor: pointer;
  background: none;
  border: none;
  text-decoration: underline;
  text-underline-offset: 2px;
  width: 100%;
}
.mgl-restart:hover { color: var(--brand); }

/* Preis-Badge in der Option-Karte */
.mgl-opt-price {
  margin-top: 6px;
  font-size: 17px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
}
.mgl-opt-sub {
  font-size: 13px;
  color: #777;
  line-height: 1.35;
}

/* ===== Split-Flap Hero Animation ===== */
#hero-word {
  display: inline-block;
  vertical-align: bottom;
  overflow: hidden;
  line-height: 1.2;
}
.sf-half {
  display: block;
  height: 0.6em;
  overflow: hidden;
}
.sf-half--top .sf-inner {
  display: block;
  line-height: 1.2;
  transform-origin: bottom center;
}
.sf-half--bottom .sf-inner {
  display: block;
  line-height: 1.2;
  margin-top: -0.6em;
  transform-origin: top center;
}
@keyframes sf-top-out {
  0%   { transform: perspective(400px) rotateX(0deg); }
  100% { transform: perspective(400px) rotateX(90deg); }
}
@keyframes sf-bot-in {
  0%   { transform: perspective(400px) rotateX(-90deg); }
  100% { transform: perspective(400px) rotateX(0deg); }
}

/* ===== Arbeitsstunden-Formular – Radio-Kategorie ===== */
.wh-fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 14px;
}
.wh-fieldset legend {
  font-weight: 600;
  font-size: 14px;
  padding: 0 6px;
  color: var(--text);
}
.wh-radio {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
  padding: 7px 4px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.15s;
}
.wh-radio:hover { background: rgba(203,0,5,.05); }
.wh-radio input[type="radio"] {
  width: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--brand);
  cursor: pointer;
}
.wh-hint {
  color: var(--brand);
  font-size: 13px;
}
.wh-sonstiges-input {
  width: auto;
  flex: 1;
  padding: 5px 10px;
  font-size: 13px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.2s;
}
.wh-sonstiges-input.active {
  opacity: 1;
  pointer-events: auto;
}
.wh-submit {
  margin-top: 8px;
  width: 100%;
  font-size: 15px;
}

