﻿/* Servicecard Logo-Motive */
.service-dach {
  margin: 0;
  line-height: 0;
  width: var(--service-roof-width, 12.2em);
  max-width: 92%;
  height: 14px;
  justify-self: center;
  margin-inline: auto;
  transform: translateY(-25px);
}

.service-dach-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 1px 1px rgba(95, 72, 38, 0.25));
}

.service-dach-svg path:first-child {
  stroke-width: 2.35;
}

.service-dach-svg path:last-child {
  stroke-width: 1.05;
}

.service-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.02em;
}

.service-line {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.05em;
  width: max-content;
  justify-self: center;
}

.service-saeule {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-right: 0;
  margin-bottom: -0.06em;
  color: var(--logo-gold-dark);
}

.service-saeule-svg {
  display: block;
  width: 1.1em;
  height: 1.95em;
  filter: drop-shadow(0 1px 1px rgba(95, 72, 38, 0.35));
}
.service-card h3 {
  font-weight: 400;
  font-size: clamp(1.08rem, 1.45vw, 1.34rem);
  line-height: 1.08;
  letter-spacing: 0;
  display: grid;
  place-items: center;
  gap: 0;
  width: 100%;
  max-width: 100%;
}

.service-wordmark {
  display: inline-grid;
  grid-template-rows: auto auto;
  justify-items: center;
  align-items: center;
  row-gap: 0.28rem;
  max-width: 100%;
  width: max-content;
  margin-inline: auto;
  white-space: nowrap;
}

#leistungen .service-card:nth-child(1) .service-wordmark {
  transform: translateX(-4px);
}

#leistungen .service-card:nth-child(2) .service-wordmark {
  transform: translateX(-16px);
}

#leistungen .service-card:nth-child(3) .service-wordmark {
  transform: translateX(-15px);
}

#leistungen .service-card:nth-child(4) .service-wordmark {
  transform: translateX(-17px);
}

.service-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.12em;
  flex-wrap: nowrap;
  justify-content: center;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
}

.service-text .immo-part {
  margin-left: -0.04em;
  letter-spacing: 0;
}

.service-text strong {
  white-space: nowrap;
}

.service-card h3,
.service-wordmark,
.service-text,
.service-text * {
  -webkit-user-select: none;
  user-select: none;
}

