/* Conny’s Sport · Mode
   Hell und ruhig; Akzente nach dem Logo: Schreibschrift + gesperrte Versalien zwischen feinen Linien.
   Keine externen Schriften oder Dienste (datenschutzfreundlich). */
:root {
  --tinte: #2e3336;      /* Logofarbe */
  --tinte-weich: #4a5054;
  --leise: #6e7478;      /* Unterzeile des Logos */
  --linie: #e4e2de;
  --grund: #ffffff;
  --flaeche: #f6f5f2;    /* warmes Off-White für Abschnitte */
  --karte: #ffffff;
  --radius: 18px;
  --schatten: 0 1px 2px rgba(46, 51, 54, .04), 0 8px 24px rgba(46, 51, 54, .06);
  --versal: .28em;       /* Sperrung wie „SPORT · MODE“ */
  --auf-tinte: #ffffff;  /* Text auf dunklen Knöpfen */
  --kopf-grund: rgba(255, 255, 255, .88);
  --glanz: #f1efea;
  --leuchten: 255, 178, 92; /* warmes Licht der Halo-Leuchtbuchstaben (RGB) */
  --offen: #2f9e5b;
  --logo-filter: brightness(1); /* neutral; „none“ ließe sich nicht mit dem Leuchten kombinieren */
}

/* Abendmodus – nach Ladenschluss wie ein Schaufenster am Abend (siehe einstellungen.js) */
html.abend {
  --tinte: #ece8e2;
  --tinte-weich: #c3beb7;
  --leise: #9b968f;
  --linie: #373b3e;
  --grund: #1b1e20;
  --flaeche: #222628;
  --karte: #272b2e;
  --auf-tinte: #1b1e20;
  --kopf-grund: rgba(27, 30, 32, .86);
  --glanz: #2a2a27;
  --schatten: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  --logo-filter: invert(.9) sepia(.12);
  color-scheme: dark;
}
body { transition: background-color .6s, color .6s; }
[hidden] { display: none !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--tinte);
  background: var(--grund);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--tinte); text-underline-offset: 3px; }
a:hover { color: var(--leise); }
:focus-visible { outline: 2px solid var(--tinte); outline-offset: 3px; border-radius: 4px; }

