/* Ali Atoui PT-Portal
   Mobile first: Basis-Styles gelten fuers Handy,
   ab 700px (Tablet) und 900px (Desktop) wird erweitert. */

:root {
  --black: #000000;
  --coal: #151515;
  --coal-2: #1f1f1f;
  --line: #2e2e2e;
  --white: #f4f4f4;
  --muted: #a5a5a5;
  --red: #c8161d;
  --red-dark: #9e1016;
  --red-glow: rgba(200, 22, 29, 0.55);

  --font-display: "Anton", "Oswald", "Impact", "Arial Narrow", sans-serif;
  --font-body: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --pad: 1.1rem;
  --radius: 8px;
  --tap: 48px;
  --tabbar-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}
body.has-tabbar { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }

main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}
h2 { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.8rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem); }
p { margin: 0 0 1em; max-width: 68ch; }

/* Roter, schraeger Balken unter den grossen Ueberschriften */
.h-bar::after {
  content: "";
  display: block;
  width: 72px;
  height: 6px;
  margin-top: 0.4em;
  background: var(--red);
  transform: skewX(-24deg);
  box-shadow: 0 0 18px var(--red-glow);
}

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.hidden { display: none !important; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 64px; }

.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { width: 50px; height: 50px; object-fit: contain; transition: transform 0.3s var(--ease); }
.brand:hover img { transform: rotate(-10deg) scale(1.08); }

.header-end { display: flex; align-items: center; gap: 0.4rem; }
.insta { width: 44px; height: 44px; display: grid; place-items: center; color: var(--white); border-radius: 50%; transition: color 0.2s, background 0.2s; }
.insta svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.insta:hover { color: var(--red); background: var(--coal-2); }

.nav-toggle {
  min-height: 42px;
  background: none;
  border: 1px solid var(--line);
  color: var(--white);
  border-radius: var(--radius);
  padding: 0.4rem 0.9rem;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

/* Handy: Menue klappt unter dem Header auf */
.nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  background: var(--black);
  border-bottom: 1px solid var(--line);
  padding: 0.3rem var(--pad) 1.2rem;
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
}
.nav.open { display: flex; }
.nav a { text-decoration: none; color: var(--muted); font-size: 1.05rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }
.nav .btn { order: 2; color: var(--white); margin-top: 1rem; border-bottom: 0; font-size: 1rem; padding-left: 1.6rem; padding-right: 1.6rem; }

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--tap);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--red);
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.2s, box-shadow 0.25s, transform 0.15s;
}
/* Lichtreflex, der beim Hover durch den Button zieht */
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s var(--ease);
  pointer-events: none;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); box-shadow: 0 10px 30px -8px var(--red-glow); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-ghost:hover { background: var(--coal-2); border-color: var(--muted); box-shadow: none; }
.btn-small { min-height: 40px; padding: 0.4rem 0.9rem; font-size: 0.9rem; }
.btn-big { min-height: 58px; padding: 0.9rem 2.2rem; font-size: 1.08rem; letter-spacing: 0.01em; }
.btn-block { width: 100%; }
.btn-danger-text {
  min-height: 40px;
  background: none;
  border: 0;
  color: #ff7b7b;
  padding: 0.3rem 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: underline;
}

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--black); }

/* Koerniger Film-Look ueber dem ganzen Hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Roter Glow hinter dem Text */
.hero-glow {
  position: absolute;
  z-index: 1;
  width: 520px;
  height: 520px;
  left: -180px;
  bottom: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 22, 29, 0.45), rgba(200, 22, 29, 0) 70%);
  filter: blur(20px);
  pointer-events: none;
}

.hero-bg { position: relative; height: 60vh; height: 60svh; min-height: 360px; max-height: 620px; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.75) 75%, #000 100%),
    linear-gradient(155deg, rgba(200, 22, 29, 0.32) 0%, rgba(200, 22, 29, 0) 45%);
}

