/* Clever Homes Hausverwaltung — Design-System
   Signatur: der offene weinrote Rahmen aus dem Logo.
   Schriften lokal gehostet (keine Verbindung zu Google). */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-italic.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Farben */
  --wine: #991242;
  --wine-deep: #5c0b2a;
  --wine-tint: #f6ecef;
  --ink: #1e2427;
  --slate: #5a6368;
  --mist: #f2f3f3;
  --line: #dcdfe0;
  --white: #ffffff;

  /* Schrift */
  --font-ui: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-text: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* Maße */
  --wrap: 76rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --radius-s: 4px;
  --radius-m: 10px;
  --header-h: 5rem;
  --frame-offset: clamp(12px, 2vw, 22px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.125rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wine); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--wine-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--wine); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--wine); color: var(--white); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--white); padding: .6rem 1rem; font-family: var(--font-ui);
}
.skip-link:focus { top: 1rem; color: var(--white); }

/* ---------- Typografie ---------- */
h1, h2, h3, h4, .display {
  font-family: var(--font-ui);
  color: var(--ink);
  margin: 0 0 .5em;
  text-wrap: balance;
  hyphens: manual;
}
h1, .display {
  font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5rem);
  font-weight: 720;
  font-stretch: 72%;
  line-height: 1.0;
  letter-spacing: -0.012em;
}
h2 {
  font-size: clamp(2rem, 1.35rem + 2.3vw, 3.1rem);
  font-weight: 680;
  font-stretch: 75%;
  line-height: 1.05;
  letter-spacing: -0.008em;
}
h3 {
  font-size: clamp(1.35rem, 1.15rem + .7vw, 1.65rem);
  font-weight: 640;
  font-stretch: 85%;
  line-height: 1.2;
}
h4 { font-size: 1.15rem; font-weight: 650; font-stretch: 90%; line-height: 1.3; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
.lead { font-size: clamp(1.2rem, 1.1rem + .45vw, 1.4rem); line-height: 1.55; color: var(--ink); }
.muted { color: var(--slate); }
.small { font-size: .95rem; }
strong { font-weight: 650; }

.prose { max-width: 42rem; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--wine); }
.prose blockquote { margin: 1.5em 0; padding: .2em 0 .2em 1.3em; border-left: 3px solid var(--wine); color: var(--slate); font-style: italic; }
.prose table { border-collapse: collapse; width: 100%; font-size: 1rem; margin: 0 0 1.4em; }
.prose th, .prose td { text-align: left; border-bottom: 1px solid var(--line); padding: .6em .8em .6em 0; vertical-align: top; }
.prose th { font-family: var(--font-ui); font-weight: 600; }
/* Tabellen scrollen mobil in ihrem eigenen Container statt die Seite zu verbreitern (Wrapper aus tools/build.mjs) */
.prose .table-scroll { overflow-x: auto; margin: 0 0 1.4em; }
.prose .table-scroll table { margin: 0; }
.table-scroll:focus-visible { outline: 3px solid var(--wine); outline-offset: 2px; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--mist { background: var(--mist); }
.section--tint { background: var(--wine-tint); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head p { color: var(--slate); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
.split--media-left > :first-child { order: 2; }
@media (max-width: 860px) {
  .split, .split--even { grid-template-columns: minmax(0, 1fr); }
  .split--media-left > :first-child { order: 0; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-open { background: var(--white); backdrop-filter: none; box-shadow: 0 12px 24px -12px rgba(30, 36, 39, .25); }
.site-header .wrap {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: var(--header-h);
}
.brand { display: block; flex: 0 0 auto; line-height: 0; }
.brand img { width: clamp(150px, 16vw, 190px); height: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(.9rem, 1.6vw, 1.6rem); }
.nav a {
  font-family: var(--font-ui); font-size: .98rem; font-weight: 520; font-stretch: 92%;
  color: var(--ink); text-decoration: none; padding: .4rem 0; position: relative;
}
.nav a:hover { color: var(--wine); }
.nav a[aria-current="page"] { color: var(--wine); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--wine);
}
.header-actions { display: flex; align-items: center; gap: .9rem; }
.header-actions .link-portal {
  font-family: var(--font-ui); font-size: .95rem; font-weight: 520; font-stretch: 92%;
  color: var(--slate); text-decoration: none; white-space: nowrap;
}
.header-actions .link-portal:hover { color: var(--wine); }
.nav-toggle {
  display: none; margin-left: auto;
  font-family: var(--font-ui); font-weight: 600; font-size: .95rem;
  background: none; border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: .55rem .85rem; color: var(--ink); cursor: pointer;
}
.nav-toggle .bars { display: inline-block; width: 18px; height: 12px; margin-right: .5rem; vertical-align: -1px;
  background: linear-gradient(var(--ink) 0 0) 0 0 / 100% 2px no-repeat,
              linear-gradient(var(--ink) 0 0) 0 50% / 100% 2px no-repeat,
              linear-gradient(var(--ink) 0 0) 0 100% / 100% 2px no-repeat; }
/* offenes Menü: X statt drei Striche */
.is-open .nav-toggle .bars { background:
  linear-gradient(45deg, transparent calc(50% - 1px), var(--ink) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) center / 13px 13px no-repeat,
  linear-gradient(-45deg, transparent calc(50% - 1px), var(--ink) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) center / 13px 13px no-repeat; }
@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav, .header-actions { display: none; }
  .site-header.is-open .nav, .site-header.is-open .header-actions { display: block; }
  .site-header.is-open .wrap { flex-wrap: wrap; padding-bottom: 1.25rem; }
  .site-header.is-open .nav { order: 3; flex-basis: 100%; margin: 0; }
  .site-header.is-open .nav ul { flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
  .site-header.is-open .nav li { border-bottom: 1px solid var(--line); }
  .site-header.is-open .nav a { display: block; padding: .9rem 0; font-size: 1.1rem; }
  .site-header.is-open .nav a[aria-current="page"]::after { display: none; }
  .site-header.is-open .header-actions { order: 4; flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 1rem; padding-top: 1rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-ui); font-size: 1rem; font-weight: 600; font-stretch: 95%; letter-spacing: .005em;
  min-height: 3rem; padding: .7rem 1.35rem;
  border-radius: var(--radius-s); border: 2px solid var(--wine);
  background: var(--wine); color: var(--white); text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  cursor: pointer;
}
.btn:hover { background: var(--wine-deep); border-color: var(--wine-deep); color: var(--white); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--wine); }
.btn--ghost:hover { background: var(--wine); color: var(--white); }
.blog-more { display: flex; margin: 2.2rem auto 0; }
.blog-more[hidden] { display: none; }
.link-list { list-style: none; padding: 0; margin-bottom: 0; display: grid; gap: .6rem; }
.btn--light { background: var(--white); border-color: var(--white); color: var(--wine-deep); }
.btn--light:hover { background: var(--wine-tint); border-color: var(--wine-tint); color: var(--wine-deep); }
.btn--small { min-height: 2.5rem; padding: .45rem 1rem; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.text-link {
  font-family: var(--font-ui); font-weight: 600; font-stretch: 95%; font-size: 1rem;
  color: var(--wine); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em;
}

/* ---------- Signatur: offener Rahmen ---------- */
/* Wie im Logo: Rahmen umschließt das Motiv mit Abstand, unten rechts offen */
.framed { position: relative; isolation: isolate; margin: var(--frame-offset); }
.framed > img, .framed > picture img { position: relative; z-index: 1; width: 100%; border-radius: 2px; }
.framed .frame {
  position: absolute; z-index: 0; pointer-events: none;
  inset: calc(-1 * var(--frame-offset));
  width: calc(100% + 2 * var(--frame-offset)); height: calc(100% + 2 * var(--frame-offset));
  overflow: visible;
}
.framed .frame path { fill: none; stroke: var(--wine); stroke-width: 4; vector-effect: non-scaling-stroke; stroke-linecap: square; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3rem, 7vw, 6rem); }
.hero .split { grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); align-items: center; }
.hero h1 { margin-bottom: .45em; font-size: clamp(2.6rem, 1.3rem + 4.2vw, 4.6rem); }
.hero .framed img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 78% center; }
@media (max-width: 860px) { .hero .framed img { aspect-ratio: 4 / 3; } }
.hero .lead { max-width: 34rem; color: var(--slate); }
.hero-vdiv {
  display: inline-flex; align-items: center; gap: .75rem; margin-top: 1.75rem;
  font-family: var(--font-ui); font-size: .98rem; font-weight: 550; font-stretch: 92%;
  color: var(--ink); text-decoration: none;
}
.hero-vdiv img { width: 74px; height: auto; }
.hero-vdiv:hover { color: var(--wine); }
@media (max-width: 860px) { .hero .split { grid-template-columns: 1fr; } }

.page-hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem); }
.page-hero h1 { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.2rem); max-width: 18ch; }
.page-hero .lead { max-width: 40rem; color: var(--slate); }
.page-hero--media .split { align-items: end; }

