/* =========================================================
   Allmedica – Ambulanter Pflegedienst · Premium Redesign
   Design: Jemke Solutions
   ========================================================= */

@font-face {
  font-family: "Fraunces";
  src: url("./fonts/fraunces-latin-opsz-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("./fonts/fraunces-latin-opsz-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("./fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --forest-950: #12241a;
  --forest-900: #1b3424;
  --forest-800: #24452f;
  --forest-700: #2f5a3d;
  --green: #5aa862;          /* Logo-Grün */
  --green-soft: #8cc391;
  --green-mist: #e4efe2;
  --heart: #a3121f;          /* Logo-Rot */
  --heart-soft: #f6e3e3;
  --cream: #f8f5ef;
  --sand: #efe9de;
  --paper: #fffdf9;
  --ink: #18221c;
  --muted: #5b675f;
  --line: rgba(24, 34, 28, 0.12);
  --line-light: rgba(255, 255, 255, 0.16);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-s: 14px;
  --radius-m: 22px;
  --radius-l: 32px;
  --shadow-s: 0 1px 2px rgba(18, 36, 26, 0.06), 0 4px 16px rgba(18, 36, 26, 0.06);
  --shadow-l: 0 2px 4px rgba(18, 36, 26, 0.05), 0 24px 60px -12px rgba(18, 36, 26, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(88px, 11vw, 150px);
}

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

html { font-size: 100%; transition: font-size 0.3s; }
html.text-lg { font-size: 115%; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
svg { flex-shrink: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

h1, h2 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  line-height: 1.04;
}
h1 em, h2 em, .manifest-text em {
  font-style: italic;
  font-weight: 300;
  color: var(--forest-700);
}
h2 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); }
h3 { font-family: var(--sans); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; line-height: 1.3; }

::selection { background: var(--green-soft); color: var(--forest-950); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding-block: var(--section-y); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--forest-900); color: #fff; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 22px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--forest-700);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.5; }
.eyebrow:has(.dot)::before { display: none; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--heart); box-shadow: 0 0 0 4px var(--heart-soft); }
.eyebrow-light { color: var(--green-soft); }

/* ---------- Buttons ---------- */
.button {
  --bg: var(--forest-900); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 700 0.98rem/1.2 var(--sans); letter-spacing: -0.005em; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.3s, box-shadow 0.35s var(--ease), color 0.3s;
}
.button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.35s var(--ease); }
.button:hover { transform: translateY(-2px); }
.button:hover svg:last-child:not(:first-child) { transform: translateX(3px); }
.button-primary { box-shadow: 0 10px 30px -10px rgba(27, 52, 36, 0.6); }
.button-primary:hover { --bg: var(--forest-800); box-shadow: 0 16px 36px -12px rgba(27, 52, 36, 0.7); }
.button-ghost, .button-secondary { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.button-ghost:hover, .button-secondary:hover { --bg: var(--paper); border-color: rgba(24, 34, 28, 0.25); }
.button-light { --bg: var(--cream); --fg: var(--forest-950); }
.button-light:hover { --bg: #fff; }
.button-small { min-height: 44px; padding: 0 20px; font-size: 0.9rem; }
.button-block { width: 100%; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--forest-700); text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
}
.text-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 0.3s var(--ease); }
.text-link:hover svg { transform: translate(2px, -2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.site-header.is-scrolled,
.legal-main ~ .site-header,
body:has(.legal-main) .site-header {
  background: rgba(248, 245, 239, 0.82);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }
.brand img { width: auto; height: 46px; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  position: relative; padding: 10px 14px; border-radius: 999px;
  font-size: 0.94rem; font-weight: 600; color: var(--ink); text-decoration: none;
  transition: background 0.25s, color 0.25s;
}
.site-nav a:not(.nav-cta):hover { background: rgba(24, 34, 28, 0.05); }
.site-nav a.is-active:not(.nav-cta) { color: var(--forest-700); }
.site-nav a.is-active:not(.nav-cta)::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--heart);
}
.site-nav .nav-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-left: 10px; padding: 11px 20px;
  background: var(--forest-900); color: #fff; font-weight: 700;
  transition: background 0.25s, transform 0.3s var(--ease);
}
.site-nav .nav-cta:hover { background: var(--forest-800); transform: translateY(-1px); }
.nav-cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }

