/* Kimmig Haus Oberkirch – Stylesheet (Aufbau übernommen von fbv.de)
   Aufbau: Schriften · Variablen · Basis · Kopf · Bausteine · Seitenbereiche · Fuß · Hilfsklassen */

/* ---------- Schriften (lokal, keine Anfragen an Google) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variablen ---------- */
:root {
  /* Grün aus dem Kimmig-Haus-Logo (#0daa38), für Text und Buttons abgedunkelt */
  --brand: #127a3a;
  --brand-700: #0e6330;
  --brand-800: #0a4a24;
  --brand-100: #d2ecdb;
  --brand-50: #edf7f0;
  --logo-green: #0daa38;
  --ink: #121a15;
  --text: #2f3a33;
  --muted: #56645b;
  --line: #e0e7e2;
  --soft: #f3f7f4;
  --white: #fff;
  --soft-green: #e1efe5;
  --line-strong: #c7d2ca;  /* Rahmen von Eingabefeldern */

  /* Hinweise und Fehler */
  --danger: #b42318;
  --danger-dark: #8f1c13;
  --danger-bg: #fdecea;
  --danger-ink: #7a1a12;
  --warn: #b37200;
  --warn-bg: #fdf0d5;
  --warn-ink: #7a4d00;
  --todo-bg: #fff1b8;
  --todo-ink: #6b4e00;

  /* Teamkalender */
  --kal-request: #e9a93a;
  --kal-request-light: #f6d189;
  --kal-holiday: #fbe6e3;
  --kal-holiday-strong: #f7dcd8;
  --kal-weekend: #f1f3f1;
  --kal-weekend-strong: #eceeec;
  --kal-select: #1f5fd1;

  --font-head: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Ecken: winzig, klein (Felder, Buttons), mittel (Fotos, Karten in Karten), Karten, große Flächen */
  --radius-xs: 6px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Schriftgrößen; --fs-body ist die Grundschrift auf dem Handy, ab 900px gilt --fs-md */
  --fs-3xs: 0.6875rem;
  --fs-2xs: 0.75rem;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-body: 1.0625rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.875rem;
  --fs-h3: clamp(1.3rem, 2.4vw, 1.6rem);
  --fs-h2-sm: clamp(1.6rem, 3vw, 2.2rem);
  --fs-h2: clamp(1.85rem, 3.6vw, 2.75rem);
  --fs-h1-page: clamp(2.3rem, 5.5vw, 3.6rem);
  --fs-h1: clamp(2.6rem, 7vw, 4.4rem);
  --fs-stat: clamp(2.6rem, 5vw, 3.5rem);
  --shadow: 0 18px 40px -22px rgba(18, 26, 21, 0.35);
  --wrap: 1160px;
  --gutter: 20px;
  --header-h: 72px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  padding-bottom: 72px; /* Platz für die mobile Schnellleiste */
}
@media (min-width: 900px) {
  body { font-size: var(--fs-md); padding-bottom: 0; }
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, .h3 {
  font-family: var(--font-head);
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h3, .h3 {
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
@media (max-width: 480px) {
  h1, h2 { hyphens: auto; overflow-wrap: break-word; }
}

a { color: var(--brand); text-underline-offset: 0.18em; }
a:hover { color: var(--brand-700); }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 640px) { :root { --gutter: 28px; } }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

/* Täusch-Zeichen in Telefonnummern und E-Mail-Adressen (siehe protect() in inc/layout.php) */
.pj { display: none !important; }

.header-phone {
  display: none;
  align-items: center;
  gap: 8px;
  font: 600 var(--fs-base) var(--font-head);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.header-phone .icon { width: 18px; height: 18px; color: var(--brand); }
.header-phone:hover { color: var(--brand); }
@media (min-width: 1100px) { .site-nav .header-phone { display: inline-flex; } }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
}
.skip-link:focus { left: 12px; }

/* ---------- Kopfbereich ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand img { width: auto; height: 46px; }

@media (max-width: 440px) {
  .brand { gap: 10px; }
  .brand img { height: 38px; }
  .menu-toggle { padding: 8px 12px; }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);
  font: 600 var(--fs-base) var(--font-head);
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }

.site-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 12px var(--gutter) 28px;
}
.nav-open .site-nav { display: block; }
.site-nav ul { list-style: none; margin: 0 0 20px; padding: 0; }
.site-nav li a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font: 700 var(--fs-xl) var(--font-head);
  color: var(--ink);
  text-decoration: none;
}
.site-nav li a[aria-current="page"] { color: var(--brand); }
.nav-phone { margin-top: 16px; color: var(--muted); }
.nav-phone a { font-weight: 700; color: var(--ink); }

@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    position: static;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: none;
    overflow: visible;
    max-height: none;
  }
  .site-nav ul { display: flex; gap: 28px; margin: 0; }
  .site-nav li a {
    padding: 6px 0;
    border: 0;
    border-bottom: 2px solid transparent;
    font-size: var(--fs-base);
    font-weight: 600;
  }
  .site-nav li a:hover { color: var(--brand); }
  .site-nav li a[aria-current="page"] { border-bottom-color: var(--brand); }
  .nav-phone { display: none; }
  .header-phone { display: none; }
}

/* ---------- Buttons & Links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.85em 1.45em;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font: 600 var(--fs-body)/1.2 var(--font-head);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-700); color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-sm { padding: 0.6em 1.1em; font-size: var(--fs-base); }
.btn:active { transform: translateY(1px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font: 600 var(--fs-body) var(--font-head);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.text-link .icon { width: 1.05em; height: 1.05em; transition: transform 0.15s; }
.text-link:hover { color: var(--brand); }
.text-link:hover .icon { transform: translateX(3px); }

.kicker {
  margin: 0 0 10px;
  font: 600 var(--fs-xs) var(--font-head);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.lead { font-size: var(--fs-md); max-width: 40em; margin-top: 14px; }
.small { font-size: var(--fs-sm); }
.muted { color: var(--muted); }
.note { font-size: var(--fs-sm); color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 24px; }

.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; gap: 0.6em; padding-block: 5px; }
.checks .icon { color: var(--brand); margin-top: 0.2em; }
.checks-inline { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 28px; }

/* ---------- Bausteine ---------- */
.section { padding-block: clamp(52px, 8vw, 104px); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.section-soft { background: var(--soft); }

.head-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}
@media (min-width: 900px) {
  .head-row { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 48px; }
}

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px 24px;
  align-items: start;
}
@media (max-width: 639px) {
  .section-head { grid-template-columns: 1fr; }
  .section-head > .tile { display: none; }
}
.tile {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--brand);
}
.tile .icon { width: 26px; height: 26px; }
@media (min-width: 640px) { .tile { width: 72px; height: 72px; border-radius: var(--radius); } }
.tile-number span {
  font: 800 var(--fs-xl) var(--font-head);
  color: var(--brand);
}
@media (min-width: 640px) { .tile-number span { font-size: var(--fs-2xl); } }
.tile .tile-badge {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 28px;
  height: 28px;
  padding: 5px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--brand-50);
  color: var(--brand);
}
.card-icon .icon { width: 22px; height: 22px; }