/* ---------- Faktenleiste ---------- */
.facts {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.facts li { padding: 1.5rem 1.5rem 1.5rem 0; font-family: var(--font-ui); font-stretch: 92%; font-size: 1rem; line-height: 1.4; color: var(--slate); }
.facts li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.facts strong { display: block; font-size: 1.25rem; font-weight: 680; font-stretch: 80%; color: var(--ink); margin-bottom: .2rem; }
.facts a { color: inherit; text-decoration: none; }
.facts a:hover strong { color: var(--wine); }
@media (max-width: 900px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr; }
  .facts li, .facts li + li { padding: 1.1rem 0; border-left: 0; }
  .facts li + li { border-top: 1px solid var(--line); }
}

/* ---------- Leistungen (Startseite) ---------- */
.services { display: grid; gap: clamp(3rem, 7vw, 5.5rem); }
.service { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(1.75rem, 5vw, 4.5rem); align-items: center; }
.service:nth-child(even) .service-media { order: 2; }
.service-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.service h3 { font-size: clamp(1.7rem, 1.3rem + 1.3vw, 2.3rem); font-stretch: 78%; font-weight: 680; }
@media (max-width: 860px) {
  .service { grid-template-columns: 1fr; }
  .service:nth-child(even) .service-media { order: 0; }
}