.nav-toggle {
  display: none; position: relative; width: 48px; height: 48px;
  border: 1px solid var(--line); border-radius: 50%; background: var(--paper); cursor: pointer;
}
.nav-toggle span {
  position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--ink);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.nav-toggle span:first-child { top: 19px; }
.nav-toggle span:last-child { top: 27px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 23px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 23px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-top: clamp(130px, 16vw, 180px);
  background:
    radial-gradient(60% 50% at 85% 20%, rgba(90, 168, 98, 0.14), transparent 70%),
    radial-gradient(40% 40% at 5% 90%, rgba(163, 18, 31, 0.05), transparent 70%),
    var(--cream);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(40px, 6vw, 96px); align-items: center;
}
.hero h1 { font-size: clamp(3.1rem, 7.2vw, 6.4rem); margin-bottom: 30px; font-weight: 400; }
.hero h1 em { display: inline-block; }
.hero-lead { max-width: 33rem; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); margin-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 56px; }

.hero-facts { display: flex; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.hero-facts li { flex: 1 1 140px; padding: 20px 20px 0 0; display: grid; gap: 2px; }
.hero-facts li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.hero-facts strong { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; letter-spacing: -0.01em; }
.hero-facts span { font-size: 0.88rem; color: var(--muted); }

.hero-visual { position: relative; justify-self: center; width: min(100%, 470px); }
.arch {
  position: relative; aspect-ratio: 0.8; overflow: hidden;
  border-radius: 999px 999px var(--radius-l) var(--radius-l);
  background: linear-gradient(170deg, var(--forest-800) 0%, var(--forest-950) 100%);
  box-shadow: var(--shadow-l);
  isolation: isolate;
}
.arch::after { /* feine Körnung */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0.35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
.arch-glow {
  position: absolute; left: 50%; top: 34%; width: 90%; aspect-ratio: 1; translate: -50% -50%;
  background: radial-gradient(circle, rgba(140, 195, 145, 0.35), transparent 65%);
  animation: breathe 7s ease-in-out infinite;
}
.arch-heart {
  position: absolute; left: 50%; top: 15%; width: 52%; translate: -50% 0; z-index: 1; overflow: visible;
}
.heart-line {
  fill: none; stroke: #e0525d; stroke-width: 9; stroke-linecap: round;
  stroke-dasharray: 620; stroke-dashoffset: 620;
  animation: draw 2.4s 0.5s var(--ease) forwards;
}
.house { fill: var(--cream); opacity: 0; animation: fadeUp 1s 1.6s var(--ease) forwards; }
.window { fill: var(--forest-900); opacity: 0; animation: fadeUp 1s 1.8s var(--ease) forwards; }
.arch-hands {
  position: absolute; left: 50%; bottom: 0; width: 88%; aspect-ratio: 599 / 504; translate: -50% 0; z-index: 2;
  background: linear-gradient(180deg, #f1ece2, #d7e6d4);
  -webkit-mask: url("./images/service-icon-transparent.png") center bottom / contain no-repeat;
  mask: url("./images/service-icon-transparent.png") center bottom / contain no-repeat;
  animation: rise 1.6s 0.2s var(--ease) both;
}

.float-card {
  position: absolute; z-index: 4;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; border-radius: 18px;
  background: rgba(255, 253, 249, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-l); border: 1px solid rgba(255, 255, 255, 0.7);
}
.float-status { left: -48px; top: 58%; animation: float 8s ease-in-out infinite; }
.float-title { font-weight: 800; font-size: 0.9rem; }
.float-text { font-size: 0.82rem; color: var(--muted); }
.pulse { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--muted); }
.float-status.is-open .pulse { background: #2fa24a; }
.float-status.is-open .pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #2fa24a;
  animation: ping 2s ease-out infinite;
}
.float-quote { right: -36px; top: 12%; flex-direction: column; align-items: flex-start; gap: 2px; animation: float 9s 1s ease-in-out infinite reverse; }
.float-quote p { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--forest-900); }
.float-quote span { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--heart); }

/* Ticker */
.ticker {
  margin-top: clamp(72px, 9vw, 120px);
  border-block: 1px solid var(--line);
  overflow: hidden; padding-block: 22px;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker-track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 60s linear infinite; }
.ticker span { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 2rem); font-style: italic; font-weight: 300; color: var(--forest-800); white-space: nowrap; }
.ticker i { font-style: normal; color: var(--heart); font-size: 0.9rem; }