.cards { display: grid; gap: 20px; }
@media (min-width: 760px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px) and (max-width: 1039px) { .cards-3 .card { padding: 22px; } }
.cards .card { display: flex; flex-direction: column; }
.cards .card h3 { margin: 20px 0 8px; }
.cards .card .checks { margin: 16px 0 24px; }
.card-link { margin-top: auto; }

.cta-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 24px;
  padding: 24px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.cta-card p { margin: 0; }
.cta-card a:not(.btn) { color: var(--ink); text-decoration: none; }
.cta-card-lg {
  justify-content: space-between;
  margin-top: 0;
  padding: clamp(28px, 5vw, 48px);
  background: var(--brand);
  border-color: var(--brand);
  color: rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-lg);
}
.cta-card-lg h2 { color: var(--white); margin-bottom: 8px; font-size: var(--fs-h2-sm); }
.cta-card-lg .btn-primary { background: var(--white); color: var(--brand-800); }
.cta-card-lg .btn-primary:hover { background: var(--brand-50); }

.photo-card { position: relative; margin: 0; }
.photo-card img { width: 100%; border-radius: var(--radius-lg); }
.photo-card figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  color: var(--ink);
}

/* ---------- Startseite ---------- */
.hero { padding-block: 40px 64px; }
@media (min-width: 900px) { .hero { padding-block: 72px 96px; } }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; } }
.hero h1 { margin-top: 8px; }
.hero-lead { font-size: var(--fs-lg); max-width: 34em; margin-top: 24px; }
@media (min-width: 900px) { .hero-lead { font-size: var(--fs-xl); } }
.hero-phone { margin-top: 20px; }
.hero-phone a { font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }

.hero-media { position: relative; margin: 0 0 22px; }
.hero-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.float-card {
  position: absolute;
  left: 14px;
  bottom: -22px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  line-height: 1.3;
  color: var(--text);
}
.float-card strong { font-family: var(--font-head); color: var(--ink); }
.float-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--brand-50);
  color: var(--brand);
}
@media (min-width: 1100px) { .float-card { left: -32px; bottom: -24px; } }

.stats { border-block: 1px solid var(--line); padding-block: 40px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
@media (min-width: 900px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-num {
  margin: 0 0 6px;
  font: 800 var(--fs-stat)/1 var(--font-head);
  color: var(--brand);
  letter-spacing: -0.03em;
}
.stat p:last-child { color: var(--muted); font-size: var(--fs-base); }

.promo {
  display: grid;
  gap: 16px 32px;
  align-items: center;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.promo img { width: 120px; }
.promo h2 { margin-bottom: 4px; }
.promo p { margin: 0; color: var(--muted); }
@media (min-width: 900px) { .promo { grid-template-columns: 150px 1fr auto; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { display: grid; grid-template-columns: 42px 1fr; gap: 10px 14px; align-items: center; }
.step h3 { margin: 0; }
.step p { grid-column: 1 / -1; margin: 0; }
.step-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--brand-100);
  font: 700 var(--fs-md) var(--font-head);
  color: var(--brand);
}

.about-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.1fr 0.9fr; gap: 72px; } }
.about-grid .section-head { margin-bottom: 24px; }
.quote-card {
  margin: 28px 0;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  background: var(--soft);
}
.quote-title { font: 700 var(--fs-lg)/1.35 var(--font-head); color: var(--ink); }
.about-grid .photo-card img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center 25%; }
@media (min-width: 900px) { .about-grid .photo-card img { aspect-ratio: 757 / 1024; } }