/* ---------- Werte ---------- */
.values { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 6vw, 6rem); }
.values-head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
.value + .value { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.value-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; margin-bottom: 1.6rem; }
.value h3 { font-size: clamp(1.6rem, 1.25rem + 1vw, 2.1rem); font-stretch: 78%; font-weight: 680; }
@media (max-width: 860px) {
  .values { grid-template-columns: 1fr; }
  .values-head { position: static; }
}
/* Startseite: Werte als ruhiges Raster statt zweiter Scroll-Inszenierung */
.values--grid { grid-template-columns: 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); }
.values--grid .values-head { position: static; }
.values--grid .values-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.values--grid .value + .value { margin-top: 0; padding-top: 0; border-top: 0; }
.values--grid .value-media img { aspect-ratio: 4 / 3; margin-bottom: 1.1rem; }
.values--grid .value h3 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem); }
@media (max-width: 860px) {
  .values--grid .values-list { grid-template-columns: 1fr; gap: 2.5rem; }
  .values--grid .value-media img { aspect-ratio: 21 / 9; }
}
.eyebrow { font-family: var(--font-ui); font-size: 1rem; font-weight: 600; font-stretch: 92%; color: var(--wine); margin: 0 0 .75rem; }

/* ---------- Aufklapper ---------- */
details.more { margin-top: .4rem; }
details.more > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-ui); font-weight: 600; font-stretch: 95%; font-size: 1rem; color: var(--wine);
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after {
  content: ""; width: .55rem; height: .55rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .2s ease;
}
details.more[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
details.more[open] > summary .when-closed { display: none; }
details.more:not([open]) > summary .when-open { display: none; }
details.more > div { padding-top: 1rem; }

/* ---------- FAQ / Akkordeon ---------- */
.faq-group + .faq-group { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.faq-group h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin-bottom: 1rem; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; align-items: baseline;
  padding: 1.25rem 0; font-family: var(--font-ui); font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem); font-weight: 620; font-stretch: 88%; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.6rem; line-height: 1; color: var(--wine); flex: 0 0 auto; }
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--wine); }
.faq .answer { padding: 0 0 1.6rem; max-width: 44rem; }

