/* =========================================================
   Mainfischereigemeinschaft Lichtenfels – Stylesheet
   Farben: #5480b2 (blau)  #bad0ed (hellblau)  #abb543 (grün)
   Lokale Schriften (DSGVO-konform, keine externen CDNs)
   ========================================================= */

/* ---------- Schriften (lokal) ---------- */
@font-face {
  font-family: "Open Sans";
  src: url("../assets/fonts/opensans-regular-webfont.woff2") format("woff2"),
       url("../assets/fonts/opensans-regular-webfont.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../assets/fonts/opensans-bold-webfont.woff2") format("woff2"),
       url("../assets/fonts/opensans-bold-webfont.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variablen ---------- */
:root {
  --blau: #5480b2;
  --blau-dunkel: #3d648f;
  --hellblau: #bad0ed;
  --hellblau-soft: #dce8f6;
  --gruen: #abb543;
  --gruen-dunkel: #8f9a35;
  --text: #33404d;
  --text-hell: #5c6b7a;
  --weiss: #ffffff;
  --grau-bg: #f4f7fb;
  --border: #e2e8f0;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(45, 70, 105, .10);
  --maxw: 1180px;
}

/* ---------- Reset / Basis ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: "Open Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blau); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  line-height: 1.25;
  color: var(--blau);
  font-weight: 700;
  overflow-wrap: break-word;
  -webkit-hyphens: manual;
  hyphens: manual;
}
h3, h4 { margin: 1.15em 0 .3em; }
p { margin: 0 0 1rem; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Fisch-Wasserzeichen als seitenweiter Hintergrund */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("../bilder/bg-fisch.png") no-repeat;
  background-position: right 2% top 52%;
  background-size: 368px auto;
  opacity: .72;
  pointer-events: none;
  z-index: 0;
}
.page-wrap { position: relative; z-index: 1; }

/* ---------- Kopfzeile / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 20px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.logo img { height: 118px; width: auto; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  width: 46px;
  height: 42px;
}
.nav-toggle span {
  display: block;
  height: 3px;
  border-radius: 3px;
  background: var(--blau);
  margin: 5px 0;
  transition: .25s;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu > li { position: relative; }
.nav-menu a {
  display: block;
  padding: 10px 14px;
  color: var(--text);
  font-weight: 700;
  border-radius: 6px;
  white-space: nowrap;
}
.nav-menu a:hover,
.nav-menu a.active { color: var(--blau); background: var(--hellblau-soft); text-decoration: none; }

/* Dropdown Gewässer */
.has-sub > .sub-toggle::after {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-left: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.submenu {
  list-style: none;
  margin: 0;
  padding: 8px;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 260px;
  max-width: 300px;
  background: var(--weiss);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: .2s;
}
.has-sub:hover .submenu,
.has-sub:focus-within .submenu,
.submenu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { padding: 10px 12px; font-weight: 400; white-space: normal; line-height: 1.3; }
.submenu a .ext { font-size: .8em; opacity: .7; }

/* ---------- Hero / Seitenkopf ---------- */
.hero {
  height: 400px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero.small { height: 300px; }
.page-title {
  text-align: center;
  padding: 42px 20px 8px;
}
.page-title h1 { font-size: clamp(1.36rem, 2.7vw, 1.92rem); margin: 0 0 6px; }
.page-title .subtitle { color: var(--text-hell); font-size: 1.05rem; margin: 0 auto; max-width: 720px; }

/* ---------- Sektionen ---------- */
.section { padding: 40px 0; }
.section.tight { padding: 24px 0; }
.section-center { text-align: center; }
.divider-title {
  text-align: center;
  font-size: 1.6rem;
  margin: 10px 0 30px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--hellblau);
  color: var(--blau-dunkel);
  font-weight: 700;
  padding: 13px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: .2s;
  text-align: center;
}
.btn:hover { background: var(--blau); color: #fff; text-decoration: none; }
.btn.btn-primary { background: var(--blau); color: #fff; }
.btn.btn-primary:hover { background: var(--blau-dunkel); }
.btn.btn-green { background: var(--gruen); color: #fff; }
.btn.btn-green:hover { background: var(--gruen-dunkel); }
.btn .icon { font-size: 1.05em; line-height: 1; }

/* ---------- Karten / Panels ---------- */
.card {
  background: var(--grau-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* ---------- Tabs (Wichtige Infos) ---------- */
.tabs { margin-top: 0; }
.tabs-hint {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--text-hell);
  margin-bottom: 10px;
}
.tabs-hint .ico { width: 1.15em; height: 1.15em; fill: var(--blau); }
.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.tab-btn {
  background: var(--hellblau-soft);
  border: 1px solid var(--hellblau);
  border-radius: 8px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 700;
  color: var(--blau-dunkel);
  cursor: pointer;
  transition: .18s;
  box-shadow: 0 1px 2px rgba(45,70,105,.08);
}
.tab-btn:hover { background: var(--hellblau); }
.tab-btn[aria-selected="true"] {
  background: var(--blau);
  border-color: var(--blau);
  color: #fff;
  box-shadow: 0 3px 10px rgba(84,128,178,.35);
}
.tab-panel { border-top: 2px solid var(--border); margin-top: 6px; }
/* Tab-Karte oben bündig zum linken Block */
.card.tabs { padding-top: 20px; }
.notice h3:first-child { margin-top: 0; }

/* ---------- Querverweis anderes Gewässer ---------- */
.cross-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--hellblau-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 26px;
}
.cross-link p { margin: 0; }
.cross-link .btn { flex: 0 0 auto; }

/* ---------- Teaser-Karten (Startseite) ---------- */
.teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 26px;
  align-items: start;
}
.teaser {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  padding: 24px 26px 20px;
  margin-top: 20px;
  box-shadow: var(--shadow);
}
.teaser h3 { margin-top: 4px; }
.teaser-tab {
  position: absolute;
  top: -20px;
  left: -1px;
  display: inline-block;
  background: var(--blau);
  color: #fff;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 8px 8px 0 0;
}
.teaser-tab.aktuell { background: var(--gruen); }
.teaser-tab.rueckblick { background: #b5763f; }
.teaser.wide { grid-column: 1 / -1; }
.teaser-intro { color: var(--text); margin-bottom: 4px; }
.teaser-full[hidden] { display: none; }
.teaser-full { margin-top: 6px; }
.teaser-toggle {
  margin-top: 10px;
  background: none;
  border: 0;
  padding: 6px 0;
  color: var(--blau);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.teaser-toggle:hover { text-decoration: underline; }
.teaser-toggle .chev { transition: transform .2s; font-size: .85em; }
.teaser-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.teaser .notice.season { text-align: left; }
@media (max-width: 680px) { .teaser-grid { grid-template-columns: 1fr; } }
.tab-panel {
  padding: 22px 4px;
  animation: fade .3s ease;
}
.tab-panel[hidden] { display: none; }
@keyframes fade { from { opacity: 0; transform: translateY(4px);} to {opacity:1;transform:none;} }

/* ---------- Akkordeon (Fallback / Mobil) ---------- */
details.acc {
  background: var(--hellblau-soft);
  border-radius: 8px;
  margin: 10px 0;
  overflow: hidden;
}
details.acc > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 700;
  color: var(--blau-dunkel);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary::after { content: "+"; font-size: 1.3rem; }
details.acc[open] > summary::after { content: "\2013"; }
details.acc .acc-body { padding: 0 18px 18px; }

/* ---------- Info-Boxen ---------- */
.notice {
  background: #fff;
  border-left: 5px solid var(--gruen);
  border-radius: 8px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.notice.warn { border-left-color: var(--blau); }
.notice.season {
  background: var(--blau);
  color: #fff;
  border: 0;
  font-weight: 700;
  text-align: center;
}
.underline-hand {
  border-bottom: 4px solid #d9534f;
  border-radius: 60% 60% 0 0 / 100%;
  padding-bottom: 2px;
}

/* ---------- Preistabellen ---------- */
.price-card { background: var(--hellblau); border-radius: var(--radius); padding: 26px; }
.price-card h3 { color: var(--blau-dunkel); margin-top: 0; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th {
  text-align: left;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--blau-dunkel);
  padding: 8px 0;
  border-bottom: 1px solid rgba(61,100,143,.25);
}
.price-table th:last-child, .price-table td:last-child { text-align: right; }
.price-table td { padding: 12px 0; border-bottom: 1px solid rgba(61,100,143,.15); }
.price-table td.amount { font-weight: 700; color: var(--blau-dunkel); white-space: nowrap; }
.price-table tr:last-child td { border-bottom: 0; }

/* ---------- Verkaufsstellen ---------- */
.shop-card {
  background: var(--hellblau-soft);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.shop-card h3 { margin: 0 0 10px; color: var(--blau-dunkel); font-size: 1.15rem; }
.shop-city { display: flex; align-items: center; gap: 8px; }
.shop-city .ico { fill: var(--blau); }
.section-sub { text-align: center; color: var(--text-hell); margin: 0 0 26px; font-size: .98rem; }
.shop-card p { margin: 0 0 4px; color: var(--text); }
.shop-card .tel { font-weight: 700; margin-top: 10px; }
.shop-card .hours { margin-top: 14px; font-size: .95rem; color: var(--text-hell); }

/* ---------- Slider ---------- */
.slider { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background:#000; }
.slides { display: flex; transition: transform .5s ease; }
.slides img { flex: 0 0 100%; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(84,128,178,.85); color: #fff; border: 0;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  font-size: 1.4rem; line-height: 1; display: grid; place-items: center;
}
.slider-btn:hover { background: var(--blau); }
.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }
.slider-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.slider-dots button { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0; }
.slider-dots button.active { background: #fff; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(20,32,48,.9);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox-close {
  position: absolute; top: 18px; right: 24px; background: none; border: 0;
  color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1;
}
.zoomable { cursor: zoom-in; border-radius: 8px; box-shadow: var(--shadow); transition: transform .2s; }
.zoomable:hover { transform: scale(1.01); }

/* ---------- Angelkarten-Platzhalter ---------- */
.ticket-box {
  border: 2px dashed var(--gruen);
  background: #fbfcf3;
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
}
.ticket-box h3 { color: var(--gruen-dunkel); margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  color: #fff;
  margin-top: 40px;
  background: linear-gradient(rgba(43,63,96,.82), rgba(43,63,96,.88)),
              url("../bilder/bg-footer.jpg") center/cover no-repeat;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 56px 20px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.footer-col h3 {
  color: #fff;
  font-size: 1.25rem;
  margin: 0 0 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.35);
}
.footer-col p { margin: 4px 0; color: rgba(255,255,255,.92); }
.footer-col .label { font-weight: 700; margin-top: 14px; }
.footer-col a { color: #fff; }
.footer-col-center { text-align: center; }
.footer-col-center .weather-btn { margin: 6px auto 0; }
.footer-col-center .wx-days { text-align: center; }
.footer-ticket-heading { margin-top: 4px; }
.footer-block { margin-bottom: 26px; }
.footer-links { list-style: none; margin: 8px 0 0; padding: 0; }
.footer-links li { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.footer-links li::before {
  content: "";
  width: 20px; height: 14px;
  background: url("../bilder/listenpunkt-weiss.png") left center/contain no-repeat;
  flex: 0 0 auto;
}
.weather-btn {
  background: var(--hellblau-soft);
  color: var(--text);
  border: 0;
  border-radius: 12px;
  padding: 20px 26px;
  font: inherit;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  min-width: 190px;
  box-shadow: var(--shadow);
}
.weather-btn:hover { background: #fff; text-decoration: none; }
.weather-out { margin-top: 14px; font-size: .95rem; color: rgba(255,255,255,.95); min-height: 1em; }

/* Wetter-Vorschau (mehrere Tage) */
.wx-now { font-size: 1rem; margin-bottom: 10px; }
.wx-now strong { font-size: 1.25rem; }
.wx-days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(52px, 1fr));
  gap: 6px;
  margin-top: 6px;
}
.wx-day {
  background: rgba(255,255,255,.14);
  border-radius: 8px;
  padding: 8px 4px;
  text-align: center;
  line-height: 1.35;
}
.wx-day .d { font-weight: 700; font-size: .8rem; }
.wx-day .sym { font-size: 1.15rem; display: block; margin: 2px 0; }
.wx-day .hi { font-weight: 700; font-size: .82rem; }
.wx-day .lo { font-size: .78rem; opacity: .8; }
.wx-src { margin-top: 8px; font-size: .78rem; opacity: .8; }

/* Kontakt-Zeilen mit Icon */
.ico { width: 1.05em; height: 1.05em; fill: currentColor; flex: 0 0 auto; }
.contact-line { display: flex; align-items: flex-start; gap: 9px; }
.contact-line .ico { margin-top: .28em; }
.contact-line a { color: inherit; }
.footer-ticket {
  margin-top: 18px;
  background: rgba(171,181,67,.22);
  border: 1px dashed rgba(255,255,255,.55);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: .95rem;
}
.footer-bar {
  background: var(--blau);
  text-align: left;
}
.footer-bar .container { padding: 16px 20px; color: rgba(255,255,255,.9); font-size: .9rem; }

/* Back to top */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 500;
  width: 46px; height: 46px; border-radius: 8px;
  background: var(--gruen); color: #fff; border: 0;
  box-shadow: var(--shadow); cursor: pointer; font-size: 1.3rem;
  display: none; align-items: center; justify-content: center;
}
.to-top:hover { background: var(--gruen-dunkel); }
.to-top.show { display: flex; }

/* Externer-Link-Symbol */
.ext-ico { font-size: .85em; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  /* Mittlere Footer-Spalte im gestapelten/2-spaltigen Layout linksbündig */
  .footer-col-center { text-align: left; }
  .footer-col-center .weather-btn { margin: 6px 0 0; }
  .footer-col-center .wx-days { text-align: left; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 84vw);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    padding: 80px 16px 24px;
    box-shadow: -8px 0 30px rgba(0,0,0,.18);
    transform: translateX(100%);
    transition: transform .3s ease;
    overflow-y: auto;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu a { padding: 12px 14px; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; min-width: auto; max-width: none;
    background: var(--grau-bg); padding: 0 4px 0 12px;
    max-height: 0; overflow: hidden; transition: max-height .3s ease; margin: 0;
  }
  .submenu.open { max-height: 400px; padding-top: 6px; padding-bottom: 6px; }
  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,.35);
    opacity: 0; visibility: hidden; transition: .3s; z-index: 99;
  }
  .nav-backdrop.show { opacity: 1; visibility: visible; }
}
@media (max-width: 680px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { height: 240px; }
  .hero.small { height: 200px; }
  body::before { background-size: 208px auto; opacity: .5; }
}