.location-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .location-grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; } }
.contact-list { display: grid; gap: 28px; margin: 0; }
@media (min-width: 640px) and (max-width: 899px), (min-width: 1200px) { .contact-list { grid-template-columns: 1fr 1fr; } }
.contact-list dt {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 var(--fs-xs) var(--font-head);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-list dt .icon { color: var(--brand); width: 20px; height: 20px; }
.contact-list dd {
  margin: 8px 0 0 30px;
  font: 600 var(--fs-lg)/1.4 var(--font-head);
  color: var(--ink);
}
.contact-list dd a { color: var(--ink); text-decoration: none; }
.contact-list dd a:hover { color: var(--brand); }

/* ---------- Unterseiten ---------- */
.page-hero {
  padding-block: clamp(48px, 7vw, 88px) clamp(32px, 5vw, 56px);
  background: linear-gradient(180deg, var(--brand-50), var(--white));
}
.page-hero h1 { font-size: var(--fs-h1-page); }
.page-hero-small { padding-bottom: 8px; }
.page-hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .page-hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; } }

.people {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
@media (min-width: 700px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .people { grid-template-columns: repeat(3, 1fr); } }
.person {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.person-photo {
  width: 96px;
  height: 128px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-md);
  background: var(--brand-50);
}
.person-placeholder {
  display: grid;
  place-items: center;
  color: var(--brand-100);
  background: linear-gradient(180deg, var(--brand-50), var(--soft-green));
}
.person-placeholder .icon { width: 52px; height: 52px; color: var(--brand); opacity: 0.45; stroke-width: 1.5; }
.person h3 { font-size: var(--fs-lg); }

.person-contact { list-style: none; margin: 0; padding: 0; font-size: var(--fs-sm); }
.person-contact li { display: flex; gap: 8px; align-items: flex-start; padding-block: 2px; overflow-wrap: anywhere; }
.person-contact .icon { width: 16px; height: 16px; margin-top: 0.3em; color: var(--brand); }
.person-contact a { color: var(--ink); text-decoration: none; }
.person-contact a:hover { color: var(--brand); text-decoration: underline; }
.person-contact .muted .icon { color: var(--muted); }

.contact-cards { display: grid; gap: 20px; }
@media (min-width: 640px) { .contact-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .contact-cards { grid-template-columns: repeat(3, 1fr); } }
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.contact-card .card-icon { margin-bottom: 12px; }
.contact-card .kicker { margin: 0; }
a.contact-card:hover { border-color: var(--brand); transform: translateY(-2px); color: var(--text); }
.contact-value { font: 600 var(--fs-lg)/1.4 var(--font-head); color: var(--ink); overflow-wrap: anywhere; }
.contact-card .text-link { margin-top: 8px; font-size: var(--fs-base); }

/* Karte: Bild aus OpenStreetMap-Kacheln vom eigenen Server, mit Links zu OpenStreetMap und Google Maps */
/* <picture> verhält sich wie das Bild selbst; <source> darf im Raster keinen Platz belegen */
picture { display: contents; }
picture > source { display: none; }
.map-wrap { margin-top: 48px; }
.map {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--soft);
  overflow: hidden;
}
.map-image img { display: block; width: 100%; height: 380px; object-fit: cover; object-position: center; }
@media (min-width: 900px) { .map-image img { height: 440px; } }
.map-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
}
.map-bar a:not(.btn) { color: var(--muted); }
.map-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Formulare: Felder, Auswahlkarten, Hinweise */
.optional { font: 400 var(--fs-sm) var(--font-body); color: var(--muted); }
.fields { display: grid; gap: 16px; }
@media (min-width: 560px) {
  .fields { grid-template-columns: 1fr 1fr; }
  .field-full { grid-column: 1 / -1; }
}
.choices { display: grid; gap: 12px; }
.choice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--ink);
}
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.choice input { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); }
.choice-text { display: block; margin-top: 4px; font-size: var(--fs-sm); color: var(--muted); }
.choices[aria-invalid="true"] .choice { border-color: var(--danger); }
.field label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--ink); }
.field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  font: inherit;
  color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { margin: 6px 0 0; font-size: var(--fs-sm); color: var(--danger); }
.form-alert { margin-bottom: 24px; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--danger-bg); color: var(--danger-ink); }
.form-alert p { margin: 4px 0 0; }

