/* ============================================================
   Zweiradcenter Heuermann · Design-System
   Konzept „Werkstatt & Streckenlinie":
   – Tiefes Tannengrün + warmes Papier, Akzent „Reflektor-Bernstein"
   – Archivo (variabel, selbst gehostet): breite Display-Schnitte
     im Stil alter Emaille-Werbeschilder
   – Signatur: gestrichelte Streckenlinie (Fahrbahnmarkierung)
   Ohne externe Abhängigkeiten.
   ============================================================ */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/fonts/archivo-latin.woff2") format("woff2");
}
/* Display-Schrift: kräftige, klare Serife (aufrecht) */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/fraunces-latin.woff2") format("woff2");
}
/* Kursive Variante (falls gewünscht wieder aktivierbar) */
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/fraunces-italic-latin.woff2") format("woff2");
}

:root {
  --brand-50: #eff7ea;
  --brand-100: #dcefd4;
  --brand-200: #b9dcae;
  --brand-300: #8cc57e;
  --brand-400: #63ac54;
  --brand-500: #3f9147;
  --brand-600: #2c7a38;
  --brand-700: #23632d;
  --pine-950: #0b2a1e;
  --pine-900: #103828;
  --pine-800: #154732;
  --pine-700: #1b573d;
  --accent-light: #a4d98b;
  --red-50: #fef2f2;
  --red-200: #fecaca;
  --red-400: #f87171;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --ink-50: #f6f7f8;
  --ink-100: #e8eaed;
  --ink-200: #d5d9de;
  --ink-300: #b6bcc5;
  --ink-400: #8f98a6;
  --ink-500: #717b8b;
  --ink-600: #5b6373;
  --ink-700: #4a505e;
  --ink-800: #40454f;
  --ink-900: #303339;
  --ink-950: #16181c;
  --paper: #f6f4ee;
  --cream: #edeae1;
  --green-50: #f0fdf4;
  --green-200: #bbf7d0;
  --green-700: #15803d;
  --green-800: #166534;
  --amber-100: #fef3c7;
  --amber-800: #92400e;
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(11, 42, 30, 0.06);
  --shadow-md: 0 6px 24px rgba(11, 42, 30, 0.1);
  --shadow-lg: 0 16px 48px rgba(11, 42, 30, 0.18);
}

* { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink-950);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
/* Das „&"-Zeichen in eleganter Serifen-Kursive (automatisch eingesetzt) */
.amp { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: inherit; }
::selection { background: var(--brand-600); color: #fff; }

/* Sichtbarer Fokus für Tastaturbedienung – auf hell wie dunkel erkennbar */
:focus-visible {
  outline: 3px solid var(--brand-400);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip-Link: erst bei Tastaturfokus sichtbar */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--pine-950); color: #fff; text-decoration: none;
  padding: 10px 18px; border-radius: 0 0 10px 10px; font-weight: 700; font-size: 14px;
  transition: top 0.15s;
}
.skip-link:focus-visible { top: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) { .container { padding: 0 28px; } }

/* Display-Typo: Times New Roman fett-kursiv – wie der Schriftzug am Geschäft */
.display {
  font-family: "Times New Roman", Times, Georgia, serif;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 1.12;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; padding: 12px 24px; font-size: 14.5px; font-weight: 700;
  font-stretch: 105%; letter-spacing: 0.01em;
  font-family: var(--font); text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
  white-space: nowrap; min-height: 44px;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-600); color: #fff; }
