/* ==========================================================================
   Komponenten (seitenübergreifend)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Kontaktleiste oben
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.site-header.is-scrolled {
  border-bottom-color: var(--silver);
  box-shadow: 0 10px 24px -20px rgba(22, 24, 27, 0.45);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}
.brand img {
  width: auto;
  height: 3.4rem;
}
@media (min-width: 64em) {
  .brand img { height: 4rem; }
}

.nav { display: none; }
.nav__list {
  display: flex;
  gap: clamp(1.25rem, 0.2rem + 1.6vw, 2.25rem);
  list-style: none;
  padding: 0;
}
.nav__link {
  position: relative;
  display: inline-block;
  padding-block: var(--s-2);
  font-weight: 600;
  font-size: var(--fs-16);
  text-decoration: none;
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t-base) var(--ease-out);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.header-actions .btn { display: none; }

@media (min-width: 64em) {
  .nav { display: block; }
  .header-actions .btn { display: inline-flex; }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 3rem;
  padding: 0 var(--s-3);
  border: var(--rule-ink);
  font-weight: 650;
  font-size: var(--fs-16);
}
.menu-toggle .icon { width: 1.35rem; height: 1.35rem; }
@media (min-width: 64em) {
  .header-actions .menu-toggle { display: none; }
}

/* Mobile-Menü */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  background: var(--white);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out), visibility 0s linear var(--t-base);
}
.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out), visibility 0s;
}
.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  border-bottom: var(--rule);
}
.mobile-menu__list {
  list-style: none;
  padding: var(--s-4) 0;
  margin: 0;
}
.mobile-menu__list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-4) 0;
  border-bottom: var(--rule);
  font-size: var(--fs-24);
  font-weight: 700;
  font-stretch: var(--stretch-display);
  text-decoration: none;
}
.mobile-menu__list a[aria-current="page"] { color: var(--red); }
.mobile-menu__list .icon { color: var(--red); }
.mobile-menu__foot {
  margin-top: auto;
  padding-block: var(--s-6);
  display: grid;
  gap: var(--s-3);
  border-top: var(--rule);
}
.mobile-menu__foot a { text-decoration: none; font-weight: 600; display: flex; gap: var(--s-2); align-items: center; }
.mobile-menu__foot .icon { color: var(--red); }

/* --------------------------------------------------------------------------
   Buttons & Links
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--red);
  --btn-fg: var(--white);
  --btn-border: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  min-height: 3.25rem;
  padding: 0 var(--s-6);
  border: 2px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 680;
  font-size: var(--fs-16);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  touch-action: manipulation;
  transition:
    background-color var(--t-fast) var(--ease-out),
    border-color var(--t-fast) var(--ease-out),
    color var(--t-fast) var(--ease-out),
    transform var(--t-fast) var(--ease-out);
}
.btn .icon {
  width: 1.15rem;
  height: 1.15rem;
  transition: transform var(--t-base) var(--ease-out);
}
.btn:hover {
  --btn-bg: var(--red-deep);
  --btn-border: var(--red-deep);
}
.btn:hover .icon--arrow { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-border: var(--ink);
}
.btn--outline:hover {
  --btn-bg: var(--ink);
  --btn-fg: var(--white);
  --btn-border: var(--ink);
}

.btn--on-red {
  --btn-bg: var(--white);
  --btn-fg: var(--ink);
  --btn-border: var(--white);
}
.btn--on-red:hover {
  --btn-bg: var(--ink);
  --btn-fg: var(--white);
  --btn-border: var(--ink);
}
.btn--on-red-outline {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  --btn-border: var(--white);
}
.btn--on-red-outline:hover {
  --btn-bg: var(--white);
  --btn-fg: var(--ink);
  --btn-border: var(--white);
}

.btn--sm { min-height: 2.75rem; padding: 0 var(--s-5); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 680;
  text-decoration: none;
  background-image: linear-gradient(var(--red), var(--red));
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size var(--t-base) var(--ease-out);
}
.link-arrow .icon { width: 1.1rem; height: 1.1rem; color: var(--red); transition: transform var(--t-base) var(--ease-out); }
.link-arrow:hover { background-size: 100% 2px; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Rapport-Feld: Beschriftung + Wert (die Grammatik der Seite)
   -------------------------------------------------------------------------- */