/* Riesiger Umriss-Schriftzug im Hintergrund */
.hero-ghost {
  position: absolute;
  z-index: 2;
  right: -0.08em;
  top: 0.1em;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(5rem, 22vw, 17rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
  writing-mode: vertical-rl;
  pointer-events: none;
  user-select: none;
}

.hero-inner { position: relative; z-index: 4; margin-top: -7.5rem; padding-bottom: 3.5rem; }
.hero-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(3rem, 1rem + 10vw, 7.4rem);
  line-height: 0.9;
  margin: 0 0 1.5rem;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.6);
}
.hero-title span { display: block; }
.hero-title .l2 { color: transparent; -webkit-text-stroke: 2px var(--white); text-shadow: none; }

.hero-awards { list-style: none; margin: 0 0 2rem; padding: 0; max-width: 460px; }
.hero-awards li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 500;
}
.hero-awards li::before {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  background: var(--red);
  transform: skewX(-22deg);
  box-shadow: 0 0 12px var(--red);
}
.hero-awards strong { font-weight: 600; }
.hero .btn-big { width: 100%; }

/* Einmalige Einblend-Sequenz beim Laden */
@media (prefers-reduced-motion: no-preference) {
  .hero-bg img { animation: heroZoom 1.8s var(--ease) both; }
  .hero-title span { animation: rise 0.8s var(--ease) both; }
  .hero-title .l2 { animation-delay: 0.12s; }
  .hero-awards li { animation: rise 0.6s var(--ease) both; animation-delay: calc(0.35s + var(--i, 0) * 0.08s); }
  .hero .btn-big { animation: rise 0.6s var(--ease) 0.85s both; }
  .hero-ghost { animation: fadeIn 2s ease 0.4s both; }
}
@keyframes heroZoom { from { transform: scale(1.14); filter: grayscale(1) brightness(0.45); } to { transform: none; filter: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Laufband ---------- */

.ticker-wrap { overflow: hidden; padding: 3rem 0; margin: -3.4rem 0 -2.4rem; position: relative; z-index: 5; pointer-events: none; }
.ticker {
  background: var(--red);
  color: var(--black);
  transform: rotate(-1.6deg);
  width: 130%;
  margin-left: -15%;
  border-top: 3px solid var(--black);
  border-bottom: 3px solid var(--black);
  box-shadow: 0 10px 40px -10px var(--red-glow);
}
.ticker-track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.ticker-track span {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.3rem, 1rem + 1.6vw, 2.3rem);
  line-height: 1;
  padding: 0.6rem 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.ticker-track span::after {
  content: "";
  width: 0.55em;
  height: 0.55em;
  margin: 0 0.9em;
  background: var(--black);
  transform: rotate(45deg);
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.section { padding: 3.8rem 0; border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 2rem; }
.section-head p { color: var(--muted); }

.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }

/* Foto mit rotem, versetztem Rahmen */
.photo-frame { position: relative; margin: 0 0.9rem 0.9rem 0; }
.photo-frame::before {
  content: "";
  position: absolute;
  inset: 0.9rem -0.9rem -0.9rem 0.9rem;
  border: 3px solid var(--red);
  border-radius: var(--radius);
  z-index: 0;
}
.photo-frame img { position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }

/* Horizontaler Zeitstrahl */
.htl { margin-top: 3.5rem; }
.htl h3 { margin-bottom: 1.4rem; }
.htl-list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0.8rem 0 0.6rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 74%;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.htl-list::-webkit-scrollbar { display: none; }
.htl-list li { scroll-snap-align: start; position: relative; padding-top: 2.4rem; }
.htl-list li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  right: -1rem;
  height: 3px;
  background: linear-gradient(var(--red), var(--red)) left / 0% 100% no-repeat, var(--line);
  transition: background-size 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.18s);
}
.htl-list li:last-child::before { right: 0; }
.htl-list li::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 17px;
  height: 17px;
  background: var(--black);
  border: 3px solid var(--red);
  transform: rotate(45deg);
}
.htl.in .htl-list li::before { background-size: 100% 100%; }
.htl-list li::after { transition: background 0.4s, box-shadow 0.4s, transform 0.4s var(--ease); }
.htl-year {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  height: 3.9rem;
  display: flex;
  align-items: flex-end;
  color: #6b1216;
  transition: font-size 0.5s var(--ease), color 0.4s, text-shadow 0.4s;
}
.htl-title { font-weight: 600; margin-top: 0.5rem; color: var(--muted); transition: color 0.4s; }
/* Aktiver Punkt im Loop: Jahreszahl gross und leuchtend */
.htl-list li.active .htl-year { color: var(--red); font-size: 3.8rem; text-shadow: 0 0 28px var(--red-glow); }
.htl-list li.active .htl-title { color: var(--white); }
.htl-list li.active::after { background: var(--red); box-shadow: 0 0 16px var(--red); transform: rotate(45deg) scale(1.2); }
.htl-hint { color: var(--muted); font-size: 0.82rem; margin-top: 0.6rem; }

