/* ==========================================================================
   DUBLER IMMOBILIEN AG — Stylesheet
   Eine Datei, kein Build. Farben und Masse stehen als Tokens in :root.

   Vorgaben des Kunden (PDF 1): Rot #E31F25 nur für dezente Akzente, wichtige
   Knöpfe und Hervorhebungen — nie als Fläche. Anthrazit #2B2B2A für Text,
   Titel und Navigation. Weiss für Hintergründe und viel Freiraum.
   Gestalterische Referenz (PDF 2): Historiska Hem — grosses Startbild,
   reduziert, grosszügige Bilder, klar sichtbare Einstiege.
   ========================================================================== */

:root {
  --rot: #e31f25;
  --rot-dunkel: #b9161b;
  --rot-hell: #fdeceb;
  --anthrazit: #2b2b2a;
  --text: #3d3d3b;
  --leise: #777673;
  --linie: #e7e5e1;
  --hell: #f6f5f3;
  --weiss: #ffffff;

  --titel: "Marcellus", "Optima", "Candara", Georgia, serif;
  --fliess: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;

  --breite: 1240px;
  --rand: clamp(16px, 4vw, 48px);
  --radius: 2px;
  --kopf: 84px;
  --luft: clamp(72px, 10vw, 136px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--weiss); color: var(--text);
  font: 400 17px/1.7 var(--fliess);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--titel); font-weight: 400; color: var(--anthrazit);
  line-height: 1.2; letter-spacing: .02em; margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); text-transform: uppercase; letter-spacing: .06em; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.25rem); text-transform: uppercase; letter-spacing: .06em; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1.1em; }
strong { color: var(--anthrazit); font-weight: 600; }

.container { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }
.container--schmal { max-width: 860px; }
.mitte { text-align: center; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--anthrazit); color: #fff; padding: 10px 16px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--rot); outline-offset: 3px; }

/* Kleine Linie über Titeln — der einzige wiederkehrende Rot-Akzent. */
.akzent { display: block; width: 40px; height: 2px; background: var(--rot); margin: 0 0 22px; }
.mitte .akzent { margin-left: auto; margin-right: auto; }

.einleitung { font-size: 1.1rem; max-width: 60ch; }
.mitte .einleitung { margin-left: auto; margin-right: auto; }