.btn-primary:hover { background: var(--brand-700); }
.btn-dark { background: var(--pine-800); color: #fff; }
.btn-dark:hover { background: var(--pine-700); }
.btn-outline { background: #fff; color: var(--ink-950); border-color: var(--ink-200); }
.btn-outline:hover { border-color: var(--pine-950); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.32); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.55); }
.btn-soft-red { background: var(--red-50); color: var(--red-700); }
.btn-soft-red:hover { background: var(--red-200); }
.btn-sm { padding: 9px 16px; font-size: 12.5px; min-height: 38px; }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Formulare ---------- */
.label {
  display: block; margin-bottom: 6px; font-size: 11.5px; font-weight: 700;
  font-stretch: 118%; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-600);
}
.input, .select, textarea.input {
  width: 100%; border: 1px solid var(--ink-200); background: #fff; color: var(--ink-950);
  border-radius: 10px; padding: 11px 14px; font-size: 14.5px; font-family: var(--font);
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .select:focus { border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(44, 122, 56, 0.18); }
.input::placeholder { color: var(--ink-400); }
.select {
  appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235b6373' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
textarea.input { resize: vertical; min-height: 80px; }
input[type="file"].input { padding: 8px; }
input[type="file"].input::file-selector-button {
  margin-right: 12px; border: 0; border-radius: 8px; background: var(--pine-950); color: #fff;
  padding: 8px 16px; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: var(--font);
}
.checkbox-row { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.checkbox-row input { width: 17px; height: 17px; accent-color: var(--brand-600); }
.field-hint { font-size: 12px; color: var(--ink-500); margin-top: 5px; }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) {
  .form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .form-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
  .form-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
  .form-grid .span-2 { grid-column: span 2; }
}

.alert { border-radius: 12px; padding: 12px 16px; font-size: 14px; font-weight: 500; margin: 0 0 16px; }
.alert-error { background: var(--red-50); color: var(--red-700); border: 1px solid var(--red-200); }
.alert-success { background: var(--green-50); color: var(--green-800); border: 1px solid var(--green-200); }
.alert-info { background: #fff; color: var(--ink-700); border: 1px solid var(--ink-200); }

/* ---------- Bausteine ---------- */
.card {
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 24px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px;
  padding: 4px 11px; font-size: 12px; font-weight: 700; font-stretch: 108%; white-space: nowrap;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-red { background: var(--red-600); color: #fff; }
.badge-red-soft { background: var(--red-50); color: var(--red-700); }
.badge-blue { background: var(--brand-600); color: #fff; }
.badge-dark { background: var(--pine-800); color: #fff; }
.badge-gray { background: var(--ink-100); color: var(--ink-700); }
.badge-green { background: #dcfce7; color: var(--green-800); }
.badge-amber { background: var(--amber-100); color: var(--amber-800); }
.badge-outline { background: #fff; color: var(--ink-700); border: 1px solid var(--ink-200); }
a.badge { text-decoration: none; }
a.badge-outline:hover { border-color: var(--pine-950); color: var(--ink-950); }

.section-eyebrow {
  font-size: 12px; font-weight: 700; font-stretch: 125%;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--brand-600); margin: 0 0 8px;
}
.section-title { font-size: clamp(26px, 4vw, 38px); margin: 0; }
.breadcrumbs { font-size: 12px; color: var(--ink-500); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink-950); }
.breadcrumbs .sep { margin: 0 8px; }
.breadcrumbs .current { font-weight: 700; color: var(--ink-950); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 238, 0.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-100);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--pine-950); color: #fff;
  border: 2px solid var(--brand-500); box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}
.logo:hover .logo-mark { transform: rotate(-8deg); }
.logo-name {
  font-family: "Times New Roman", Times, Georgia, serif; font-style: italic; font-weight: 700;
  letter-spacing: 0.005em; font-size: 20px; line-height: 1.1; color: var(--ink-950); white-space: nowrap;
}
.logo-img { max-height: 52px; width: auto; max-width: 220px; object-fit: contain; }
/* Logo darf wie ein Schild nach unten über die Kopfzeile hinausragen
   (Admin → Einstellungen → Logo). Oberkante bleibt 10px unter dem Kopfzeilenrand. */
.site-header .logo-img {
  transition: max-height 0.25s ease, transform 0.25s ease;
}
.site-header .logo-img.logo-overhang {
  transform: translateY(calc(50% - 26px));
  filter: drop-shadow(0 5px 12px rgba(11, 42, 30, 0.3));
  /* Bei sehr großen Logos: nie breiter als der halbe Bildschirm */
  max-width: min(50vw, 1000px);
}
/* Modus „beim Scrollen verkleinern": das große Logo schrumpft in die Kopfzeile */
.site-header.logo-mode-shrink.is-scrolled .logo-img.logo-overhang {
  max-height: 52px !important;
  transform: translate(var(--lg-x, 0px), 0) !important;
}
/* Modus „hinter den Texten": solange oben nicht gescrollt wurde,
   liegen die Seiteninhalte über dem herabhängenden Logo */
.site-header.logo-mode-behind:not(.is-scrolled) ~ main .hero-inner,
.site-header.logo-mode-behind:not(.is-scrolled) ~ main .page-hero .container,
.site-header.logo-mode-behind:not(.is-scrolled) ~ main > .container {
  position: relative; z-index: 55;
}
/* Offenes Handy-Menü hat immer Vorrang vor dem „hinter den Texten"-Modus */
.site-header:has(#nav-toggle:checked) ~ main .hero-inner,
.site-header:has(#nav-toggle:checked) ~ main .page-hero .container,
.site-header:has(#nav-toggle:checked) ~ main > .container {
  z-index: auto !important;
}
.logo-sub { font-size: 10px; font-weight: 700; font-stretch: 112%; text-transform: uppercase; letter-spacing: 0.22em; color: var(--ink-500); white-space: nowrap; }
.logo.on-dark .logo-name { color: #fff; }
.logo.on-dark .logo-sub { color: var(--accent-light); }

.main-nav { display: none; align-items: center; gap: 4px; }
.main-nav a {
  position: relative; padding: 10px 12px; font-size: 14px; font-weight: 650;
  color: var(--ink-800); text-decoration: none; white-space: nowrap;
  border-radius: 8px; transition: color 0.15s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  border-radius: 1px; background: var(--brand-600); opacity: 0; transform: scaleX(0.4);
  transition: opacity 0.15s, transform 0.2s;
}
.main-nav a:hover { color: var(--pine-950); }
.main-nav a:hover::after { opacity: 1; transform: scaleX(1); }
.header-actions { display: none; align-items: center; gap: 10px; }
@media (min-width: 1024px) {
  .main-nav, .header-actions { display: flex; }
  .nav-toggle-label { display: none !important; }
}

/* Mobiles Menü (ohne JavaScript, über Checkbox – fokussierbar für Tastaturnutzung) */
#nav-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; }
.nav-toggle-label {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid var(--ink-200); border-radius: 10px; background: #fff; cursor: pointer;
}
#nav-toggle:focus-visible ~ .nav-toggle-label { outline: 3px solid var(--route); outline-offset: 2px; }
.mobile-nav {
  display: none; position: absolute; left: 0; right: 0; top: 72px;
  background: var(--paper); border-bottom: 1px solid var(--ink-100); box-shadow: var(--shadow-lg);
}
#nav-toggle:checked ~ .mobile-nav { display: block; }
.mobile-nav nav { display: flex; flex-direction: column; padding: 14px 20px 20px; }
.mobile-nav a.nav-item {
  padding: 13px 12px; border-radius: 10px; font-size: 16px; font-weight: 650;
  color: var(--ink-900); text-decoration: none; min-height: 44px; display: flex; align-items: center;
}
.mobile-nav a.nav-item:hover { background: var(--ink-100); }
.mobile-nav .mobile-cta { display: flex; gap: 10px; margin-top: 12px; }
.mobile-nav .mobile-cta .btn { flex: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--pine-950); color: #fff; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 460px at 82% 0%, rgba(27, 87, 61, 0.55), transparent 65%),
    radial-gradient(700px 340px at 0% 100%, rgba(21, 71, 50, 0.6), transparent 60%);
}
/* Hochgeladenes Hintergrundbild: Foto mit grünem Farbschleier, Text bleibt lesbar */
.hero-bg.has-image {
  background-size: cover; background-position: center;
  pointer-events: none;
}
.hero-bike-silhouette {
  position: absolute; right: -110px; bottom: -110px; width: 500px; height: 500px;
  color: rgba(255, 255, 255, 0.05); pointer-events: none;
}
/* Nur oben/unten setzen – der seitliche Rand kommt vom .container (sonst klebt
   der Hero-Text auf dem Handy am Bildschirmrand, weil das Kurzschreib-padding
   den Container-Rand auf 0 zurücksetzen würde). */
.hero-inner { position: relative; padding-top: 84px; padding-bottom: 72px; }
@media (min-width: 1024px) { .hero-inner { padding-top: 110px; padding-bottom: 92px; } }
.hero .badge-glass {
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff; font-stretch: 115%; text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 11px; padding: 6px 14px;
  /* Auf schmalen Bildschirmen umbrechen statt rechts abgeschnitten zu werden */
  max-width: 100%; white-space: normal; line-height: 1.6;
}
.hero .badge-glass .dot { background: var(--brand-400) !important; }
.hero h1 {
  font-size: clamp(36px, 6.5vw, 66px); max-width: 820px; margin: 22px 0 0;
}
.hero h1 .accent { color: var(--accent-light); }
.hero-sub { max-width: 560px; font-size: 17.5px; line-height: 1.6; color: #c9dfc0; margin: 22px 0 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 620px;
  margin-top: 54px; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.hero-stats dt { font-weight: 800; font-stretch: 112%; letter-spacing: -0.01em; font-size: clamp(20px, 3vw, 30px); font-variant-numeric: tabular-nums; }
.hero-stats dd { margin: 4px 0 0; font-size: 13px; color: #9fbf97; }

/* ---------- Kategorie-Kacheln ---------- */
.cat-tiles {
  position: relative; z-index: 5; display: grid; gap: 16px; margin-top: -40px;
}
@media (min-width: 640px) { .cat-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cat-tiles { grid-template-columns: repeat(4, 1fr); } }
.tile {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-300); }
.tile h3 { margin: 0; font-size: 18px; font-weight: 800; font-stretch: 110%; }
.tile p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-500); }
.tile .tile-count {
  margin-top: 12px; font-size: 11.5px; font-weight: 700; font-stretch: 115%; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--brand-600);
}
.arrow-chip {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--ink-100); color: var(--ink-600);
  transition: background 0.15s, color 0.15s;
}
.tile:hover .arrow-chip, .bike-card:hover .arrow-chip { background: var(--brand-600); color: #fff; }

/* ---------- Abschnitte ---------- */
.section { margin-top: 80px; }
/* flex-wrap: auf dem Handy rutscht der Knopf unter die Überschrift,
   statt rechts aus dem Bildschirm zu ragen */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 30px; }

/* ---------- Bike-Grid & Karten ---------- */
.bike-grid { display: grid; gap: 20px; }
@media (min-width: 560px) { .bike-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .bike-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1150px) { .bike-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }

.bike-card {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.bike-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-300); }
.bike-card .img-wrap { position: relative; aspect-ratio: 4 / 3; background: #fff; overflow: hidden; }
.bike-card .img-wrap img {
  width: 100%; height: 100%; object-fit: contain; padding: 10px;
  transition: transform 0.45s;
}
.bike-card:hover .img-wrap img { transform: scale(1.04); }
.bike-card .card-badges { position: absolute; left: 12px; top: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.sold-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 10px; background: rgba(255, 255, 255, 0.15);
}
.bike-card .body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.bike-card .brand-line { margin: 0; font-size: 11.5px; font-weight: 700; font-stretch: 118%; text-transform: uppercase; letter-spacing: 0.1em; color: var(--brand-600); }
.bike-card h3 { margin: 3px 0 0; font-size: 18px; font-weight: 800; font-stretch: 106%; color: var(--ink-950); }
.bike-card .meta { margin: 3px 0 0; font-size: 13.5px; color: var(--ink-500); }
.bike-card .price-row { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; padding-top: 16px; }
.price-old { font-size: 12.5px; color: var(--ink-400); text-decoration: line-through; }
.price-now { margin: 0; font-size: 21px; font-weight: 800; font-stretch: 108%; letter-spacing: -0.01em; color: var(--ink-950); font-variant-numeric: tabular-nums; }
.price-now.is-sale { color: var(--red-600); }
.bike-card .arrow-chip { width: 36px; height: 36px; }

/* ---------- Feature-Karten ---------- */
.features { display: grid; gap: 16px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { padding: 24px; }
.feature .icon-chip {
  display: inline-flex; padding: 12px; border-radius: 12px; background: var(--brand-50); color: var(--brand-700);
}
.feature h3 { margin: 16px 0 0; font-size: 15.5px; font-weight: 750; font-stretch: 108%; }
.feature p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-600); }

/* ---------- Markenleiste ---------- */
.brands-strip { margin-top: 80px; padding: 40px 0; background: #fff; border-top: 1px solid var(--ink-100); border-bottom: 1px solid var(--ink-100); }
.brands-strip .strip-label { text-align: center; font-size: 12px; font-weight: 700; font-stretch: 120%; text-transform: uppercase; letter-spacing: 0.2em; color: var(--ink-400); margin: 0 0 22px; }
.brands-strip .strip-label-2 { margin-top: 40px; }
.brands-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 40px; }
.brands-row span { font-weight: 800; font-stretch: 112%; letter-spacing: -0.01em; font-size: clamp(18px, 2.5vw, 24px); color: var(--ink-300); transition: color 0.15s; }
.brands-row span:hover { color: var(--ink-950); }

/* ---------- Besuchs-Panel ---------- */
.visit-panel { display: grid; overflow: hidden; border-radius: var(--radius-lg); background: var(--pine-950); color: #fff; position: relative; }
.visit-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 360px at 90% 0%, rgba(27, 87, 61, 0.5), transparent 60%);
}
@media (min-width: 1024px) { .visit-panel { grid-template-columns: 1fr 1fr; } }
.visit-panel .pane { padding: 36px; position: relative; }
@media (min-width: 640px) { .visit-panel .pane { padding: 48px; } }
.visit-panel .pane + .pane { border-top: 1px solid rgba(255,255,255,0.12); display: flex; align-items: center; }
@media (min-width: 1024px) { .visit-panel .pane + .pane { border-top: 0; border-left: 1px solid rgba(255,255,255,0.12); } }
.visit-panel h2 { font-size: clamp(24px, 3.5vw, 34px); margin: 12px 0 0; }
.visit-panel .lead { color: #c9dfc0; max-width: 440px; margin: 16px 0 0; line-height: 1.65; }
.hours-list { width: 100%; margin: 0; }
.hours-list > div { display: grid; grid-template-columns: 128px 1fr; align-items: center; gap: 16px; padding: 14px 0; }
.hours-list > div + div { border-top: 1px solid rgba(255,255,255,0.12); }
.hours-list dt { color: #9fbf97; }
.hours-list dd { margin: 0; font-weight: 650; text-align: left; }
.hours-list .note dd { color: var(--red-400); }
/* Handy: schmalere Tages-Spalte, etwas kleinere Schrift und kompaktere
   Innenabstände, damit die Uhrzeiten in eine Zeile passen */
@media (max-width: 480px) {
  .hours-list > div { grid-template-columns: 84px 1fr; gap: 10px; font-size: 13.5px; }
  .visit-panel .pane { padding: 28px 22px; }
}

/* ---------- Footer ---------- */
.site-footer { margin-top: 96px; background: var(--pine-950); color: #cfe0cc; }
.site-footer > .container:first-child { position: relative; }
.footer-grid { display: grid; gap: 40px; padding-top: 56px; padding-bottom: 56px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-grid h3 { margin: 0 0 16px; font-size: 12.5px; font-weight: 700; font-stretch: 118%; text-transform: uppercase; letter-spacing: 0.12em; color: #fff; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.footer-grid a { color: #cfe0cc; text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-about { max-width: 300px; font-size: 14px; line-height: 1.65; color: #9bb897; margin: 16px 0 0; }
.footer-hours { display: grid; grid-template-columns: 26px 1fr; gap: 10px; text-align: left; }
.footer-hours .k { color: #9bb897; white-space: nowrap; }
.footer-note { color: var(--red-400); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.footer-bottom-inner {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  gap: 10px; padding-top: 22px; padding-bottom: 22px; font-size: 12px; color: #8dab89;
}
@media (min-width: 640px) { .footer-bottom-inner { flex-direction: row; } }
.footer-bottom-inner .links { display: flex; gap: 20px; }
.footer-bottom-inner a { color: #8dab89; text-decoration: none; }
.footer-bottom-inner a:hover { color: #fff; }

/* ---------- Katalog ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pills .badge { padding: 9px 16px; font-size: 13px; min-height: 38px; }
.filterbar { display: grid; gap: 12px; padding: 16px; margin-top: 18px; }
@media (min-width: 640px) { .filterbar { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .filterbar { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; align-items: end; }
  .filterbar .filter-submit { display: none; }
}
.catalog-count { margin: 8px 0 0; color: var(--ink-600); max-width: 640px; }

.empty-state { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 56px 24px; text-align: center; margin-top: 30px; }
.empty-state svg { color: var(--ink-300); }
.empty-state h2 { margin: 0; font-size: 18px; }
.empty-state p { margin: 0; max-width: 420px; font-size: 14px; color: var(--ink-600); }

/* ---------- Detailseite ---------- */
.detail-grid { display: grid; gap: 40px; margin-top: 24px; }
@media (min-width: 1024px) { .detail-grid { grid-template-columns: 1.15fr 1fr; align-items: start; } }
.gallery-main { overflow: hidden; }
.gallery-main img { aspect-ratio: 4 / 3; width: 100%; object-fit: contain; background: #fff; padding: 12px; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs button {
  flex-shrink: 0; padding: 0; border: 2px solid transparent; border-radius: 10px;
  overflow: hidden; cursor: pointer; background: none; opacity: 0.7; transition: opacity 0.15s, border-color 0.15s;
}
.gallery-thumbs button.active { border-color: var(--brand-600); opacity: 1; }
.gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs img { width: 84px; height: 64px; object-fit: contain; background: #fff; }

.buybox { position: sticky; top: 96px; }
.buybox-card { padding: 28px; }
.buybox .badges-row { display: flex; flex-wrap: wrap; gap: 8px; }
.buybox .brand-line { margin: 18px 0 0; font-size: 13px; font-weight: 700; font-stretch: 118%; text-transform: uppercase; letter-spacing: 0.1em; color: var(--brand-600); }
.buybox h1 { margin: 4px 0 0; font-size: clamp(26px, 4vw, 34px); }
.price-from { font-size: 0.55em; font-weight: 700; color: var(--ink-500); margin-right: 1px; }

/* Wählbare Extras auf der Rad-Seite */
.extras-select { margin-top: 20px; }
.extras-select .extras-title {
  margin: 0 0 4px; font-size: 11.5px; font-weight: 700; font-stretch: 118%;
  text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-600);
}
.extra-option {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-top: 8px;
  border: 1px solid var(--ink-200); border-radius: 10px; cursor: pointer; font-size: 14px;
  transition: border-color 0.15s, background 0.15s;
}
.extra-option:hover { border-color: var(--brand-400); }
.extra-option:has(input:checked) { border-color: var(--brand-600); background: var(--brand-50); }
.extra-option input { width: 17px; height: 17px; accent-color: var(--brand-600); flex-shrink: 0; }
.extra-option .x-name { flex: 1; font-weight: 600; }
.extra-option .x-price { font-weight: 700; color: var(--brand-600); white-space: nowrap; font-variant-numeric: tabular-nums; }
.extras-total {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--ink-200); font-size: 14px;
}
.extras-total strong { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Extras-Editor im Admin */
.extra-row { display: grid; grid-template-columns: 1fr 130px auto; gap: 8px; margin-bottom: 8px; }
.extra-row .extra-del { min-height: 42px; }
#extra-add { margin-top: 4px; }

/* Upgrade-Gruppen im Admin */
.upgrade-group { border: 1px solid var(--ink-200); border-radius: 12px; padding: 14px; margin-bottom: 12px; background: var(--ink-50); }
.upgrade-group .upgrade-head { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 10px; }
.upgrade-group .ug-opt-add { margin-top: 2px; }

/* Laden-Galerie auf der Über-uns-Seite */
.shop-gallery { display: grid; gap: 14px; margin-top: 24px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .shop-gallery { grid-template-columns: repeat(3, 1fr); } }
.shop-photo {
  padding: 0; overflow: hidden; cursor: zoom-in; border: 1px solid var(--ink-100);
  transition: transform 0.15s, box-shadow 0.15s;
}
.shop-photo:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.shop-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.4s; }
.shop-photo:hover img { transform: scale(1.04); }

/* Großansicht mit Zoom */
.gallery-zoomable { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 130; background: rgba(11, 42, 30, 0.94);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  overflow: hidden;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: calc(100vw - 48px); max-height: calc(100vh - 48px);
  object-fit: contain; background: #fff; border-radius: 10px; padding: 10px;
  cursor: zoom-in; transition: transform 0.25s ease; touch-action: none;
}
.lightbox img.zoomed { cursor: grab; }
.lightbox img.zoomed:active { cursor: grabbing; }
.lightbox-close, .lightbox-nav {
  position: absolute; z-index: 5; display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14); color: #fff; cursor: pointer;
  transition: background 0.15s;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox-close { right: 18px; top: 18px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%) rotate(180deg); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }

.price-line { display: flex; align-items: flex-end; gap: 12px; margin-top: 20px; }
.price-line .big { font-size: 38px; font-weight: 800; font-stretch: 110%; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.price-line .big.is-sale { color: var(--red-600); }
.price-line .old { font-size: 18px; color: var(--ink-400); text-decoration: line-through; padding-bottom: 4px; }
.price-note { margin: 8px 0 0; font-size: 12px; color: var(--ink-500); }
.buybox hr { border: 0; border-top: 1px solid var(--ink-100); margin: 24px 0; }

.contact-mini { display: flex; align-items: center; gap: 16px; padding: 20px; margin-top: 16px; }
.contact-mini .icon-chip { display: flex; padding: 12px; border-radius: 12px; background: var(--brand-50); color: var(--brand-700); }
.contact-mini p { margin: 0; font-size: 14px; font-weight: 750; }
.contact-mini a { font-size: 14px; font-weight: 650; color: var(--brand-600); text-decoration: none; }
.contact-mini a:hover { text-decoration: underline; }

.specs { margin-top: 12px; }
.specs > div { display: flex; justify-content: space-between; gap: 24px; padding: 12px 20px; font-size: 14px; }
.specs > div + div { border-top: 1px solid var(--ink-100); }
.specs dt { color: var(--ink-500); }
.specs dd { margin: 0; font-weight: 650; text-align: right; }
.subheading { font-size: 18px; font-weight: 800; font-stretch: 110%; margin: 32px 0 0; }
.prose { line-height: 1.7; color: var(--ink-800); white-space: pre-line; margin-top: 12px; }

.success-box { border: 1px solid var(--green-200); background: var(--green-50); border-radius: var(--radius); padding: 24px; text-align: center; }
.success-box p { margin: 10px 0 0; }
.success-box .headline { font-weight: 750; color: var(--green-800); }
.success-box .sub { font-size: 13.5px; color: var(--green-700); }

/* ---------- Inhaltsseiten ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--pine-950); color: #fff; padding: 60px 0; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(800px 400px at 85% 0%, rgba(27, 87, 61, 0.55), transparent 65%);
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(30px, 5vw, 48px); max-width: 760px; margin: 12px 0 0; }
.page-hero p.lead { max-width: 640px; color: #c9dfc0; line-height: 1.65; margin: 18px 0 0; }
.page-hero .section-eyebrow { color: var(--accent-light); }

.timeline { list-style: none; margin: 30px 0 0; padding: 0; border-left: 2px solid var(--ink-100); }
.timeline li { position: relative; padding: 0 0 36px 30px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -10px; top: 4px; width: 17px; height: 17px;
  border-radius: 50%; background: var(--brand-600); border: 4px solid var(--paper);
}
.timeline .year { font-weight: 800; font-stretch: 112%; font-size: 17px; color: var(--brand-600); }
.timeline p { margin: 4px 0 0; color: var(--ink-700); line-height: 1.65; }

.steps { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step-num {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--pine-950); color: #fff; font-weight: 800; font-size: 17px;
  border: 2px solid var(--brand-500);
}
.cta-band { margin-top: 56px; border-radius: var(--radius-lg); background: var(--cream); padding: 40px; text-align: center; }
.cta-band h2 { margin: 0; font-size: 24px; }
.cta-band p { max-width: 520px; margin: 12px auto 0; color: var(--ink-600); }
.cta-band .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }

.stack-cards { display: grid; gap: 16px; }
.info-cols { display: grid; gap: 48px; margin-top: 40px; }
@media (min-width: 1024px) { .info-cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Info-Popup (über Admin-Einstellungen pflegbar) ---------- */
.popup-overlay {
  position: fixed; inset: 0; z-index: 120; background: rgba(11, 42, 30, 0.55);
  display: flex; padding: 20px;
  /* Ist das Fenster größer als der Bildschirm, kann man scrollen */
  overflow-y: auto;
}
.popup-overlay[hidden] { display: none; }
.popup-card {
  position: relative; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); max-width: 500px; width: 100%; padding: 30px 28px 26px;
  /* mittig, wenn es passt – sonst scrollbar */
  margin: auto;
}
/* Auf schmalen Bildschirmen: feste Höhe aufheben, damit das Fenster
   immer komplett sichtbar und schließbar ist */
@media (max-width: 700px) {
  .popup-card { min-height: 0 !important; }
}
.popup-card h2 { margin: 0 42px 10px 0; font-size: 26px; }
.popup-card .popup-text { margin: 0; line-height: 1.65; color: var(--ink-700); white-space: pre-line; }
/* Bild im Popup: mittig, in der eingestellten Breite – auf allen Geräten gleich */
.popup-img {
  display: block; margin: 14px auto 0; max-width: 100%; height: auto;
  border-radius: 10px; box-shadow: var(--shadow-sm);
}
@media (max-width: 700px) {
  .popup-img { width: 100% !important; }
}
.popup-close {
  position: absolute; right: 14px; top: 14px; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ink-100);
  color: var(--ink-700); cursor: pointer; transition: background 0.15s; z-index: 3;
}
/* Auf dem Handy schwebt der Schließen-Knopf immer sichtbar oben rechts */
@media (max-width: 700px) {
  .popup-close {
    position: fixed; right: 12px; top: 12px;
    background: #fff; box-shadow: var(--shadow-md);
  }
}
.popup-close:hover { background: var(--ink-200); }
.popup-card .popup-actions { margin-top: 22px; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 40px 20px; }
.notfound .code { font-size: 84px; font-weight: 800; font-stretch: 120%; letter-spacing: -0.02em; color: var(--brand-600); line-height: 1; }
.notfound h1 { margin: 0; font-size: 24px; }
.notfound p { margin: 0; max-width: 420px; color: var(--ink-600); }
.notfound .actions { display: flex; gap: 12px; margin-top: 10px; }

/* ============================================================
   ADMIN
   ============================================================ */
.admin-body { background: #eef0ed; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  display: none; position: fixed; inset: 0 auto 0 0; width: 240px; z-index: 40;
  background: var(--pine-950); color: #cfe0cc; flex-direction: column;
}
@media (min-width: 1024px) { .admin-sidebar { display: flex; } }
.admin-sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 20px; }
.admin-sidebar .brand .logo-mark { width: 38px; height: 38px; border-radius: 50%; }
.admin-sidebar .brand .t1 { font-weight: 800; font-stretch: 112%; font-size: 14px; color: #fff; letter-spacing: 0.01em; }
.admin-sidebar .brand .t2 { font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-400); }
.admin-nav { flex: 1; padding: 8px 12px; display: grid; gap: 4px; align-content: start; }
.admin-nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 10px;
  font-size: 14px; font-weight: 650; color: #cfe0cc; text-decoration: none; transition: background 0.15s, color 0.15s;
}
.admin-nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.admin-nav a.active { background: var(--brand-600); color: #fff; }
.admin-nav svg { flex-shrink: 0; }
.admin-sidebar .sidebar-foot { border-top: 1px solid rgba(255,255,255,0.1); padding: 16px; }
.admin-sidebar .sidebar-foot .email { font-size: 12px; color: var(--ink-400); padding: 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-sidebar .sidebar-foot .row { display: flex; gap: 8px; margin-top: 12px; }
.admin-sidebar .sidebar-foot .row > * { flex: 1; }
.btn-sidebar {
  display: inline-flex; align-items: center; justify-content: center; padding: 8px 10px;
  border-radius: 10px; font-size: 12px; font-weight: 650; text-decoration: none; cursor: pointer;
  border: 0; background: rgba(255,255,255,0.1); color: #fff; font-family: var(--font); transition: background 0.15s;
}
.btn-sidebar:hover { background: rgba(255,255,255,0.2); }

.admin-topbar {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between;
  background: var(--pine-950); color: #fff; padding: 12px 18px;
}
.admin-topbar .t { font-weight: 800; font-size: 14px; }
@media (min-width: 1024px) { .admin-topbar { display: none; } }
.admin-mobile-nav { display: flex; gap: 8px; overflow-x: auto; background: #fff; border-bottom: 1px solid var(--ink-200); padding: 10px 16px; }
@media (min-width: 1024px) { .admin-mobile-nav { display: none; } }

.admin-main { flex: 1; padding: 24px 18px 64px; }
@media (min-width: 1024px) { .admin-main { margin-left: 240px; padding: 40px; } }
.admin-wrap { max-width: 1080px; margin: 0 auto; }
.admin-wrap.narrow { max-width: 860px; }
.admin-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.admin-head h1 { font-size: clamp(24px, 3vw, 32px); margin: 0; }
.admin-head .sub { margin: 6px 0 0; font-size: 14px; color: var(--ink-600); }

.stat-cards { display: grid; gap: 14px; margin-top: 30px; }
@media (min-width: 560px) { .stat-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stat-cards { grid-template-columns: repeat(4, 1fr); } }
.stat-card { display: block; padding: 20px; text-decoration: none; transition: box-shadow 0.15s; }
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-card .k { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-500); }
.stat-card .v { margin-top: 6px; font-size: 30px; font-weight: 800; font-stretch: 110%; letter-spacing: -0.01em; color: var(--ink-950); font-variant-numeric: tabular-nums; }
.stat-card .v.alert-v { color: var(--red-600); }

/* Besucherstatistik im Dashboard */
.traffic-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.traffic-cards > div { display: grid; gap: 2px; background: var(--ink-50); border-radius: 12px; padding: 14px 16px; }
.traffic-cards .k { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-500); }
.traffic-cards .v { font-size: 26px; font-weight: 800; font-stretch: 110%; font-variant-numeric: tabular-nums; }
.traffic-cards .s { font-size: 12px; color: var(--ink-500); }
.traffic-chart { display: flex; align-items: flex-end; gap: 6px; margin-top: 18px; height: 96px; }
.traffic-chart .tc-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; justify-content: flex-end; }
.traffic-chart .tc-bar { width: 100%; max-width: 34px; border-radius: 4px 4px 0 0; background: var(--brand-400); }
.traffic-chart .tc-col:last-child .tc-bar { background: var(--brand-600); }
.traffic-chart .tc-label { font-size: 10px; color: var(--ink-400); }
.tc-toprow { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--ink-100); }
.tc-toprow:last-child { border-bottom: 0; }

.panel-grid { display: grid; gap: 22px; margin-top: 30px; }
@media (min-width: 1024px) { .panel-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--ink-100); }
.panel-head h2 { margin: 0; font-size: 15.5px; font-weight: 750; }
.panel-head a { font-size: 12.5px; font-weight: 650; color: var(--brand-600); text-decoration: none; }
.panel-head a:hover { text-decoration: underline; }
.panel-list { list-style: none; margin: 0; padding: 0; }
.panel-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 20px; }
.panel-list li + li { border-top: 1px solid var(--ink-100); }
.panel-list .p-title { font-size: 14px; font-weight: 650; margin: 0; }
.panel-list .p-sub { font-size: 12px; color: var(--ink-500); margin: 2px 0 0; }
.panel-empty { padding: 32px 20px; text-align: center; font-size: 14px; color: var(--ink-500); }

/* Tabellen */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; }
table.data thead th {
  text-align: left; padding: 12px 16px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-500);
  border-bottom: 1px solid var(--ink-100);
}
table.data tbody td { padding: 12px 16px; border-bottom: 1px solid var(--ink-100); vertical-align: middle; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--ink-50); }
table.data .num { text-align: right; }
table.data .ctr { text-align: center; }
.thumb { width: 56px; height: 42px; border-radius: 8px; background: var(--cream); object-fit: cover; }
.cell-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.cell-title { font-weight: 650; }
.cell-sub { font-size: 12px; color: var(--ink-500); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }

/* Admin-Formulare & Kacheln */
.admin-section { margin-top: 24px; }
.admin-section h2.sec { font-size: 15.5px; font-weight: 750; margin: 0 0 16px; }
.image-tiles { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; }
.image-tile { position: relative; border: 1px solid var(--ink-200); border-radius: 12px; overflow: hidden; }
.image-tile img { width: 128px; height: 96px; object-fit: cover; background: var(--cream); }
.image-tile .del {
  position: absolute; right: 6px; top: 6px; display: flex; padding: 6px; border: 0; border-radius: 50%;
  background: rgba(11, 42, 30, 0.82); color: #fff; cursor: pointer;
}
.image-tile .del:hover { background: var(--brand-600); }
.image-tile .mv {
  position: absolute; bottom: 6px; display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border: 0; border-radius: 50%; font-size: 18px; line-height: 1;
  background: rgba(11, 42, 30, 0.82); color: #fff; cursor: pointer; padding: 0 0 2px;
}
.image-tile .mv:hover { background: var(--brand-600); }
.image-tile .mv-l { left: 6px; }
.image-tile .mv-r { right: 6px; }
.image-tile .main-flag {
  position: absolute; left: 6px; top: 6px; background: var(--brand-600); color: #fff;
  font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.05em;
}

.radio-card { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--ink-200); background: #fff; border-radius: 14px; padding: 16px; cursor: pointer; }
.radio-card input { margin-top: 3px; accent-color: var(--brand-600); }
.radio-card:has(input:checked) { border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(44, 122, 56, 0.16); }
.radio-card .rc-title { display: block; font-size: 14px; font-weight: 750; }
.radio-card .rc-sub { display: block; font-size: 12.5px; line-height: 1.55; color: var(--ink-600); margin-top: 2px; }