:root {
  --phi: 1.618;
  --bg: #f7f1e5;
  --paper: #fffaf2;
  --ink: #1f2a26;
  --ink-soft: #445651;
  --accent: #0c7a67;
  --accent-strong: #095747;
  --logo-gold: #a88a58;
  --logo-gold-dark: #8f7347;
  --logo-gold-light: #c3ab7a;
  --line: #d7c6a9;
  --line-strong: #bda884;
  --shadow: 0 16px 44px rgba(27, 35, 33, 0.16);
  --topbar-pad-y: 0.8rem;
  --topbar-pad-x: 1.2rem;
  --topbar-gap: 1rem;
  --nav-link-size: 1rem;
  --brand-size: 1rem;
  --contact-icon-size: 2.1rem;
  --contact-icon-font: 1rem;
  --a11y-icon-size: 3rem;
  --a11y-icon-font: 1rem;
  --space-1: 0.62rem;
  --space-2: 1rem;
  --space-3: 1.62rem;
  --space-4: 2.62rem;
  --space-5: 4.24rem;
  --btn-gold-bg: linear-gradient(175deg, #cdb07a 0%, var(--logo-gold) 30%, var(--logo-gold-dark) 55%, var(--logo-gold) 75%, #b89560 100%);
  --btn-gold-border: #d4b880;
  --btn-gold-shadow: inset 0 1px 0 rgba(240, 215, 155, 0.55), inset 0 -1px 0 rgba(50, 28, 0, 0.38), 0 1px 4px rgba(50, 35, 8, 0.18);
  --btn-gold-shadow-hover: inset 0 1px 0 rgba(245, 220, 165, 0.62), inset 0 -1px 0 rgba(50, 28, 0, 0.42), 0 2px 8px rgba(50, 35, 8, 0.24);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Outfit, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
}

body[data-font-step="1"] {
  font-size: 1.1rem;
  --topbar-pad-y: 0.95rem;
  --topbar-pad-x: 1.3rem;
  --topbar-gap: 1.15rem;
  --nav-link-size: 1.08rem;
  --brand-size: 1.08rem;
  --contact-icon-size: 2.45rem;
  --contact-icon-font: 1.08rem;
  --a11y-icon-size: 3.35rem;
  --a11y-icon-font: 1.08rem;
}

body[data-font-step="2"] {
  font-size: 1.2rem;
  --topbar-pad-y: 1.05rem;
  --topbar-pad-x: 1.45rem;
  --topbar-gap: 1.3rem;
  --nav-link-size: 1.16rem;
  --brand-size: 1.16rem;
  --contact-icon-size: 2.8rem;
  --contact-icon-font: 1.16rem;
  --a11y-icon-size: 3.7rem;
  --a11y-icon-font: 1.16rem;
}

.a11y-dock {
  position: fixed;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: grid;
  gap: 0.55rem;
}

.a11y-icon {
  width: var(--a11y-icon-size);
  height: var(--a11y-icon-size);
  border: 1px solid var(--btn-gold-border);
  border-radius: 999px;
  background: var(--btn-gold-bg);
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(50, 28, 0, 0.55);
  font-weight: 800;
  font-size: var(--a11y-icon-font);
  cursor: pointer;
  box-shadow: var(--btn-gold-shadow);
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease, filter 0.18s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.a11y-icon::before {
  content: none;
}

.a11y-icon[aria-pressed="true"] {
  background: linear-gradient(175deg, var(--logo-gold-dark) 0%, #6b4808 50%, var(--logo-gold-dark) 100%);
  border-color: var(--logo-gold);
  filter: brightness(0.88);
}

.a11y-icon:hover,
.a11y-icon:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: var(--btn-gold-shadow-hover);
}

body.high-contrast {
  --bg: #ffffff;
  --paper: #ffffff;
  --ink: #000000;
  --ink-soft: #111111;
  --accent: #0038a8;
  --accent-strong: #002a7a;
  --line: #000000;
  --line-strong: #000000;
}

body.high-contrast .page-bg,
body.high-contrast .hero__bg {
  background: #ffffff !important;
}

body.high-contrast .nav-wrap,
body.high-contrast .hero,
body.high-contrast .signal-strip,
body.high-contrast .signal-strip article,
body.high-contrast .service-card,
body.high-contrast .portal-box,
body.high-contrast .site-footer,
body.high-contrast .modal,
body.high-contrast .contact-icon,
body.high-contrast .opening-hours {
  background: #ffffff !important;
  border-color: #000000 !important;
  color: #000000 !important;
}

body.high-contrast .topbar-divider {
  background: #000000;
}

body.high-contrast .emergency-banner {
  background: #000000 !important;
  color: #ffff00 !important;
  border-bottom-color: #000000 !important;
}

body.high-contrast .emergency-banner strong {
  color: #ffff00 !important;
}

body[data-font-step="1"] .emergency-banner {
  font-size: clamp(1.1rem, 1.2vw, 1.35rem);
}

body[data-font-step="2"] .emergency-banner {
  font-size: clamp(1.25rem, 1.4vw, 1.55rem);
}

body.high-contrast a {
  color: #0033aa;
}

body.high-contrast .primary-menu a {
  color: #000000;
  background: #ffffff;
  border-color: transparent;
}

body.high-contrast .primary-menu a:hover,
body.high-contrast .primary-menu a:focus-visible,
body.high-contrast .primary-menu a[aria-current="page"],
body.high-contrast .primary-menu .active > a {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

body.high-contrast .primary-menu a.menu-havarie,
body.high-contrast .primary-menu a.menu-havarie:hover,
body.high-contrast .primary-menu a.menu-havarie:focus-visible {
  background: #000000;
  color: #ffff00;
  border-color: #000000;
}

body.high-contrast .btn,
body.high-contrast .btn-primary,
body.high-contrast .btn--primary,
body.high-contrast .btn--secondary,
body.high-contrast .btn-ghost,
body.high-contrast .menu-toggle,
body.high-contrast .menu-toggle span {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
}

body.high-contrast .hero__actions .btn:hover,
body.high-contrast .hero__actions .btn:focus-visible {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

body.high-contrast .hero__eyebrow,
body.high-contrast .hero__headline span,
body.high-contrast .signal-value,
body.high-contrast .opening-hours-label,
body.high-contrast .contact-label {
  color: #000000 !important;
}

body.high-contrast .site-footer,
body.high-contrast .site-footer p,
body.high-contrast .site-footer .footer-bottom p,
body.high-contrast .site-footer .footer-contact-link,
body.high-contrast .site-footer .footer-contact-link .contact-label,
body.high-contrast .site-footer .footer-contact-link .contact-glyph,
body.high-contrast .site-footer a,
body.high-contrast .site-footer joomla-hidden-mail a {
  color: #000000 !important;
}

body.high-contrast .hero {
  border-color: #000000 !important;
}

body.high-contrast .site-footer {
  border: 1px solid #000000 !important;
  box-shadow: inset 0 0 0 1px #000000 !important;
}

body.high-contrast .site-footer .footer-bottom {
  border-top: 1px solid #000000 !important;
}

body.high-contrast .modal-overlay {
  background: rgba(0, 0, 0, 0.88);
}

body.high-contrast .modal-close {
  background: #000000;
  color: #ffffff;
  border-color: #ffffff;
}

body.high-contrast .modal-form label,
body.high-contrast .modal-header p,
body.high-contrast .form-note,
body.high-contrast .char-counter {
  color: #000000;
}

body.high-contrast .modal-form input,
body.high-contrast .modal-form textarea {
  background: #ffffff;
  border-color: #000000;
  color: #000000;
}

body.high-contrast .modal-form input::placeholder,
body.high-contrast .modal-form textarea::placeholder {
  color: #333333;
}

body.high-contrast :focus-visible {
  outline-color: #ffbf47 !important;
}

body.high-contrast .page-bg {
  background: #ffffff;
}

body.high-contrast .btn-primary {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

body.high-contrast .btn-ghost,
body.high-contrast .nav-wrap,
body.high-contrast .usp-card,
body.high-contrast .signal-strip article,
body.high-contrast blockquote {
  background: #ffffff;
  border-color: #000000;
}

body.high-contrast a {
  color: #0000cc;
}

body.high-contrast .a11y-icon {
  background: #ffffff;
  color: #000000;
  border-color: #000000;
}

body.high-contrast .a11y-icon[aria-pressed="true"] {
  background: #000000;
  color: #ffe600;
  border-color: #ffe600;
}

body.high-contrast .a11y-icon:hover,
body.high-contrast .a11y-icon:focus-visible {
  background: #000000;
  color: #ffffff;
  border-color: #ffffff;
}

body.high-contrast .contact-icon {
  background: #ffffff;
  color: #000000;
  border-color: #000000;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 10% 18%, rgba(236, 131, 70, 0.28), transparent 34%),
    radial-gradient(circle at 88% 14%, rgba(12, 122, 103, 0.2), transparent 36%),
    linear-gradient(160deg, #fff6e6 0%, #f8f1e5 52%, #edf2ee 100%);
}

.emergency-banner {
  width: 100%;
  background: linear-gradient(135deg, #7a0000 0%, #b71c1c 35%, #ff3333 70%, #9f0000 100%);
  color: #fff7f7;
  text-align: center;
  padding: 0.9rem 3.5rem;
  font-size: clamp(0.95rem, 1vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.12), 0 6px 18px rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  min-height: 0;
  height: auto;
}

.emergency-banner p {
  margin: 0;
  word-break: break-word;
  white-space: normal;
}

.emergency-banner strong {
  color: #ffe4e4;
}

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.site-header {
  padding-top: var(--space-2);
}

.header-brand {
  display: flex;
  justify-content: center;
  margin: 0.85rem auto 0.5rem;
}

.header-brand img {
  max-height: 56px;
  width: auto;
}

.nav-wrap {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.70);
  border-bottom-color: rgba(210, 190, 155, 0.45);
  background: rgba(252, 247, 238, 0.52);
  backdrop-filter: blur(22px) saturate(140%) contrast(1.04);
  -webkit-backdrop-filter: blur(22px) saturate(140%) contrast(1.04);
  border-radius: 26px;
  padding: calc(var(--topbar-pad-y) * 1.05) calc(var(--topbar-pad-x) * 1.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.90) inset,
    1px 0 0 rgba(255, 255, 255, 0.55) inset,
    -1px 0 0 rgba(255, 255, 255, 0.55) inset,
    0 -1px 0 rgba(200, 178, 140, 0.20) inset,
    0 4px 8px rgba(35, 39, 37, 0.08),
    0 14px 32px rgba(35, 39, 37, 0.12),
    0 32px 64px rgba(35, 39, 37, 0.08);
  gap: var(--topbar-gap);
}

.topbar-row {
  display: flex;
  align-items: center;
  gap: var(--topbar-gap);
  min-height: calc(var(--contact-icon-size) + 0.4rem);
}

.topbar-row-primary {
  justify-content: center;
  flex-wrap: wrap;
}

/* Keep Joomla module wrapper from breaking preview header alignment */
.topbar-row-primary > .mod-custom.custom {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--topbar-gap);
  flex-wrap: wrap;
}

.topbar-row-primary > .mod-custom.custom .contact-label a,
.topbar-row-primary > .mod-custom.custom joomla-hidden-mail a {
  color: inherit;
  text-decoration: none;
}

.topbar-row-secondary {
  justify-content: center;
  min-height: 2.9rem;
}

.topbar-row-primary .quick-contact {
  margin-right: 0;
}

.topbar-row-primary .opening-hours {
  margin-left: 0;
  justify-content: center;
  text-align: center;
}

.topbar-row-secondary .primary-menu {
  justify-content: center;
}

.topbar-divider {
  width: 100%;
  height: 1px;
  min-height: 1px;
  background: linear-gradient(
    90deg,
    rgba(189, 168, 132, 0) 0%,
    rgba(189, 168, 132, 0.88) 18%,
    rgba(189, 168, 132, 0.88) 82%,
    rgba(189, 168, 132, 0) 100%
  );
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-family: Outfit, "Segoe UI", sans-serif;
  letter-spacing: 0.02em;
  font-size: var(--brand-size);
  margin-right: 0.5rem;
  flex: 0 0 auto;
}

.quick-contact {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  min-height: var(--contact-icon-size);
}

.contact-icon {
  min-height: var(--contact-icon-size);
  min-width: max-content;
  padding: 0.15rem 0.7rem 0.15rem 0.2rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.contact-glyph {
  width: calc(var(--contact-icon-size) - 0.4rem);
  height: calc(var(--contact-icon-size) - 0.4rem);
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--contact-icon-font);
  line-height: 1;
}

.contact-label {
  font-size: 0.92rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.opening-hours {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin: 0;
  min-height: var(--contact-icon-size);
  min-width: max-content;
  padding: 0.15rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.78);
}

.opening-hours-label {
  font-weight: 700;
  color: var(--ink);
}

.opening-hours-value {
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--logo-gold-dark);
  background: linear-gradient(120deg, var(--logo-gold-dark) 0%, var(--logo-gold) 100%);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.24rem;
  cursor: pointer;
}

.menu-toggle span {
  width: 1.2rem;
  height: 2px;
  background: #ffffff;
  border-radius: 4px;
}

.primary-menu {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  min-height: 2.6rem;
}

.primary-menu a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  padding: 0.25rem 0.45rem;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  min-height: 2rem;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease;
}

.primary-menu a:hover,
.primary-menu a:focus-visible {
  background: rgba(12, 122, 103, 0.12);
  color: var(--ink);
}

.primary-menu .item-102 > a::before {
  content: "";
  display: inline-block;
  width: 1.15rem;
  height: 1.15rem;
  margin-right: 0.42rem;
  vertical-align: -0.14em;
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72'%3E%3Cdefs%3E%3ClinearGradient id='gold' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23d5b97d'/%3E%3Cstop offset='1' stop-color='%23a27d3e'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M5 27L36 8l31 19-2 4H7z' fill='url(%23gold)' stroke='%239d7738' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M12 31h48v4H12z' fill='%23b99350'/%3E%3Crect x='10' y='35' width='52' height='24' fill='none' stroke='%23a07c3e' stroke-width='2.1'/%3E%3Cg stroke='%23a07c3e' stroke-width='2' fill='none' stroke-linecap='round'%3E%3Cpath d='M18 57V40M20.6 57V40M23.2 57V40'/%3E%3Cpath d='M28 57V40M30.6 57V40M33.2 57V40'/%3E%3Cpath d='M39 57V40M41.6 57V40M44.2 57V40'/%3E%3Cpath d='M49 57V40M51.6 57V40M54.2 57V40'/%3E%3C/g%3E%3Cpath d='M9 59h54v5H9z' fill='%23b8914c'/%3E%3Cpath d='M6 64h60v3H6z' fill='%23a07c3e'/%3E%3C/svg%3E");
  filter: drop-shadow(0 1px 1px rgba(25, 20, 11, 0.35));
}

body.high-contrast .primary-menu .item-102 > a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72'%3E%3Cpath d='M5 27L36 8l31 19-2 4H7z' fill='%23ffe600' stroke='%23000000' stroke-width='2.8'/%3E%3Cpath d='M12 31h48v4H12z' fill='%23000000'/%3E%3Crect x='10' y='35' width='52' height='24' fill='%23fff176' stroke='%23000000' stroke-width='2.8'/%3E%3Cg stroke='%23000000' stroke-width='2.4' fill='none' stroke-linecap='round'%3E%3Cpath d='M18 57V40M20.6 57V40M23.2 57V40'/%3E%3Cpath d='M28 57V40M30.6 57V40M33.2 57V40'/%3E%3Cpath d='M39 57V40M41.6 57V40M44.2 57V40'/%3E%3Cpath d='M49 57V40M51.6 57V40M54.2 57V40'/%3E%3C/g%3E%3Cpath d='M9 59h54v5H9z' fill='%23ffe600' stroke='%23000000' stroke-width='2.4'/%3E%3Cpath d='M6 64h60v3H6z' fill='%23000000'/%3E%3C/svg%3E");
}

.primary-menu a.menu-havarie {
  position: relative;
  color: #ffffff;
  background: linear-gradient(135deg, #c62828 0%, #ff3d3d 35%, #b71c1c 65%, #880e0e 100%);
  box-shadow: 0 0 12px rgba(203, 20, 20, 0.45);
  overflow: hidden;
  margin-left: 1rem;
  padding: 0.25rem 0.9rem;
  min-height: 2rem;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--nav-link-size);
}

.primary-menu a.menu-havarie::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.0) 35%, rgba(0,0,0,0.08) 80%);
  opacity: 0.5;
  pointer-events: none;
}