.checks-form { margin: 8px 0 24px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; color: var(--ink); }
.check input { flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--brand); }
.checks-form .small { margin-top: 12px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Rechtstexte: Impressum, Datenschutz */
.legal-meta { margin-top: 10px; color: var(--muted); font-size: var(--fs-sm); }
.legal { display: grid; gap: 24px; }
@media (min-width: 1000px) {
  .legal { grid-template-columns: 250px minmax(0, 1fr); gap: 72px; align-items: start; }
  .legal-toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
}
.legal-toc details { padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.legal-toc summary { font: 600 var(--fs-base) var(--font-head); color: var(--ink); cursor: pointer; }
.legal-toc-title { display: none; }
@media (min-width: 1000px) {
  .legal-toc details { padding: 0; border: 0; background: none; }
  .legal-toc summary { display: none; }
  .legal-toc-title {
    display: block;
    margin: 0 0 10px;
    font: 600 var(--fs-xs) var(--font-head);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
  }
}
.legal-toc ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
@media (min-width: 1000px) { .legal-toc ol { margin: 0; } }
.legal-toc a {
  display: block;
  padding: 6px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  font-size: var(--fs-sm);
  line-height: 1.35;
  color: var(--muted);
  text-decoration: none;
}
.legal-toc a:hover { color: var(--ink); background: var(--soft); }
.legal-toc a.is-active { color: var(--brand); border-left-color: var(--brand); background: var(--brand-50); font-weight: 600; }

.legal-body { max-width: 46em; font-size: var(--fs-body); }
.legal-body h2 {
  margin: 2rem 0 0.8rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-xl);
  line-height: 1.3;
}
.legal-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-body h3 { margin: 1.5em 0 0.4em; font-size: var(--fs-body); }
.legal-body ul { padding-left: 1.3em; margin: 0 0 1em; }
.legal-body li { margin-block: 0.35em; }
.legal-body a { overflow-wrap: anywhere; }
.legal-summary { margin-bottom: 2rem; padding: 18px 22px; border-radius: var(--radius-sm); background: var(--soft-green); }
.legal-summary p { margin: 0; }
/* Platzhalter, die vor dem Livegang ausgefüllt werden müssen */
mark.todo { padding: 1px 4px; border-radius: var(--radius-xs); background: var(--todo-bg); color: var(--todo-ink); }

/* ---------- Fußbereich ---------- */
.site-footer { background: var(--soft); border-top: 1px solid var(--line); font-size: var(--fs-base); }
.footer-grid { display: grid; gap: 36px; padding-block: 56px 40px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 0.8fr; gap: 48px; } }
.footer-brand img { width: auto; height: 56px; }
.footer-logo { display: inline-block; margin-bottom: 16px; padding: 10px 14px; background: var(--white); border-radius: var(--radius-md); }
.footer-label { font-size: var(--fs-sm); color: var(--muted); }
.footer-company { font: 700 var(--fs-body) var(--font-head); color: var(--ink); margin-bottom: 8px; }
.footer-title {
  margin-bottom: 14px;
  font: 600 var(--fs-xs) var(--font-head);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { padding-block: 3px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--muted);
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 20px; }

/* Mobile Schnellleiste: Anrufen · Bewerten · E-Mail */
.quickbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px -16px rgba(18, 26, 21, 0.35);
  padding-bottom: env(safe-area-inset-bottom);
}
.quickbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 4px;
  font: 600 var(--fs-sm) var(--font-head);
  color: var(--ink);
  text-decoration: none;
}
.quickbar a + a { border-left: 1px solid var(--line); }
.quickbar a:nth-child(2) { background: var(--brand); color: var(--white); border-color: var(--brand); }
@media (min-width: 900px) { .quickbar { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .quickbar, .site-footer .footer-links { display: none; }
  body { padding: 0; }
}

/* ---------- Kimmig Haus: Ergänzungen ---------- */
.icon-xs { width: 0.85em; height: 0.85em; vertical-align: -0.05em; }
.stat-num sup { font-size: 0.45em; vertical-align: super; }

/* Kacheln „Aktuelle Angebote“ und „Selbstauskunft“ unter den Leistungen */
.link-band { display: grid; gap: 20px; margin-top: 24px; }
@media (min-width: 760px) { .link-band { grid-template-columns: 1fr 1fr; } }
.link-card {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.link-card strong { font: 700 var(--fs-md) var(--font-head); color: var(--ink); }
.link-card .card-icon { flex-shrink: 0; margin: 0; }
.link-card-arrow { margin-left: auto; color: var(--brand); }
.link-card:hover { border-color: var(--brand); transform: translateY(-2px); color: var(--text); }

/* Breites Landschaftsfoto vor dem Fuß */
.landscape img { width: 100%; height: clamp(180px, 28vw, 380px); object-fit: cover; object-position: center 60%; }

/* Hausverwaltung */

.people-subhead { margin: 48px 0 20px; }
.weg-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1000px) { .weg-grid { grid-template-columns: 1.6fr 1fr; gap: 48px; } }
.checks-cols { margin-top: 28px; }
@media (min-width: 640px) { .checks-cols { columns: 2; column-gap: 32px; } .checks-cols li { break-inside: avoid; } }
.fee-card { display: grid; gap: 12px; justify-items: start; }
@media (min-width: 1000px) { .fee-card { position: sticky; top: calc(var(--header-h) + 24px); } }
.fee-card p { margin: 0; }

/* Selbstauskunft */
.sa-form { padding: clamp(24px, 4vw, 40px); }
@media (min-width: 1000px) { .sa-form .fields { grid-template-columns: repeat(3, 1fr); } }
.sa-form fieldset { border: 0; margin: 0 0 32px; padding: 0; }
.sa-form legend { font: 700 var(--fs-lg) var(--font-head); color: var(--ink); margin-bottom: 16px; padding: 0; }
.field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  font: inherit;
  color: var(--ink);
}
.field textarea { resize: vertical; }
.field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.field-label { margin: 0 0 6px; font-weight: 600; color: var(--ink); }
.yesno { display: flex; gap: 40px; min-height: 48px; align-items: center; }
.sa-details { margin: 0 0 32px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--soft); }
.sa-details summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 16px 20px; cursor: pointer; font: 700 var(--fs-md) var(--font-head); color: var(--ink); }
.sa-details summary .icon { color: var(--brand); }
.sa-details[open] summary { border-bottom: 1px solid var(--line); }
.sa-details .fields { padding: 20px; }
.sa-submit { width: 100%; }
.form-message { max-width: 40em; margin-inline: auto; text-align: center; display: grid; justify-items: center; gap: 12px; padding: clamp(28px, 5vw, 48px); }

