:root{--w-akzent:#1f6f5c;--w-akzent-ink:#ffffff;--w-akzent-weich:rgba(31,111,92,.08);--w-titel-schrift:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;}
/* ══════════════════════════════════════════════════════════════════════════
   modules/website/templates/site.css — öffentliche Website je Mandant (WS1)

   Ausgeliefert von extern.php unter <site>/_w.css, davor die Variablen der
   Site (website_css_variablen(): --w-akzent, --w-akzent-ink, --w-akzent-weich,
   --w-titel-schrift). Keine Webfonts, keine Fremd-Requests.

   Vorlage „Exposé", zwei Varianten über die Body-Klasse:
     .w-gaeste  hell, großes Titelbild mit Claim darüber, Karten mit Bild
     .w-firmen  nüchtern: Titel-Band neben dem Bild, Kennzahlen betont

   Breakpoints wie im Intranet: 479 / 767 / 1023. Mobile zuerst.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  --w-bg: #ffffff;
  --w-flaeche: #f6f7f5;
  --w-ink: #1d2321;
  --w-leise: #5b6461;
  --w-linie: #e3e6e3;
  --w-radius: 12px;
  --w-max: 1160px;
  --w-schmal: 760px;
  --w-pad: 16px;
  --w-schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --w-safe-b: env(safe-area-inset-bottom, 0px);
}
.w-firmen { --w-flaeche: #f3f5f8; --w-radius: 6px; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--w-schrift);
  font-size: 17px;
  line-height: 1.6;
  color: var(--w-ink);
  background: var(--w-bg);
  overflow-x: hidden;
  padding-bottom: calc(64px + var(--w-safe-b));   /* Platz für die Callbar am Handy */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--w-akzent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--w-akzent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--w-titel-schrift); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 6vw, 52px); }
h2 { font-size: clamp(24px, 4vw, 34px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }

.w-skip { position: absolute; left: -9999px; top: 0; background: var(--w-ink); color: #fff; padding: 10px 14px; z-index: 30; }
.w-skip:focus { left: 8px; top: 8px; }

.w-innen { max-width: var(--w-max); margin: 0 auto; padding: 0 var(--w-pad); }
.w-schmal { max-width: var(--w-schmal); }

.w-vorschau {
  background: #fff4cc; color: #5c4400; border-bottom: 1px solid #f0d77a;
  padding: 8px var(--w-pad); font-size: 14px; text-align: center;
}

/* ── Kopf ───────────────────────────────────────────────────────────── */
.w-kopf { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--w-linie); }
.w-kopf-innen { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.w-marke { display: flex; align-items: center; gap: 10px; color: var(--w-ink); text-decoration: none; font-weight: 700; font-size: 18px; min-width: 0; flex: 1; min-height: 44px; }
.w-marke img { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; }
.w-marke span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-nav { display: none; }
.w-nav a, .w-menue nav a {
  color: var(--w-ink); text-decoration: none; padding: 10px 12px; border-radius: 8px; font-size: 16px;
  display: inline-flex; align-items: center; min-height: 44px;
}
.w-nav a:hover, .w-menue nav a:hover { background: var(--w-flaeche); }
.w-nav a[aria-current="page"] { color: var(--w-akzent); font-weight: 600; }
.w-nav .w-nav-knopf, .w-menue nav .w-nav-knopf { background: var(--w-akzent); color: var(--w-akzent-ink); font-weight: 600; margin-left: 6px; }
.w-nav .w-nav-knopf:hover { background: var(--w-akzent); filter: brightness(1.08); }

.w-menue { position: relative; }
.w-menue summary {
  list-style: none; cursor: pointer; min-height: 44px; min-width: 44px; padding: 10px 14px;
  border: 1px solid var(--w-linie); border-radius: 10px; font-weight: 600; font-size: 15px;
  display: flex; align-items: center;
}
.w-menue summary::-webkit-details-marker { display: none; }
.w-menue[open] summary { background: var(--w-flaeche); }
.w-menue nav {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(280px, calc(100vw - 32px));
  background: #fff; border: 1px solid var(--w-linie); border-radius: var(--w-radius);
  box-shadow: 0 12px 32px rgba(0,0,0,.12); padding: 8px; display: flex; flex-direction: column; gap: 2px;
}
.w-menue nav .w-nav-knopf { margin: 6px 0 0; justify-content: center; }

/* ── Knöpfe ─────────────────────────────────────────────────────────── */
.w-knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--w-akzent);
  background: var(--w-akzent); color: var(--w-akzent-ink); font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.w-knopf:hover { filter: brightness(1.08); }
.w-firmen .w-knopf { border-radius: 6px; }
.w-knopf-klein { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.w-knopf-rand { background: transparent; color: var(--w-akzent); }

/* ── Titelbild (Hero) ───────────────────────────────────────────────── */
.w-hero { position: relative; background: var(--w-flaeche); }
.w-hero-bild img { width: 100%; height: 56vh; height: 56svh; min-height: 300px; max-height: 640px; object-fit: cover; }
.w-hero-text { padding: 28px 0 32px; }
.w-hero-text p { font-size: 19px; color: var(--w-leise); max-width: 640px; }
.w-gaeste .w-hero:not(.w-hero-ohne) .w-hero-text {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 80px 0 32px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.62) 70%);
  color: #fff;
}
.w-gaeste .w-hero:not(.w-hero-ohne) .w-hero-text p { color: rgba(255,255,255,.92); }
.w-gaeste .w-hero:not(.w-hero-ohne) h1 { text-shadow: 0 2px 16px rgba(0,0,0,.35); }