/* ---------------------------------------------------------------- Knöpfe */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 1.8em; border: 1px solid transparent; border-radius: var(--radius);
  font: 500 .82rem/1 var(--fliess); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn--rot { background: var(--rot); color: #fff; }
.btn--rot:hover { background: var(--rot-dunkel); }
.btn--linie { border-color: var(--anthrazit); color: var(--anthrazit); background: transparent; }
.btn--linie:hover { background: var(--anthrazit); color: #fff; }
.btn--hell { border-color: #fff; color: #fff; background: transparent; }
.btn--hell:hover { background: #fff; color: var(--anthrazit); }
.btn[disabled] { opacity: .6; cursor: progress; }

.link {
  color: var(--anthrazit); font-weight: 500; text-decoration: none;
  border-bottom: 1px solid var(--rot); padding-bottom: 2px;
}
.link::after { content: " →"; }
.link:hover { color: var(--rot); }

.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }
.mitte .knoepfe { justify-content: center; }

/* ---------------------------------------------------------------- Kopf */

.kopf {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--kopf);
  background: #fff; border-bottom: 1px solid var(--linie);
  transition: background .3s, border-color .3s;
}
.kopf__innen { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: block; flex: none; line-height: 0; }
.logo img { height: 58px; width: auto; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav__link {
  padding: 10px 14px; color: var(--anthrazit); text-decoration: none;
  font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  border-bottom: 1px solid transparent;
}
.nav__link:hover, .nav__link[aria-current="page"] { border-bottom-color: var(--rot); }

.menueknopf {
  display: inline-flex; align-items: center; gap: 10px; margin-left: 10px;
  height: 44px; padding: 0 4px 0 12px; border: 0; background: transparent; cursor: pointer;
  font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--anthrazit);
}
.menueknopf__striche { position: relative; width: 24px; height: 14px; }
.menueknopf__striche span { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .25s, opacity .25s; }
.menueknopf__striche span:nth-child(1) { top: 0; }
.menueknopf__striche span:nth-child(2) { top: 6px; }
.menueknopf__striche span:nth-child(3) { top: 12px; }
.menueknopf[aria-expanded="true"] .menueknopf__striche span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menueknopf[aria-expanded="true"] .menueknopf__striche span:nth-child(2) { opacity: 0; }
.menueknopf[aria-expanded="true"] .menueknopf__striche span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  :root { --kopf: 72px; }
  .nav__link { display: none; }
  .logo img { height: 48px; }
  .menueknopf__text { display: none; }
}

/* Startseite: Kopf liegt transparent über dem Bild, das Logo steht im Bild.
   Beim Scrollen wird er weiss und zeigt das Logo. */
.startseite .kopf:not(.ist-gescrollt) { background: transparent; border-color: transparent; }
.startseite .kopf:not(.ist-gescrollt) .logo { visibility: hidden; }
.startseite .kopf:not(.ist-gescrollt) .nav__link,
.startseite .kopf:not(.ist-gescrollt) .menueknopf { color: #fff; }
.startseite .kopf:not(.ist-gescrollt) .nav__link:hover { border-bottom-color: #fff; }
.menue-offen .kopf { background: #fff !important; border-color: var(--linie) !important; }
.menue-offen .kopf .logo { visibility: visible !important; }
.menue-offen .kopf .menueknopf, .menue-offen .kopf .nav__link { color: var(--anthrazit) !important; }

/* Menü-Tafel: alle Punkte, auch auf dem Desktop */
.menue {
  position: fixed; inset: var(--kopf) 0 0; z-index: 99; background: #fff;
  overflow-y: auto; display: none;
}
.menue.ist-offen { display: block; }
.menue__innen { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; padding-top: clamp(32px, 6vw, 72px); padding-bottom: 48px; }
.menue__liste { list-style: none; margin: 0; padding: 0; }
.menue__liste a {
  display: block; padding: 12px 0; text-decoration: none; color: var(--anthrazit);
  font: 400 clamp(1.5rem, 3vw, 2.1rem)/1.2 var(--titel); letter-spacing: .05em; text-transform: uppercase;
  border-bottom: 1px solid var(--linie);
}
.menue__liste a:hover, .menue__liste a[aria-current="page"] { color: var(--rot); }
.menue__seite { color: var(--leise); font-size: .95rem; }
.menue__seite h4 { font-family: var(--fliess); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--anthrazit); margin-bottom: 10px; }
.menue__seite a:not(.btn) { color: var(--anthrazit); }
.menue__seite .btn { margin: 8px 0 32px; }
@media (max-width: 760px) { .menue__innen { grid-template-columns: 1fr; gap: 24px; } }
body.menue-offen { overflow: hidden; }

/* ---------------------------------------------------------------- Startbild */

.startbild {
  position: relative; min-height: 100vh; min-height: 100svh; isolation: isolate;
  display: grid; place-items: center; text-align: center; color: #fff;
  padding: calc(var(--kopf) + 24px) var(--rand) 64px;
}
.startbild__bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.startbild::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  /* Dunkler Kern hinter dem Logo: das rote «IMMOBILIEN» muss auf jedem
     Startbild lesbar bleiben (Vorgabe PDF 1). */
  background:
    radial-gradient(ellipse 46% 42% at 50% 46%, rgba(20, 19, 18, .62), rgba(20, 19, 18, 0) 100%),
    linear-gradient(180deg, rgba(20, 19, 18, .5), rgba(20, 19, 18, .42) 50%, rgba(20, 19, 18, .6));
}
.startbild__logo { width: clamp(200px, 30vw, 340px); height: auto; margin: 0 auto 18px; }
.startbild__zeile { font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; margin: 0 0 clamp(32px, 5vw, 52px); opacity: .92; }
.einstiege { display: grid; grid-template-columns: repeat(3, minmax(0, 250px)); gap: 14px; justify-content: center; }
.einstieg {
  display: flex; align-items: center; justify-content: center; min-height: 60px; padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .85); color: #fff; text-decoration: none;
  background: rgba(24, 23, 22, .18); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  font: 400 1rem/1.2 var(--titel); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.einstieg:hover { background: #fff; color: var(--anthrazit); }
.einstieg--rot { border-color: var(--rot); background: var(--rot); }
.einstieg--rot:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); color: #fff; }
@media (max-width: 820px) {
  .einstiege { grid-template-columns: 1fr; width: 100%; max-width: 320px; margin: 0 auto; gap: 10px; }
  .einstieg { min-height: 56px; }
}
.startbild__pfeil { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); color: #fff; opacity: .8; text-decoration: none; font-size: 1.4rem; }
@media (max-height: 640px) { .startbild__pfeil { display: none; } }

/* ---------------------------------------------------------------- Seitenkopf */

.seitenkopf { padding: calc(var(--kopf) + clamp(56px, 8vw, 104px)) 0 clamp(40px, 6vw, 72px); text-align: center; }
.seitenkopf .einleitung { margin: 0 auto; color: var(--text); }
.seitenkopf .akzent { margin-left: auto; margin-right: auto; }

.bildkopf { position: relative; isolation: isolate; color: #fff; text-align: center; display: grid; place-items: center;
  min-height: clamp(360px, 58vh, 560px); padding: calc(var(--kopf) + 40px) var(--rand) 56px; }
.bildkopf img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.bildkopf::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(24, 23, 22, .45); }
.bildkopf h1 { color: #fff; margin-bottom: .35em; }
.bildkopf p { max-width: 54ch; margin: 0 auto; font-size: 1.1rem; }
.bildkopf .akzent { margin: 0 auto 22px; }

/* ---------------------------------------------------------------- Abschnitte */

.abschnitt { padding: var(--luft) 0; }
.abschnitt--hell { background: var(--hell); }
.abschnitt--eng { padding: clamp(48px, 6vw, 80px) 0; }
.abschnitt__kopf { margin-bottom: clamp(36px, 5vw, 60px); }

.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.zwei--oben { align-items: start; }
@media (max-width: 880px) { .zwei { grid-template-columns: 1fr; } }

/* Geteilter Block: Bild links, ruhige Textfläche rechts (Referenz «Sälj med oss») */
.teilung { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.teilung__bild { position: relative; min-height: 360px; }
.teilung__bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.teilung__text { background: var(--hell); display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 7vw, 104px); }
.teilung__text p { max-width: 46ch; }
@media (max-width: 880px) { .teilung { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Objekte */

.objekte { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 3vw, 40px); }
@media (max-width: 760px) { .objekte { grid-template-columns: 1fr; } }
.objekt { display: block; text-decoration: none; color: inherit; background: #fff; }
.objekt__bild { position: relative; aspect-ratio: 3 / 2; background: var(--hell); overflow: hidden; }
.objekt__bild img { position: relative; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.objekt:hover .objekt__bild img { transform: scale(1.03); }
.objekt__leer { position: absolute; inset: 0; display: grid; place-items: center; color: #c9c6c0; }
.objekt__leer svg { width: 64px; height: 64px; }
.objekt__text { padding: 22px 16px 26px; text-align: center; border-bottom: 1px solid var(--linie); }
.objekt__titel { font: 400 1.2rem/1.35 var(--titel); letter-spacing: .08em; text-transform: uppercase; color: var(--anthrazit); margin: 0 0 8px; }
.objekt:hover .objekt__titel { color: var(--rot); }
.objekt__meta { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--leise); }
.objekt__meta { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 2px; }
.objekt__meta span { white-space: nowrap; }
.objekt__meta span + span::before { content: "·"; margin: 0 .6em; }
.objekt--verkauft .objekt__bild img { filter: saturate(.7); }
.etikett {
  position: absolute; top: 16px; left: 16px; padding: 7px 11px; background: #fff; color: var(--anthrazit);
  font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.etikett--rot { background: var(--rot); color: #fff; }

.hinweis { grid-column: 1 / -1; text-align: center; padding: clamp(40px, 6vw, 72px) 24px; background: var(--hell); }
.hinweis h3 { font-size: 1.35rem; text-transform: uppercase; letter-spacing: .06em; }
.hinweis p { max-width: 52ch; margin: 0 auto 1.4em; }

.skelett::before { content: ""; display: block; aspect-ratio: 3 / 2; background: var(--hell); }
.skelett::after { content: ""; display: block; height: 20px; width: 60%; margin: 26px auto 8px; background: var(--hell); }
@media (prefers-reduced-motion: no-preference) {
  .skelett { animation: puls 1.4s ease-in-out infinite; }
  @keyframes puls { 50% { opacity: .5; } }
}

/* Umschalter Kaufen | Mieten über der Objektliste (Wunsch Kunde 02.11.2026) */
.umschalter { display: flex; justify-content: flex-end; gap: 4px; margin-bottom: 28px; }
.umschalter a {
  padding: 8px 12px; color: var(--leise); text-decoration: none;
  font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  border-bottom: 1px solid transparent;
}
.umschalter a:hover { color: var(--anthrazit); }
.umschalter a[aria-current="page"] { color: var(--anthrazit); border-bottom-color: var(--rot); }
@media (max-width: 560px) { .umschalter { justify-content: center; } }

/* ---------------------------------------------------------------- Detail */

.detail { padding: calc(var(--kopf) + 28px) 0 var(--luft); }
.zurueck { display: inline-block; margin-bottom: 20px; color: var(--leise); text-decoration: none; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.zurueck:hover { color: var(--anthrazit); }
.galerie { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: clamp(320px, 50vw, 620px); margin-bottom: clamp(36px, 5vw, 56px); }
.galerie button { position: relative; border: 0; padding: 0; background: var(--hell); overflow: hidden; cursor: zoom-in; }
.galerie button:first-child { grid-row: 1 / 3; }
.galerie img { width: 100%; height: 100%; object-fit: cover; }
.galerie--eins { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.galerie--eins button:first-child { grid-row: auto; }
.galerie__mehr { position: absolute; right: 12px; bottom: 12px; background: rgba(43, 43, 42, .85); color: #fff; padding: 7px 12px; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 700px) {
  .galerie { grid-template-columns: 1fr; grid-template-rows: 1fr; height: 66vw; }
  .galerie button:not(:first-child) { display: none; }
  .galerie button:first-child { grid-row: auto; }
}
.detail__raster { display: grid; grid-template-columns: 1fr 380px; gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 980px) { .detail__raster { grid-template-columns: 1fr; } }
.detail__ort { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--leise); margin-bottom: 10px; }
.detail h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.detail__preis { font: 400 1.5rem/1.2 var(--titel); color: var(--anthrazit); margin-bottom: 32px; }
.detail h2 { font-size: 1.1rem; letter-spacing: .12em; margin: 40px 0 16px; }
.eckdaten { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); border-top: 1px solid var(--linie); border-left: 1px solid var(--linie); margin: 0; }
.eckdaten div { padding: 16px 18px; border-right: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.eckdaten dt { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--leise); }
.eckdaten dd { margin: 4px 0 0; font-weight: 600; color: var(--anthrazit); }
.beschrieb { white-space: pre-line; }
.merkmale { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.merkmale li { padding: 7px 14px; border: 1px solid var(--linie); font-size: .9rem; }
.unterlagen { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--linie); }
.unterlagen a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 2px; border-bottom: 1px solid var(--linie); color: var(--anthrazit); text-decoration: none; font-weight: 500; }
.unterlagen a::after { content: "↗"; color: var(--rot); }
.unterlagen a:hover { color: var(--rot); }
.seitenleiste { position: sticky; top: calc(var(--kopf) + 24px); }
.karte { border: 1px solid var(--linie); padding: clamp(24px, 3vw, 32px); background: #fff; }
.karte--hell { background: var(--hell); border-color: transparent; }
.karte h3 { text-transform: uppercase; letter-spacing: .06em; font-size: 1.15rem; }
.makler { display: flex; gap: 14px; align-items: center; margin: 0 0 22px; }
.makler img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--hell); }
.makler strong { display: block; }
.makler a { font-size: .92rem; color: var(--text); }

.leuchtkasten { position: fixed; inset: 0; z-index: 400; background: rgba(20, 20, 19, .95); display: none; align-items: center; justify-content: center; }
.leuchtkasten.ist-offen { display: flex; }
.leuchtkasten img { max-width: 92vw; max-height: 84vh; object-fit: contain; }
.leuchtkasten button { position: absolute; width: 56px; height: 56px; background: transparent; border: 0; color: #fff; font-size: 2rem; cursor: pointer; }
.leuchtkasten__zu { top: 12px; right: 12px; }
.leuchtkasten__vor { right: 12px; top: 50%; transform: translateY(-50%); }
.leuchtkasten__zurueck { left: 12px; top: 50%; transform: translateY(-50%); }
.leuchtkasten__zaehler { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: #bbb; font-size: .85rem; }

/* ---------------------------------------------------------------- Inhalte */

.liste { list-style: none; padding: 0; margin: 0; }
.liste li { position: relative; padding: 13px 0 13px 30px; border-bottom: 1px solid var(--linie); }
.liste li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 12px; height: 7px; border-left: 1.5px solid var(--rot); border-bottom: 1.5px solid var(--rot); transform: rotate(-45deg); }
.liste--zwei { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
@media (max-width: 700px) { .liste--zwei { grid-template-columns: 1fr; } }

.schritte { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 40px); counter-reset: s; }
.schritte--3 { grid-template-columns: repeat(3, 1fr); }
.schritt { counter-increment: s; border-top: 1px solid var(--anthrazit); padding-top: 22px; }
.schritt::before { content: "0" counter(s); display: block; font: 400 1rem/1 var(--titel); color: var(--rot); letter-spacing: .1em; margin-bottom: 14px; }
.schritt h3 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .08em; }
.schritt p { font-size: .98rem; margin: 0; }
@media (max-width: 900px) { .schritte, .schritte--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .schritte, .schritte--3 { grid-template-columns: 1fr; } }

.kennzahl { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.kennzahl__wert { font: 400 clamp(2.6rem, 6vw, 4rem)/1 var(--titel); color: var(--anthrazit); }

/* Team */
.teamfoto { margin: 0; }
.teamfoto img { width: 100%; height: auto; aspect-ratio: 18 / 13; object-fit: cover; background: var(--hell); }
.teamfoto figcaption { padding-top: 14px; font-size: .9rem; color: var(--leise); }
.teamfoto figcaption strong { display: block; font: 400 1.05rem/1.3 var(--titel); letter-spacing: .08em; text-transform: uppercase; color: var(--anthrazit); }
.teamfoto--breit { margin-bottom: var(--luft); }

.person { max-width: 760px; }
.person + .person { margin-top: var(--luft); }
.person__rolle { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--rot); margin-bottom: 10px; }
.mag { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--linie); font-size: .95rem; }
.mag h4 { font-family: var(--fliess); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 6px; }
@media (max-width: 800px) { .mag { grid-template-columns: 1fr; } }

/* Kundenstimmen */
.stimmen { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
@media (max-width: 960px) { .stimmen { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .stimmen { grid-template-columns: 1fr; } }
.stimme { margin: 0; padding: 30px 28px; background: #fff; display: flex; flex-direction: column; }
.stimme blockquote { margin: 0 0 20px; flex: 1; font: 400 1.05rem/1.6 var(--titel); color: var(--anthrazit); }
.stimme figcaption { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--leise); }
.stimme figcaption::before { content: ""; display: block; width: 24px; height: 1.5px; background: var(--rot); margin-bottom: 12px; }

/* Partner */
.partner { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1px; background: var(--linie); border: 1px solid var(--linie); }
.partner a { display: flex; flex-direction: column; gap: 16px; padding: 26px 22px; background: #fff; text-decoration: none; font-size: .9rem; color: var(--leise); }
.partner a:hover strong { color: var(--rot); }
.partner img { height: 60px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.partner strong { display: block; color: var(--anthrazit); font-weight: 500; }

/* Bewertungs-Widget: Objektart wählen */
.typen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--linie); border: 1px solid var(--linie); }
@media (max-width: 820px) { .typen { grid-template-columns: 1fr 1fr; } }
.typ { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 34px 16px; background: #fff; text-decoration: none; color: var(--anthrazit); text-align: center; transition: background .2s; }
.typ:hover { background: var(--hell); }
.typ svg { width: 44px; height: 44px; stroke: var(--anthrazit); fill: none; stroke-width: 1.2; }
.typ:hover svg { stroke: var(--rot); }
.typ span { font: 400 .95rem/1.3 var(--titel); letter-spacing: .1em; text-transform: uppercase; }

/* Wissen */
.downloads { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); }
.downloads a { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 18px 2px; border-bottom: 1px solid var(--linie); color: var(--anthrazit); text-decoration: none; }
.downloads a:hover { color: var(--rot); }
.downloads small { display: block; color: var(--leise); font-size: .88rem; }
.downloads .pdf { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--leise); border: 1px solid var(--linie); padding: 5px 9px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--linie); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 20px 40px 20px 0; font: 400 1.1rem/1.4 var(--titel); color: var(--anthrazit); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.6rem; color: var(--rot); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }

/* ---------------------------------------------------------------- Formulare */

.formular { display: grid; gap: 16px; }
.formular__zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .formular__zeile { grid-template-columns: 1fr; } }
.formular__gruppe { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--rot); margin: 10px 0 -4px; }
.feld { display: grid; gap: 6px; }
.feld label { font-size: .85rem; font-weight: 500; color: var(--anthrazit); }
.feld input, .feld select, .feld textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; background: #fff;
  border: 1px solid #d5d3cf; border-radius: var(--radius); transition: border-color .2s;
}
.feld textarea { min-height: 120px; resize: vertical; }
.feld input:focus, .feld select:focus, .feld textarea:focus { outline: none; border-color: var(--anthrazit); }
.feld .is-error { border-color: var(--rot); background: var(--rot-hell); }
.checkline { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; line-height: 1.5; }
.checkline input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--rot); }
.checkline.is-error { color: var(--rot); }
.checkline a { color: var(--anthrazit); }
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__error { display: none; margin: 0; padding: 12px 14px; font-size: .92rem; }
.form__error.is-visible { display: block; }
.form__error.is-error { background: var(--rot-hell); color: var(--rot-dunkel); }
.form__success { display: none; padding: 28px; background: var(--hell); text-align: center; }
.form__success.is-visible { display: block; }
.form__success h3 { text-transform: uppercase; letter-spacing: .06em; }
form.ist-gesendet > :not(.form__success) { display: none; }
.formular .btn { justify-self: start; }
.klein { font-size: .86rem; color: var(--leise); }