.primary-menu a.menu-havarie::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.45), transparent 12%),
              radial-gradient(circle at 80% 80%, rgba(255, 120, 120, 0.35), transparent 18%);
  opacity: 0.65;
  filter: blur(1px);
  animation: havarie-flicker 2.8s ease-in-out infinite;
}

.primary-menu a.menu-havarie:hover,
.primary-menu a.menu-havarie:focus-visible {
  transform: translateY(-1px);
  color: #ffffff;
}

@keyframes havarie-flicker {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.65; }
  25% { transform: translateY(-1px) scale(1.03); opacity: 0.75; }
  50% { transform: translateY(1px) scale(0.99); opacity: 0.55; }
  75% { transform: translateY(-0.5px) scale(1.02); opacity: 0.7; }
}

@keyframes hero-trust-glow {
  0%, 100% {
    text-shadow:
      -0.7px -0.7px 0 rgba(255, 251, 244, 0.95),
      0.7px -0.7px 0 rgba(255, 251, 244, 0.95),
      -0.7px 0.7px 0 rgba(255, 251, 244, 0.95),
      0.7px 0.7px 0 rgba(255, 251, 244, 0.95),
      0 0 8px rgba(255, 244, 196, 0.2);
  }
  50% {
    text-shadow:
      -0.85px -0.85px 0 rgba(255, 253, 247, 1),
      0.85px -0.85px 0 rgba(255, 253, 247, 1),
      -0.85px 0.85px 0 rgba(255, 253, 247, 1),
      0.85px 0.85px 0 rgba(255, 253, 247, 1),
      0 0 11px rgba(255, 245, 199, 0.28);
  }
}

main {
  padding-top: 1.5rem;
  padding-bottom: 3.5rem;
}

.hero {
  position: relative;
  min-height: 70vh;
  width: min(1160px, 92vw);
  max-width: 100%;
  margin: 1.85rem auto 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 5.4rem 2rem 4.6rem;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(252, 248, 242, 0.46);
  backdrop-filter: blur(28px) saturate(145%) contrast(1.04);
  -webkit-backdrop-filter: blur(28px) saturate(145%) contrast(1.04);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-bottom-color: rgba(205, 185, 148, 0.38);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    1px 0 0 rgba(255, 255, 255, 0.55) inset,
    -1px 0 0 rgba(255, 255, 255, 0.55) inset,
    0 -1px 0 rgba(200, 178, 140, 0.18) inset,
    0 4px 8px rgba(25, 35, 30, 0.07),
    0 16px 40px rgba(25, 35, 30, 0.12),
    0 40px 90px rgba(25, 35, 30, 0.08);
}

.page-about .about-page-header {
  margin-top: 2.5rem;
  margin-bottom: 2.75rem;
  padding: clamp(2rem, 4vw, 3.25rem);
  text-align: center;
  background: rgba(245, 238, 229, 0.88);
  border: 1px solid rgba(189, 148, 103, 0.35);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(25, 35, 30, 0.08);
}

.page-about .about-page-header__brand {
  display: inline-flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.page-about .about-page-header__brand img {
  display: block;
  max-height: 110px;
  width: auto;
}

.page-about .about-page-header__eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  color: #8a6f4f;
}

.page-about .about-page-header h1 {
  margin: 0;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.08;
  color: var(--ink);
}

.page-about .about-page-header__lead {
  max-width: 760px;
  margin: 1.4rem auto 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.8;
  color: var(--ink-soft);
}

.page-about .about-page-header__copy {
  max-width: 820px;
  margin: 2.2rem auto 0;
}

.page-about .about-page-header__copy h2 {
  margin: 0 0 1rem;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.12;
  color: var(--ink);
}

.page-about .about-page-header__copy p {
  margin: 0.9rem auto 0;
  max-width: 760px;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.85;
  color: var(--ink-soft);
}

.page-about .about-team {
  margin-top: 2.2rem;
}

.page-about .about-team__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(2rem, 3.4vw, 3.2rem);
  background: linear-gradient(160deg, rgba(255, 253, 248, 0.9) 0%, rgba(246, 236, 221, 0.86) 100%);
  border: 1px solid rgba(168, 138, 88, 0.28);
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(25, 35, 30, 0.1);
}

.page-about .about-team__eyebrow {
  margin: 0 0 0.8rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--logo-gold-dark);
}

.page-about .about-team h2 {
  margin: 0 0 1.2rem;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  line-height: 1.08;
  color: var(--ink);
}

.page-about .about-team p {
  margin: 0.8rem 0 0;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.82;
  color: #384844;
  max-width: 62ch;
  text-align: left;
}

.page-about .about-team p:first-of-type {
  margin-top: 0;
}

.page-about .about-cta {
  margin-top: 2.8rem;
  text-align: center;
  padding: clamp(2.2rem, 4vw, 3.5rem) 1.2rem;
  border-radius: 24px;
  border: 1px dashed rgba(168, 138, 88, 0.6);
  background: linear-gradient(180deg, rgba(255, 250, 242, 0.78) 0%, rgba(255, 245, 229, 0.88) 100%);
}

.page-about .about-cta h2 {
  margin: 0;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
  line-height: 1.16;
}

.page-about .about-cta p {
  margin: 1rem auto 1.8rem;
  max-width: 56ch;
  color: var(--ink-soft);
}

body.high-contrast .page-about .about-team__inner,
body.high-contrast .page-about .about-cta {
  background: #ffffff;
  border-color: #000000;
}

body.high-contrast .page-about .about-team__eyebrow,
body.high-contrast .page-about .about-team h2,
body.high-contrast .page-about .about-team p,
body.high-contrast .page-about .about-cta h2,
body.high-contrast .page-about .about-cta p {
  color: #000000;
}