.field-label {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-12);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
}

.rapport-row {
  display: grid;
  border-top: var(--rule-ink);
  border-bottom: var(--rule);
}
.rapport-row__cell {
  display: grid;
  gap: var(--s-1);
  padding: var(--s-3) var(--s-4) var(--s-3) 0;
}
.rapport-row__cell + .rapport-row__cell { border-top: var(--rule); }
.rapport-row__value {
  font-size: var(--fs-16);
  font-weight: 600;
  line-height: 1.35;
}

@media (min-width: 48em) {
  .rapport-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rapport-row__cell + .rapport-row__cell {
    border-top: 0;
    border-left: var(--rule);
    padding-left: var(--s-4);
  }
}

/* Abhak-Liste */
.tick-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--s-2);
}
.tick-list li {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  font-size: var(--fs-16);
  line-height: 1.4;
}
.tick-list li::before {
  content: "";
  flex: none;
  width: 1rem;
  height: 1rem;
  transform: translateY(0.15em);
  border: 1.5px solid var(--ink);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23d90f1f' d='M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") center / 115% no-repeat;
}

/* --------------------------------------------------------------------------
   Foto-Rahmen (einheitlich für alle Bilder)
   -------------------------------------------------------------------------- */
.plate {
  position: relative;
  margin: 0;
  display: grid;
  gap: var(--s-2);
}
.plate__img {
  position: relative;
  overflow: hidden;
  background: var(--silver-soft);
  border: var(--rule-ink);
}
.plate__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
.plate figcaption {
  display: flex;
  gap: var(--s-2);
  align-items: baseline;
  font-size: var(--fs-14);
  color: var(--graphite);
}
.plate figcaption .field-label { flex: none; }

/* --------------------------------------------------------------------------
   Platzhalter-Kennzeichnung (vom Kunden zu liefern)
   -------------------------------------------------------------------------- */
.ph {
  outline: 1.5px dashed var(--red);
  outline-offset: 3px;
  position: relative;
}
.ph-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  padding: 0.15rem 0.4rem;
  background: var(--red-tint);
  color: var(--red-deep);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   Aufruf-Band (Abschluss jeder Seite)
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--red);
  color: var(--white);
  padding-block: var(--section-y);
}
.cta-band__inner {
  display: grid;
  gap: var(--space-grid);
  align-items: end;
}
.cta-band h2 { max-width: 16em; }
.cta-band p { max-width: 34em; font-size: var(--fs-18); margin-top: var(--space-stack); }
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}
@media (min-width: 64em) {
  .cta-band__inner { grid-template-columns: 1.4fr 1fr; }
  .cta-band__actions { justify-content: flex-end; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--on-ink-muted);
  font-size: var(--fs-16);
  padding-top: var(--section-y);
}
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--red); }
.site-footer :focus-visible { outline-color: var(--white); }

.footer-grid {
  display: grid;
  gap: var(--space-head) var(--space-grid);
  padding-bottom: var(--space-head);
}
.footer-brand {
  display: inline-block;
  background: var(--white);
  padding: var(--s-3) var(--s-4);
}
.footer-brand img { height: 4.5rem; width: auto; }
.footer-claim { margin-top: var(--s-5); max-width: 22em; }

.footer-col h2 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-12);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-ink-muted);
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--graphite);
}
.footer-col address { font-style: normal; line-height: 1.7; }
.footer-col address strong { color: var(--white); font-weight: 650; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: var(--s-2); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-4);
  padding-block: var(--s-6);
  border-top: 1px solid var(--graphite);
  font-size: var(--fs-14);
}
.footer-bottom ul { display: flex; gap: var(--s-6); list-style: none; padding: 0; }

@media (min-width: 48em) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64em) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 0.8fr; }
}

/* --------------------------------------------------------------------------
   Aktionsleiste unten (nur Mobile)
   -------------------------------------------------------------------------- */