/* ---------- Team ---------- */
.team-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center 20%; border-radius: 2px; background: var(--mist); }
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); }
.person-photo { background: linear-gradient(180deg, var(--mist) 0%, #e7e9ea 100%); border-radius: 2px; overflow: hidden; margin-bottom: 1.5rem; }
.person-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
.person h3 { margin-bottom: .15em; }
.person .role { font-family: var(--font-ui); font-stretch: 92%; color: var(--wine); font-weight: 600; margin-bottom: 1rem; }
.badges { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.badges li { font-family: var(--font-ui); font-size: .92rem; font-weight: 560; font-stretch: 92%; color: var(--ink); background: var(--mist); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .75rem; }
@media (max-width: 760px) { .people { grid-template-columns: 1fr; } }

/* ---------- Bewertungen ---------- */
.rating-summary { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; font-family: var(--font-ui); }
.rating-summary .score { font-size: clamp(3rem, 2rem + 3vw, 4.5rem); font-weight: 720; font-stretch: 72%; line-height: 1; color: var(--ink); }
.stars { color: var(--wine); letter-spacing: .12em; font-size: 1.15rem; }
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: clamp(2rem, 4vw, 3rem); }
.review { margin: 0; padding-top: 1.4rem; border-top: 2px solid var(--wine); }
.review blockquote { margin: .6rem 0 1rem; font-size: 1.08rem; line-height: 1.6; }
.review figcaption { font-family: var(--font-ui); font-stretch: 92%; font-size: .95rem; color: var(--slate); }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }

/* ---------- Logos ---------- */
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem clamp(1.5rem, 3vw, 3rem); align-items: center; }
.logos li { display: flex; align-items: center; justify-content: center; min-height: 64px; }
.logos img { max-height: 40px; width: auto; filter: grayscale(1) contrast(1.05); opacity: .72; transition: filter .2s ease, opacity .2s ease; }
.logos li:hover img { filter: none; opacity: 1; }
@media (max-width: 900px) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- CTA-Band & Kontakt ---------- */
.cta-band { background: var(--wine-deep); color: var(--white); }
.cta-band h2, .cta-band h3 { color: var(--white); }
.cta-band .lead, .cta-band p { color: rgba(255, 255, 255, .92); }
.cta-band a:not(.btn) { color: var(--white); }
.cta-band .muted { color: rgba(255, 255, 255, .78); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; font-family: var(--font-ui); font-stretch: 94%; font-size: 1.1rem; }
.contact-list span { display: block; font-size: .9rem; opacity: .75; margin-bottom: .1rem; }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }

/* ---------- Karten (Blog, Portal-Links) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; margin-bottom: 1.1rem; }
.card h3 { font-size: 1.35rem; margin-bottom: .4rem; transition: color .15s ease; }
.card:hover h3 { color: var(--wine); }
.card .meta { font-family: var(--font-ui); font-stretch: 92%; font-size: .9rem; color: var(--slate); margin-bottom: .5rem; }
.card p { color: var(--slate); font-size: 1rem; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cards, .cards--2 { grid-template-columns: 1fr; } }

.link-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.link-tiles li { background: var(--white); }
.link-tiles a { display: block; height: 100%; padding: 1.6rem 1.6rem 1.8rem; color: var(--ink); text-decoration: none; }
.link-tiles a:hover { background: var(--wine-tint); }
.link-tiles strong { display: block; line-height: 1.25; font-family: var(--font-ui); font-size: 1.3rem; font-weight: 650; font-stretch: 85%; margin-bottom: .35rem; color: var(--ink); }
.link-tiles span { color: var(--slate); font-size: 1rem; }
.link-tiles a:hover strong { color: var(--wine); }
@media (max-width: 620px) { .link-tiles { grid-template-columns: 1fr; } }

/* ---------- Formular ---------- */
.form { display: grid; gap: 1.2rem; }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.field label, .field legend { display: block; font-family: var(--font-ui); font-weight: 600; font-stretch: 94%; font-size: .98rem; margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink);
  padding: .75rem .9rem; border: 1px solid #7d858a; border-radius: var(--radius-s); background: var(--white);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--wine); outline-offset: 1px; border-color: var(--wine); }