/* Compact Page Header for Subpages */
.page-header {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem 0;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.page-header h1 {
  margin: 0 0 0.5rem;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.1;
  color: var(--ink);
}

.page-header__subtitle {
  margin: 0;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: var(--ink-soft);
  letter-spacing: 0.05em;
  font-weight: 500;
}

#lares-objekte-frame {
  overflow: hidden;
}

/* Neues-Angebot button: only visible for logged-in admins */
body:not(.logged-in) a.btn[href*="objektform"] {
  display: none !important;
}

/* Angebote: layout wrapper for the offers iframe — no visible frame */
#mod-custom131 > .container,
#mod-custom131 > section.container {
  width: min(1160px, 92vw) !important;
  max-width: min(1160px, 92vw) !important;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow: hidden;
  position: relative;
}

/* Leistungen: CTA "Interessiert?" card */
#mod-custom171 > .container {
  width: min(1160px, 92vw) !important;
  max-width: min(1160px, 92vw) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  border-radius: 1.2rem !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18) 0%, rgba(252, 245, 234, 0.12) 55%, rgba(244, 232, 214, 0.07) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.44) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72) inset,
    0 -1px 0 rgba(255, 255, 255, 0.28) inset,
    0 20px 42px rgba(20, 28, 25, 0.12),
    0 6px 14px rgba(20, 28, 25, 0.06) !important;
  backdrop-filter: blur(24px) saturate(1.6) brightness(1.1) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.6) brightness(1.1) !important;
}

/* Angebote: framed window around the "Nichts dabei?" teaser card */
#mod-custom132 > .container {
  width: min(1160px, 92vw) !important;
  max-width: min(1160px, 92vw) !important;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16) 0%, rgba(252, 245, 234, 0.1) 55%, rgba(244, 232, 214, 0.06) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72) inset,
    0 -1px 0 rgba(255, 255, 255, 0.28) inset,
    0 20px 42px rgba(20, 28, 25, 0.12),
    0 6px 14px rgba(20, 28, 25, 0.06);
  backdrop-filter: blur(24px) saturate(1.6) brightness(1.1);
  -webkit-backdrop-filter: blur(24px) saturate(1.6) brightness(1.1);
}

.portal-faq {
  max-width: 920px;
  margin: 0 auto;
  padding: 2.8rem 0 3.2rem;
}

.portal-faq__header {
  margin-bottom: 1.5rem;
  text-align: left;
}

.portal-faq__eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--logo-gold-dark);
  font-weight: 700;
}

.portal-faq__header h2 {
  margin: 0;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: clamp(1.55rem, 2.3vw, 2.1rem);
  line-height: 1.08;
  color: var(--ink);
}

.portal-faq__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.portal-faq__item {
  border: 1px solid rgba(168, 138, 88, 0.26);
  border-radius: 18px;
  background: rgba(255, 252, 246, 0.88);
  padding: 1.1rem 1.2rem;
  box-shadow: 0 8px 24px rgba(27, 35, 33, 0.06);
}

.portal-faq__item h3 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  line-height: 1.24;
  color: var(--ink);
}

.portal-faq__item p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.72;
}

.portal-faq__item a {
  color: var(--accent-strong);
  text-underline-offset: 0.16em;
}

body.high-contrast .portal-faq__eyebrow,
body.high-contrast .portal-faq__header h2,
body.high-contrast .portal-faq__item h3,
body.high-contrast .portal-faq__item p,
body.high-contrast .portal-faq__item a {
  color: #000000 !important;
}

body.high-contrast .portal-faq__item {
  background: #ffffff !important;
  border-color: #000000 !important;
}

.hero__brand {
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  padding: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.hero__brand img {
  max-height: 156px;
  width: auto;
  display: block;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 250, 240, 0.28) 60%,
    rgba(215, 198, 169, 0.12) 100%
  );
  border-radius: inherit;
}


.hero__content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  width: min(100%, 820px);
  display: grid;
  gap: clamp(0.95rem, 1.9vw, 1.3rem);
  padding-top: clamp(1.9rem, 3.4vw, 2.7rem);
  justify-items: center;
}

.hero__eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--logo-gold-dark);
  margin: 0.35rem 0 0;
  font-weight: 700;
}

.hero__headline {
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  margin: 0;
}

.hero__headline span {
  color: var(--logo-gold);
}

.hero__subline {
  margin: 0 auto 0;
  color: var(--ink-soft);
  max-width: 640px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.68;
}

.hero__intro {
  width: min(100%, 760px);
  margin-top: 1.4rem;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  text-align: center;
  color: var(--ink-soft);
}

.hero__intro-heading {
  margin: 0 0 0.75rem;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}

.hero__intro p {
  margin: 0.65rem auto 0;
  max-width: 720px;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.72;
  color: var(--ink-soft);
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.hero__trust {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 1;
  width: calc(100% - 2.5rem);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
}

.hero__trust span {
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50px;
  padding: 0.28rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.90), 0 2px 8px rgba(143,115,71,0.08);
}

.hero__brand {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  padding: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.hero__trust span::before {
  content: "✓";
  display: inline-block;
  margin-right: 0.5rem;
  color: var(--logo-gold);
}

.btn.btn--secondary {
  color: #ffffff;
}

.btn.btn--secondary:hover,
.btn.btn--secondary:focus-visible {
  color: #ffffff;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 18, 0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: flex-start;
  padding: 4rem 3rem;
  z-index: 90;
  overflow-y: auto;
}

.modal-overlay.is-open {
  display: flex;
}

.modal {
  width: min(820px, 100%);
  max-width: 820px;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  background:
    linear-gradient(175deg, rgba(255,255,252,0.99) 0%, rgba(252,247,240,0.99) 100%);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.72);
  box-shadow:
    0 2px 0 rgba(255,255,255,0.95) inset,
    0 -1px 0 rgba(180,155,110,0.12) inset,
    0 8px 24px rgba(15,20,18,0.08),
    0 28px 64px rgba(15,20,18,0.18),
    0 56px 96px rgba(15,20,18,0.08);
  padding: 2.4rem 2.8rem 2.8rem;
  position: relative;
  margin: auto;
}

.modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(180,165,140,0.28);
  background: rgba(245,238,226,0.72);
  color: var(--ink-soft);
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.modal-close:hover {
  background: rgba(230,218,200,0.9);
  color: var(--ink);
}

.modal-header {
  padding-right: 2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.4rem;
  margin-bottom: 0;
}

.modal-header h2 {
  margin: 0.3rem 0 0;
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.modal-header p {
  margin: 0.6rem 0 0;
  color: var(--ink-soft);
  max-width: 44ch;
  font-size: 0.97rem;
}

.modal-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.modal-form label {
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.field-required {
  position: relative;
}

.required-star {
  color: #c33;
  margin-left: 0.25rem;
  font-size: 1rem;
  line-height: 1.2;
}

.field-required::after {
  content: none;
}

.field-error {
  display: none;
  color: #b02a37;
  font-size: 0.92rem;
  margin-top: 0.25rem;
}

.field-error.is-visible {
  display: block;
}

.form-note {
  margin: 0;
  color: #6f776f;
  font-size: 0.92rem;
  line-height: 1.5;
}

.form-note-star {
  color: #c33;
}

.modal-form input:invalid,
.modal-form textarea:invalid {
  border-color: #b02a37;
}

.modal-form input,
.modal-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 250, 240, 0.96);
  color: var(--ink);
  font: inherit;
}

.modal-form textarea {
  min-height: 12rem;
  resize: vertical;
}

.textarea-wrap {
  position: relative;
}

.char-counter {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  font-size: 0.85rem;
  color: #6f776f;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  pointer-events: none;
}

#kontakt-modal {
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 2.5vw, 2.1rem);
}

#kontakt-modal .modal {
  width: min(1220px, calc(100vw - clamp(2rem, 6vw, 5rem)));
  max-width: 1220px;
  max-height: calc(100dvh - clamp(2rem, 6vw, 5rem));
  padding: 2rem 1.8rem 1.7rem;
  border-radius: 26px;
}