/* ---------- Manifest / Werte ---------- */
.manifest { background: var(--cream); }
.manifest-text {
  max-width: 22ch; max-width: 980px;
  font-family: var(--serif); font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.22; letter-spacing: -0.015em;
  margin-bottom: clamp(56px, 8vw, 96px);
}
.values { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.value { padding: 32px 28px 8px 0; }
.value + .value { padding-left: 28px; border-left: 1px solid var(--line); }
.value-num { display: block; margin-bottom: 40px; font-family: var(--serif); font-size: 0.95rem; color: var(--heart); }
.value h3 { margin-bottom: 10px; }
.value p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Leistungen ---------- */
.services { background: var(--paper); border-radius: var(--radius-l) var(--radius-l) 0 0; }
.section-head {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-intro { color: var(--muted); font-size: 1.08rem; }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  grid-column: span 2;
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 30px; border-radius: var(--radius-m);
  background: var(--cream); border: 1px solid transparent;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s, background 0.3s;
}
.tile:hover { transform: translateY(-4px); background: #fff; border-color: var(--line); box-shadow: var(--shadow-l); }
.tile p { color: var(--muted); font-size: 0.95rem; }
.tile-icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px;
  border-radius: 16px; background: var(--green-mist); color: var(--forest-700);
  transition: transform 0.5s var(--ease), background 0.3s, color 0.3s;
}
.tile:hover .tile-icon { transform: rotate(-6deg) scale(1.05); background: var(--forest-900); color: var(--cream); }
.tile-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tile-feature { grid-column: span 3; min-height: 320px; padding: 40px; justify-content: flex-end; }
.tile-feature h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 2.6vw, 2.4rem); letter-spacing: -0.02em; }
.tile-feature p { max-width: 30rem; font-size: 1.02rem; }
.tile-feature .tile-icon { position: absolute; top: 40px; left: 40px; }
.tile-tag {
  position: absolute; top: 44px; right: 40px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--forest-700);
}
.tile-dark { background: var(--forest-900); color: var(--cream); }
.tile-dark:hover { background: var(--forest-950); border-color: transparent; }
.tile-dark p { color: rgba(248, 245, 239, 0.72); }
.tile-dark .tile-icon { background: rgba(255, 255, 255, 0.08); color: var(--green-soft); }
.tile-dark:hover .tile-icon { background: var(--cream); color: var(--forest-900); }
.tile-dark .tile-tag { color: var(--green-soft); }

.tile-cta {
  grid-column: span 4; justify-content: space-between; gap: 24px; text-decoration: none;
  background: linear-gradient(120deg, var(--heart-soft), var(--sand)); color: var(--ink);
}
.tile-cta:hover { background: linear-gradient(120deg, #f9e9e9, #f4efe6); }
.tile-cta-kicker { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--heart) !important; }
.tile-cta-title { font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.75rem) !important; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink) !important; max-width: 34rem; }
.tile-cta-arrow {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--forest-900); color: #fff; transition: transform 0.5s var(--ease);
}
.tile-cta-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile-cta:hover .tile-cta-arrow { transform: translateX(6px); }

/* ---------- Wegweiser ---------- */
.guide { background: var(--paper); padding-top: 0; }
.guide-grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 88px); align-items: start;
  padding: clamp(40px, 6vw, 72px); border-radius: var(--radius-l);
  background: linear-gradient(140deg, var(--green-mist), var(--sand));
}
.guide-intro h2 { margin-bottom: 22px; }
.guide-intro p:last-child { color: var(--muted); }
.guide-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.guide-options { display: grid; gap: 8px; align-content: start; }
.guide-option {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 16px 18px; border-radius: var(--radius-s);
  border: 1px solid rgba(24, 34, 28, 0.1); background: rgba(255, 255, 255, 0.6);
  font: 600 0.95rem/1.35 var(--sans); color: var(--ink); text-align: left; cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.3s var(--ease), color 0.25s;
}
.guide-option::after { content: "→"; opacity: 0.35; transition: transform 0.3s var(--ease), opacity 0.3s; }
.guide-option:hover { background: #fff; transform: translateX(3px); }
.guide-option[aria-checked="true"] { background: var(--forest-900); border-color: var(--forest-900); color: #fff; }
.guide-option[aria-checked="true"]::after { opacity: 1; transform: translateX(3px); }
.guide-result {
  position: relative; min-height: 100%; padding: 28px; border-radius: var(--radius-m);
  background: #fff; box-shadow: var(--shadow-s);
}
.guide-placeholder { color: var(--muted); font-size: 0.95rem; }
.guide-result.is-animating > * { animation: fadeUp 0.6s var(--ease) both; }
.guide-result h3 { font-family: var(--serif); font-weight: 400; font-size: 1.55rem; letter-spacing: -0.015em; margin-bottom: 10px; }
.guide-result > p { color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; }
.guide-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 8px; }
.guide-list li {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px;
  background: var(--cream); font-weight: 600; font-size: 0.93rem;
}
.guide-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--heart); }