.inhalt { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Nur für Screenreader / Sprunglink */
.sprung {
  position: absolute; left: -9999px; top: 0;
  background: var(--tinte); color: var(--auf-tinte); padding: 8px 14px; z-index: 20;
}
a.sprung:focus { left: 8px; top: 8px; }

/* Gesperrte Versalien mit Linien – das Logo-Motiv */
.versal {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 0 0 14px;
  font-size: .78rem; font-weight: 600; letter-spacing: var(--versal); text-transform: uppercase;
  color: var(--leise);
}
.versal::before, .versal::after { content: ""; width: 36px; height: 1px; background: currentColor; }

/* Kopfzeile */
.kopf {
  position: sticky; top: 0; z-index: 10;
  background: var(--kopf-grund);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--linie);
}
.kopf .inhalt {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap;
}
.marke { display: block; line-height: 0; }
.marke img { height: 46px; width: auto; display: block; filter: var(--logo-filter); }
.kopf nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; }
.kopf nav a {
  text-decoration: none; color: var(--tinte-weich);
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.kopf nav a:hover { color: var(--tinte); }

/* Titelbereich */
.titel {
  text-align: center;
  background:
    radial-gradient(1200px 420px at 50% -10%, var(--glanz) 0%, transparent 70%),
    var(--grund);
}
.titel .inhalt { padding-top: 72px; padding-bottom: 88px; }
.titel h1 { margin: 0; }
.schild {
  display: block; width: min(100%, 580px); height: auto; margin: 0 auto 26px;
  filter: var(--logo-filter); transition: filter .8s;
}

/* Leuchtschild: Im Abendmodus „schaltet“ sich das Logo ein wie die Leuchtreklame am Laden –
   warmes Licht hinter den Buchstaben. Tagsüber bleibt es schlicht. */
html.abend .schild {
  filter: var(--logo-filter)
    drop-shadow(0 0 5px rgba(var(--leuchten), .75))
    drop-shadow(0 0 20px rgba(var(--leuchten), .55));
  animation: einschalten 1.8s .35s both, glimmen 5s 2.2s ease-in-out infinite alternate;
}
@keyframes einschalten {
  0%   { filter: var(--logo-filter); }
  6%   { filter: var(--logo-filter) drop-shadow(0 0 6px rgba(var(--leuchten), .6)) drop-shadow(0 0 22px rgba(var(--leuchten), .4)); }
  10%  { filter: var(--logo-filter); }
  18%  { filter: var(--logo-filter) drop-shadow(0 0 6px rgba(var(--leuchten), .5)) drop-shadow(0 0 22px rgba(var(--leuchten), .3)); }
  22%  { filter: var(--logo-filter) drop-shadow(0 0 2px rgba(var(--leuchten), .2)); }
  40%, 100% { filter: var(--logo-filter) drop-shadow(0 0 5px rgba(var(--leuchten), .75)) drop-shadow(0 0 20px rgba(var(--leuchten), .55)); }
}
@keyframes glimmen {
  from { filter: var(--logo-filter) drop-shadow(0 0 5px rgba(var(--leuchten), .75)) drop-shadow(0 0 20px rgba(var(--leuchten), .55)); }
  to   { filter: var(--logo-filter) drop-shadow(0 0 6px rgba(var(--leuchten), .85)) drop-shadow(0 0 28px rgba(var(--leuchten), .65)); }
}

/* Live-Status unter dem Logo */
.status {
  display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 10px; margin: 0 0 34px; max-width: 100%;
  padding: 8px 16px; border: 1px solid var(--linie); border-radius: 999px;
  background: var(--karte); font-size: .92rem; color: var(--tinte-weich);
}
.status-text { font-weight: 700; color: var(--tinte); }
.status-zusatz { white-space: nowrap; }
.status .punkt { width: 9px; height: 9px; border-radius: 50%; background: var(--leise); flex: none; }
html.offen .status .punkt { background: var(--offen); box-shadow: 0 0 0 0 rgba(47, 158, 91, .5); animation: puls 2.4s infinite; }
@keyframes puls {
  0% { box-shadow: 0 0 0 0 rgba(47, 158, 91, .45); }
  70% { box-shadow: 0 0 0 9px rgba(47, 158, 91, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 158, 91, 0); }
}

/* Saison-Zeile */
.saison { background: var(--flaeche); border-bottom: 1px solid var(--linie); }
.saison .inhalt {
  padding-top: 10px; padding-bottom: 10px; text-align: center;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--tinte-weich);
}
.unter-h1 {
  font-size: clamp(1.5rem, 3.6vw, 2.1rem); font-weight: 700; line-height: 1.2;
  letter-spacing: -.01em; margin: 0 0 12px;
}
.lead { font-size: 1.125rem; color: var(--tinte-weich); max-width: 44ch; margin: 0 auto 32px; }

.knoepfe { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.knopf {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; text-decoration: none;
  border: 1.5px solid var(--tinte); transition: background .15s, color .15s, transform .15s;
}
.knopf:hover { transform: translateY(-1px); }
.knopf.voll { background: var(--tinte); color: var(--auf-tinte); }
.knopf.voll:hover { background: var(--tinte-weich); border-color: var(--tinte-weich); color: var(--auf-tinte); }
.knopf.rand { background: transparent; color: var(--tinte); }
.knopf.rand:hover { background: var(--tinte); color: var(--auf-tinte); }

.kurzinfo {
  margin: 36px auto 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px;
  font-size: .9rem; color: var(--leise);
}
.kurzinfo span + span::before { content: "·"; margin-right: 22px; }

/* Abschnitte */
section { padding: 88px 0; }
section h2 {
  font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1.2; letter-spacing: -.01em;
  margin: 0 0 10px; text-align: center;
}
.unterzeile { color: var(--tinte-weich); margin: 0 auto 44px; max-width: 56ch; text-align: center; }

.raster { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .raster { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .raster { grid-template-columns: 1fr; } }

.karte {
  background: var(--karte); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 28px 26px;
  transition: transform .2s, box-shadow .2s;
}
.karte:hover { transform: translateY(-2px); box-shadow: var(--schatten); }
.karte h3 { margin: 0 0 6px; font-size: 1.08rem; }
.karte p { margin: 0; color: var(--tinte-weich); font-size: .98rem; }
.karte .marker { display: block; width: 28px; height: 1.5px; background: var(--tinte); margin-bottom: 18px; }

/* Besuch: Öffnungszeiten + Kontakt */
.besuch { background: var(--flaeche); }
.zwei { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(310px, 100%), 1fr)); }
.besuch .karte:hover { transform: none; box-shadow: none; }
.besuch .karte h2 { text-align: left; font-size: 1.25rem; margin-bottom: 18px; }
#kontakt { scroll-margin-top: 90px; }
#besuch, #angebot { scroll-margin-top: 70px; }