#kontakt-modal .modal > .modal-close {
  position: absolute;
  top: 0.95rem;
  right: 0.95rem;
  left: auto;
  bottom: auto;
  width: 2.15rem;
  height: 2.15rem;
  margin: 0;
  padding: 0;
  min-width: 0;
  min-height: 0;
  border-radius: 999px;
  border: 1px solid rgba(180, 165, 140, 0.28);
  background: rgba(245, 238, 226, 0.9);
  color: var(--ink-soft);
  text-shadow: none;
  box-shadow: 0 4px 12px rgba(15, 20, 18, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0;
  overflow: visible;
  isolation: auto;
  z-index: 5;
  transform: none;
}

#kontakt-modal .modal > .modal-close:hover {
  background: rgba(230, 218, 200, 0.96);
  color: var(--ink);
  box-shadow: 0 6px 14px rgba(15, 20, 18, 0.16);
}

#kontakt-modal .modal-header {
  border-bottom: 0;
  padding-bottom: 0.8rem;
  margin-bottom: 0.4rem;
}

#kontakt-modal .modal-header p {
  max-width: none;
  white-space: nowrap;
}

#kontakt-modal .modal-form {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  grid-auto-rows: min-content;
  column-gap: 1rem;
  row-gap: 0.8rem;
  margin-top: 1rem;
}

#kontakt-modal .modal-form > label {
  margin: 0;
}

#kontakt-modal .modal-form > label:nth-of-type(-n+4) {
  grid-column: 1;
}

#kontakt-modal .modal-form > label:nth-of-type(5) {
  grid-column: 2;
  grid-row: 1 / span 4;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

#kontakt-modal .modal-form > label:nth-of-type(5) .textarea-wrap {
  display: flex;
  flex: 1 1 auto;
}

#kontakt-modal .modal-form > label:nth-of-type(5) textarea {
  min-height: clamp(15rem, 45vh, 24rem);
  height: 100%;
  resize: vertical;
}

#kontakt-modal .modal-form input,
#kontakt-modal .modal-form textarea {
  border-radius: 14px;
  border-color: rgba(180, 165, 140, 0.32);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 1px 2px rgba(30, 24, 16, 0.08);
}

#kontakt-modal .modal-form input:focus,
#kontakt-modal .modal-form textarea:focus {
  outline: none;
  border-color: rgba(144, 120, 78, 0.62);
  box-shadow: 0 0 0 3px rgba(190, 158, 106, 0.2);
}

#kontakt-modal .form-note,
#kontakt-modal .form-dsgvo,
#kontakt-modal .form-actions,
#kontakt-modal .form-status {
  grid-column: 1 / -1;
}

#kontakt-modal .form-status {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
}
#kontakt-modal .form-status:not(:empty) { display: block; }
#kontakt-modal .form-status--success {
  background: rgba(12, 122, 103, 0.1);
  color: #095747;
  border: 1px solid rgba(12, 122, 103, 0.3);
}
#kontakt-modal .form-status--error {
  background: rgba(180, 40, 40, 0.08);
  color: #7a1a1a;
  border: 1px solid rgba(180, 40, 40, 0.25);
}

#kontakt-modal .form-dsgvo {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 0.2rem;
}

#kontakt-modal .form-dsgvo input[type="checkbox"] {
  margin-top: 0.22rem;
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--accent);
  cursor: pointer;
}

#kontakt-modal .form-dsgvo label {
  font-size: 0.87rem;
  color: var(--ink-soft);
  line-height: 1.45;
  cursor: pointer;
  margin: 0;
  padding: 0;
}

#kontakt-modal .form-dsgvo label a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

#kontakt-modal .form-actions {
  padding-top: 0.25rem;
}

@media (max-width: 960px) {
  #kontakt-modal .modal {
    width: min(920px, calc(100vw - 2rem));
    max-height: calc(100dvh - 2rem);
    padding: 1.4rem 1.1rem 1.3rem;
  }

  #kontakt-modal .modal-header p {
    white-space: normal;
  }

  #kontakt-modal .modal-form {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  #kontakt-modal .modal-form > label:nth-of-type(-n+4),
  #kontakt-modal .modal-form > label:nth-of-type(5) {
    grid-column: 1;
    grid-row: auto;
  }

  #kontakt-modal .modal-form > label:nth-of-type(5) textarea {
    min-height: clamp(12rem, 34vh, 18rem);
  }
}

.form-actions {
  display: flex;
  justify-content: flex-start;
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.78rem 1.2rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(50, 28, 0, 0.55);
  letter-spacing: 0.02em;
  border: 1px solid var(--btn-gold-border);
  background: var(--btn-gold-bg);
  box-shadow: var(--btn-gold-shadow);
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s, filter 0.18s;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn::before {
  content: none;
}

button:not(.menu-toggle):not(.a11y-icon),
input[type="button"],
input[type="submit"],
input[type="reset"] {
  border-radius: 999px;
  border: 1px solid var(--btn-gold-border);
  background: var(--btn-gold-bg);
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 1px 1px rgba(50, 28, 0, 0.55);
  letter-spacing: 0.02em;
  box-shadow: var(--btn-gold-shadow);
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s, filter 0.18s;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

button:not(.menu-toggle):not(.a11y-icon)::before {
  content: none;
}

.btn:hover,
.btn:focus-visible,
button:not(.menu-toggle):not(.a11y-icon):hover,
button:not(.menu-toggle):not(.a11y-icon):focus-visible,
input[type="button"]:hover,
input[type="button"]:focus-visible,
input[type="submit"]:hover,
input[type="submit"]:focus-visible,
input[type="reset"]:hover,
input[type="reset"]:focus-visible {
  background: linear-gradient(175deg, #dcc082 0%, #c0984e 30%, #a47c38 55%, #b89050 75%, #c8a660 100%);
  border-color: #dfc088;
  box-shadow: var(--btn-gold-shadow-hover);
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.btn:active,
button:not(.menu-toggle):not(.a11y-icon):active,
input[type="button"]:active,
input[type="submit"]:active,
input[type="reset"]:active {
  transform: translateY(2px);
  filter: brightness(0.94);
  box-shadow: inset 0 1px 0 rgba(255, 220, 80, 0.50), inset 0 -1px 0 rgba(60, 35, 0, 0.38), 0 1px 0 rgba(80, 50, 0, 0.38), 0 2px 5px rgba(100, 70, 10, 0.18);
}

.btn-primary {
  color: #ffffff;
}

.btn-ghost {
  color: #ffffff;
}

.signal-strip {
  margin-top: var(--space-1);
  border: 1px solid rgba(255, 255, 255, 0.70);
  border-bottom-color: rgba(205, 185, 148, 0.40);
  border-radius: 22px;
  padding: 1rem;
  background: rgba(252, 246, 236, 0.48);
  backdrop-filter: blur(22px) saturate(140%) contrast(1.04);
  -webkit-backdrop-filter: blur(22px) saturate(140%) contrast(1.04);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.90) inset,
    1px 0 0 rgba(255, 255, 255, 0.50) inset,
    -1px 0 0 rgba(255, 255, 255, 0.50) inset,
    0 -1px 0 rgba(200, 178, 140, 0.18) inset,
    0 4px 8px rgba(35, 39, 37, 0.07),
    0 14px 32px rgba(35, 39, 37, 0.10),
    0 28px 56px rgba(35, 39, 37, 0.06);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}

.signal-strip article {
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-bottom-color: rgba(205, 185, 148, 0.30);
  border-radius: 14px;
  padding: 0.8rem;
  background: rgba(255, 252, 244, 0.52);
  backdrop-filter: blur(12px) saturate(130%) contrast(1.02);
  -webkit-backdrop-filter: blur(12px) saturate(130%) contrast(1.02);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 3px 10px rgba(35, 39, 37, 0.06),
    0 8px 20px rgba(35, 39, 37, 0.05);
}

.signal-value {
  margin: 0;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 600;
  color: var(--logo-gold-dark);
}

.signal-label {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.usp-grid {
  margin-top: var(--space-3);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.7rem;
  max-width: none;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.service-card {
  min-height: 240px;
  border: 1px solid var(--line);
  background-color: #fcfaf4;
  background-image:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.95) 0, rgba(255, 255, 255, 0) 30%),
    radial-gradient(circle at 82% 14%, rgba(255, 253, 248, 0.72) 0, rgba(255, 253, 248, 0) 25%),
    radial-gradient(circle at 72% 78%, rgba(255, 255, 255, 0.4) 0, rgba(255, 255, 255, 0) 34%),
    linear-gradient(132deg,
      transparent 0,
      transparent 14%,
      rgba(255, 255, 255, 0.1) 19%,
      rgba(228, 220, 209, 0.18) 20.3%,
      rgba(196, 162, 95, 0.06) 21.1%,
      rgba(245, 236, 214, 0.14) 22.2%,
      transparent 26%,
      transparent 100%),
    linear-gradient(104deg,
      transparent 0,
      transparent 58%,
      rgba(255, 255, 255, 0.08) 62%,
      rgba(223, 214, 203, 0.14) 63.1%,
      rgba(189, 154, 88, 0.04) 63.8%,
      transparent 66.4%,
      transparent 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 244, 237, 0.96) 56%, rgba(243, 237, 228, 0.94) 100%);
  background-blend-mode: screen, screen, soft-light, soft-light, normal, normal;
  backdrop-filter: blur(18px) saturate(135%) contrast(1.03);
  -webkit-backdrop-filter: blur(18px) saturate(135%) contrast(1.03);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-bottom-color: rgba(200, 178, 140, 0.32);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 1rem;
  text-align: center;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    1px 0 0 rgba(255, 255, 255, 0.50) inset,
    -1px 0 0 rgba(255, 255, 255, 0.50) inset,
    0 3px 8px rgba(35, 39, 37, 0.07),
    0 10px 24px rgba(35, 39, 37, 0.09);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    1px 0 0 rgba(255, 255, 255, 0.55) inset,
    -1px 0 0 rgba(255, 255, 255, 0.55) inset,
    0 6px 16px rgba(35, 39, 37, 0.10),
    0 18px 40px rgba(35, 39, 37, 0.12);
}

.service-icon {
  width: clamp(3.1rem, 4.4vw, 4.2rem);
  height: clamp(3.1rem, 4.4vw, 4.2rem);
  stroke: #111111;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  margin: 0;
  font-family: Outfit, "Segoe UI", sans-serif;
  color: #202020;
  line-height: 1.25;
}

/* Refined article cards for the Leistungen subpage */
section[aria-label="Leistungsbereiche"].usp-grid {
  gap: 1.2rem;
}

section[aria-label="Leistungsbereiche"].usp-grid .service-card {
  position: relative;
  min-height: 0;
  border: 1px solid rgba(168, 138, 88, 0.34);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0, rgba(208, 188, 154, 0.18) 0, rgba(208, 188, 154, 0) 36%),
    linear-gradient(165deg, rgba(255, 253, 248, 0.98) 0%, rgba(248, 241, 229, 0.96) 100%);
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.85rem;
  padding: 1.3rem 1.35rem 1.15rem;
  text-align: left;
  box-shadow: 0 14px 34px rgba(27, 35, 33, 0.09);
}

section[aria-label="Leistungsbereiche"].usp-grid .service-card::before {
  content: "";
  width: 3.2rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--logo-gold-dark) 0%, var(--logo-gold-light) 100%);
}