/* Video: Handy im Hochformat etwas hoeher, damit der Hinweis Platz hat */
.video-box {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--coal) center 25% / cover no-repeat;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.video-box.playing { aspect-ratio: 16 / 9; }
.video-box::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.35)); }
.video-box.playing::before { display: none; }
.video-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1.4rem; gap: 1rem; }
.video-consent p { font-size: 0.85rem; color: #d0d0d0; max-width: 46ch; margin: 0; }
.play {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--red);
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 0 var(--red-glow);
}
.play:hover { background: var(--red-dark); }
.play svg { width: 30px; height: 30px; margin-left: 5px; fill: var(--white); }
@media (prefers-reduced-motion: no-preference) {
  .play { animation: pulse 2.2s ease-out infinite; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--red-glow); }
  70% { box-shadow: 0 0 0 26px rgba(200, 22, 29, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 22, 29, 0); }
}
.video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.pt-text { display: grid; gap: 0; margin-bottom: 2.6rem; }
.pt-text p { color: #d6d6d6; }
.pt-lead { font-size: 1.12rem; color: var(--white) !important; font-weight: 500; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.6rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--red); padding-top: 0.9rem; }
.steps li::before { content: counter(step); font-family: var(--font-display); font-size: 2.4rem; line-height: 1; display: block; margin-bottom: 0.4rem; color: var(--red); }
.steps h3 { margin-bottom: 0.3em; }
.steps p { color: var(--muted); font-size: 0.95rem; margin: 0; }

.prices { width: 100%; border-collapse: collapse; margin-top: 2.5rem; }
.prices th, .prices td { text-align: left; padding: 1rem 0.5rem 1rem 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.prices th { font-weight: 600; }
.prices td.price { font-family: var(--font-display); font-size: 1.7rem; text-align: right; white-space: nowrap; padding-right: 0; }
.prices td.price.ask { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; }
.prices .sub { display: block; font-weight: 400; color: var(--muted); font-size: 0.88rem; }
.note { margin-top: 1.2rem; color: var(--muted); font-size: 0.9rem; }

/* Trainingsort */
.place { display: grid; gap: 2rem; }
.place address { font-style: normal; font-size: 1.15rem; margin-bottom: 1.5rem; }
.place address strong { display: block; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.5rem; letter-spacing: 0.02em; }

/* Eingebettete Google-Karte, per Filter an das dunkle Design angepasst */
.map-embed {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--coal);
  box-shadow: 0 20px 60px -30px var(--red-glow);
}
.map-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  filter: invert(90%) hue-rotate(180deg) saturate(0.7) contrast(0.95);
}
.map-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-top: 3px solid var(--red);
}

/* ---------- Footer ---------- */

.site-footer { padding: 2rem 0; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 0.8rem; }
.site-footer nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.site-footer a { text-decoration: none; padding: 0.3rem 0; }
.site-footer a:hover { color: var(--white); }