.kontaktliste { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 18px; }
.kontaktliste li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; }
.kontaktliste svg { width: 20px; height: 20px; stroke: var(--rot); fill: none; stroke-width: 1.5; margin-top: 4px; }
.kontaktliste a { color: var(--anthrazit); text-decoration: none; font-weight: 500; }
.kontaktliste a:hover { text-decoration: underline; }
.kontaktliste span { display: block; font-size: .86rem; color: var(--leise); }

.recht h2 { font-size: 1.2rem; margin-top: 2.2em; }
.recht h2:first-child { margin-top: 0; }
.recht ul { padding-left: 1.2em; }
.recht a { color: var(--anthrazit); }

/* ---------------------------------------------------------------- Fuss */

.fuss { background: var(--anthrazit); color: #b9b8b4; padding: clamp(56px, 7vw, 88px) 0 28px; font-size: .92rem; }
.fuss a { color: #f1f0ed; text-decoration: none; }
.fuss a:hover { text-decoration: underline; }
.fuss__raster { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
@media (max-width: 900px) { .fuss__raster { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .fuss__raster { grid-template-columns: 1fr; } }
.fuss h4 { font-family: var(--fliess); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fuss__logo img { width: 150px; height: auto; margin-bottom: 18px; }
.fuss__siegel { display: flex; gap: 16px; align-items: center; margin-top: 20px; }
.fuss__siegel .hev { height: 28px; width: auto; }
.fuss__siegel .kv { height: 52px; width: auto; }
.fuss__sozial { display: flex; gap: 10px; margin-top: 18px; }
.fuss__sozial a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; }
.fuss__sozial svg { width: 17px; height: 17px; fill: #f1f0ed; }
.fuss__unten { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; font-size: .82rem; }

/* ---------------------------------------------------------------- Einblenden */

@media (prefers-reduced-motion: no-preference) {
  .js .auf { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
  .js .auf.ist-sichtbar { opacity: 1; transform: none; }
}

.fehlerseite { min-height: 78vh; display: grid; place-items: center; text-align: center; padding: calc(var(--kopf) + 40px) var(--rand) 60px; }
.fehlerseite .zahl { font: 400 clamp(4.5rem, 14vw, 8rem)/1 var(--titel); color: var(--rot); }

.logo__neg { display: none; }