/* ---------- Angehörige ---------- */
.family {
  position: relative; overflow: hidden;
  background: var(--forest-900); color: var(--cream);
}
.family::before {
  content: ""; position: absolute; right: -10%; top: -30%; width: 60vw; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 168, 98, 0.22), transparent 65%);
}
.family-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 120px); align-items: center; }
.family h2 { margin-bottom: 26px; }
.family h2 em { color: var(--green-soft); }
.family-copy > p { color: rgba(248, 245, 239, 0.75); margin-bottom: 36px; max-width: 34rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.step {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 28px; border-radius: var(--radius-m);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-light);
  transition: background 0.4s, transform 0.5s var(--ease);
}
.step:hover { background: rgba(255, 255, 255, 0.08); transform: translateX(6px); }
.step-num {
  display: grid; place-items: center; width: 54px; height: 54px; flex-shrink: 0; border-radius: 50%;
  border: 1px solid var(--line-light);
  font-family: var(--serif); font-size: 1.5rem; font-style: italic; color: var(--green-soft);
}
.step h3 { margin-bottom: 6px; color: #fff; }
.step p { color: rgba(248, 245, 239, 0.68); font-size: 0.96rem; }

/* ---------- Standort ---------- */
.location-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 20px; align-items: stretch; }
.location-card {
  padding: clamp(32px, 5vw, 56px); border-radius: var(--radius-l); background: var(--paper);
  border: 1px solid var(--line);
}
.location-card h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 28px; }
address { font-style: normal; margin-bottom: 28px; color: var(--muted); }
address strong { display: block; color: var(--ink); margin-bottom: 4px; }
.hours { margin: 0 0 28px; border-top: 1px solid var(--line); }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-weight: 700; }
.area { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 32px; padding: 0; }
.area li { padding: 7px 14px; border-radius: 999px; background: var(--green-mist); color: var(--forest-800); font-size: 0.85rem; font-weight: 600; }

.map { position: relative; min-height: 460px; border-radius: var(--radius-l); overflow: hidden; background: var(--sand); }
.map::before { /* dekoratives Stadtplan-Muster */
  content: ""; position: absolute; inset: 0; opacity: 0.6;
  background:
    linear-gradient(115deg, transparent 48%, rgba(255,255,255,0.9) 48.4%, rgba(255,255,255,0.9) 50.4%, transparent 50.8%),
    linear-gradient(20deg, transparent 60%, rgba(255,255,255,0.8) 60.3%, rgba(255,255,255,0.8) 61.6%, transparent 62%),
    linear-gradient(80deg, transparent 30%, rgba(140,195,145,0.5) 30.2%, rgba(140,195,145,0.5) 36%, transparent 36.2%),
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(24,34,28,0.05) 46px 47px),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(24,34,28,0.05) 46px 47px);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity 0.6s; }
.map.is-loaded iframe { opacity: 1; }
.map.is-loaded .map-consent { display: none; }
.map-consent {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px;
  padding: 32px; text-align: center;
}
.map-consent svg { width: 56px; height: 56px; padding: 14px; border-radius: 50%; background: var(--heart); color: #fff; fill: none; stroke: currentColor; stroke-width: 1.8; box-shadow: 0 0 0 10px rgba(163, 18, 31, 0.12); }
.map-consent p { max-width: 22rem; font-size: 0.92rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { padding-top: 0; }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 6vw, 96px); }
.faq h2 { margin-bottom: 22px; }
.faq-aside { color: var(--muted); max-width: 20rem; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.4rem); letter-spacing: -0.01em;
  transition: color 0.25s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--forest-700); }