.field .hint { font-size: .9rem; color: var(--slate); margin-top: .3rem; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: 1rem; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .3rem; accent-color: var(--wine); }
@media (max-width: 620px) { .form .row { grid-template-columns: 1fr; } }

/* ---------- Downloads ---------- */
.downloads { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.downloads li { border-bottom: 1px solid var(--line); }
.downloads a { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; text-decoration: none; color: var(--ink); font-family: var(--font-ui); font-weight: 580; font-stretch: 92%; font-size: 1.1rem; }
.downloads a span { color: var(--slate); font-weight: 500; font-size: .95rem; white-space: nowrap; }
.downloads a:hover { color: var(--wine); }

/* ---------- Blogartikel ---------- */
.article-hero img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 2px; }
.article-meta { font-family: var(--font-ui); font-stretch: 92%; color: var(--slate); font-size: .98rem; margin-bottom: 1.2rem; }
.article { padding-top: clamp(2.5rem, 5vw, 4rem); }

/* ---------- Footer ---------- */
.site-footer { background: var(--mist); padding-block: clamp(3.5rem, 7vw, 5rem) 2rem; font-family: var(--font-ui); font-stretch: 94%; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 3.2fr) minmax(0, 3fr) minmax(0, 2.2fr) minmax(0, 2.4fr); gap: clamp(2rem, 4vw, 3.5rem); }
.site-footer h2 { font-size: 1.05rem; font-stretch: 92%; font-weight: 680; margin-bottom: .9rem; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--wine); text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.6; color: var(--ink); }
.footer-brand img { width: 170px; margin-bottom: 1.2rem; }
.footer-vdiv { display: inline-block; margin-top: 1.3rem; }
.footer-vdiv img { width: 96px; }
.footer-bottom { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.4rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; color: var(--slate); font-size: .92rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Hilfsklassen ---------- */
.stack > * + * { margin-top: 1rem; }
.mt-0 { margin-top: 0; }
.mt-l { margin-top: clamp(2rem, 4vw, 3rem); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.note { font-size: .92rem; color: var(--slate); }
/* KI-Kennzeichnung an Teamfotos (Art. 50 Abs. 4 KI-VO) */
.photo-figure { margin: 0; }
.photo-note { margin: .6rem 0 0; font-size: .85rem; }
.framed + .photo-note { margin-top: calc(.6rem + var(--frame-offset, 0px)); }
.legal h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.legal h3 { font-size: 1.25rem; }
.legal { font-size: 1.05rem; }

/* ---------- Feinschliff aus der Seiten-Kritik ---------- */
.nowrap { white-space: nowrap; }
.req { color: var(--wine); }
.header-actions .link-portal[aria-current="page"] { color: var(--wine); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .45em; }
/* Zeilenlänge ≤ ~72 Zeichen */
.prose { max-width: 38rem; }
.legal .prose { max-width: 40rem; }
.faq .answer { max-width: 38rem; }
/* lange deutsche Komposita */
.prose, .faq .answer, .card p, .person p { hyphens: auto; overflow-wrap: break-word; }
h1, h2, h3, h4 { overflow-wrap: break-word; }
.legal { overflow-wrap: anywhere; }
.prose figure { margin: 1.5em 0; }
@media (max-width: 860px) {
  .split--label { row-gap: .75rem; }
  .faq-group.split { row-gap: 0; }
}
@media (max-width: 520px) {
  .downloads a { flex-direction: column; gap: .2rem; }
  .downloads a span { white-space: normal; }
}
/* Blogartikel: ruhigere Überschriften-Hierarchie */
.article h1 { font-size: clamp(2.2rem, 1.3rem + 3vw, 3.6rem); }
.article .prose h2 { font-size: clamp(1.45rem, 1.2rem + .9vw, 1.9rem); font-stretch: 82%; margin-top: 1.9em; }
.article .prose h3 { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.4rem); margin-top: 1.6em; }
.article-meta a { color: inherit; }
.card .meta, .article-meta { display: flex; flex-wrap: wrap; gap: .25rem .9rem; }
.card .meta time, .article-meta time { color: var(--slate); }

/* ---------- Header: Mobilmenü, ohne JavaScript ---------- */
.nav-toggle { min-height: 44px; }
@media (max-width: 1120px) {
  .site-header .wrap { gap: .6rem; }
  .site-header.is-open .nav, .site-header.is-open .header-actions { margin-top: .4rem; }
  .brand { min-height: var(--header-h); display: flex; align-items: center; }
  .site-header.is-open .wrap { padding-bottom: 1rem; max-height: 100svh; overflow-y: auto; overscroll-behavior: contain; }
  .site-header.is-open .header-actions { flex-direction: column; align-items: stretch; }
  .site-header.is-open .header-actions a { min-height: 44px; display: flex; align-items: center; }
  .site-header.is-open .header-actions .btn { justify-content: center; }
  /* ohne JavaScript: Navigation offen zeigen */
  .no-js .nav-toggle { display: none; }
  .no-js .site-header .wrap { flex-wrap: wrap; }
  .no-js .nav, .no-js .header-actions { display: block; flex-basis: 100%; margin: 0 0 1rem; }
  .no-js .nav ul { flex-wrap: wrap; gap: .4rem 1.2rem; }
  .no-js .site-header { position: static; }
}
.site-footer a { display: inline-block; padding-block: .15rem; }
.cta-band :focus-visible { outline-color: var(--white); }

/* ---------- Typografie-Feinheiten ---------- */
p, li { text-wrap: pretty; }
.service p, .value > p { max-width: 38rem; }

/* ---------- Startseite: Anliegen-Kacheln ---------- */
.link-tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.link-tiles a { position: relative; transition: background-color .2s ease; }
.link-tiles a > span { display: block; }
.link-tiles a .tile-go { display: flex; align-items: center; margin-top: 1rem; font-family: var(--font-ui); font-weight: 600; font-stretch: 95%; font-size: .95rem; color: var(--wine); }
.link-tiles a .tile-go::after { content: ""; width: .42em; height: .42em; margin: 0 0 0 .45em; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; }
.link-tiles a:hover .tile-go::after { transform: translateX(3px) rotate(45deg); }
@media (max-width: 1000px) { .link-tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .link-tiles--4 { grid-template-columns: 1fr; } }

/* ---------- Bento (Leistungen im Überblick) ---------- */
.bento { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.bento > li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: clamp(1.3rem, 2.5vw, 1.8rem); display: flex; flex-direction: column; gap: .5rem; }
.bento > li h3 { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); margin: 0; }
.bento > li p { color: var(--slate); font-size: 1rem; margin: 0; }
.bento > li.bento--wide { grid-column: span 2; }
.bento > li.bento--stat { background: var(--wine-tint); border-color: transparent; justify-content: space-between; }
.bento > li > strong { font-family: var(--font-ui); font-size: 1.12rem; font-weight: 620; font-stretch: 88%; line-height: 1.3; color: var(--ink); }
.bento > li.bento--stat > strong { font-weight: 520; color: var(--ink); }
.bento > li.bento--stat .text-link { margin-top: auto; }
.bento .stat { font-family: var(--font-ui); font-weight: 720; font-stretch: 72%; font-size: clamp(2.8rem, 2rem + 3vw, 4.2rem); line-height: 1; color: var(--wine); }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .bento > li.bento--wide { grid-column: auto; } }