section[aria-label="Leistungsbereiche"].usp-grid .service-card h3 {
  margin: 0;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: clamp(1.18rem, 1.7vw, 1.4rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: 0.01em;
  color: var(--ink);
  justify-items: start;
}

section[aria-label="Leistungsbereiche"].usp-grid .service-card p {
  margin: 0;
  color: #3f4d49;
  line-height: 1.72;
}

section[aria-label="Leistungsbereiche"].usp-grid .service-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(143, 115, 71, 0.4);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.8);
  color: var(--accent-strong);
  font-weight: 600;
  text-decoration: none;
}

section[aria-label="Leistungsbereiche"].usp-grid .service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(143, 115, 71, 0.62);
  box-shadow: 0 20px 40px rgba(27, 35, 33, 0.12);
}

section[aria-label="Leistungsbereiche"].usp-grid .service-link:hover,
section[aria-label="Leistungsbereiche"].usp-grid .service-link:focus-visible {
  background: linear-gradient(120deg, rgba(143, 115, 71, 0.16) 0%, rgba(168, 138, 88, 0.2) 100%);
  color: #173d33;
  border-color: rgba(143, 115, 71, 0.7);
}

body.high-contrast section[aria-label="Leistungsbereiche"].usp-grid .service-card::before {
  background: #000000;
}

body.high-contrast section[aria-label="Leistungsbereiche"].usp-grid .service-link {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: #000000 !important;
}

.portal-box {
  margin-top: var(--space-3);
  border: 1px solid rgba(132, 186, 165, 0.70);
  border-bottom-color: rgba(100, 160, 138, 0.38);
  border-radius: 20px;
  background: linear-gradient(120deg, rgba(213, 239, 231, 0.50) 0%, rgba(238, 249, 240, 0.50) 100%);
  backdrop-filter: blur(22px) saturate(140%) contrast(1.04);
  -webkit-backdrop-filter: blur(22px) saturate(140%) contrast(1.04);
  padding: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.90) inset,
    1px 0 0 rgba(255, 255, 255, 0.55) inset,
    -1px 0 0 rgba(255, 255, 255, 0.55) inset,
    0 -1px 0 rgba(100, 160, 138, 0.18) inset,
    0 4px 8px rgba(27, 60, 48, 0.07),
    0 14px 32px rgba(27, 60, 48, 0.10),
    0 28px 56px rgba(27, 60, 48, 0.06);
}

.portal-box h2 {
  margin-top: 0.35rem;
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  max-width: 24ch;
}

/* Havarie-Melden Page Styles */
.havarie-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 210, 190, 0.70);
  border-bottom-color: rgba(219, 164, 141, 0.40);
  max-width: 980px;
  margin-top: 2rem;
  backdrop-filter: blur(22px) saturate(140%) contrast(1.04);
  -webkit-backdrop-filter: blur(22px) saturate(140%) contrast(1.04);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 4px 8px rgba(111, 51, 28, 0.07),
    0 14px 32px rgba(111, 51, 28, 0.10),
    0 28px 56px rgba(111, 51, 28, 0.05);
}

.havarie-col {
  padding: 1.1rem 1.2rem;
}

.havarie-col.emergency {
  background: rgba(183, 28, 28, 0.07);
  backdrop-filter: blur(18px) saturate(138%) contrast(1.03);
  -webkit-backdrop-filter: blur(18px) saturate(138%) contrast(1.03);
  border-right: 1px solid rgba(219, 164, 141, 0.50);
  box-shadow: 1px 0 0 rgba(255, 200, 180, 0.30) inset;
}

.havarie-col.normal {
  background: rgba(252, 246, 236, 0.48);
  backdrop-filter: blur(18px) saturate(138%) contrast(1.03);
  -webkit-backdrop-filter: blur(18px) saturate(138%) contrast(1.03);
}

.havarie-col h3 {
  margin: 0 0 0.6rem;
  font-weight: 800;
  font-size: 1rem;
  color: #b71c1c;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.havarie-col.normal h3 {
  color: #5d3a1a;
}

.havarie-col .subtitle {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  color: #5d3a1a;
  font-style: italic;
}

.havarie-col.normal .subtitle {
  color: #5d4234;
}

.havarie-col ul {
  margin: 0 0 0.8rem;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  line-height: 1.75;
}

.havarie-col.emergency ul {
  color: #3a1a0e;
}

.havarie-col.normal ul {
  color: #3d3020;
}

.havarie-col .emergency-action {
  margin: 0;
  font-weight: 700;
  color: #b71c1c;
  font-size: 0.92rem;
}

.havarie-notfaelle-section {
  margin-top: 2rem;
}

.havarie-notfaelle-section .section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  font-weight: 800;
  color: #8c1f1f;
}