.code-block {
  display: block; overflow-x: auto; border-radius: 10px; background: var(--pine-950);
  color: #a7f3d0; padding: 11px 14px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; line-height: 1.6; white-space: pre;
}
.kv-grid { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 640px) { .kv-grid { grid-template-columns: auto 1fr; align-items: center; } }
.kv-grid .k { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-500); }

.map-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* Vorschau der Kopfzeile mit verschiebbarem Logo (Admin → Einstellungen) */
.logo-drag-box {
  position: relative; max-width: 640px; overflow: hidden; user-select: none;
  border: 1px solid var(--ink-200); border-radius: 14px;
}
.logo-drag-box .lg-topbar {
  height: 28px; box-sizing: border-box; padding: 6px 16px; overflow: hidden;
  background: var(--pine-950); color: #cfe0cc; font-size: 11px; white-space: nowrap;
}
.logo-drag-box .lg-header {
  height: 72px; box-sizing: border-box; padding: 0 16px;
  display: flex; align-items: center; justify-content: flex-end;
  background: var(--paper); border-bottom: 1px solid var(--ink-100);
  color: var(--ink-500); font-size: 12px; font-weight: 650;
}
.logo-drag-box .lg-hero { height: 150px; background: var(--pine-950); }
.logo-drag-box img {
  position: absolute; z-index: 5; width: auto; cursor: grab; touch-action: none;
  filter: drop-shadow(0 5px 12px rgba(11, 42, 30, 0.3));
}
.logo-drag-box img.dragging { cursor: grabbing; outline: 2px solid var(--brand-500); }

