:root{
  --bg:#0b1220;
  --card:#101a2e;
  --text:#eef2ff;
  --muted:#b8c0d9;
  --accent:#ffee00; /* SV Hof Gelb */
  --line:rgba(255,255,255,.12);
  --max:1100px;
  --radius:18px;
}

/* Reset & Base */
*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height:1.5;
  color:var(--text);

  background:
    linear-gradient(
      rgba(11,18,32,0.45),
      rgba(11,18,32,0.65)
    ),
    url("../img/eisschwimmen-hof.jpg") center center / cover no-repeat;
}

/* Mobile: kein fixed Background */
@media (max-width: 768px){
  body{
    background-attachment: scroll;
  }
}

/* Layout */
.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:24px;
}

/* Navigation */
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 0 18px;
  border-bottom:1px solid var(--line);
}

.brand{
  display:flex;
  gap:12px;
  align-items:center;
}

.badge{
  width:38px;
  height:38px;
  border-radius:12px;
  background:linear-gradient(135deg, var(--accent), #fff3a0);
  color:#111;
  display:grid;
  place-items:center;
  font-weight:800;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
}

.brand strong{
  display:block;
  font-size:14px;
}

.brand span{
  display:block;
  font-size:12px;
  color:var(--muted);
}

.nav a{
  color:var(--muted);
  text-decoration:none;
  font-size:14px;
}

.nav a:hover{
  color:var(--text);
}

/* Hero */
.hero{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:18px;
  padding:26px 0 10px;
}

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

/* Cards */
.card{
  background:rgba(16,26,46,.55);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:20px;
  backdrop-filter: blur(8px);
  box-shadow:0 18px 60px rgba(0,0,0,.35);
}

/* Typography */
h1{
  margin:0 0 8px;
  font-size:40px;
  line-height:1.08;
}

@media (max-width: 520px){
  h1{ font-size:32px; }
}

.lead{
  margin:0;
  color:var(--muted);
  font-size:16px;
}

.section-title{
  margin:18px 0 8px;
  font-size:18px;
}

.muted{
  color:var(--muted);
}

/* Buttons */
.cta-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:11px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  text-decoration:none;
  font-weight:650;
  font-size:14px;
  color:inherit;
}

.btn-primary{
  background:linear-gradient(135deg, var(--accent), #fff3a0);
  color:#111;
  border:none;
}

.btn:hover{
  border-color:rgba(255,255,255,.22);
}

/* Grid */
.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin-top:14px;
}

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

/* Lists */
.list{
  margin:10px 0 0;
  padding-left:18px;
  color:var(--muted);
}

/* FAQ */
.faq details{
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 14px;
  background:rgba(16,26,46,.55);
  margin:10px 0;
}

.faq summary{
  cursor:pointer;
  font-weight:650;
}

/* Iframe */
iframe{
  width:100%;
  border-radius:14px;
  border:0;
}

/* Footer */
.footer{
  margin-top:22px;
  padding-top:14px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:12px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.footer a{
  color:var(--muted);
  text-decoration:none;
}

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

.logo-bar__row img{
  max-height:100px;     /* gewünschtes Limit */
  height:auto;          /* Seitenverhältnis bleibt korrekt */
  max-width:200px;      /* optional: verhindert extrem breite Logos */
  object-fit:contain;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.25));
  opacity:.95;
}

/* Logo-Bar: flexibel für 5/7/10 Logos, verteilt auf Breite */
.logo-bar__row{
  display: grid;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  align-items: center;
  gap: 20px;
}

/* Desktop: immer 1 Zeile mit 7 Logos */
.logo-bar__row{
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: center;
  gap: 18px;
  width: 100%;
}

/* Logos */
.logo-bar__row img{
  display: block;
  margin: 0 auto;
  max-height: 100px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.25));
  opacity: .95;
}

/* Tablet: 3 pro Zeile */
@media (max-width: 900px){
  .logo-bar__row{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

/* Smartphone: 2 pro Zeile + kleinere Logos */
@media (max-width: 520px){
  .logo-bar__row{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .logo-bar__row img{
    max-height: 50px;
  }
}

  /* Link-Leiste unter dem Brand */
  .nav > div:last-child{
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav a{
    font-size: 13px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(16,26,46,.35);
  }
}