/* ---------- Untere Tab-Leiste (Handy, nur angemeldet) ---------- */

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  background: rgba(10, 10, 10, 0.97);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tabbar a {
  flex: 1;
  min-height: var(--tabbar-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
}
.tabbar a svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a[aria-current="page"] { color: var(--white); }
.tabbar a[aria-current="page"] svg { stroke: var(--red); }

/* ---------- App-Seiten ---------- */

.page { padding: 1.8rem 0 3rem; }
.page-title { font-size: clamp(2.2rem, 1.6rem + 2.5vw, 3.6rem); margin-bottom: 0.3em; }
.page-intro { color: var(--muted); margin-bottom: 1.5rem; }

.panel { background: var(--coal); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem; }
.panel + .panel { margin-top: 1rem; }
.panel h2 { font-size: 1.5rem; }

.stack { display: grid; gap: 1rem; }
.stack > .panel + .panel { margin-top: 0; }

.credit-big { font-family: var(--font-display); font-size: 4.5rem; line-height: 1; }
.credit-big small { font-size: 0.3em; color: var(--muted); font-family: var(--font-body); text-transform: none; margin-left: 0.35rem; }

/* Formulare: 16px Schrift verhindert Auto-Zoom auf dem iPhone */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.9rem; color: #d4d4d4; }
input, select, textarea {
  font: inherit;
  font-size: 16px;
  min-height: var(--tap);
  color: var(--white);
  background: var(--black);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.65rem 0.8rem;
  width: 100%;
}
input:focus, select:focus { border-color: var(--muted); outline: none; }
/* Absicherung fuer Handy-Browser: Felder muessen immer antippbar und beschreibbar sein */
input, select, textarea {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  touch-action: auto;
  -webkit-user-select: text;
  user-select: text;
  -webkit-appearance: none;
  appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
input[type="checkbox"] { -webkit-appearance: auto; appearance: auto; }
input[type="checkbox"] { width: 22px; height: 22px; min-height: 0; accent-color: var(--red); flex: none; }
.check { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.9rem; color: #d4d4d4; }
.check input { margin-top: 0.1rem; }
.form-msg { font-size: 0.92rem; min-height: 1.2em; margin: 0; }
.form-msg.error { color: #ff7b7b; }
.form-msg.ok { color: #7ee2a3; }

.auth-box { max-width: 480px; margin: 0 auto; }
.tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 1.4rem; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 1 0 auto;
  min-height: var(--tap);
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.tab[aria-selected="true"] { color: var(--white); border-bottom-color: var(--red); }
.link-btn { min-height: 40px; background: none; border: 0; color: var(--muted); text-decoration: underline; font: inherit; font-size: 0.92rem; cursor: pointer; padding: 0; justify-self: center; }
.link-btn:hover { color: var(--white); }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.4rem 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .when { font-weight: 600; }
.list .meta { color: var(--muted); font-size: 0.87rem; }
.list .right { display: flex; gap: 0.9rem; align-items: center; }
.empty { color: var(--muted); padding: 0.5rem 0; }

.badge { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 0.15rem 0.6rem; border-radius: 99px; background: var(--coal-2); border: 1px solid var(--line); color: var(--muted); }
.badge.free { color: #7ee2a3; border-color: #28573b; }
.badge.booked { color: var(--white); background: var(--red); border-color: var(--red); }

/* ---------- Kalender ---------- */

.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.booking-layout > div > .panel + .panel { margin-top: 1rem; }

.cal-panel { padding: 1rem 0.7rem; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0.3rem 0.8rem; gap: 0.5rem; }
.cal-head h2 { margin: 0; font-size: 1.5rem; }
.cal-nav { display: flex; gap: 0.4rem; }
.cal-nav button { width: 44px; height: 44px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--black); color: var(--white); cursor: pointer; font-size: 1.3rem; }
.cal-nav button:disabled { opacity: 0.3; cursor: not-allowed; }

.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { text-align: center; font-size: 0.75rem; color: var(--muted); padding-bottom: 0.2rem; }
.cal-day {
  height: 48px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: none;
  color: #5c5c5c;
  font: inherit;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 0;
  cursor: default;
  touch-action: manipulation;
}
.cal-day.has { color: var(--white); background: var(--coal-2); border-color: var(--line); cursor: pointer; font-weight: 600; }
.cal-day.today { outline: 1px dashed var(--muted); outline-offset: -3px; }
.cal-day.selected { background: var(--red); border-color: var(--red); color: var(--white); box-shadow: 0 6px 20px -6px var(--red-glow); }
.cal-day .dot { white-space: nowrap; font-size: 0.62rem; font-weight: 500; color: var(--muted); line-height: 1; }
.cal-day.selected .dot { color: var(--white); }
.cal-day .dot.bk { color: #ff8a8a; }
.cal-day.selected .dot.bk { color: var(--white); }
.cal-day.selectable { cursor: pointer; color: #bdbdbd; }

.times { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.time-btn {
  min-height: 52px;
  border-radius: var(--radius);
  border: 1px solid var(--red);
  background: transparent;
  color: var(--white);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  touch-action: manipulation;
}
.time-btn.on { background: var(--red); }
.time-btn.off { border-color: var(--line); color: var(--muted); font-weight: 500; }
.time-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* Kommentar an Terminen, z. B. "nur Kinder" */
.time-btn.has-note { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0.4rem 0.3rem; min-height: 60px; }
.time-btn .tnote { font-size: 0.68rem; font-weight: 500; line-height: 1.2; color: #ffb3b3; text-align: center; overflow-wrap: anywhere; }
.slot-note {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0.1rem 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffd0d0;
  background: rgba(200, 22, 29, 0.18);
  border: 1px solid rgba(200, 22, 29, 0.5);
  border-radius: 99px;
}
dialog #note-input { margin-top: 0.2rem; }

/* ---------- Dialog (Handy: Bottom Sheet) und Toast ---------- */

dialog {
  background: var(--coal);
  color: var(--white);
  border: 1px solid var(--line);
  padding: 1.4rem var(--pad) calc(1.2rem + env(safe-area-inset-bottom, 0px));
  width: 100%;
  max-width: 100%;
  margin: auto 0 0;
  border-radius: 16px 16px 0 0;
}
dialog::backdrop { background: rgba(0, 0, 0, 0.75); }
dialog h3 { margin-bottom: 0.6rem; }
dialog p { margin: 0; }
.dialog-actions { display: flex; flex-direction: column-reverse; gap: 0.6rem; margin-top: 1.4rem; }
.dialog-actions .btn { width: 100%; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 200%);
  background: var(--white);
  color: var(--black);
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 500;
  z-index: 100;
  width: max-content;
  max-width: calc(100vw - 2rem);
  transition: transform 0.25s ease;
}
body.has-tabbar .toast { bottom: calc(var(--tabbar-h) + 0.8rem + env(safe-area-inset-bottom, 0px)); }
.toast.show { transform: translate(-50%, 0); }
.toast.error { background: #ff7b7b; }

/* ---------- Admin ---------- */

.admin-tabs { margin-bottom: 1.2rem; }
.toolbar { display: grid; gap: 0.8rem; margin-bottom: 0.6rem; }

.cust-list { list-style: none; margin: 0; padding: 0; }
.cust-list > li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cust-list > li:last-child { border-bottom: 0; }
.cust-top { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.cust-name { font-weight: 600; }
.cust-contact { color: var(--muted); font-size: 0.87rem; word-break: break-word; }
.cust-contact a { text-decoration: none; }
.cust-credits { font-family: var(--font-display); font-size: 2rem; line-height: 1; text-align: right; }
.cust-credits small { display: block; font-family: var(--font-body); font-size: 0.7rem; color: var(--muted); }
.credit-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.45rem; margin-top: 0.8rem; }
.credit-actions .custom { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 0.45rem; }
.cust-list [data-delete-user] { display: block; margin-top: 0.4rem; justify-self: start; grid-column: 1 / -1; color: #ff7b7b; }

.inline-form { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; align-items: end; }

/* ---------- Checkout ---------- */

.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.step-no {
  display: inline-grid;
  place-items: center;
  width: 1.5em;
  height: 1.5em;
  margin-right: 0.5em;
  font-size: 0.8em;
  background: var(--red);
  color: var(--white);
  transform: skewX(-10deg);
  vertical-align: 0.1em;
}

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.seg button {
  min-height: 54px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--black);
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
}
.seg button[aria-checked="true"] { border-color: var(--red); color: var(--white); background: rgba(200, 22, 29, 0.14); box-shadow: 0 0 0 1px var(--red) inset; }

.pkg-list { display: grid; gap: 0.6rem; }
.pkg {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  text-align: left;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--black);
  color: var(--white);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.15s;
}
.pkg:active { transform: scale(0.99); }
.pkg.on { border-color: var(--red); box-shadow: 0 0 0 1px var(--red) inset, 0 12px 34px -14px var(--red-glow); }
.pkg-main, .pkg-side { display: flex; flex-direction: column; }
.pkg-side { text-align: right; flex: none; }
.pkg-name { font-family: var(--font-display); text-transform: uppercase; font-size: 1.35rem; line-height: 1.1; }
.pkg-desc { color: var(--muted); font-size: 0.87rem; }
.pkg-price { font-family: var(--font-display); font-size: 1.8rem; line-height: 1; color: var(--white); }
.pkg.on .pkg-price { color: var(--red); }
.pkg-per { color: var(--muted); font-size: 0.78rem; margin-top: 0.2rem; }

.sum-rows { margin: 0 0 1rem; }
.sum-rows > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.sum-rows dt { color: var(--muted); }
.sum-rows dd { margin: 0; font-weight: 600; text-align: right; }
.sum-total dt { color: var(--white); font-weight: 600; }
.sum-total dd { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; line-height: 1; color: var(--red); }
.summary .check { margin: 1rem 0; }

.paypal-box { margin-top: 0.8rem; min-height: 50px; transition: opacity 0.2s; }
.paypal-box.locked { opacity: 0.45; }
.notice { background: var(--coal-2); border: 1px solid var(--line); border-left: 3px solid var(--red); padding: 0.9rem 1rem; border-radius: var(--radius); margin: 0; font-size: 0.92rem; }

.success-box { text-align: center; max-width: 560px; margin: 1rem auto 0; padding: 2rem 1.2rem; }
.success-box p { margin-left: auto; margin-right: auto; }
.success-icon { width: 76px; height: 76px; margin: 0 auto 1rem; border-radius: 50%; background: var(--red); display: grid; place-items: center; box-shadow: 0 0 40px var(--red-glow); }
.success-icon svg { width: 38px; height: 38px; fill: none; stroke: var(--white); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Admin: Pakete und Kaeufe */
.pkg-edit { display: grid; gap: 0.7rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.pkg-edit:last-child { border-bottom: 0; }
.pkg-edit .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.pkg-edit .row .field { min-width: 0; }
.pkg-edit.inactive { opacity: 0.55; }
.order-row .amount { font-family: var(--font-display); font-size: 1.3rem; }

/* Rechtstexte */
.legal h2 { font-size: 1.4rem; margin-top: 2rem; }
.legal p { color: #d4d4d4; }
.todo { background: #3a2a00; color: #ffd37a; padding: 0 0.3rem; border-radius: 3px; }

/* =====================================================
   Ab Tablet (700px)
   ===================================================== */
@media (min-width: 700px) {
  :root { --pad: 2rem; }

  .hero .btn-big { width: auto; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
  .video-box { aspect-ratio: 16 / 9; }
  .site-footer .wrap { flex-direction: row; justify-content: space-between; align-items: center; }
  .prices td.price { font-size: 1.9rem; }
  .htl-list { grid-auto-columns: 42%; }
  .pt-text { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 2.5rem; }
  .pt-text .pt-lead { grid-column: 1 / -1; }

  .panel { padding: 1.6rem; }
  .cal-panel { padding: 1.4rem; }
  .times { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }

  dialog { width: min(92vw, 460px); margin: auto; border-radius: 12px; padding: 1.6rem; }
  .dialog-actions { flex-direction: row; justify-content: flex-end; }
  .dialog-actions .btn { width: auto; }

  .toolbar { grid-template-columns: 1fr minmax(0, 320px); align-items: center; }
  .cust-list > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.6rem 1.5rem; align-items: center; }
  .credit-actions { grid-template-columns: repeat(3, auto) 150px; margin-top: 0; }
  .credit-actions .custom { grid-column: auto; }
  .grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
  .pkg-edit .row { grid-template-columns: 2fr 1fr 1fr 1.4fr; align-items: end; }
  .success-box { padding: 3rem 2rem; }
}

/* =====================================================
   Ab Desktop (900px)
   ===================================================== */
@media (min-width: 900px) {
  :root { --pad: 2.5rem; }
  body { font-size: 1.03rem; }
  body.has-tabbar { padding-bottom: 0; }
  .tabbar { display: none; }
  body.has-tabbar .toast { bottom: 1.5rem; }

  .nav-toggle { display: none; }
  .nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
    border: 0;
    background: none;
    max-height: none;
    overflow: visible;
  }
  .nav a { padding: 0; border: 0; font-size: 0.95rem; }
  .nav .btn { margin-top: 0; font-size: 0.92rem; min-height: 42px; padding: 0.5rem 1.6rem; }
  .brand img { width: 56px; height: 56px; }

  /* Hero: Bild rechts, links weicher Verlauf ins Schwarz */
  .hero-bg { position: absolute; top: 0; right: 0; bottom: 0; width: 60%; height: auto; min-height: 0; max-height: none; }
  .hero-bg img { object-position: center 18%; }
  .hero-bg::after {
    background:
      linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0.88) 14%, rgba(0, 0, 0, 0.45) 38%, rgba(0, 0, 0, 0) 65%),
      linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0) 28%),
      linear-gradient(200deg, rgba(200, 22, 29, 0.38) 0%, rgba(200, 22, 29, 0) 50%);
  }
  .hero-inner { margin-top: 0; min-height: min(90vh, 880px); display: flex; align-items: center; padding-top: 5rem; padding-bottom: 5rem; }
  .hero-text { max-width: 640px; }
  .hero-glow { width: 760px; height: 760px; left: -260px; bottom: -300px; }
  .hero-ghost { top: auto; bottom: -0.12em; right: 1.5%; writing-mode: horizontal-tb; font-size: clamp(9rem, 17vw, 17rem); -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1); }

  .section { padding: clamp(4.5rem, 8vw, 7rem) 0; }
  .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }

  .htl-list { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; gap: 1.2rem; }
  .htl-hint { display: none; }

  .place { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: 4rem; }

  .page { padding: 3rem 0 4rem; }
  .booking-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 1.4rem; align-items: start; }
  .checkout-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 1.4rem; align-items: start; }
  .summary { position: sticky; top: 88px; }
  .panel h2 { font-size: 1.8rem; }
  .cal-head h2 { font-size: 1.8rem; }
  .cal-day { height: clamp(48px, 4.6vw, 62px); }
  .cal-day .dot { font-size: 0.68rem; }
  .cal-day.has:hover, .cal-day.selectable:hover { border-color: var(--muted); }
  .time-btn:hover:not(:disabled) { background: var(--red); }
  .time-btn.off:hover:not(:disabled) { background: var(--coal-2); }
  .credit-big { font-size: 6rem; }
  .tab { flex: 0 0 auto; }
  .legal h2 { font-size: 1.7rem; }
}

@media (hover: hover) {
  .btn:hover::after { left: 125%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .htl-list li::before { background-size: 100% 100%; }
}