.faq-list summary::after {
  content: "+"; display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); font-family: var(--sans); font-size: 1.2rem; font-weight: 400;
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); background: var(--forest-900); color: #fff; border-color: var(--forest-900); }
.faq-list details > div { padding: 0 60px 28px 0; color: var(--muted); }
.faq-list details[open] > div { animation: fadeUp 0.5s var(--ease); }
.faq-list a { color: var(--forest-700); font-weight: 600; }

/* ---------- Kontakt ---------- */
.contact { padding-top: 0; }
.contact-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px);
  padding: clamp(36px, 6vw, 80px); border-radius: var(--radius-l);
  background: var(--forest-950); color: var(--cream);
}
.contact-card::before {
  content: ""; position: absolute; left: -15%; bottom: -60%; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(163, 18, 31, 0.28), transparent 65%);
}
.contact-copy { position: relative; }
.contact h2 { margin-bottom: 22px; }
.contact h2 em { color: var(--green-soft); }
.contact-copy > p { color: rgba(248, 245, 239, 0.72); margin-bottom: 40px; max-width: 28rem; }
.big-phone {
  display: inline-grid; gap: 4px; margin-bottom: 40px;
  font-family: var(--serif); font-size: clamp(2.2rem, 4.4vw, 3.6rem); letter-spacing: -0.02em; line-height: 1;
  color: #fff; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.6s var(--ease);
  padding-bottom: 8px;
}
.big-phone:hover { background-size: 100% 1px; }
.big-phone span { font-family: var(--sans); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green-soft); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line-light); }
.contact-list li { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-light); font-size: 0.95rem; }
.contact-list span { color: rgba(248, 245, 239, 0.5); font-size: 0.82rem; font-weight: 600; padding-top: 2px; }
.contact-list a { color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; }

.contact-form {
  position: relative; display: grid; gap: 14px; align-content: start;
  padding: clamp(24px, 3.5vw, 40px); border-radius: var(--radius-m);
  background: var(--cream); color: var(--ink);
}
.field { display: grid; gap: 6px; }
.field label { font-size: 0.82rem; font-weight: 700; color: var(--forest-800); }
.field input, .field textarea {
  width: 100%; padding: 15px 16px; border-radius: 12px;
  border: 1px solid rgba(24, 34, 28, 0.14); background: #fff;
  font: 500 1rem/1.5 var(--sans); color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(90, 168, 98, 0.18); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--heart); box-shadow: 0 0 0 4px rgba(163, 18, 31, 0.1); }