/* ---------- Kartenreihe (3 Karten): mobil/Tablet wischbar statt Einzelkarte ---------- */
@media (max-width: 960px) {
  .cards--rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1.1rem; margin-inline: calc(-1 * var(--gutter)); margin-top: -6px; padding: 6px var(--gutter) .6rem; scroll-padding-inline: var(--gutter); scrollbar-width: thin; }
  .cards--rail > .card { flex: 0 0 min(78%, 22rem); scroll-snap-align: start; }
}

/* ---------- Logos: ruhige, statische Reihe ---------- */
ul.logos.wrap { margin-inline: auto; }

/* ---------- Infoboxen in Artikeln ---------- */
.callout { margin: 1.8em 0; padding: 1.3rem 1.4rem 1.4rem; background: var(--mist); border-radius: var(--radius-s); }
.callout > :last-child { margin-bottom: 0; }
.callout-title { font-family: var(--font-ui); font-weight: 680; font-stretch: 88%; font-size: 1.1rem; color: var(--ink); margin-bottom: .5rem; }
.callout ul { margin-bottom: 0; }
.callout--summary { background: var(--wine-tint); }
.callout--summary .callout-title { color: var(--wine-deep); }
.article-stand { font-family: var(--font-ui); font-stretch: 92%; font-size: .95rem; color: var(--slate); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2.2rem; }