.action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-actionbar);
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: var(--actionbar-h);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--white);
  border-top: var(--rule-ink);
}
.action-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-weight: 680;
  font-size: var(--fs-16);
  text-decoration: none;
}
.action-bar a + a { background: var(--red); color: var(--white); }
.action-bar .icon { width: 1.2rem; height: 1.2rem; }
.action-bar a:first-child .icon { color: var(--red); }

@media (min-width: 64em) {
  .action-bar { display: none; }
}

/* --------------------------------------------------------------------------
   Roter Faden: eine Linie führt links durch die Abschnitte einer Seite,
   jeder Abschnitt ist ein Knoten, der beim Erreichen abgehakt wird
   -------------------------------------------------------------------------- */
.thread { position: relative; }
.thread__line { display: none; }

.section-head { position: relative; }
.section-head--flush { margin-bottom: 0; }
.thread-node { display: none; }

@media (min-width: 64em) {
  .thread {
    --thread-x: calc(max(var(--gutter), (100% - var(--container)) / 2) + 0.25rem);
  }
  .thread .container { padding-left: calc(var(--gutter) + 2rem); }
  .thread__line {
    display: block;
    position: absolute;
    z-index: 2;
    top: calc(var(--section-y) + 0.5rem);
    bottom: calc(var(--section-y) + 3rem);
    left: var(--thread-x);
    width: 2px;
    margin-left: -1px;
    background: var(--silver);
    pointer-events: none;
  }
  .thread__fill {
    position: absolute;
    inset: 0;
    background: var(--red);
    transform-origin: top;
  }
  .thread .thread-node {
    display: block;
    position: absolute;
    z-index: 3;
    left: calc(-1.75rem - 0.5rem);
    top: 0.55em;
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--ink);
    background: var(--white);
    transition: background-color var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out);
  }
  .section-head h2 { font-size: var(--fs-h2); }
  .thread-node.is-reached {
    background: var(--red);
    border-color: var(--red);
    transform: scale(1.15);
  }
  .thread-node--end {
    width: 1.25rem;
    height: 1.25rem;
    left: calc(-1.75rem - 0.625rem);
  }
}

/* Aktionsleiste erscheint erst, wenn der Besucher weiterliest */
.js .action-bar[data-action-bar] {
  transform: translateY(110%);
  transition: transform var(--t-slow) var(--ease-out);
}
.js .action-bar[data-action-bar].is-visible { transform: none; }
.btn .icon--down { transition: transform var(--t-base) var(--ease-out); }
.btn:hover .icon--down { transform: translateY(3px); }

/* Aufklapp-Animation für <details> (Startseite und Anlagen) */
@media (prefers-reduced-motion: no-preference) {
  .acc-list, .ax-list { interpolate-size: allow-keywords; }
  .acc::details-content,
  .ax::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size var(--t-slow) var(--ease-out), content-visibility var(--t-slow) allow-discrete;
  }
  .acc[open]::details-content,
  .ax[open]::details-content { block-size: auto; }
}

/* ==========================================================================
   Oberflächen im ruhigen, gepflegten Stil:
   weiche Rundungen, feine Linien, Kacheln die beim Überfahren wachsen,
   Rot als Akzent für Beschriftungen, Aktionen und Fortschritt
   ========================================================================== */

/* Header: hell und durchscheinend statt schwer */
.site-header {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.menu-toggle { border: var(--rule); border-radius: var(--radius-pill); padding: 0 var(--s-4); }

/* Buttons: Pillenform, weiche Federbewegung */
.btn {
  border-radius: var(--radius-pill);
  font-weight: 620;
  transition:
    background-color var(--t-fast) var(--ease-out),
    border-color var(--t-fast) var(--ease-out),
    color var(--t-fast) var(--ease-out),
    transform var(--t-hover) var(--ease-spring),
    box-shadow var(--t-hover) var(--ease-out);
}
.btn:hover { transform: scale(1.03); }
.btn:active { transform: scale(0.98); }
.btn--outline { --btn-border: var(--silver); }
.btn--outline:hover { --btn-bg: var(--white); --btn-fg: var(--red); --btn-border: var(--red); }

/* Beschriftungen in Stempelrot */
.field-label { color: var(--red-deep); }

/* Bilder: gerundet, ohne harte Rahmen */
.plate__img { border: 0; border-radius: var(--radius-img); isolation: isolate; }
.plate figcaption { color: var(--steel); }

.tick-list li::before { border-radius: 4px; border-color: var(--silver); }

/* "Foto folgt": ehrlicher Bildplatzhalter bis zum Fotoshooting */
.photo-pending {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--s-2);
  width: 100%;
  height: 100%;
  min-height: 10rem;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--silver-soft);
  padding: var(--s-4);
  color: var(--steel);
  text-align: center;
}
.photo-pending .icon { width: 2rem; height: 2rem; }
.photo-pending span { font-family: var(--font-mono); font-size: var(--fs-12); letter-spacing: 0.06em; text-transform: uppercase; }