.havarie-notfaelle-box {
  background: rgba(255, 245, 242, 0.48);
  backdrop-filter: blur(20px) saturate(138%) contrast(1.04);
  -webkit-backdrop-filter: blur(20px) saturate(138%) contrast(1.04);
  padding: 1.5rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 200, 190, 0.65);
  border-bottom-color: rgba(219, 164, 141, 0.35);
  border-left: 3px solid rgba(183, 28, 28, 0.55);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.90) inset,
    1px 0 0 rgba(255, 255, 255, 0.55) inset,
    -1px 0 0 rgba(255, 255, 255, 0.55) inset,
    0 3px 8px rgba(111, 51, 28, 0.07),
    0 10px 24px rgba(111, 51, 28, 0.09);
}

.havarie-notfaelle-box .box-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 800;
  line-height: 1.12;
  color: #8c1f1f;
}

.havarie-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.havarie-card {
  background: rgba(255, 252, 248, 0.52);
  backdrop-filter: blur(14px) saturate(132%) contrast(1.02);
  -webkit-backdrop-filter: blur(14px) saturate(132%) contrast(1.02);
  border: 1px solid rgba(255, 220, 210, 0.65);
  border-bottom-color: rgba(219, 164, 141, 0.28);
  border-radius: 10px;
  padding: 0.9rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 3px 8px rgba(111, 51, 28, 0.06),
    0 8px 18px rgba(111, 51, 28, 0.07);
}

.havarie-card .card-title {
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.havarie-card .card-value {
  margin: 0;
}

.havarie-card .card-value a {
  color: #b71c1c;
  text-decoration: none;
  font-weight: 700;
}

/* High-contrast overrides for havarie page */
body.high-contrast .havarie-grid,
body.high-contrast .havarie-col {
  background-color: #ffffff !important;
  border-color: #000000 !important;
  color: #000000 !important;
}

body.high-contrast .havarie-col h3,
body.high-contrast .havarie-col .subtitle,
body.high-contrast .havarie-col ul,
body.high-contrast .havarie-col .emergency-action {
  color: #000000 !important;
}

body.high-contrast .havarie-notfaelle-box {
  background-color: #ffffff !important;
  border-color: #000000 !important;
  color: #000000 !important;
}

body.high-contrast .havarie-notfaelle-box .box-title,
body.high-contrast .havarie-notfaelle-section .section-title {
  color: #000000 !important;
}

body.high-contrast .havarie-card {
  background-color: #ffffff !important;
  border-color: #000000 !important;
  color: #000000 !important;
}

body.high-contrast .havarie-card .card-title,
body.high-contrast .havarie-card .card-value a {
  color: #000000 !important;
}

/* Milchglas-Override für inline-gestylte Havarie-Blöcke */
main [style*="rgba(255, 51, 51, 0.08)"] {
  background: rgba(255, 245, 242, 0.48) !important;
  backdrop-filter: blur(20px) saturate(138%) contrast(1.04) !important;
  -webkit-backdrop-filter: blur(20px) saturate(138%) contrast(1.04) !important;
  border: 1px solid rgba(255, 200, 190, 0.65) !important;
  border-left: 3px solid rgba(183, 28, 28, 0.55) !important;
  border-bottom-color: rgba(219, 164, 141, 0.35) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.90) inset,
    1px 0 0 rgba(255, 255, 255, 0.55) inset,
    -1px 0 0 rgba(255, 255, 255, 0.55) inset,
    0 3px 8px rgba(111, 51, 28, 0.07),
    0 10px 24px rgba(111, 51, 28, 0.09) !important;
}

main [style*="rgba(255,255,255,0.62)"],
main [style*="rgba(255, 255, 255, 0.62)"],
main [style*="rgba(245, 238, 229, 0.52)"] {
  background: rgba(255, 252, 248, 0.52) !important;
  backdrop-filter: blur(14px) saturate(132%) contrast(1.02) !important;
  -webkit-backdrop-filter: blur(14px) saturate(132%) contrast(1.02) !important;
  border: 1px solid rgba(255, 220, 210, 0.65) !important;
  border-bottom-color: rgba(219, 164, 141, 0.28) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 3px 8px rgba(111, 51, 28, 0.06),
    0 8px 18px rgba(111, 51, 28, 0.07) !important;
}

/* Force inline-styled emergency blocks into global high-contrast colors. */
body.high-contrast main [style*="rgba(255, 51, 51, 0.08)"],
body.high-contrast main [style*="rgba(255,255,255,0.62)"] {
  background: #ffffff !important;
  border-color: #000000 !important;
  color: #000000 !important;
}

body.high-contrast main [style*="#8c1f1f"],
body.high-contrast main [style*="#b71c1c"] {
  color: #000000 !important;
  border-color: #000000 !important;
}

body.high-contrast main a[style*="#b71c1c"] {
  color: #000000 !important;
}

body.high-contrast .emergency-note {
  background: #ffffff !important;
  border-color: #000000 !important;
  box-shadow: none !important;
}

body.high-contrast .emergency-note [style*="rgba(183, 28, 28, 0.09)"],
body.high-contrast .emergency-note [style*="rgba(245, 238, 229, 0.7)"] {
  background: #ffffff !important;
  border-color: #000000 !important;
  color: #000000 !important;
}

body.high-contrast .emergency-note [style*="#dba48d"],
body.high-contrast .emergency-note [style*="#5d3a1a"],
body.high-contrast .emergency-note [style*="#5d4234"],
body.high-contrast .emergency-note [style*="#3a1a0e"],
body.high-contrast .emergency-note [style*="#3d3020"],
body.high-contrast .emergency-note [style*="#b71c1c"] {
  color: #000000 !important;
  border-color: #000000 !important;
}

body.high-contrast .emergency-note button[data-open-modal="schaden"] {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
}

.emergency-note {
  margin-top: var(--space-3);
  border-radius: 20px;
  border: 1px solid rgba(255, 210, 190, 0.70);
  border-bottom-color: rgba(219, 164, 141, 0.40);
  background:
    linear-gradient(125deg, rgba(251, 231, 221, 0.48) 0%, rgba(255, 245, 230, 0.48) 100%);
  backdrop-filter: blur(22px) saturate(140%) contrast(1.04);
  -webkit-backdrop-filter: blur(22px) saturate(140%) contrast(1.04);
  padding: 1.2rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.90) inset,
    1px 0 0 rgba(255, 255, 255, 0.55) inset,
    -1px 0 0 rgba(255, 255, 255, 0.55) inset,
    0 -1px 0 rgba(219, 164, 141, 0.22) inset,
    0 4px 8px rgba(111, 51, 28, 0.07),
    0 14px 32px rgba(111, 51, 28, 0.10),
    0 28px 56px rgba(111, 51, 28, 0.06);
}

.emergency-note__layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.emergency-note__content {
  flex: 1 1 auto;
}

.emergency-note__cta {
  flex: 0 0 auto;
  white-space: nowrap;
}

.emergency-note h2 {
  margin-top: 0.3rem;
  font-size: clamp(1.2rem, 4vw, 1.65rem);
}

.emergency-note p:last-child {
  margin-bottom: 0;
  color: #5d4234;
}

.testimonials {
  margin-top: var(--space-3);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

blockquote {
  margin: 0;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.64);
  padding: 1rem;
  color: #2a3b38;
}

cite {
  display: block;
  margin-top: 0.65rem;
  font-style: normal;
  color: var(--accent-strong);
  font-weight: 600;
}

.site-footer {
  width: min(1160px, 92vw);
  margin: 2.6rem auto 0;
  border-top: 1px solid rgba(215, 198, 169, 0.55);
  background: rgba(22, 34, 30, 0.88);
  backdrop-filter: blur(28px) saturate(130%) contrast(1.04);
  -webkit-backdrop-filter: blur(28px) saturate(130%) contrast(1.04);
  color: #f5f7f2;
  padding: 1.35rem 0 1.05rem;
  border-radius: 26px 26px 0 0;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.10) inset,
    1px 0 0 rgba(255, 255, 255, 0.07) inset,
    -1px 0 0 rgba(255, 255, 255, 0.07) inset,
    0 -8px 32px rgba(10, 18, 14, 0.22),
    0 -2px 8px rgba(10, 18, 14, 0.14);
}