/* ---------- Team-Bereich (Teamkalender) ---------- */
.page-kalender .quickbar { display: none; }
.page-kalender body, body.page-kalender { padding-bottom: 0; }
.kal-section { min-height: 60vh; }
.kal-wrap { max-width: calc(1400px + 2 * var(--gutter)); }
.page-kalender .site-nav .btn, .page-kalender .header-phone { display: none; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.link { padding: 0; border: 0; background: none; font: 600 var(--fs-sm) var(--font-head); color: var(--brand); cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; }
.link:hover { color: var(--brand-700); }
.link.danger { color: var(--danger); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: var(--danger-dark); color: var(--white); }
.btn-block { width: 100%; margin-top: 12px; }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  font: 600 var(--fs-xl)/1 var(--font-head);
  color: var(--ink);
  cursor: pointer;
}
.btn-icon:hover { border-color: var(--brand); color: var(--brand); }
.btn-icon.ok { color: var(--brand); }
.btn-icon.ok:hover { background: var(--brand); color: var(--white); }
.btn-icon.no { color: var(--danger); }
.btn-icon.no:hover { background: var(--danger); border-color: var(--danger); color: var(--white); }
.pill { display: inline-block; padding: 2px 9px; border-radius: var(--radius-pill); background: var(--brand-50); font: 600 var(--fs-2xs)/1.5 var(--font-head); letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand-700); vertical-align: 0.1em; }
.pill-admin { background: var(--ink); color: var(--white); }
.pill-ok { background: var(--brand-100); color: var(--brand-800); }
.pill-warn { background: var(--warn-bg); color: var(--warn-ink); }

/* Anmelden, Ersteinrichtung, Passwort */
.auth { display: grid; place-items: center; padding-block: 24px; }
.auth-card { width: 100%; max-width: 440px; padding: clamp(28px, 5vw, 44px); background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.auth-logo { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 16px; border-radius: var(--radius-md); background: var(--brand-50); color: var(--brand); }
.auth-logo svg { width: 26px; height: 26px; }
.auth-card h1 { font-size: var(--fs-2xl); margin-bottom: 6px; }
.auth-card form { margin-top: 24px; text-align: left; display: grid; gap: 16px; }
.auth-card .field span, .add-user .field span { display: block; margin-bottom: 6px; font-weight: 600; color: var(--ink); font-size: var(--fs-sm); }
.auth-card .field input, .add-user .field input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--ink);
}
.auth-card .field input:focus, .add-user .field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.form-error { margin: 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--danger-bg); color: var(--danger-ink); font-size: var(--fs-sm); }

/* Kalender-Kopf */
.cal-user-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; padding: 12px 18px; margin-bottom: 20px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius-md); }
.user-actions { display: flex; gap: 18px; }
.cal-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; margin-bottom: 14px; }
.cal-month-nav { display: flex; align-items: center; gap: 10px; }
.cal-month-nav h2 { min-width: 9.5em; text-align: center; font-size: var(--fs-h3); }
.cal-month-nav .btn { padding: 0.5em 1.1em; font-size: var(--fs-sm); }
.cal-controls-right { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cal-controls select, .focus-select select { min-height: 40px; padding: 6px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--white); font: 600 var(--fs-sm) var(--font-head); color: var(--ink); }
.seg { display: inline-flex; padding: 3px; border: 1.5px solid var(--line); border-radius: var(--radius-pill); background: var(--white); }
.seg button { padding: 6px 14px; border: 0; border-radius: var(--radius-pill); background: none; font: 600 var(--fs-sm) var(--font-head); color: var(--muted); cursor: pointer; }
.seg button.active { background: var(--brand); color: var(--white); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: var(--fs-sm); color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 7px; }
.lg { display: inline-block; width: 16px; height: 16px; border-radius: var(--radius-xs); border: 1px solid var(--line); }
.lg.appr, .day-cell.appr, .mini-day.appr { background: var(--brand); border-color: var(--brand); }
.lg.req, .day-cell.req, .mini-day.req { background: repeating-linear-gradient(45deg, var(--kal-request) 0 4px, var(--kal-request-light) 4px 8px); border-color: var(--kal-request); }
.lg.hol { background: var(--kal-holiday-strong); }
.lg.we { background: var(--kal-weekend-strong); }
.hint { margin: 10px 0 18px; font-size: var(--fs-sm); color: var(--muted); }