/* Foto-Platzhalter mit Beschreibung, was folgt */
.photo-pending {
  border-radius: inherit;
  box-shadow: inset 0 0 0 1.5px var(--silver);
  background: linear-gradient(160deg, var(--white), var(--paper));
}
.photo-pending .icon { color: var(--red); }
.photo-pending span { color: var(--red-deep); }
.photo-pending__desc {
  max-width: 24ch;
  font-size: var(--fs-14);
  line-height: 1.4;
  color: var(--graphite);
}

/* Kachel: Grundbaustein für Karten */
.tile {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-stack);
  transition: transform var(--t-hover) var(--ease-spring), box-shadow var(--t-hover) var(--ease-out);
}
.tile--paper { background: var(--paper); box-shadow: none; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tile:hover {
    z-index: 2;
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-hover);
  }
  .tile--paper:hover { background: var(--white); }
  .tile:hover .plate__img img { transform: scale(1.05); }
}

/* Roter Faden: runde Knoten */
@media (min-width: 64em) {
  .thread__line { background: var(--silver-soft); border-radius: 2px; }
  .thread-node { border-radius: 50%; border-color: var(--silver); transition: background-color var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out), transform var(--t-hover) var(--ease-spring); }
  .thread-node.is-reached { transform: scale(1.3); }
}

/* Abschnittsköpfe: rote Linie zeichnet sich beim Erscheinen */
.section-head h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 4px;
  margin-top: var(--space-stack);
  border-radius: 2px;
  background: var(--red);
  transform-origin: left;
}
@media (prefers-reduced-motion: no-preference) {
  .js .section-head h2 { opacity: 0; transform: translateY(12px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
  .js .section-head h2::after { transform: scaleX(0); transition: transform 800ms var(--ease-out) 250ms; }
  .js .section-head.is-inview h2 { opacity: 1; transform: none; }
  .js .section-head.is-inview h2::after { transform: scaleX(1); }

  /* Bilder werden von unten aufgedeckt */
  .js .reveal-img { clip-path: inset(100% 0 0 0 round var(--radius-img)); transition: clip-path 1000ms var(--ease-out); }
  .js .reveal-img.is-inview { clip-path: inset(0 0 0 0 round var(--radius-img)); }
}

/* Aufruf-Band */
.cta-band { background: var(--red); }

/* Footer: hell, mit roter Kante */
.site-footer {
  background: var(--paper);
  color: var(--steel);
  border-top: var(--rule);
}
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--red); text-decoration: none; }
.site-footer :focus-visible { outline-color: var(--red); }
.footer-brand { background: transparent; padding: 0; }
.footer-col h2 { color: var(--red-deep); border-bottom-color: var(--silver); }
.footer-col address strong { color: var(--ink); }
.footer-bottom { border-top-color: var(--silver); }

/* Mobile Aktionsleiste: durchscheinend, Pillen-Buttons */
.action-bar {
  gap: var(--space-stack-sm);
  height: auto;
  padding: var(--space-stack-sm) var(--gutter) calc(var(--space-stack-sm) + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-top: var(--rule);
}
.action-bar a { min-height: 3rem; border-radius: var(--radius-pill); border: var(--rule); background: var(--white); }
.action-bar a + a { border-color: var(--red); }

/* ==========================================================================
   Apple-nahe Typografie: ruhige Grotesk, kleine rote Oberzeilen,
   Links mit Winkel "›"
   ========================================================================== */
:root { --stretch-display: 100%; }
h1, h2, h3 { letter-spacing: -0.025em; }
h2 { font-size: clamp(1.875rem, 1.4rem + 2vw, 2.75rem); }
.lead { font-size: var(--fs-18); }

.field-label,
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-14);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--red);
}
.eyebrow { font-size: var(--fs-18); }

