@font-face{font-family:"Roboto";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/roboto-v30-latin-regular.woff2) format("woff2")}
@font-face{font-family:"Roboto";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/roboto-v30-latin-700.woff2) format("woff2")}
:root{--brand:#3C75B3;--on-brand:#FFFFFF;--muted:#949599;--on-muted:#FFFFFF;--hero-box:#3C75B3;--on-hero-box:#FFFFFF;--bg-primary:#faf8f5;--bg-secondary:#FFFFFF;--footer-bg:var(--brand);--on-footer:var(--on-brand);--fg:#3a3d44;--text-muted:color-mix(in srgb, var(--muted) 70%, #000);--radius:.375rem;--font-body:"Roboto", system-ui, sans-serif;--font-heading:"Roboto", system-ui, sans-serif;--heading-weight:700;--page-bg:#ffffff;--surface:#ffffff;--line:#eeeeee;--header-bg:#ffffff;--header-fg:var(--fg);--header-line:#e8e9ec;--field-bg:#ffffff;--field-line:#d9dbe0;}

/* Kundenseiten – gemeinsames Stylesheet. Farben und Schriften kommen pro Seite als Variablen davor (lib/theme.php). */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--page-bg); color: var(--fg); font: 400 1rem/1.65 var(--font-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--font-heading); font-weight: var(--heading-weight); line-height: 1.15; margin: 0 0 .6em; color: var(--brand); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.icon-sm { width: 1rem; height: 1rem; }
.icon-lg { width: 1.75rem; height: 1.75rem; }
.small, small { font-size: .85rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--surface); padding: .5rem 1rem; }
.anchor { display: block; position: relative; top: -6rem; }
[id] { scroll-margin-top: 6rem; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.narrow { max-width: 48rem; }

/* ---------- Kopf ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--header-bg); border-bottom: 1px solid var(--header-line); }
.header-inner { display: flex; align-items: center; gap: 1rem; padding-block: .75rem; }
.brand { margin-right: auto; flex-shrink: 0; text-decoration: none; color: var(--header-fg); font-weight: 700; }
.logo { height: 3rem; width: auto; }
@media (min-width: 768px) { .logo { height: 3.5rem; } }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--header-fg); text-decoration: none; text-transform: uppercase; letter-spacing: .06em; font-size: .875rem; white-space: nowrap; transition: color .2s; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--brand); }
.call { display: inline-flex; align-items: center; gap: .5rem; flex-shrink: 0; background: var(--brand); color: var(--on-brand); border-radius: 999px; padding: .5rem 1rem; font-size: .875rem; font-weight: 500; text-decoration: none; box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.call:hover { opacity: .9; }
.call .icon { width: 1rem; height: 1rem; }
.call-long { display: none; }
@media (min-width: 1024px) { .call-long { display: inline; } .call-short { display: none; } }
.nav-toggle { order: 3; display: inline-flex; background: none; border: 0; padding: .5rem; color: var(--header-fg); cursor: pointer; }
.nav-toggle .icon { width: 1.75rem; height: 1.75rem; }
.nav-toggle .icon-close, .nav-toggle[aria-expanded="true"] .icon:first-child { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.sub-toggle { background: none; border: 0; padding: .25rem; color: inherit; cursor: pointer; }
.sub-toggle .icon { width: 1rem; height: 1rem; }

@media (max-width: 1023px) {
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--header-bg); border-bottom: 1px solid var(--header-line); box-shadow: 0 10px 20px rgb(0 0 0 / .06); max-height: calc(100vh - 5rem); overflow: auto; }
  .main-nav.open { display: block; }
  .main-nav > ul { padding: .5rem 1rem 1rem; }
  .main-nav li { border-bottom: 1px solid var(--header-line); }
  .main-nav li a { display: inline-block; padding: .8rem 0; }
  .has-sub { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .sub { display: none; width: 100%; padding-left: 1rem !important; }
  .has-sub.open .sub { display: block; }
  .has-sub.open .sub-toggle .icon { transform: rotate(180deg); }
}
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .main-nav { min-width: 0; }
  .main-nav > ul { display: flex; align-items: center; gap: 1.75rem; }
  .has-sub { position: relative; display: flex; align-items: center; gap: .1rem; }
  .sub { position: absolute; top: 100%; left: -1rem; min-width: 15rem; padding: .5rem 0 !important; background: var(--header-bg); border-radius: var(--radius); box-shadow: 0 10px 25px rgb(0 0 0 / .1); visibility: hidden; opacity: 0; transform: translateY(.25rem); transition: opacity .15s, transform .15s, visibility .15s; }
  .sub a { display: block; padding: .5rem 1rem; text-transform: none; letter-spacing: 0; font-size: .95rem; }
  .has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { visibility: visible; opacity: 1; transform: none; }
}
/* Passt das Menü nicht in eine Zeile, setzt site.js .compact: dann wie mobil */
.site-header.compact .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--header-bg); border-bottom: 1px solid var(--header-line); box-shadow: 0 10px 20px rgb(0 0 0 / .06); max-height: calc(100vh - 5rem); overflow: auto; }
.site-header.compact .main-nav.open { display: block; }
.site-header.compact .main-nav > ul { padding: .5rem 1rem 1rem; }
.site-header.compact .main-nav li { border-bottom: 1px solid var(--header-line); }
.site-header.compact .main-nav li a { display: inline-block; padding: .8rem 0; }
.site-header.compact .has-sub { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.site-header.compact .sub { display: none; width: 100%; padding-left: 1rem !important; }
.site-header.compact .has-sub.open .sub { display: block; }
.site-header.compact .has-sub.open .sub-toggle .icon { transform: rotate(180deg); }
.site-header.compact .nav-toggle { display: inline-flex; }
.site-header.compact .main-nav > ul { display: block; }
.site-header.compact .has-sub { position: static; }
.site-header.compact .sub { position: static; visibility: visible; opacity: 1; transform: none; box-shadow: none; min-width: 0; padding: 0 0 0 1rem !important; background: none; }
.site-header.compact .has-sub:not(.open) .sub { display: none; }
.site-header.compact .sub a { text-transform: uppercase; letter-spacing: .06em; font-size: .875rem; padding: .8rem 0; }

/* ---------- Sektionen ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.bg-primary { background: var(--bg-primary); }
.bg-secondary { background: var(--bg-secondary); }
.bg-full { background: var(--page-bg); }
/* zwei gleiche Hintergründe hintereinander trennen */
.bg-full + .bg-full, .bg-secondary + .bg-secondary { border-top: 1px solid var(--line); }
.section h2.text-center, .prose > h2:only-child { margin-bottom: 1.5em; }
/* Mehrere Überschriften direkt hintereinander (in MODX oft als Zeilenumbruch gedacht) eng setzen */
.prose :is(h1, h2, h3, h4):has(+ :is(h1, h2, h3, h4)), .section .prose :is(h1, h2, h3, h4):has(+ :is(h1, h2, h3, h4)) { margin-bottom: 0; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.row + .row { margin-top: 1.5rem; }
.row.center { text-align: center; }
.cols { display: grid; gap: 2rem 3rem; align-items: start; }
@media (min-width: 768px) {
  .cols-50-50, .cols-33-33-33, .cols-25-25-25-25 { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
  .cols-42-58 { grid-template-columns: 42fr 58fr; } .cols-58-42 { grid-template-columns: 58fr 42fr; }
  .cols-33-66 { grid-template-columns: 1fr 2fr; } .cols-66-33 { grid-template-columns: 2fr 1fr; }
  .cols-25-75 { grid-template-columns: 1fr 3fr; } .cols-75-25 { grid-template-columns: 3fr 1fr; }
  .cols-33-33-33 { grid-template-columns: repeat(3, 1fr); } .cols-25-25-25-25 { grid-template-columns: repeat(4, 1fr); }
}
.cols-25-25-25-25 { grid-template-columns: repeat(2, 1fr); }

.prose { max-width: 70ch; }
.row.center .prose, .prose:has(> .text-center) { margin-inline: auto; }
.cols .prose, .card .prose { max-width: none; }
.prose :last-child { margin-bottom: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose p, .prose li { color: var(--text-muted); }
.prose strong { color: var(--fg); }
.prose h3 { font-size: 1.35rem; margin-top: 1.4em; }
.prose img { border-radius: var(--radius); margin-block: 1rem; }
.small.prose, .prose.small { font-size: .9rem; line-height: 1.7; }

.spacer-1 { height: .5rem; } .spacer-2 { height: 1rem; } .spacer-3 { height: 2rem; } .spacer-4 { height: 3rem; } .spacer-5 { height: 4.5rem; } .spacer-grid { height: 2rem; }
@media (max-width: 767px) { .show-desktop { display: none; } }
@media (min-width: 768px) { .show-mobile { display: none; } }

.rounded { border-radius: var(--radius); }
.shadow { box-shadow: 0 2px 10px rgb(0 0 0 / .08); }
.block-image { margin: 0; }
.block-image img { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0; }
.row.center .btn-row, .reviews .btn-row { justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 1px solid var(--brand); background: var(--brand); color: var(--on-brand); border-radius: 999px; padding: .75rem 2rem; font: 600 .875rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .08em; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, opacity .2s; }
.btn:hover { background: transparent; color: var(--brand); }
.btn-muted { background: var(--muted); border-color: var(--muted); color: var(--on-muted); }
.btn-muted:hover { color: var(--muted); }
.btn-outline { background: transparent; color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: var(--on-brand); }
.btn small { text-transform: none; letter-spacing: 0; opacity: .8; }

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; align-items: center; min-height: 70vh; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-inner { position: relative; width: 100%; padding-block: 6rem; }
.hero-box { max-width: 36rem; background: color-mix(in srgb, var(--hero-box) 93%, transparent); color: var(--on-hero-box); border-radius: 1rem; padding: 2rem; }
@media (min-width: 768px) { .hero-box { max-width: 48rem; padding: 3rem; } .hero-long .hero-box { max-width: 60rem; } }
@media (min-width: 1024px) { .hero-box { padding: 3.5rem; } }
.hero h1 { color: inherit; text-transform: uppercase; line-height: 1.05; margin: 0; overflow-wrap: anywhere; hyphens: auto; }
.hero-medium h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.hero-long h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.hero-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .75rem 2rem; font-size: clamp(1.2rem, 2.5vw, 1.5rem); line-height: 1.3; }
@media (min-width: 640px) { .hero-list { grid-template-columns: 1fr 1fr; gap: 1.75rem 2rem; margin-top: 2rem; } }
.hero-list li { display: flex; align-items: center; gap: 1rem; }
.hero-list .icon { width: 1.5rem; height: 1.5rem; stroke-width: 3; }
.hero-cta { display: inline-block; font-weight: 600; margin-top: 2.5rem; background: var(--muted); color: #fff; text-align: center; border-radius: 999px; padding: .8rem 2rem; text-transform: uppercase; letter-spacing: .08em; font-size: .875rem; text-decoration: none; transition: background .2s, color .2s; }
.hero-cta:hover { background: #fff; color: var(--muted); }

/* ---------- Karten ---------- */
.cards { display: grid; gap: 2rem; margin-block: 1rem 0; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } .cards.cards-2col { grid-template-columns: repeat(2, 1fr); } }
.cards-pair { max-width: 56rem; margin-inline: auto; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: 0 1px 3px rgb(0 0 0 / .08); overflow: hidden; }
.card-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-body { padding: 1.5rem; }
.card h3 a { color: inherit; text-decoration: none; }
.more { display: inline-flex; align-items: center; gap: .35rem; font-size: .9rem; text-decoration: none; margin-top: .75rem; }
.more .icon { width: 1rem; height: 1rem; }

/* ---------- Zahlen ---------- */
.facts { display: grid; gap: 3rem; margin-top: 1rem; text-align: center; }
@media (min-width: 768px) { .facts-2 { grid-template-columns: repeat(2, 1fr); } .facts-3 { grid-template-columns: repeat(3, 1fr); } .facts-4 { grid-template-columns: repeat(4, 1fr); } }
.fact-value { font: 400 clamp(3rem, 7vw, 3.75rem)/1 var(--font-heading); color: var(--brand); font-variant-numeric: tabular-nums; }
.fact-title { margin: .6rem 0 1.5rem; font-size: .875rem; text-transform: uppercase; letter-spacing: .15em; }
.fact .prose { margin-inline: auto; }

/* ---------- Text + Bild ---------- */
/* Text + Bild: volle Breite, Textfläche in der Primärfarbe (wie im Original) */
.feature { position: relative; display: grid; background: var(--muted); color: var(--on-muted); }
.feature-media img { display: block; width: 100%; height: auto; }
.feature-panel { padding: clamp(3.5rem, 8vw, 6rem) 1rem; }
.feature-inner { max-width: 70ch; margin-inline: auto; }
.feature :is(h1, h2, h3, h4, h5, h6), .feature .prose p, .feature .prose li, .feature .prose strong, .feature .prose a { color: inherit; }
.feature-cta { margin: 2rem 0 0; }
.feature .btn:hover { background: var(--on-muted); border-color: var(--on-muted); color: var(--brand); }
@media (min-width: 1024px) {
  .feature { grid-template-columns: 1fr 1fr; }
  .feature-media { position: relative; min-height: 26rem; }
  .feature-media img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: top center; }
  .feature-panel { padding: 6rem 4rem; }
  .feature-inner { max-width: 32rem; margin: 0; }
  .feature.flip .feature-media { order: 2; }
  .feature.flip .feature-inner { margin-left: auto; }
}

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-top: 1rem; }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery-item { display: block; overflow: hidden; border-radius: var(--radius); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.05); }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; }
.lightbox::backdrop { background: rgb(20 20 25 / .9); }
.lightbox img { max-width: 92vw; max-height: 90vh; border-radius: var(--radius); }
.lightbox-close { position: fixed; top: 1rem; right: 1rem; background: none; border: 0; color: #fff; cursor: pointer; }
.lightbox-close .icon { width: 2rem; height: 2rem; }

/* ---------- Bewertungen ---------- */
.reviews { text-align: center; }
.reviews .cards { text-align: left; margin-block: 2.5rem 0; }
/* Google liefert höchstens 5 Bewertungen: unvollständige Reihen mittig statt Lücke am Rand */
.reviews .cards { display: flex; flex-wrap: wrap; justify-content: center; }
.reviews .cards > .review { flex: 0 1 100%; }
@media (min-width: 768px) { .reviews .cards > .review { flex-basis: calc((100% - 2rem) / 2); } }
@media (min-width: 1024px) { .reviews .cards > .review { flex-basis: calc((100% - 4rem) / 3); } }
.reviews-summary { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem; color: var(--text-muted); }
.reviews-summary strong { color: var(--fg); }
.stars { display: inline-flex; gap: .1rem; color: var(--brand); }
.stars .off { color: #d4d4d8; }
.review { padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
.review header { display: flex; align-items: center; gap: .75rem; }
.review header a { color: var(--fg); text-decoration: none; font-weight: 500; }
.review header small { display: block; color: var(--text-muted); }
.avatar { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 500; flex-shrink: 0; }
.review-text { color: var(--text-muted); font-size: .9rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.reviews-source { font-size: .75rem; color: var(--text-muted); margin: 1.5rem 0 2rem; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .75rem; }
.contact-list li { display: flex; gap: .75rem; align-items: flex-start; }
.contact-list .icon { color: var(--brand); margin-top: .2rem; }
.contact-list a { color: var(--fg); text-decoration: none; }
.contact-list a:hover { color: var(--brand); }
.contact-list p { margin: 0; }
.contact h3 { font-family: var(--font-body); color: var(--fg); font-size: 1.2rem; margin-top: 2.5rem; }
.contact-split .contact-grid { gap: 0 3rem; }
@media (min-width: 768px) { .contact-split h3 { margin-top: 2rem; } }
.openings { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1.5rem; font-size: .9rem; margin: 0; }
.openings dd { margin: 0; }
.map { position: relative; margin-top: 2rem; border-radius: var(--radius); overflow: hidden; min-height: 20rem; background: #e9e9ec; }
.map-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(2px); }
.map-consent { position: relative; min-height: 20rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; padding: 1.5rem; text-align: center; background: color-mix(in srgb, var(--page-bg) 70%, transparent); font-size: .875rem; }
.map-consent p { max-width: 24rem; margin: 0; }
.map-consent .icon { color: var(--brand); }
.map-consent label { display: flex; gap: .5rem; align-items: center; font-size: .75rem; }
.map iframe { display: block; width: 100%; height: 20rem; border: 0; }
.map-off { margin-top: .5rem; background: none; border: 0; padding: 0; font-size: .75rem; color: var(--text-muted); text-decoration: underline; cursor: pointer; }

/* ---------- Formular ---------- */
.form-card { padding: 2rem; }
.form-card h2 { font-size: 1.9rem; }
.contact-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .contact-form { grid-template-columns: 1fr 1fr; } .contact-form .full { grid-column: 1 / -1; } }
.field label { display: block; font-size: .85rem; margin-bottom: .25rem; color: var(--text-muted); }
.field input, .field textarea { width: 100%; font: inherit; color: var(--fg); background: var(--field-bg); border: 1px solid var(--field-line); border-radius: var(--radius); padding: .6rem .75rem; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.field textarea { resize: vertical; min-height: 9rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { justify-self: start; }
altcha-widget { --altcha-max-width: 100%; --altcha-color-base: var(--field-bg); --altcha-color-text: var(--fg); --altcha-color-border: var(--field-line); --altcha-border-radius: var(--radius); --altcha-color-border-focus: var(--brand); }

/* ---------- Rechtstexte ---------- */
.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.legal h2 { font-size: 1.6rem; margin-top: 2em; }
.legal h3 { font-size: 1.25rem; margin-top: 1.5em; }
.legal h4 { margin-top: 1.25em; }
.legal p, .legal li { color: var(--fg); overflow-wrap: anywhere; }
.legal .prose { max-width: none; }

/* ---------- Fuß ---------- */
.site-footer { background: var(--footer-bg); color: var(--on-footer); font-size: .875rem; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding-block: 2rem; }
@media (min-width: 768px) { .footer-inner { flex-direction: row; justify-content: space-between; } }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-contact, .footer-legal, .footer-social { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 1.5rem; }
.footer-contact a { display: inline-flex; align-items: center; gap: .5rem; }
.footer-contact .icon { width: 1rem; height: 1rem; }