/* ---------- Blog: Suche + Kategorien ---------- */
.blog-tools { display: grid; gap: 1.1rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.blog-search input {
  width: min(100%, 36rem); font-family: var(--font-ui); font-size: 1.05rem; color: var(--ink);
  padding: .85rem 1.1rem .85rem 2.9rem; border: 1px solid #7d858a; border-radius: 999px; background: var(--white)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%235a6368' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E") no-repeat 1.05rem center;
}
.blog-search input:focus-visible { outline: 3px solid var(--wine); outline-offset: 1px; border-color: var(--wine); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .35rem; font-family: var(--font-ui); font-size: .95rem; font-weight: 560; font-stretch: 92%;
  padding: .45rem .95rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.chip span { color: var(--slate); font-size: .85em; font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--wine); color: var(--wine); }
.chip.is-active, .chip[aria-current="page"] { background: var(--wine); border-color: var(--wine); color: var(--white); }
.chip.is-active span, .chip[aria-current="page"] span { color: rgba(255, 255, 255, .8); }
.blog-count { font-family: var(--font-ui); font-size: .95rem; min-height: 1.4em; margin: 0; }
.card[hidden] { display: none; }
.blog-empty { padding: 2rem 0; color: var(--slate); }
@media (max-width: 620px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); margin-inline: calc(-1 * var(--gutter)); margin-top: -6px; padding: 6px var(--gutter) .4rem; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { scroll-snap-align: start; }
}

@media print {
  .site-header, .site-footer, .cta-band, .btn-row { display: none !important; }
  body { font-size: 11pt; }
}

/* ---------- Artikel: gemeinsame, zentrierte Lesespalte ---------- */
.article-head, .article-body .prose { width: min(100% - 2 * var(--gutter), 40rem); max-width: none; margin-inline: auto; }
.article-body { width: 100%; }
.article-head h1 { max-width: none; }
.article-hero { max-width: 64rem; }

/* Handy: Bewertungen und Werte wischbar statt gestapelt (kürzere Startseite, nächste Karte angeschnitten als Hinweis) */
@media (max-width: 620px) {
  .reviews, .values--grid .values-list {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1.1rem;
    margin-inline: calc(-1 * var(--gutter)); padding: 6px var(--gutter) .6rem; scroll-padding-inline: var(--gutter); scrollbar-width: thin;
  }
  .reviews > .review, .values--grid .values-list > .value { flex: 0 0 min(84%, 22rem); scroll-snap-align: start; }
  .values--grid .value-media img { aspect-ratio: 4 / 3; }
  .story-media { display: none; } /* Symbolbild, auf dem Handy verzichtbar */
}

/* Sehr schmale Handys (320–360 px): Header, Hero-Rahmen und lange deutsche Komposita passen in die Breite */
.service p, .value > p, .link-tiles span, .review blockquote, .bento strong { hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 860px) { .service { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 360px) {
  .brand img { width: 124px; }
  .nav-toggle { padding-inline: .6rem; }
  .hero-title { padding-inline: .9rem; }
}