.link-arrow { color: var(--red); font-weight: 600; background-image: none; padding-bottom: 0; }
.link-arrow .icon { width: 0.9rem; height: 0.9rem; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* ==========================================================================
   Karte (Google Maps)
   ========================================================================== */
.map {
  position: relative;
  display: grid;
  min-height: 22rem;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-card);
}
.map iframe {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  border: 0;
}

.map-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--silver-soft);
}
.map-switch button {
  min-height: 2.5rem;
  padding: 0 var(--s-5);
  border-radius: var(--radius-pill);
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--graphite);
  transition: background-color var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.map-switch button[aria-pressed="true"] {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.location.is-selected { box-shadow: inset 0 0 0 2px var(--red); background: var(--white); }
.plate__img { display: grid; }
.plate__img > img,
.plate__img > .photo-pending { grid-area: 1 / 1; width: 100%; height: 100%; }

/* ==========================================================================
   Rote Icon-Plakette und Link-Kachel (Unterseiten-Einstiege)
   ========================================================================== */
.icon-badge {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  box-shadow: none;
  transition: transform var(--t-hover) var(--ease-spring);
}
.icon-badge .icon { width: 1.3rem; height: 1.3rem; }
.icon-badge--lg { width: 3.5rem; height: 3.5rem; }
.icon-badge--lg .icon { width: 1.6rem; height: 1.6rem; }
.icon-badge--soft { background: var(--red-tint); color: var(--red); box-shadow: none; }

.link-tile {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: var(--space-stack);
  text-decoration: none;
  color: inherit;
}
.link-tile .plate__img { aspect-ratio: 16 / 10; }
.link-tile__body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--space-stack);
  row-gap: 0.25rem;
  align-items: center;
  padding: 0 var(--space-stack-sm) var(--space-stack-sm);
}
.link-tile__body .icon-badge { grid-row: span 2; align-self: start; }
.link-tile__title { font-size: var(--fs-20); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.link-tile__text { font-size: var(--fs-14); color: var(--graphite); line-height: 1.45; }
.link-tile__more {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-top: var(--space-stack-sm);
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--red);
}
.link-tile__more .icon { width: 0.85rem; height: 0.85rem; transition: transform var(--t-hover) var(--ease-spring); }
.link-tile:hover .link-tile__more .icon { transform: translateX(4px); }
.link-tile:hover .icon-badge { transform: rotate(-8deg) scale(1.08); }