/* Firmen: Band mit Akzentlinie, Bild daneben (Desktop) bzw. darunter */
.w-firmen .w-hero { display: flex; flex-direction: column-reverse; border-bottom: 4px solid var(--w-akzent); background: #fff; }
.w-firmen .w-hero-bild img { height: 34vh; min-height: 220px; max-height: 420px; }
.w-firmen .w-hero h1 { font-size: clamp(28px, 5vw, 44px); }

/* ── Blöcke ─────────────────────────────────────────────────────────── */
.w-block { padding: 44px 0; }
.w-block:nth-of-type(even) { background: var(--w-flaeche); }
.w-intro { color: var(--w-leise); max-width: 680px; font-size: 18px; }
.w-seiten-titel { font-size: clamp(28px, 5vw, 42px); }
.w-leer { color: var(--w-leise); }
.w-fliess { max-width: 70ch; }
.w-fliess ul, .w-fliess ol { padding-left: 1.3em; }
.w-fliess blockquote { margin: 0 0 1em; padding-left: 16px; border-left: 3px solid var(--w-akzent); color: var(--w-leise); }

/* Objektkarten */
.w-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; margin-top: 20px; }
.w-karte {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--w-linie);
  border-radius: var(--w-radius); overflow: hidden; min-width: 0;
}
.w-karte-bild { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--w-flaeche); }
.w-karte-bild img, .w-karte-bild .w-bild-leer { width: 100%; height: 100%; object-fit: cover; }
.w-karte-text { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.w-karte-text h3 { margin: 0; }
.w-karte-text h3 a { color: var(--w-ink); text-decoration: none; display: block; padding: 11px 0; margin: -11px 0; }
.w-karte-text .w-knopf { align-self: flex-start; margin-top: auto; }
.w-karte-ort { margin: 0; color: var(--w-leise); font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.w-karte-kurz { margin: 0; color: var(--w-leise); font-size: 15px; }
.w-fakten { margin: 0; font-size: 15px; }
.w-preis { margin: 4px 0 8px; font-weight: 700; color: var(--w-akzent); }
.w-preis-gross { font-size: 20px; }
.w-frei { align-self: flex-start; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #e3f4ea; color: #145c33; }
.w-frei-nein { background: #fbe9e7; color: #8a1f11; }
.w-firmen .w-karte { border-left: 4px solid var(--w-akzent); }
.w-firmen .w-karte-bild { aspect-ratio: 16 / 9; }
.w-firmen .w-fakten { font-weight: 600; }

.w-bild-leer { display: grid; place-items: center; background: linear-gradient(135deg, var(--w-akzent-weich), var(--w-flaeche)); aspect-ratio: 3 / 2; }
.w-bild-leer span { font-size: 48px; font-weight: 700; color: var(--w-akzent); opacity: .5; }

/* Vorteile (Kacheln) */
.w-kacheln { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.w-kacheln li { background: #fff; border: 1px solid var(--w-linie); border-radius: var(--w-radius); padding: 18px; border-top: 4px solid var(--w-akzent); }
.w-kacheln p { margin: 0; color: var(--w-leise); }

/* Haken-Liste (Ausstattung) */
.w-haken { list-style: none; padding: 0; margin: 0 0 1em; columns: 2 220px; column-gap: 24px; }
.w-haken li { break-inside: avoid; padding: 4px 0 4px 26px; position: relative; }
.w-haken li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 7px; border-left: 2px solid var(--w-akzent); border-bottom: 2px solid var(--w-akzent); transform: rotate(-45deg); }

/* Galerie: CSS-Scroll-Snap, kein JS */
.w-galerie {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 16px var(--w-pad);
  max-width: var(--w-max); margin: 0 auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
}
.w-galerie-bild { flex: 0 0 88%; margin: 0; scroll-snap-align: center; border-radius: var(--w-radius); overflow: hidden; background: var(--w-flaeche); }
.w-galerie-bild img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* FAQ */
.w-faq details { border-bottom: 1px solid var(--w-linie); }
.w-faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; min-height: 44px; list-style-position: outside; }
.w-faq details p { color: var(--w-leise); }

/* Kontakt */
.w-kontaktdaten { font-style: normal; line-height: 1.8; }
.w-kontaktdaten a { display: inline-block; min-height: 32px; }
.w-adresse { font-size: 18px; }

/* ── Formular ───────────────────────────────────────────────────────── */
.w-form { margin-top: 12px; }
.w-felder { display: grid; grid-template-columns: 1fr; gap: 14px 16px; }
.w-feld { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.w-feld label { font-weight: 600; font-size: 15px; }
.w-feld input, .w-feld select, .w-feld textarea {
  font: inherit; font-size: 16px; color: var(--w-ink); background: #fff;
  border: 1px solid #c9cfcc; border-radius: 8px; padding: 10px 12px; min-height: 46px; width: 100%;
}
.w-feld textarea { min-height: 120px; resize: vertical; }
.w-feld input:focus, .w-feld select:focus, .w-feld textarea:focus { border-color: var(--w-akzent); outline: 2px solid var(--w-akzent-weich); outline-offset: 0; }
.w-feld-fehler input, .w-feld-fehler select, .w-feld-fehler textarea { border-color: #b3261e; }
.w-feld-meldung { margin: 0; color: #b3261e; font-size: 14px; }
.w-check { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0; font-size: 15px; }
.w-check input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--w-akzent); }
.w-check.w-feld-fehler label { color: #b3261e; }
.w-honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.w-hinweis { margin-top: 12px; font-size: 14px; color: var(--w-leise); }
.w-meldung { padding: 14px 16px; border-radius: 10px; font-weight: 600; }
.w-meldung-ok { background: #e3f4ea; color: #145c33; }
.w-meldung-fehler { background: #fbe9e7; color: #8a1f11; }

/* ── Objektseite (Exposé-Optik) ─────────────────────────────────────── */
.w-objekt { padding-top: 20px; }
.w-brotkrume { margin: 0 0 12px; font-size: 15px; }
.w-brotkrume a { display: inline-flex; align-items: center; min-height: 44px; }
.w-fakten-liste { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.w-fakten-liste li { background: var(--w-flaeche); border: 1px solid var(--w-linie); border-radius: 999px; padding: 4px 12px; font-size: 15px; }
.w-firmen .w-fakten-liste li { border-radius: 4px; font-weight: 600; }
.w-objekt-spalten { display: grid; grid-template-columns: 1fr; gap: 24px; padding-top: 20px; padding-bottom: 20px; }
.w-objekt-haupt section, .w-objekt-seite section { margin-bottom: 28px; }
.w-ausstattung-box { background: var(--w-flaeche); border-radius: var(--w-radius); padding: 18px 20px; }
.w-ausstattung-box h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: var(--w-leise); margin-top: 12px; }
.w-ausstattung-box .w-haken { columns: 1; }
.w-zeiten { color: var(--w-leise); }

/* Rechtliches */
.w-recht h2 { font-size: 22px; margin-top: 1.4em; }

/* ── Fuß ────────────────────────────────────────────────────────────── */
.w-fuss { background: #1d2321; color: #e8ecea; padding: 36px 0 28px; }
.w-fuss a { color: #fff; }
.w-fuss-innen { display: grid; gap: 20px; }
.w-fuss-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.w-fuss-links a { display: inline-flex; align-items: center; min-height: 44px; }
.w-copy { margin: 0; color: #a9b2ae; font-size: 14px; }
.w-firmen .w-fuss { background: #16202c; }

/* ── Callbar (Handy) ───────────────────────────────────────────────── */
.w-callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; gap: 8px;
  padding: 8px 12px calc(8px + var(--w-safe-b)); background: rgba(255,255,255,.97); border-top: 1px solid var(--w-linie);
}
.w-callbar a {
  flex: 1; display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 10px;
  font-weight: 700; text-decoration: none; border: 2px solid var(--w-akzent); color: var(--w-akzent);
}
.w-callbar .w-callbar-haupt { background: var(--w-akzent); color: var(--w-akzent-ink); }

/* ── Breakpoints ───────────────────────────────────────────────────── */
@media (max-width: 479px) {
  body { font-size: 16px; }
  .w-block { padding: 32px 0; }
  .w-galerie-bild { flex-basis: 92%; }
}
@media (min-width: 768px) {
  :root { --w-pad: 24px; }
  body { padding-bottom: 0; }
  .w-callbar { display: none; }
  .w-felder { grid-template-columns: 1fr 1fr; }
  .w-feld-breit { grid-column: 1 / -1; }
  .w-galerie-bild { flex-basis: 60%; }
  .w-fuss-innen { grid-template-columns: 2fr 1fr; align-items: start; }
  .w-copy { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .w-nav { display: flex; align-items: center; gap: 2px; }
  .w-menue { display: none; }
  .w-block { padding: 64px 0; }
  .w-galerie-bild { flex-basis: 44%; }
  .w-objekt-spalten { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; }
  .w-firmen .w-hero { flex-direction: row; align-items: stretch; }
  .w-firmen .w-hero-text { flex: 1.2; display: flex; align-items: center; padding: 48px 0; }
  .w-firmen .w-hero-bild { flex: 1; }
  .w-firmen .w-hero-bild img { height: 100%; max-height: 460px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .w-kopf, .w-callbar, .w-form, .w-menue { display: none !important; } body { padding: 0; } }