/* Monatstabelle */
.cal-subtitle { margin: 28px 0 10px; font-size: var(--fs-md); }
.cal-subtitle:first-child { margin-top: 0; }
.cal-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.calendar { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-xs); user-select: none; -webkit-user-select: none; }
.calendar th, .calendar td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calendar tr > :last-child { border-right: 0; }
.calendar tbody tr:last-child > * { border-bottom: 0; }
.cal-name { position: sticky; left: 0; z-index: 2; min-width: 150px; padding: 8px 12px; background: var(--white); text-align: left; font: 600 var(--fs-sm) var(--font-head); color: var(--ink); white-space: nowrap; }
thead .cal-name { font-size: var(--fs-2xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
tr.own .cal-name { background: var(--brand-50); }
.day-col { min-width: 30px; padding: 6px 0; text-align: center; font-weight: 400; }
.day-num { display: block; font: 600 var(--fs-xs) var(--font-head); color: var(--ink); }
.day-name { display: block; font-size: var(--fs-3xs); color: var(--muted); }
.day-col.we, .day-cell.we { background: var(--kal-weekend); }
.day-col.hol, .day-cell.hol { background: var(--kal-holiday); }
.day-col.today .day-num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: var(--white); }
.day-cell { height: 36px; padding: 0; }
.day-cell.today { box-shadow: inset 2px 0 0 var(--brand), inset -2px 0 0 var(--brand); }
.edit { cursor: pointer; touch-action: none; }
.day-cell.edit:hover { background-color: var(--brand-50); }
.day-cell.appr.edit:hover { background-color: var(--brand-700); }
.day-cell.sel, .mini-day.sel { box-shadow: inset 0 0 0 3px var(--kal-select); }

/* Jahresansicht */
.focus-select { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; font-weight: 600; color: var(--ink); }
.cal-year-wrap { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.mini { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); user-select: none; -webkit-user-select: none; }
.mini h4 { margin: 0 0 8px; font: 700 var(--fs-base) var(--font-head); color: var(--ink); }
.mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.mini-head { font-size: var(--fs-3xs); text-align: center; color: var(--muted); }
.mini-day { display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--radius-xs); font-size: var(--fs-xs); color: var(--ink); }
.mini-day.we { background: var(--kal-weekend); color: var(--muted); }
.mini-day.hol { background: var(--kal-holiday); }
.mini-day.appr { color: var(--white); }
.mini-day.today { outline: 2px solid var(--brand); outline-offset: -2px; font-weight: 700; }
.mini-day.edit:hover { background-color: var(--brand-50); }

/* Aktionsleiste unten */
.actionbar { position: sticky; bottom: 12px; z-index: 30; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; margin-top: 16px; padding: 14px 18px; background: var(--white); border: 1.5px solid var(--brand); border-radius: var(--radius-md); box-shadow: var(--shadow); }
.actionbar[hidden] { display: none; }
.cal-actionbar-info { color: var(--ink); }
.cal-actionbar-info .small { display: block; margin-top: 2px; }
.cal-action-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cal-action-group .btn { padding: 0.6em 1.1em; font-size: var(--fs-sm); }
.note-input { min-height: 42px; min-width: 200px; padding: 8px 12px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); font: inherit; font-size: var(--fs-sm); }

/* Panels unter dem Kalender */
.panel { margin-top: 32px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.panel h2 { font-size: var(--fs-h3); margin-bottom: 18px; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.panel-head h2 { margin: 0; }
.count { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding-inline: 8px; margin-left: 6px; border-radius: var(--radius-pill); background: var(--brand); color: var(--white); font-size: var(--fs-sm); vertical-align: 0.15em; }
.req-list { list-style: none; margin: 0; padding: 0; }
.req-item { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; padding: 14px 0; border-top: 1px solid var(--line); }
.req-item:first-child { border-top: 0; padding-top: 0; }
.req-info { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.req-info strong { font-family: var(--font-head); color: var(--ink); }
.req-info em { color: var(--muted); }
.req-item.past { opacity: 0.75; }
.req-actions { display: flex; align-items: center; gap: 10px; }
.kal-stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.stat-card { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--soft); }
.stat-card h3 { font-size: var(--fs-base); margin-bottom: 10px; }
.stat-card dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 10px 6px; margin: 0; text-align: center; }
.stat-card dt { font-size: var(--fs-3xs); letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap; color: var(--muted); }
.stat-card dd { margin: 2px 0 0; font: 700 var(--fs-xl) var(--font-head); color: var(--ink); }
.c-appr { color: var(--brand) !important; }
.c-req { color: var(--warn) !important; }
.c-neg { color: var(--danger) !important; }

/* Team-Verwaltung */
.add-user { display: grid; gap: 14px; margin-bottom: 20px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--soft); }
@media (min-width: 900px) { .add-user { grid-template-columns: 1.3fr 1fr 150px auto; align-items: end; } }
.add-user[hidden] { display: none; }
.add-user .check { min-height: 46px; align-items: center; }
.add-user-actions { display: flex; gap: 8px; grid-column: 1 / -1; }
.secret { margin-bottom: 20px; padding: 16px 18px; border: 1.5px solid var(--brand); border-radius: var(--radius-md); background: var(--brand-50); }
.secret p { margin: 0 0 8px; }
.secret code { padding: 2px 8px; border-radius: var(--radius-xs); background: var(--white); font-size: var(--fs-base); }
.secret .pw { font-weight: 700; letter-spacing: 0.05em; }
.table-scroll { overflow-x: auto; }
.team-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.team-table th { padding: 8px 10px; text-align: left; font: 600 var(--fs-2xs) var(--font-head); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom: 1.5px solid var(--line); }
.team-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.team-table tbody tr:last-child td { border-bottom: 0; }
.team-table code { font-size: var(--fs-sm); }
.ent-input { width: 80px; min-height: 38px; padding: 6px 10px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); font: inherit; }
.team-actions { display: flex; flex-wrap: wrap; gap: 6px 16px; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; max-width: calc(100% - 32px); padding: 12px 20px; border-radius: var(--radius-sm); background: var(--ink); color: var(--white); font-weight: 600; box-shadow: var(--shadow); transform: translate(-50%, 140%); transition: transform 0.25s; }
.toast.show { transform: translate(-50%, 0); }
.toast.error { background: var(--danger); }