.tile-grid {
  display: grid;
  gap: var(--space-grid);
  list-style: none;
  padding: 0;
}
@media (min-width: 40em) { .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) {
  .tile-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Kompakte Info-Kachel mit Icon */
.info-tile { display: grid; gap: var(--space-stack-sm); align-content: start; padding: var(--space-grid); }
.info-tile h3 { font-size: var(--fs-20); margin-top: var(--space-stack-sm); }
.info-tile p { color: var(--graphite); font-size: var(--fs-16); }
.info-tile:hover .icon-badge { transform: rotate(-8deg) scale(1.08); }

/* ==========================================================================
   Ruhiges Raster: Text + kleines Bild
   Link-Kacheln sind Zeilen mit Vorschaubild statt grosser Bildkarten
   ========================================================================== */
.link-tile {
  grid-template-rows: none;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  align-items: center;
  gap: var(--space-stack);
  padding: var(--s-3);
}
.link-tile .plate__img { aspect-ratio: 1 / 1; border-radius: var(--radius-sm); }
.link-tile__body { padding: 0; grid-template-columns: minmax(0, 1fr); row-gap: 0.2rem; }
.link-tile__body .icon-badge { display: none; }
.link-tile__more { grid-column: 1; margin-top: 0.15rem; }
@media (min-width: 40em) {
  .link-tile { grid-template-columns: 7.5rem minmax(0, 1fr); }
}
/* Link-Zeilen immer höchstens zweispaltig */
@media (min-width: 64em) {
  .tile-grid--4:has(.link-tile),
  .tile-grid--3:has(.link-tile) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Karten mit Icon: Icon und Titel in einer Zeile, kompakt */
.info-tile {
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--space-stack);
  row-gap: 0.25rem;
  align-items: center;
  padding: var(--space-stack) var(--space-grid) var(--space-stack) var(--space-stack);
}
.info-tile .icon-badge { grid-row: span 2; align-self: start; }
.info-tile h3 { margin-top: 0; font-size: var(--fs-18); }
.info-tile p { font-size: var(--fs-14); line-height: 1.5; }

/* Karte flacher */
.map-block .map { aspect-ratio: 16 / 9; min-height: 16rem; }

/* ==========================================================================
   Kanten statt Kissen: präzise Details
   - kleine Radien, feine Linien statt weicher Schatten
   - Icon-Plaketten als Schilder (eckig), Hover als kurzes Anheben
   ========================================================================== */
.icon-badge,
.station__mark,
.ax__toggle,
.icon-btn,
.choice__icon,
.quick__icon,
.dropzone__icon,
.service-item__icon,
.value__box { border-radius: var(--radius-sm) !important; }
.icon-badge { box-shadow: none; }
.choice__check,
.progress__dot { border-radius: 3px !important; }
.thread-node { border-radius: 2px !important; }
.tick-list li::before,
.acc__box,
.door__box,
.check input { border-radius: 3px; }

.btn:hover { transform: translateY(-1px); box-shadow: none !important; }
.btn:active { transform: translateY(1px); }

.tile--paper { box-shadow: inset 0 0 0 1px transparent; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
  .tile--paper:hover { background: var(--white); }
  .tile:hover .plate__img img { transform: scale(1.03); }
  .link-tile:hover .icon-badge,
  .info-tile:hover .icon-badge,
  .station:hover .station__icon,
  .service-item:hover .service-item__icon { transform: none; }
}

/* Einheitliche Innenabstände aller Kacheln */
.tile { padding: 1.25rem; }
.link-tile { padding: 0.75rem; }
.info-tile { padding: 1.25rem; }

/* Rote Linie unter Abschnittstiteln: kürzer, kantig */
.section-head h2::after { width: 2.5rem; height: 3px; border-radius: 0; }

/* Oberzeile mit kurzer roter Kante davor */
.eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; }
.eyebrow::before { content: ""; width: 1.25rem; height: 3px; background: var(--red); }

/* Untermenü Dienstleistungen (Desktop) */
.nav__item { position: relative; }
.nav__sub {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: -1rem;
  z-index: 5;
  width: 21rem;
  padding: 0.5rem;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: 0 0 0 1px #e1e1e6, 0 18px 36px -18px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out), visibility 0s linear var(--t-base);
}
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -0.9rem; height: 0.9rem; }
.nav__item:hover .nav__sub,
.nav__item:focus-within .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out), visibility 0s;
}
.nav__sub ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.nav__sub a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.6rem 0.65rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color var(--t-fast) var(--ease-out);
}
.nav__sub a:hover,
.nav__sub a[aria-current="page"] { background: var(--paper); }
.nav__sub strong { display: block; font-size: var(--fs-14); font-weight: 650; }
.nav__sub small { display: block; font-size: 0.8125rem; color: var(--steel); }
.nav__sub-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
  background: var(--red-tint);
  color: var(--red);
}
.nav__sub-icon .icon { width: 1rem; height: 1rem; }
.nav__sub a:hover .nav__sub-icon { background: var(--red); color: var(--white); }

/* Mobile-Menü: Unterseiten eingerückt */
.mobile-menu__sub a {
  padding: 0.65rem 0 0.65rem 1rem !important;
  font-size: var(--fs-16) !important;
  font-weight: 600 !important;
  color: var(--graphite);
  border-left: 1px solid var(--silver);
}
.mobile-menu__sub a[aria-current="page"] { color: var(--red); border-left-color: var(--red); }

/* E-Mail unter der Telefonnummer der Standorte */
.location__mail { font-size: var(--fs-14); font-weight: 600; color: var(--graphite); text-decoration: none; overflow-wrap: anywhere; }
.location__mail:hover { color: var(--red); }