/* Vorschau des Info-Popups (Admin → Einstellungen) */
.popup-drag-box {
  position: relative; max-width: 500px; min-height: 200px;
  background: #fff; border: 2px dashed var(--ink-300); border-radius: var(--radius-lg);
  padding: 30px 28px 26px; user-select: none;
}
.popup-drag-box img {
  display: block; margin: 14px auto 0; max-width: 100%; height: auto;
  border-radius: 10px; box-shadow: var(--shadow-sm);
}
.popup-drag-box .pp-title { margin: 0 0 8px; font-size: 22px; font-weight: 800; }
.popup-drag-box .pp-text { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-700); white-space: pre-line; }
.popup-drag-box .pp-btn {
  display: inline-block; margin-top: 18px;
  background: var(--brand-600); color: #fff; border-radius: 10px; padding: 10px 20px;
  font-size: 13px; font-weight: 700;
}

/* Login */
.login-body { background: var(--pine-950); }
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-box { width: 100%; max-width: 380px; }
.login-head { text-align: center; margin-bottom: 28px; color: #fff; }
.login-head .logo-mark { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto; }
.login-head h1 { font-size: 24px; margin: 16px 0 0; }
.login-head p { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-400); }
.login-card { background: #fff; border-radius: 18px; padding: 26px; box-shadow: var(--shadow-lg); display: grid; gap: 16px; }
.login-foot { margin-top: 22px; text-align: center; font-size: 12px; color: var(--ink-500); }
.login-foot a { color: #9bb897; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-40 { margin-top: 40px; } .mt-56 { margin-top: 56px; }
.mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.hidden { display: none !important; }
.text-center { text-align: center; }
.muted { color: var(--ink-500); }
.small { font-size: 12.5px; }
.flex-wrap-gap { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.spread { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
@media print { .site-header, .site-footer, .buybox form, .topbar { display: none; } }

/* ---------- Marken-Band: läuft flüssig im Kreis ---------- */
.partner-conveyor { --fade-color: #fff; position: relative; overflow: hidden; }
.partner-conveyor::before, .partner-conveyor::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 72px; z-index: 2; pointer-events: none;
}
.partner-conveyor::before { left: 0; background: linear-gradient(to right, var(--fade-color), transparent); }
.partner-conveyor::after { right: 0; background: linear-gradient(to left, var(--fade-color), transparent); }
.on-cream .partner-conveyor { --fade-color: var(--cream); }
.conveyor-track { display: flex; width: max-content; will-change: transform; }
.conveyor-group { display: flex; align-items: center; gap: 56px; padding-right: 56px; }
.partner-item {
  display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap;
  font-weight: 800; font-stretch: 112%; letter-spacing: -0.01em; font-size: clamp(18px, 2.5vw, 24px);
  color: var(--ink-300); transition: color 0.15s;
}
a.partner-item:hover { color: var(--brand-600); }
.partner-item img {
  height: 42px; width: auto; max-width: 190px; object-fit: contain;
  filter: grayscale(1); opacity: 0.65; transition: filter 0.15s, opacity 0.15s;
}
a.partner-item:hover img { filter: none; opacity: 1; }

/* ---------- Marken-Unterseite ---------- */
.partner-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); margin-top: 24px; }
@media (min-width: 640px) { .partner-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
.partner-tile {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 22px 16px 18px; text-decoration: none; text-align: center;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
a.partner-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-300); }
.partner-logo-box { display: flex; align-items: center; justify-content: center; height: 64px; width: 100%; }
.partner-logo-box img { max-height: 56px; max-width: 85%; object-fit: contain; }
.partner-wordmark {
  font-weight: 800; font-stretch: 112%; letter-spacing: -0.01em; font-size: 21px; color: var(--ink-700);
  overflow-wrap: anywhere;
}
a.partner-tile:hover .partner-wordmark { color: var(--brand-600); }
.partner-tile-name { font-size: 12.5px; font-weight: 650; color: var(--ink-500); }
.partner-tile-link {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 650; color: var(--brand-600);
}

/* Kompaktere Hauptnavigation (8 Punkte) */
.main-nav a { padding: 10px 8px; font-size: 13.5px; }
@media (min-width: 1200px) { .main-nav a { padding: 10px 12px; font-size: 14px; } }

/* ---------- Bearbeiten-Modus (nur für eingeloggte Admins sichtbar) ---------- */
[data-ml] { white-space: pre-line; }
.edit-toggle { position: fixed; right: 18px; bottom: 18px; z-index: 90; box-shadow: var(--shadow-lg); }
body.edit-mode [data-ek] {
  outline: 2px dashed var(--brand-400); outline-offset: 3px; border-radius: 4px; cursor: text;
}
body.edit-mode [data-ek]:hover { outline-color: var(--brand-600); background: rgba(44, 122, 56, 0.08); }
body.edit-mode [data-ek]:focus {
  outline: 2px solid var(--brand-600); background: #fff; color: var(--ink-950);
  box-shadow: var(--shadow-md); position: relative; z-index: 5;
}
.edit-toast {
  position: fixed; left: 50%; bottom: 78px; transform: translateX(-50%);
  max-width: min(560px, calc(100vw - 40px)); text-align: center;
  background: var(--pine-950); color: #fff; padding: 10px 20px; border-radius: 14px;
  font-size: 13px; font-weight: 650; line-height: 1.45; z-index: 95;
  opacity: 0; transition: opacity 0.25s; pointer-events: none;
}
.edit-toast.show { opacity: 1; }

/* ---------- Info-Leiste ganz oben ---------- */
.topbar { background: var(--pine-950); color: #cfe0cc; font-size: 12.5px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-weight: 650; }
.topbar a:hover { text-decoration: underline; }
.topbar a svg { color: var(--accent-light); }
.topbar .topbar-contact { display: none; gap: 18px; white-space: nowrap; }
@media (min-width: 800px) { .topbar .topbar-contact { display: flex; } }

/* ---------- Öffnungszeiten ---------- */
.hours-closed { color: var(--red-600); font-weight: 650; }
.visit-panel .hours-closed, .site-footer .hours-closed { color: #ff9d8a; }
.hours-table { margin: 6px 0 0; }
.hours-table > div {
  display: grid; grid-template-columns: 118px 1fr; gap: 16px; padding: 9px 0;
  border-bottom: 1px solid var(--ink-100); font-size: 14px;
}
.hours-table > div:last-child { border-bottom: 0; }
.hours-table dt { color: var(--ink-600); }
.hours-table dd { margin: 0; font-weight: 650; text-align: left; }
.hours-tip {
  margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5;
  background: var(--brand-50); border: 1px solid var(--brand-200); color: var(--ink-800);
}
.hours-tip.on-dark { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.15); color: #d9ecd3; }
.hours-list.compact > div { padding: 9px 0; }