@media (max-width: 640px) {
  .cal-month-nav h2 { min-width: 0; flex: 1; }
  .cal-name { min-width: 112px; font-size: var(--fs-xs); }
  .actionbar { bottom: 8px; }
  .note-input { min-width: 0; width: 100%; }
}
.site-nav li a { white-space: nowrap; }
@media (min-width: 900px) { .brand img { height: 52px; } }
@media (min-width: 900px) and (max-width: 1099px) { .site-nav, .site-nav ul { gap: 22px; } }

/* Lesbarkeit auf der grünen Aktionsfläche */
.cta-card-lg .kicker { color: rgba(255, 255, 255, 0.85); }
.cta-card-lg .btn-outline { border-color: var(--white); color: var(--white); }
.cta-card-lg .btn-outline:hover { background: var(--white); color: var(--brand-800); }

/* Zitatkasten: weiß auf grauem Grund, grüner Balken gerade statt in der runden Ecke */
.quote-card { position: relative; border-left: 1px solid var(--line); background: var(--white); padding-left: 36px; }
.quote-card::before { content: ""; position: absolute; left: 16px; top: 24px; bottom: 24px; width: 4px; border-radius: var(--radius-xs); background: var(--brand); }
.btn-row:has(> .text-link:first-child) { gap: 12px 32px; }

/* Teamkarten: großes Foto oben, Angaben darunter (wenige Personen pro Gruppe) */
@media (min-width: 560px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .people { grid-template-columns: repeat(3, 1fr); } }
.person { grid-template-columns: 1fr; gap: 0; padding: 0; overflow: hidden; }
.person-photo { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 0; object-position: center 20%; }
.person-placeholder .icon { width: 72px; height: 72px; }
.person-body { padding: 20px 22px 24px; }
.person h3 { font-size: var(--fs-xl); }

/* Abstand zwischen Abschnittskopf und Karten, wenn keine .head-row drumherum ist */
.section-head + .cards { margin-top: 40px; }

/* Teamfotos höchstens 200px breit, Karten entsprechend schmaler */
.people { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.person { padding: 20px 20px 0; }
.person-photo { width: 100%; max-width: 200px; border-radius: var(--radius-md); }
.person-body { padding: 18px 0 22px; }

/* Gebührenkarte (Hausverwaltung): feste Breite statt Restspalte */
@media (min-width: 1000px) { .weg-grid { grid-template-columns: minmax(0, 1fr) 340px; } }
.fee-card .btn { width: 100%; white-space: nowrap; }
/* Telefonnummern nie mitten in der Nummer umbrechen */
a[href^="tel:"] { white-space: nowrap; }

/* Ja/Nein-Auswahl: Kreis und Text auf einer Linie */
.yesno .check { display: inline-flex; align-items: center; gap: 16px; margin: 0; }
.yesno .check input { width: 22px; height: 22px; min-height: 0; margin: 0; padding: 0; }
.yesno .check span { line-height: 1.2; }

/* Einwilligungs-Häkchen: etwas mehr Luft zum Text */
.checks-form .check { gap: 16px; }

/* Teamkarten im Visitenkarten-Stil: Foto links, Angaben rechts */
.people { grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 900px) { .people { grid-template-columns: repeat(2, 1fr); } }
.person {
  grid-template-columns: 140px 1fr;
  align-items: start;
  gap: 24px;
  padding: 24px;
}
@media (min-width: 640px) { .person { grid-template-columns: 170px 1fr; } }
.person-photo { width: 100%; max-width: 200px; aspect-ratio: 3 / 4; border-radius: var(--radius-md); }
.person-body { padding: 4px 0 0; min-width: 0; }
.person h3 { font-size: var(--fs-xl); margin-bottom: 4px; }
.person-title { margin: 0; font: 600 var(--fs-base)/1.35 var(--font-head); color: var(--brand); }
.person-quali { margin: 6px 0 0; font-size: var(--fs-sm); line-height: 1.45; color: var(--muted); }
.person-contact { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: var(--fs-base); }
.person-contact li { align-items: center; gap: 10px; padding-block: 4px; overflow-wrap: normal; }
.person-contact .icon { width: 18px; height: 18px; margin-top: 0; }
.person-contact a { overflow-wrap: anywhere; }
@media (max-width: 479px) {
  .person { grid-template-columns: 1fr; }
  .person-photo { max-width: 180px; }
}

/* Selbstauskunft: Hinweis auf die PDF-Fassung */
.paper-note { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; padding: 16px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); }
.paper-note p { margin: 0; flex: 1 1 260px; font-size: var(--fs-base); }
.paper-note .btn { flex-shrink: 0; }

