/* ============================================================
   WENDLER DESIGN SYSTEM
   Gemeinsame CSS-Basis für alle Wendler-Websites
   ============================================================
   Wird IMMER geladen. Theme-Dateien (wendler-cmyk.css oder
   wendler-grau.css) werden zusätzlich eingebunden.
   ============================================================ */

/* ── WEBFONTS (Self-hosted) ─────────────────────────────────── */
@font-face { font-family: 'Aqua Grotesque'; src: url('/fonts/aqua.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('/fonts/archivo-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('/fonts/archivo-latin-900-normal.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('/fonts/cormorant-garamond-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('/fonts/cormorant-garamond-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('/fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('/fonts/source-sans-3-latin-300-normal.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('/fonts/source-sans-3-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('/fonts/source-sans-3-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

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

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  /* Brand: Grün-Skala (CI #A1C738) */
  --green-50:     #F4F8E6;
  --green-100:    #E6EFC4;
  --green-200:    #C8DC83;
  --green-300:    #B5D45B;
  --green:        #A1C738;  /* = 500, Primärfarbe */
  --green-600:    #8DAE2E;
  --green-700:    #6F8923;
  --green-900:    #41501A;
  --green-dark:   #6F8923;  /* Alias für Hover */

  /* Brand: Orange-Skala (CI #DB9C24) */
  --orange-50:    #FBF1DC;
  --orange-100:   #F6DFAE;
  --orange-300:   #EBBC65;
  --orange:       #DB9C24;  /* = 500, CTA-Farbe */
  --orange-600:   #C18217;
  --orange-900:   #6E4A0D;
  --orange-dark:  #C18217;  /* Alias für Hover */

  /* Semantische Farben */
  --success:      #8DAE2E;  /* green-600 */
  --warning:      #DB9C24;  /* orange-500 */
  --danger:       #B23A2A;  /* warm rust */
  --info:         #5B7E8A;  /* dusty teal */

  /* Warme Neutrals: Paper & Bark */
  --paper:        #FAF6EE;
  --paper-warm:   #F3ECDE;
  --paper-tan:    #E7DEC9;
  --bark-200:     #C9BFA8;
  --bark-400:     #8A7F66;
  --bark-600:     #5B5340;
  --bark-800:     #2E2A20;
  --ink:          #1F1D1A;

  /* Kompatibilitäts-Aliase (für bestehende Klassen) */
  --fg:           var(--bark-800);
  --fg-muted:     var(--bark-400);
  --bg:           var(--paper);
  --bg-section:   var(--paper-warm);
  --white:        #ffffff;
  --border:       var(--paper-tan);

  /* Grabpflege / Grau-Variante */
  --gray-accent:  #7a8c82;
  --gray-light:   #e8e4df;
  --gray-bg:      #f5f3f0;
  --gray-bg-2:    #edeae6;
  --gray-text:    #4a4a4a;

  /* Layout */
  --max:          1100px;
  --pad:          30px;

  /* Radii */
  --radius-xs:    4px;
  --radius-sm:    6px;
  --radius-md:    8px;
  --radius:       12px;   /* = lg, Standard */
  --radius-xl:    18px;
  --radius-pill:  999px;

  /* Shadows (warm, kein reines Schwarz) */
  --shadow-xs:    0 1px 3px rgba(46,42,32,0.06);
  --shadow-sm:    0 2px 8px rgba(46,42,32,0.07);
  --shadow:       0 4px 16px rgba(46,42,32,0.08);  /* = md */
  --shadow-lg:    0 8px 32px rgba(46,42,32,0.10);
  --shadow-xl:    0 16px 48px rgba(46,42,32,0.14);

  /* Typography */
  --font-logo:    'Aqua Grotesque', sans-serif;
  --font-display: 'Archivo', sans-serif;
  --font-body:    'Source Sans 3', sans-serif;
  --font-serif:   'Cormorant Garamond', Georgia, serif;

  /* Motion */
  --duration:     0.22s;
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  text-decoration: none; border: 2px solid transparent;
  transition: all var(--duration) var(--ease);
  cursor: pointer; white-space: nowrap;
}
.btn svg {
  width: 16px; height: 16px; fill: none;
  stroke: currentColor; stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
}

.btn-primary   { background: var(--green);  color: #fff; border-color: var(--green); }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-1px); }

.btn-orange    { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-orange:hover { background: var(--orange-dark); border-color: var(--orange-dark); transform: translateY(-1px); }

.btn-outline   { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }

.btn-ghost     { background: rgba(255,255,255,0.9); color: var(--ink); border-color: transparent; }
.btn-ghost:hover { background: #fff; }

.btn-ghost-gray { background: transparent; color: var(--gray-accent); border-color: var(--gray-accent); }
.btn-ghost-gray:hover { background: var(--gray-accent); color: #fff; }

.btn-gray      { background: var(--gray-accent); color: #fff; border-color: var(--gray-accent); }
.btn-gray:hover { background: #5a6b61; border-color: #5a6b61; transform: translateY(-1px); }

/* ── EYEBROW ─────────────────────────────────────────────────── */
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--green);
}
.eyebrow-gray { color: var(--gray-accent); }

/* ── NAV (shared base) ──────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--duration) var(--ease);
}
nav.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.08); }

.nav-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 38px; width: auto; display: block; }
.nav-logo-text {
  font-family: var(--font-logo);
  font-size: 20px; font-weight: 400;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none;
}

.nav-phone {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font-size: 15px; font-weight: 600;
  transition: opacity var(--duration);
}
.nav-phone:hover { opacity: 0.7; }
.nav-phone svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ── SECTION LABELS ─────────────────────────────────────────── */
.section-tag {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.05; letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.section-title-serif {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 400; line-height: 1.2;
  margin-bottom: 16px;
}
.divider {
  width: 44px; height: 2px;
  margin: 14px 0 32px;
}

/* ── CARDS ───────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration) var(--ease);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

/* ── KARTE (Leaflet) ─────────────────────────────────────────── */
.map-wrap {
  height: 420px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
#map { width: 100%; height: 100%; }

.leaflet-popup-content-wrapper {
  border-radius: 8px !important;
  font-family: var(--font-body) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12) !important;
}
.leaflet-popup-content { margin: 16px 18px !important; font-size: 14px !important; line-height: 1.6 !important; }
.popup-name { font-size: 16px; color: var(--ink); margin-bottom: 6px; }
.popup-tel a { text-decoration: none; }
.popup-route { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; text-decoration: none; }
.popup-route:hover { text-decoration: underline; }

/* ── FOOTER ──────────────────────────────────────────────────── */
footer {
  padding: 48px var(--pad);
  background: var(--ink); color: #fff;
  text-align: center;
}
.footer-inner { max-width: var(--max); margin: 0 auto; }

.footer-social {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 24px;
}
.footer-social a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.65);
  font-size: 14px; text-decoration: none;
  transition: all var(--duration);
}
.footer-social a:hover { color: #fff; border-color: rgba(255,255,255,0.4); }
.footer-social a svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.footer-meta { font-size: 14px; color: rgba(255,255,255,0.45); margin-top: 16px; }

.footer-links {
  display: flex; gap: 20px; justify-content: center;
  margin-top: 10px; flex-wrap: wrap;
}
.footer-links a {
  font-size: 13px; color: rgba(255,255,255,0.4);
  text-decoration: none; transition: color var(--duration);
}
.footer-links a:hover { color: rgba(255,255,255,0.8); }

/* ── HOURS TABLE ─────────────────────────────────────────────── */
.hours-table { border-collapse: collapse; font-size: 14px; }
.hours-table td:first-child { padding-right: 20px; color: var(--fg-muted); }

/* ── STANDORT (shared) ───────────────────────────────────────── */
.standort-row { display: flex; gap: 14px; align-items: flex-start; }
.standort-row svg {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px;
  fill: none; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.standort-phone {
  font-size: 15px; font-weight: 600; color: var(--fg);
  text-decoration: none; transition: color var(--duration);
}

/* ── ICON ALIGNMENT ──────────────────────────────────────────── */
.w-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ── ANIMATIONS ──────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr !important; }
  .grid-3 { grid-template-columns: 1fr 1fr !important; }
  .grid-4 { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 600px) {
  :root { --pad: 20px; }
  .nav-inner { height: 56px; }
  .nav-logo img { height: 30px; }
  .map-wrap { height: 280px; }
  .btn { justify-content: center; }
  .grid-3, .grid-4 { grid-template-columns: 1fr !important; }
  .footer-links { flex-direction: column; gap: 8px; align-items: center; }
}