.form-note { font-size: 0.8rem; color: var(--muted); }
.form-status { font-size: 0.9rem; font-weight: 700; color: var(--forest-700); min-height: 1.2em; }
.form-status.is-error { color: var(--heart); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { padding: 72px 0 36px; background: var(--cream); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer-logo { height: 52px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: var(--muted); font-size: 0.95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; }
.footer-links a, .footer-button {
  font: 600 0.92rem/1.4 var(--sans); color: var(--ink); text-decoration: none;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.footer-links a:hover, .footer-button:hover { color: var(--forest-700); text-decoration: underline; }
.footer-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 0.84rem; color: var(--muted); }
.designed-by a { color: var(--ink); font-weight: 700; text-decoration: none; }

/* ---------- Mobile Bar ---------- */
.mobile-bar { display: none; }

/* ---------- Cookie Banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80;
  display: flex; justify-content: center; pointer-events: none;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  pointer-events: auto;
  display: flex; align-items: center; gap: 28px;
  max-width: 920px; padding: 22px 24px; border-radius: var(--radius-m);
  background: var(--paper); box-shadow: var(--shadow-l); border: 1px solid var(--line);
  animation: fadeUp 0.6s var(--ease);
}
.cookie-title { font-weight: 800; margin-bottom: 4px; }
.cookie-text { font-size: 0.88rem; color: var(--muted); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-actions .button { min-height: 46px; padding: 0 20px; font-size: 0.88rem; }

/* ---------- Legal pages (Impressum/Datenschutz) ---------- */
.legal-main { padding: 160px 0 var(--section-y); }
.legal-hero { max-width: 760px; margin-bottom: 56px; }
.legal-hero h1 { font-size: clamp(2.8rem, 6vw, 4.8rem); margin-bottom: 18px; }
.legal-grid { display: grid; gap: 16px; max-width: 860px; }
.legal-card, .legal-section { padding: 32px; border-radius: var(--radius-m); background: var(--paper); border: 1px solid var(--line); }
.legal-card { background: var(--forest-900); color: var(--cream); border: 0; }
.legal-card .legal-note { color: rgba(248, 245, 239, 0.7); }
.legal-card h2, .legal-section h2 { font-size: 1.6rem; margin-bottom: 14px; }
.legal-section p, .legal-card p { margin-bottom: 6px; }
.legal-section a { color: var(--forest-700); overflow-wrap: anywhere; }
.legal-section p + p { margin-top: 10px; }
.legal-section ul { margin: 10px 0 14px; padding-left: 1.2em; }
.legal-section li { margin-bottom: 4px; }
.legal-section li::marker { color: var(--heart); }
.legal-section h2, .legal-card h2 { line-height: 1.2; }
.legal-note { color: var(--muted); font-size: 0.92rem; }

/* ---------- Interaktiv ---------- */
.scroll-progress {
  position: fixed; inset: 0 0 auto; z-index: 90; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, var(--heart), #e0525d);
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}

.text-size {
  display: inline-flex; align-items: center; gap: 8px; margin-left: 6px;
  height: 42px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; cursor: pointer;
  font: 700 0.95rem/1 var(--serif); color: var(--ink);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.text-size small { font-size: 0.7em; }
.text-size:hover { background: var(--paper); }
.text-size[aria-pressed="true"] { background: var(--green-mist); border-color: var(--green-soft); color: var(--forest-800); }
.text-size-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Wort-für-Wort */
[data-words] .w { opacity: 0.16; transition: opacity 0.35s var(--ease); }
[data-words] .w.is-lit { opacity: 1; }

/* Hero-Tilt */
.hero-visual { perspective: 1200px; }
.arch, .float-card { will-change: transform; }
.arch { transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transition: transform 0.2s linear; }
.hero-visual .float-status { translate: calc(var(--tx, 0) * -14px) calc(var(--ty, 0) * -14px); }
.hero-visual .float-quote { translate: calc(var(--tx, 0) * 18px) calc(var(--ty, 0) * 18px); }
.arch-hands { margin-left: calc(var(--tx, 0) * 6px); }
.hero-visual:hover .arch-heart { animation: beat 1.4s ease-in-out infinite; }

/* Spotlight auf Kacheln */
.tile { isolation: isolate; overflow: hidden; }
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(90, 168, 98, 0.16), transparent 60%);
}
.tile-dark::before { background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(140, 195, 145, 0.18), transparent 60%); }
.tile-cta::before { background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.6), transparent 60%); }
.tile:hover::before { opacity: 1; }