/* Startseite: Ortsangabe ist die H1 (klein), der Slogan sieht aus wie eine H1 */
.hero h1.kicker { margin: 0 0 10px; }
.hero-title {
  margin: 8px 0 0;
  font-family: var(--font-head);
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}
@media (max-width: 480px) { .hero-title { hyphens: auto; overflow-wrap: break-word; } }

/* Immobilienbewertung */
.bw-grid { display: grid; gap: 24px; align-items: start; }
.bw-aside { display: grid; gap: 20px; }
@media (min-width: 1000px) {
  .bw-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
  .bw-form .fields { grid-template-columns: 1fr 1fr; }
  .bw-aside { position: sticky; top: calc(var(--header-h) + 24px); }
}
.fieldset-note { margin: -8px 0 16px; font-size: var(--fs-sm); color: var(--muted); }
.bw-card { display: grid; gap: 14px; justify-items: start; }
.bw-card p { margin: 0; }
.bw-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: bw; }
.bw-steps li { position: relative; padding-left: 44px; color: var(--muted); counter-increment: bw; }
.bw-steps li::before {
  content: counter(bw);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-800);
  font: 700 var(--fs-sm) var(--font-head);
}
.bw-steps strong { display: block; color: var(--ink); }
.form-message .btn-row { justify-content: center; }

/* Formulare als Assistent (die Schritte blendet wizard.js ein und aus) */
.wz-form [hidden] { display: none !important; }
.wz-form fieldset.wz-step > legend { font-size: var(--fs-h3); }
.bw-form .choices { grid-template-columns: 1fr; }
@media (min-width: 560px) { .bw-form .choices { grid-template-columns: 1fr 1fr; } }
.bw-form .choice strong { display: block; font-weight: 600; }
.wz-progress { margin-bottom: 24px; }
.wz-count { margin: 0 0 8px; font: 600 var(--fs-xs) var(--font-head); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.wz-bar { height: 6px; border-radius: var(--radius-pill); background: var(--brand-50); overflow: hidden; }
.wz-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--brand); transition: width 0.3s ease; }
.wz-nav { display: flex; gap: 12px; margin-top: 28px; }
.wz-nav [data-next] { margin-left: auto; }
.wz-final > .wz-nav { margin: 0 0 20px; }
.wz-error { margin-top: 16px; }
.wz-range { width: 100%; margin-top: 14px; accent-color: var(--brand); }
.wz-final-title { margin-bottom: 8px; }
.pc-result { margin-bottom: 32px; padding: clamp(20px, 3vw, 28px); border: 1px solid var(--brand-100); border-radius: var(--radius-md); background: var(--brand-50); }
.pc-range { margin: 4px 0; font: 800 var(--fs-h2-sm)/1.1 var(--font-head); letter-spacing: -0.02em; color: var(--ink); }
.pc-sqm { margin: 0 0 12px; color: var(--muted); }
.pc-text { margin: 4px 0 12px; color: var(--ink); }
.pc-note { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.pc-details { margin-top: 12px; font-size: var(--fs-sm); color: var(--muted); }
.pc-details summary { cursor: pointer; font-weight: 600; color: var(--brand-800); }
.pc-details p { margin: 8px 0 0; }
.bw-privacy { display: flex; gap: 8px; align-items: center; font-size: var(--fs-sm); color: var(--muted); }
.field .choice input { width: 20px; height: 20px; min-height: 0; padding: 0; border: 0; border-radius: 50%; box-shadow: none; }
.field .choice { display: flex; margin: 0; font-weight: 400; }
.wz-form [tabindex="-1"]:focus { outline: none; }

/* Verkauf und Verwaltung: Hinweiskarte mit Text und Liste bzw. Buttons */
.duo-card { display: grid; gap: 20px 40px; align-items: center; padding: clamp(24px, 4vw, 40px); }
.duo-card h2 { margin-bottom: 8px; }
.duo-card p { margin: 0 0 12px; }
.duo-card .checks li { padding-block: 8px; }
@media (min-width: 900px) { .duo-card { grid-template-columns: 1fr 1fr; } .duo-card-cta { grid-template-columns: 1fr auto; } }