.site-footer .container {
  width: min(1160px, 92vw);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.footer-links {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-size: 0.95rem;
  color: #f5f7f2;
  margin-bottom: 0.55rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  margin: 0;
  color: #d5dbd6;
  font-size: 0.95rem;
  white-space: nowrap;
}

.footer-contact-list {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.7rem;
  white-space: nowrap;
}

.footer-contact-link {
  min-height: auto;
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  color: #f5f7f2;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.98rem;
  font-weight: 600;
}

.footer-contact-link joomla-hidden-mail a,
.footer-contact-link .contact-label a {
  color: inherit;
  text-decoration: none;
}

.footer-contact-link .contact-glyph {
  width: auto;
  height: auto;
  border: none;
  color: #f5f7f2;
  background: transparent;
  font-size: 1rem;
}

.footer-contact-link .contact-label {
  color: #f5f7f2;
  font-size: 0.96rem;
  font-weight: 600;
}

.footer-contact-link:hover,
.footer-contact-link:focus-visible {
  color: #ffffff;
  text-decoration: none;
}

.footer-links a {
  color: #f5f7f2;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  text-decoration: underline;
}

.site-footer h3 {
  font-size: 1.1rem;
}

.site-footer p {
  margin: 0.2rem 0;
  color: #d5dbd6;
}

.site-footer p a,
.site-footer joomla-hidden-mail a {
  color: #f5f7f2;
  text-decoration: none;
}

.site-footer p a:hover,
.site-footer p a:focus-visible,
.site-footer joomla-hidden-mail a:hover,
.site-footer joomla-hidden-mail a:focus-visible {
  color: #f5f7f2;
  text-decoration: none;
}

body.high-contrast .footer-contact-link {
  background: transparent !important;
  color: #000000 !important;
  border-color: transparent !important;
}

body.high-contrast .footer-contact-link .contact-glyph,
body.high-contrast .footer-contact-link .contact-label {
  color: #000000 !important;
  border-color: #000000 !important;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .nav-wrap {
    border-radius: 24px;
  }

  .topbar-row-primary {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .topbar-row-primary .quick-contact {
    margin-right: 0;
  }

  .topbar-row-primary .opening-hours {
    margin-left: 0;
    justify-content: center;
    text-align: center;
  }

  .brand,
  .quick-contact,
  .opening-hours {
    justify-content: center;
    text-align: center;
  }

  .hero {
    gap: var(--space-2);
  }

  .hero-logo-wrap {
    width: min(84vw, 420px);
    margin-top: 0.1rem;
  }

  .hero-copy {
    max-width: 100%;
  }

  .signal-strip,
  .testimonials,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .emergency-note__layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .emergency-note__cta {
    width: 100%;
    justify-content: center;
  }

  .site-footer .container {
    width: min(760px, 88vw);
  }

  .site-footer {
    width: calc(100% - 2rem);
    margin-top: 2rem;
    border-radius: 22px 22px 0 0;
  }

  .footer-bottom,
  .footer-contact-list {
    flex-wrap: wrap;
  }


  .usp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .portal-faq__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-top: 0.8rem;
  }

  .a11y-dock {
    right: 0.65rem;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    grid-auto-flow: row;
  }

  .nav-wrap {
    border-radius: 20px;
    gap: 0.75rem;
  }

  .topbar-row {
    gap: 0.62rem;
  }

  .topbar-row-secondary {
    border-radius: 18px;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding: 0.5rem 0.75rem;
    width: 100%;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .primary-menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    margin-top: 0.5rem;
    gap: 0.2rem;
  }

  .topbar-row-secondary.is-open .primary-menu {
    display: flex;
  }

  .primary-menu a {
    padding: 0.6rem 0.7rem;
    border-radius: 10px;
    text-align: left;
  }

  .quick-contact {
    display: flex;
    margin: 0;
  }

  .opening-hours {
    justify-content: center;
    text-align: center;
    font-size: 0.84rem;
  }

  .opening-hours-value {
    white-space: normal;
  }

  .contact-icon {
    width: var(--contact-icon-size);
    height: var(--contact-icon-size);
    min-height: 0;
    padding: 0;
    justify-content: center;
  }

  .contact-glyph {
    width: 100%;
    height: 100%;
    border: none;
  }

  .contact-label {
    display: none;
  }

  .hero {
    padding-top: 3.8rem;
    padding-bottom: 4.6rem;
  }

  .hero__brand img {
    max-height: 126px;
  }

  .hero__content {
    padding-top: 1.35rem;
  }

  .hero__trust {
    width: calc(100% - 1.4rem);
    bottom: 0.7rem;
    gap: 0.2rem 0.8rem;
  }

  .hero-logo-wrap {
    width: min(88vw, 320px);
  }

  h1 {
    font-size: clamp(2.05rem, 11vw, 3.2rem);
  }

  .signal-value {
    font-size: 1.5rem;
  }

  .usp-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 220px;
  }
}

/* Final override: ensure A11y dock buttons stay true high-contrast */
body.high-contrast .a11y-dock .a11y-icon {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: #000000 !important;
}

body.high-contrast .a11y-dock .a11y-icon[aria-pressed="true"] {
  background: #000000 !important;
  color: #ffe600 !important;
  border-color: #ffe600 !important;
}

body.high-contrast .a11y-dock .a11y-icon:hover,
body.high-contrast .a11y-dock .a11y-icon:focus-visible {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

/* Prevent boxed artifact edges on service icon motifs in high-contrast mode */
body.high-contrast .service-wordmark,
body.high-contrast .service-line,
body.high-contrast .service-mark,
body.high-contrast .service-dach,
body.high-contrast .service-saeule,
body.high-contrast .service-dach-svg,
body.high-contrast .service-saeule-svg,
body.high-contrast .service-dach-svg *,
body.high-contrast .service-saeule-svg * {
  background: transparent !important;
  background-color: transparent !important;
  border-color: transparent !important;
}

/* Joomla module compatibility for menu rendering */
.primary-menu ul,
.primary-menu ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.18rem;
  align-items: center;
}

.primary-menu li {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.primary-menu li > a {
  display: inline-block;
}

.modern-component {
  margin-top: 1.6rem;
  margin-bottom: 2rem;
  padding: 1.2rem 1.1rem;
  border: 1px solid rgba(189, 168, 132, 0.35);
  border-radius: 18px;
  background: rgba(255, 252, 246, 0.82);
  box-shadow: 0 14px 32px rgba(27, 35, 33, 0.08);
}

.modern-component .com-content-article,
.modern-component .item-page,
.modern-component .blog-item {
  max-width: 900px;
  margin: 0 auto;
}

main > .preview-article {
  max-width: min(1120px, 94vw);
  margin: 1.6rem auto 2rem;
  padding: clamp(1.3rem, 2.4vw, 2rem) clamp(1.1rem, 2.2vw, 1.8rem);
  border: 1px solid rgba(189, 168, 132, 0.35);
  border-radius: 18px;
  background: rgba(255, 252, 246, 0.82);
  box-shadow: 0 14px 32px rgba(27, 35, 33, 0.08);
}

@media (max-width: 760px) {
  .primary-menu ul,
  .primary-menu ol {
    flex-direction: column;
    width: 100%;
  }

  .portal-faq {
    padding: 2.1rem 0 2.5rem;
  }

  .portal-faq__item {
    padding: 0.95rem 1rem;
  }

  .primary-menu li > a {
    width: 100%;
  }
}

/* Final hero trust placement override */
.hero .hero__trust {
  position: absolute !important;
  left: 50% !important;
  bottom: 1rem !important;
  transform: translateX(-50%) !important;
  z-index: 1 !important;
  width: calc(100% - 2.5rem) !important;
  display: flex !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 0.3rem 1.1rem !important;
}

.hero .hero__trust span {
  white-space: nowrap !important;
  color: #b89a5b;
  font-weight: 600;
  text-shadow:
    -0.7px -0.7px 0 rgba(255, 251, 244, 0.95),
    0.7px -0.7px 0 rgba(255, 251, 244, 0.95),
    -0.7px 0.7px 0 rgba(255, 251, 244, 0.95),
    0.7px 0.7px 0 rgba(255, 251, 244, 0.95),
    0 0 8px rgba(255, 244, 196, 0.24);
  animation: hero-trust-glow 3.2s ease-in-out infinite;
}

@media (max-width: 640px) {
  .hero .hero__trust {
    width: calc(100% - 1.4rem) !important;
    bottom: 0.7rem !important;
    gap: 0.2rem 0.8rem !important;
  }
}