/* Schritte-Fortschritt */
.steps { position: relative; }
.steps::before, .steps::after {
  content: ""; position: absolute; left: 55px; top: 55px; bottom: 55px; width: 1px; margin-left: -0.5px;
}
.steps::before { background: var(--line-light); }
.steps::after { background: var(--green-soft); transform-origin: top; transform: scaleY(var(--p, 0)); transition: transform 0.15s linear; }
.step { position: relative; z-index: 1; }
.step-num { position: relative; z-index: 2; background: var(--forest-900); transition: background 0.5s var(--ease), color 0.5s, border-color 0.5s, transform 0.5s var(--ease); }
.step.is-reached .step-num { background: var(--green-soft); border-color: var(--green-soft); color: var(--forest-950); transform: scale(1.06); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.chips legend { width: 100%; padding: 0; margin-bottom: 6px; font-size: 0.82rem; font-weight: 700; color: var(--forest-800); }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span {
  display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(24, 34, 28, 0.14);
  background: #fff; font-size: 0.88rem; font-weight: 600; transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.chips label:hover span { border-color: var(--green); }
.chips input:checked + span { background: var(--forest-900); border-color: var(--forest-900); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }

.ticker:hover .ticker-track { animation-play-state: paused; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes breathe { 50% { transform: scale(1.08); opacity: 0.75; } }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes beat { 0%, 100% { scale: 1; } 15% { scale: 1.07; } 30% { scale: 1; } 45% { scale: 1.04; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile-feature { grid-column: span 1; }
  .tile-cta { grid-column: span 2; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .value:nth-child(3) { padding-left: 0; border-left: 0; }
  .value:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .guide-panel { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .float-status { left: -12px; }
  .float-quote { right: -12px; }
}

@media (max-width: 920px) {
  body { font-size: 1rem; }
  .nav-toggle { display: block; z-index: 2; }
  .site-nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; align-items: stretch; gap: 4px;
    padding: 100px var(--gutter) 40px;
    background: var(--cream);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav a { padding: 14px 0; border-radius: 0; font-family: var(--serif); font-size: 2rem; font-weight: 400; border-bottom: 1px solid var(--line); }
  .site-nav a.is-active:not(.nav-cta)::after { display: none; }
  .site-nav .nav-cta { margin: 24px 0 0; justify-content: center; padding: 18px; border-radius: 999px; border: 0; font-family: var(--sans); font-size: 1.05rem; font-weight: 700; }
  .brand { position: relative; z-index: 2; }
  .site-nav .text-size { order: 10; margin: 20px 0 0; height: 52px; justify-content: center; font-family: var(--sans); font-size: 1rem; }
  .site-nav .text-size-label { position: static; width: auto; height: auto; clip: auto; }

  /* Rechtsseiten haben kein Burger-Menü */
  .header-inner:not(:has(.nav-toggle)) .site-nav {
    position: static; flex-direction: row; padding: 0; background: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .header-inner:not(:has(.nav-toggle)) .site-nav a { font-family: var(--sans); font-size: 0.85rem; padding: 8px 10px; border: 0; }
  .header-inner:not(:has(.nav-toggle)) .site-nav a:not(.nav-cta) { display: none; }
  .header-inner:not(:has(.nav-toggle)) .site-nav .nav-cta { margin: 0; padding: 10px 16px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { width: min(100%, 400px); margin-top: 16px; }
  .section-head, .family-grid, .location-grid, .faq-grid, .contact-card { grid-template-columns: 1fr; }
  .section-head { gap: 20px; }
  .map { min-height: 360px; }

  .mobile-bar {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px;
    border-radius: 999px; background: rgba(18, 36, 26, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px -12px rgba(18, 36, 26, 0.5);
    transform: translateY(140%); transition: transform 0.5s var(--ease);
  }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 999px;
    color: #fff; font-weight: 700; font-size: 0.95rem; text-decoration: none;
  }
  .mobile-bar .mobile-bar-call { background: var(--cream); color: var(--forest-950); }
  .mobile-bar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
  .site-footer { padding-bottom: 110px; }
  .cookie-banner { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

@media (max-width: 640px) {
  .header-inner { height: 72px; }
  .brand img { height: 36px; }
  .hero h1 { font-size: clamp(2.7rem, 12vw, 3.6rem); }
  .hero-actions .button { width: 100%; }
  .hero-facts li { flex-basis: 100%; padding: 14px 0; border-left: 0 !important; padding-left: 0 !important; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
  .hero-facts strong { font-size: 1.1rem; }
  .float-status { left: 0; top: auto; bottom: -22px; }
  .float-quote { right: 0; top: 6%; padding: 12px 16px; }
  .float-quote p { font-size: 1.05rem; }
  .bento { grid-template-columns: 1fr; }
  .tile { padding: 26px; }
  .tile:not(.tile-feature):not(.tile-cta) .tile-icon { margin-bottom: 6px; }
  .tile-cta { grid-column: span 1; }
  .contact-card { padding: 36px 20px 20px; border-radius: var(--radius-m); }
  .contact-form { padding: 22px 18px; }
  .tile-feature { min-height: 300px; padding: 30px; }
  .tile-feature .tile-icon { top: 30px; left: 30px; }
  .tile-tag { top: 44px; right: 30px; }
  .values { grid-template-columns: 1fr; }
  .value, .value + .value { padding: 26px 0 8px; border-left: 0; }
  .value + .value { border-top: 1px solid var(--line); }
  .value-num { margin-bottom: 16px; }
  .guide-grid { padding: 28px 20px; border-radius: var(--radius-m); }
  .step { padding: 22px; gap: 18px; }
  .steps::before, .steps::after { left: 49px; top: 49px; bottom: 49px; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .faq-list details > div { padding-right: 0; }
  .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 16px; }
  .cookie-actions { flex-direction: column-reverse; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .heart-line { stroke-dashoffset: 0; }
  [data-words] .w { opacity: 1; }
  .arch { transform: none; }
  .house, .window { opacity: 1; }
}