table.zeiten { width: 100%; border-collapse: collapse; }
table.zeiten th, table.zeiten td { padding: 11px 0; border-bottom: 1px solid var(--linie); }
table.zeiten tr:last-child th, table.zeiten tr:last-child td { border-bottom: 0; }
table.zeiten th { text-align: left; font-weight: 500; }
table.zeiten td { text-align: right; font-variant-numeric: tabular-nums; color: var(--tinte-weich); }
table.zeiten tr.heute th, table.zeiten tr.heute td { font-weight: 700; color: var(--tinte); }
table.zeiten tr.heute th::after {
  content: "heute"; margin-left: 10px; vertical-align: 2px;
  font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--auf-tinte); background: var(--tinte); padding: 3px 9px; border-radius: 999px;
}
.hinweis { font-size: .88rem; color: var(--leise); margin: 14px 0 0; }

.kontakt-liste { list-style: none; padding: 0; margin: 0; }
.kontakt-liste li { padding: 12px 0; border-bottom: 1px solid var(--linie); }
.kontakt-liste li:first-child { padding-top: 0; }
.kontakt-liste li:last-child { border-bottom: 0; padding-bottom: 0; }
.kontakt-liste strong {
  display: block; margin-bottom: 2px;
  font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--leise);
}
.kontakt-liste a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.kontakt-liste a:hover { text-decoration: underline; }

/* Fotos – optional */
.fotos { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.fotos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); display: block; }

/* Fußzeile */
.fuss { border-top: 1px solid var(--linie); font-size: .9rem; color: var(--leise); }
.fuss .inhalt {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: 28px; padding-bottom: 28px;
}
.fuss nav { display: flex; gap: 22px; }
.fuss a { color: var(--tinte-weich); }

/* Rechtstexte */
.recht { padding: 56px 0 88px; }
.recht .inhalt { max-width: 760px; }
.recht h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -.01em; margin: 0 0 28px; }
.recht h2 { font-size: 1.15rem; margin: 36px 0 8px; text-align: left; }
.recht h3 { font-size: 1.02rem; margin: 22px 0 6px; }
.recht p, .recht li { max-width: 70ch; color: var(--tinte-weich); }
.recht address { font-style: normal; color: var(--tinte-weich); }

/* Noch auszufüllende Angaben – vor Veröffentlichung ersetzen! */
.todo { background: #fff2a8; color: #3a3000; outline: 1px dashed #b39500; padding: 0 4px; border-radius: 3px; }

@media (max-width: 600px) {
  .kopf .inhalt { justify-content: center; }
  .kopf nav { gap: 18px; }
  .kopf nav a { font-size: .72rem; letter-spacing: .12em; }
  .marke img { height: 40px; }
  section { padding: 64px 0; }
  .titel .inhalt { padding-top: 48px; padding-bottom: 64px; }
  .schild { margin-bottom: 22px; }
  .saison .inhalt { font-size: .7rem; letter-spacing: .1em; }
  .knopf { width: 100%; justify-content: center; }
  .kurzinfo span + span::before { display: none; }
  .kurzinfo { flex-direction: column; gap: 2px; }
  .karte { padding: 24px 20px; }
  .fuss .inhalt { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .karte, .knopf, body, .schild { transition: none; }
  html.abend .schild, html.offen .status .punkt { animation: none; }
}
