/* MGL Real Estate – zentrale Gestaltung für alle PHP-Seiten.
   Die Regeln sind bewusst gesammelt und ohne zusätzliche Theme-Abhängigkeiten gehalten. */
:root {
    --ink: #343f47;
    --navy: #245a7a;
    --navy-deep: #1d4965;
    --blue: #367da6;
    --paper: #f3f6f8;
    --soft: #eef3f6;
    --line: #d5dfe5;
    --muted: #667782;
    --white: #fff;
    --content: 1180px;
    --shadow: 0 5px 18px rgba(24, 56, 75, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 125px; }
body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #7fb2cf; outline-offset: 3px; }
.container { width: min(var(--content), calc(100% - 48px)); margin-inline: auto; }
p:not(.eyebrow):not(.form-note):not(.metrics-note):not(.hero-caption):not(.map-caption),
li {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--navy); font-family: Arial, Helvetica, sans-serif; line-height: 1.22; }
h1, h2 { font-weight: 700; letter-spacing: 0; }
h1 { max-width: 800px; margin-bottom: 16px; font-size: clamp(32px, 4.1vw, 49px); }
h2 { margin-bottom: 17px; font-size: clamp(25px, 3vw, 35px); }
h3 { margin-bottom: 12px; font-size: 19px; font-weight: 700; }
h1 em, h2 em { color: inherit; font-style: normal; font-weight: 700; }
.eyebrow { margin: 0 0 9px; color: var(--blue); font-size: 12px; line-height: 1.45; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; text-align: left; hyphens: none; }
.eyebrow-light { color: #dbeaf2; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 1000; background: #fff; padding: 10px 14px; }
.skip-link:focus { top: 12px; }

/* Header and primary navigation. */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0 24px;
    min-height: 0;
    padding-top: 12px;
}
.brand { display: inline-flex; align-items: center; grid-column: 1; grid-row: 1; flex-shrink: 0; color: var(--navy); width: 140px; }
.brand img { display: block; width: 100%; height: auto; max-height: none; object-fit: contain; object-position: left center; }
.brand:hover { color: var(--navy); }
.brand-mark { display: none; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.03; }
.brand-copy strong { color: var(--navy); font-size: 29px; font-weight: 700; letter-spacing: .01em; }
.brand-copy small { margin-top: 3px; color: #5d6d77; font-size: 12px; font-weight: 600; letter-spacing: .015em; text-transform: none; }
.header-contact { display: flex; grid-column: 2; grid-row: 1; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 20px; color: #536772; font-size: 13px; }
.header-contact a { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.header-contact a:hover { color: var(--blue); }
.header-contact-icon { display: inline-flex; align-items: center; color: var(--blue); }
.icon-svg { display: inline-block; width: 1em; height: 1em; flex: 0 0 auto; vertical-align: -0.12em; stroke: currentColor; }
.header-contact-icon .icon-svg { width: 16px; height: 16px; vertical-align: middle; }
.icon-inline { display: inline-flex; align-items: center; justify-content: center; }
.icon-inline .icon-svg { width: 15px; height: 15px; }
.menu-toggle { display: none; grid-column: 3; grid-row: 1; width: 44px; height: 44px; padding: 10px 8px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 27px; height: 2px; margin: 5px 0; background: var(--navy); transition: transform .22s ease, opacity .18s ease; }
.menu-toggle.is-open span:first-child { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:last-child { transform: translateY(-7px) rotate(-45deg); }
.main-navigation {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 2;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(18px, 2.6vw, 34px);
    min-height: 48px;
    margin-top: 10px;
    padding: 0;
    border-top: 1px solid #e4eaee;
    background: #fff;
}
.nav-link, .portal-link { position: relative; display: inline-block; padding: 14px 0 12px; color: #3c4b55; font-size: 12px; font-weight: 700; letter-spacing: .015em; white-space: nowrap; }
.nav-link::after { position: absolute; content: ""; left: 0; right: 100%; bottom: 5px; height: 2px; background: var(--blue); transition: right .22s ease; }
.nav-link:hover::after, .nav-link.is-active::after { right: 0; }
.nav-link:hover, .nav-link.is-active, .portal-link:hover { color: var(--navy); }
.portal-link { margin-left: auto; color: var(--navy); }
.portal-link span { padding-left: 3px; }

/* Startseite hero, Kennzahlen und Inhaltsbereiche. */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--navy-deep); }
.hero-home { display: flex; min-height: 430px; align-items: center; }
.hero-image, .hero-shade { position: absolute; z-index: -1; inset: 0; }
.hero-image { background-image: url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=2000&q=85"); background-position: center 53%; background-size: cover; }
.hero-shade { background: linear-gradient(90deg, rgba(18,55,78,.82) 0%, rgba(22,59,82,.60) 52%, rgba(22,59,82,.20) 100%); }
.hero-content { padding-top: 62px; padding-bottom: 66px; }
.hero-home h1 { color: #fff; text-shadow: 0 1px 4px rgba(12, 34, 48, .18); }
.hero-home h1 em { color: #fff; font-style: italic; }
.hero-content .eyebrow { color: #fff; }
.hero-lead { max-width: 700px; margin-bottom: 24px; color: rgba(255,255,255,.96); font-size: 16px; line-height: 1.58; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-caption { position: absolute; right: 0; bottom: 12px; left: 0; color: rgba(255,255,255,.85); font-size: 11px; text-align: left; }
.button { display: inline-flex; min-height: 46px; justify-content: center; align-items: center; gap: 16px; padding: 11px 17px; border: 1px solid transparent; border-radius: 2px; font-family: Arial, Helvetica, sans-serif; font-size: 13px; font-weight: 700; line-height: 1.3; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.button:hover { color: #fff; }
.button span { font-size: 16px; line-height: 1; }
.button .icon-inline .icon-svg { width: 16px; height: 16px; }
.button-primary { background: var(--blue); color: #fff; }
.button-primary:hover { background: #28698f; }
.button-ghost { border-color: rgba(255,255,255,.82); background: rgba(255,255,255,.06); color: #fff; }
.button-ghost:hover { border-color: #fff; background: #fff; color: var(--navy); }
.button-dark { background: var(--navy); color: #fff; }
.button-dark:hover { background: #1a4866; }
.metrics { background: #f2f5f7; border-bottom: 1px solid #dfe6eb; }
.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.metric { display: flex; min-height: 104px; flex-direction: column; justify-content: center; padding: 20px 24px; border-right: 1px solid #dbe3e8; text-align: center; }
.metric:first-child { border-left: 1px solid #dbe3e8; }
.metric strong { margin-bottom: 5px; color: var(--navy); font-size: clamp(27px, 3vw, 35px); font-weight: 700; line-height: 1.1; }
.metric span { color: #53636d; font-size: 12px; line-height: 1.4; text-align: center; }
.metrics-note { padding-top: 9px; padding-bottom: 9px; color: var(--muted); font-size: 11px; }
.section { padding: 62px 0; }
.section-intro { padding-top: 68px; padding-bottom: 62px; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 6vw, 76px); align-items: start; }
.intro-grid h2 { max-width: 510px; }
.intro-copy { color: #4d5a62; }
.intro-copy p { margin-bottom: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; padding-bottom: 4px; border-bottom: 1px solid var(--blue); color: var(--navy); font-size: 13px; font-weight: 700; }
.text-link span { font-size: 17px; transition: transform .2s; }
.text-link:hover span { transform: translateX(3px); }
.section-services, .section-soft, .section-process { background: #f2f5f7; }
.section-heading { max-width: 830px; margin-bottom: 28px; }
.section-heading p:not(.eyebrow) { color: #53636d; }
.section-heading-row { display: flex; justify-content: space-between; align-items: end; gap: 22px; max-width: none; }
.section-heading-row > div { max-width: 760px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { position: relative; padding: 26px 25px; border: 1px solid #dbe3e8; border-radius: 2px; background: #fff; }
.service-number { position: absolute; top: 17px; right: 20px; color: #7790a0; font-size: 11px; letter-spacing: .08em; }
.service-icon { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 19px; border: 1px solid #dbe6ec; background: #eef4f7; color: var(--navy); }
.service-icon .icon-svg { width: 23px; height: 23px; }
.service-card p { color: #4d5a62; font-size: 14px; }
.card-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 5px; color: var(--navy); font-size: 13px; font-weight: 700; }
.card-link span { font-size: 15px; }
.section-image-story { padding-top: 64px; padding-bottom: 64px; }
.image-story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(35px, 6vw, 75px); align-items: center; }
.story-image-wrap { position: relative; }
.story-image-wrap img { width: 100%; border: 1px solid #dce4e9; border-radius: 2px; object-fit: cover; }
.image-note { display: inline-block; margin-top: 8px; padding: 7px 10px; background: var(--navy); color: #fff; font-size: 11px; }
.principle-list { margin: 20px 0; }
.principle-list > div { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 13px 0; border-top: 1px solid #dbe3e8; }
.principle-list > div > span { color: var(--blue); font-size: 17px; font-weight: 700; }
.principle-list p { margin: 0; color: #4d5a62; font-size: 14px; }
.section-process .section-heading { max-width: 850px; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-top: 27px; }
.process-item { padding-top: 20px; border-top: 1px solid #cedbe3; }
.process-item > span { display: inline-grid; width: 32px; height: 32px; place-items: center; margin-bottom: 13px; border: 1px solid var(--blue); border-radius: 50%; color: var(--navy); font-size: 14px; font-weight: 700; }
.process-item p { color: #4d5a62; font-size: 14px; }

/* Contact form: used on the home page and contact page. */
.section-contact { background: var(--navy); }
.contact-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(32px, 5vw, 70px); align-items: start; }
.contact-copy h2 { color: #fff; }
.contact-copy > p:not(.eyebrow) { color: rgba(255,255,255,.91); }
.contact-direct { display: flex; align-items: center; gap: 13px; margin-top: 19px; color: #fff; }
.contact-symbol { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border: 1px solid rgba(255,255,255,.25); color: #fff; }
.contact-symbol .icon-svg { width: 20px; height: 20px; }
.contact-direct small { display: block; margin-bottom: 2px; color: rgba(255,255,255,.72); font-size: 12px; }
.contact-direct a { color: #fff; font-weight: 700; }
.form-panel { padding: 27px; border: 1px solid #dbe3e8; border-radius: 2px; background: #fff; }
.form-panel-light { background: #fff; }
.inquiry-form { display: flex; flex-direction: column; gap: 15px; }
.inquiry-form label { display: flex; flex-direction: column; gap: 6px; color: #46555e; font-size: 13px; font-weight: 700; }
.inquiry-form label > span:not(.checkbox-label span) { color: #b14d48; }
.inquiry-form input:not([type="checkbox"]), .inquiry-form select, .inquiry-form textarea { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #d3dde3; border-radius: 2px; outline-offset: 1px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 400; }
.inquiry-form textarea { min-height: 115px; resize: vertical; }
.inquiry-form input:focus, .inquiry-form select:focus, .inquiry-form textarea:focus { border-color: var(--blue); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkbox-label { display: grid !important; grid-template-columns: 18px 1fr; gap: 9px !important; align-items: start; font-weight: 400 !important; line-height: 1.45; }
.checkbox-label input { margin: 4px 0 0; }
.checkbox-label span { font-size: 12px; }
.checkbox-label a { color: var(--navy); text-decoration: underline; }
.form-submit { align-self: flex-start; min-width: 175px; }
.form-note { margin: -4px 0 0; color: #748188; font-size: 11px; }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.form-alert { margin-bottom: 15px; padding: 13px 15px; border: 1px solid; font-size: 14px; }
.form-alert p { margin: 6px 0 0; }
.form-alert-success { border-color: #a7c3b1; background: #edf5ef; color: #234b35; }
.form-alert-error { border-color: #d7aaa2; background: #fff0ed; color: #743c32; }

/* Secondary pages: consistent title band and content spacing. */
.page-hero { padding: 42px 0; background: #eef3f6; border-bottom: 1px solid #dfe7ec; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr); gap: clamp(30px, 5vw, 62px); align-items: center; }
.page-hero-copy { min-width: 0; }
/* Desktop: the active navigation already identifies the current page. Keep the eyebrow label for mobile only. */
.page-hero-eyebrow { display: none; }
.page-hero h1 { max-width: 880px; margin-bottom: 14px; color: var(--navy); font-size: clamp(30px, 3.5vw, 43px); }
.page-lead { max-width: 850px; margin-bottom: 0; color: #4e5e68; font-size: 16px; line-height: 1.6; }
.page-hero-image { width: 100%; min-width: 0; overflow: hidden; background: #dce5ea; }
.page-hero-image img { width: 100%; height: clamp(230px, 23vw, 310px); object-fit: cover; object-position: center; border: 1px solid #dce4e9; border-radius: 2px; }
.story-layout { display: grid; grid-template-columns: minmax(160px, .55fr) 1.45fr; gap: clamp(35px, 6vw, 75px); align-items: start; }
.story-aside { padding-top: 17px; border-top: 3px solid var(--blue); }
.story-year { display: block; margin: 4px 0 12px; color: var(--navy); font-size: 55px; line-height: 1; font-weight: 700; }
.story-aside p:last-child { max-width: 230px; color: var(--muted); font-size: 14px; }
.prose h2 { max-width: 700px; font-size: clamp(24px, 2.8vw, 32px); }
.prose p { color: #3f4e57; }
.prose p + p { margin-top: 16px; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value-card { padding: 24px; border: 1px solid #dbe3e8; border-radius: 2px; background: #fff; }
.value-index { display: inline-grid; width: 32px; height: 32px; place-items: center; margin-bottom: 16px; border: 1px solid var(--blue); border-radius: 50%; color: var(--navy); font-size: 14px; font-weight: 700; }
.value-card p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.team-section { padding-top: 68px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.team-card { overflow: hidden; border: 1px solid #dbe3e8; border-radius: 2px; background: #fff; }
.team-avatar { display: grid; height: 150px; place-items: center; background: #edf3f6; color: var(--navy); font-size: 39px; font-weight: 700; }
.avatar-one, .avatar-two, .avatar-three { background: #edf3f6; color: var(--navy); }
.team-body { padding: 21px; }
.team-body h3 { margin-bottom: 4px; }
.team-body p { color: #4d5a62; font-size: 14px; }
.team-body .team-role { margin-bottom: 12px; color: var(--blue); font-size: 13px; font-weight: 700; }
.cta-band { padding: 38px 0; background: var(--navy); }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.cta-band .eyebrow { color: #dbeaf2; }
.cta-band h2 { margin: 0; color: #fff; }

/* Service detail, contact details and directions. */
.detail-service-list { display: grid; gap: 42px; }
.detail-service { display: grid; grid-template-columns: 45px 1fr; gap: 35px; padding-bottom: 42px; border-bottom: 1px solid #dbe3e8; }
.detail-service:last-child { padding-bottom: 0; border-bottom: 0; }
.detail-number { display: inline-grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--blue); border-radius: 50%; color: var(--navy); font-size: 14px; font-weight: 700; }
.detail-service h2 { margin-bottom: 14px; }
.detail-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 23px; }
.detail-columns h3 { font-size: 16px; }
.detail-columns ul { padding-left: 20px; color: #4d5a62; }
.detail-columns li { margin-bottom: 7px; }
.split-callout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split-callout > div:nth-child(2) { color: #4d5a62; }
.contact-page-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 38px; align-items: start; }
.contact-details h2 { font-size: 29px; }
.contact-details > p:not(.eyebrow) { color: #4d5a62; }
.detail-contact-item { display: flex; gap: 13px; align-items: flex-start; margin: 21px 0; }
.detail-contact-item > span { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; background: #eef4f7; color: var(--navy); }
.detail-contact-item > span .icon-svg { width: 18px; height: 18px; }
.detail-contact-item small { display: block; margin-bottom: 2px; color: var(--muted); font-size: 12px; }
.detail-contact-item a { color: var(--navy); font-weight: 700; }
.detail-contact-item p { margin: 0; }
.directions-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; align-items: stretch; }
.address-card { padding: 28px; border: 1px solid #dbe3e8; background: #fff; }
.address-large { font-size: 18px; line-height: 1.7; }
.small-note { margin-top: 16px; color: #63747e; font-size: 12px; }
.map-panel { position: relative; min-height: 370px; overflow: hidden; border: 1px solid #dbe3e8; background: #eef2ef; }
.map-panel-embed iframe { display: block; width: 100%; height: 100%; min-height: 370px; border: 0; }
.region-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.region-grid > div:nth-child(2) { color: var(--muted); }

/* Footer follows the simple contact and quick-links pattern. */
.site-footer { border-top: 1px solid #dbe3e8; background: #f1f4f6; color: #485760; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: 35px; padding-top: 42px; padding-bottom: 35px; }
.footer-about p { max-width: 390px; margin-top: 15px; color: #4c5c66; font-size: 14px; }
.brand-footer .brand-copy strong { color: var(--navy); }
.brand-footer .brand-copy small { color: #5d6d77; }
.footer-heading { margin-bottom: 13px; color: var(--navy); font-size: 13px; font-weight: 700; letter-spacing: .025em; }
.site-footer p, .site-footer li { color: #4c5c66; font-size: 13px; }
.site-footer a:hover { color: var(--blue); }
.footer-links { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.footer-inline-link { display: inline-block; border-bottom: 1px solid #b6cbd7; padding-bottom: 2px; color: var(--navy); font-size: 13px; }
.footer-bottom { border-top: 1px solid #d9e2e8; background: #e8eef2; }
.footer-bottom-inner { display: flex; min-height: 56px; align-items: center; justify-content: space-between; gap: 14px; color: #53636d; font-size: 12px; }
.footer-bottom-inner > div { display: flex; gap: 18px; }
.footer-bottom a { color: #465761; }

@media (max-width: 1050px) {
    .header-inner { grid-template-columns: minmax(145px, 1fr) auto auto; gap: 0 15px; }
    .header-contact { gap: 7px 13px; font-size: 12px; }
    .main-navigation { gap: clamp(12px, 1.8vw, 22px); }
    .nav-link, .portal-link { font-size: 11px; }
    .intro-grid, .image-story-grid { gap: 34px; }
    .page-hero-grid { gap: 30px; }
}
@media (max-width: 860px) {
    .page-hero-eyebrow { display: block; }
    .header-inner { position: relative; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 0 12px; padding-top: 9px; }
    .brand { grid-column: 1; grid-row: 1; }
    .header-contact { grid-column: 1; grid-row: 2; justify-content: flex-start; padding: 7px 0 9px; }
    .menu-toggle { display: block; grid-column: 2; grid-row: 1 / 3; align-self: center; }
    .main-navigation { position: absolute; top: 100%; left: -17px; right: -17px; z-index: 101; display: flex; flex-direction: column; align-items: stretch; gap: 0; min-height: 0; margin-top: 0; padding: 8px 24px 18px; border-top: 0; border-bottom: 1px solid var(--line); box-shadow: 0 10px 18px rgba(24,56,75,.08); visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
    .main-navigation.is-open { visibility: visible; opacity: 1; transform: translateY(0); }
    .nav-link, .portal-link { display: block; padding: 12px 2px; border-bottom: 1px solid #e8edf0; font-size: 13px; }
    .nav-link::after { display: none; }
    .portal-link { margin-left: 0; border-bottom: 0; }
    .hero-home { min-height: 390px; }
    .hero-content { padding-top: 46px; padding-bottom: 50px; }
    .intro-grid, .image-story-grid, .contact-grid, .page-hero-grid, .story-layout, .contact-page-grid, .directions-grid, .region-grid, .split-callout { grid-template-columns: 1fr; }
    .intro-grid, .image-story-grid, .contact-grid, .page-hero-grid, .story-layout, .contact-page-grid, .directions-grid, .region-grid { gap: 27px; }
    .intro-copy { max-width: 100%; }
    .page-hero-image { max-width: 600px; }
    .page-hero-image img { height: clamp(220px, 58vw, 300px); }
    .story-aside p:last-child { max-width: 460px; }
    .contact-copy { max-width: 700px; }
}
@media (max-width: 650px) {
    body { font-size: 15px; line-height: 1.58; }
    .container { width: min(var(--content), calc(100% - 34px)); }
    .brand-copy strong { font-size: 26px; }
    .brand-copy small { font-size: 11px; }
    .header-contact { gap: 6px 13px; font-size: 11px; }
    .header-contact-icon { font-size: 13px; }
    .hero-home { min-height: 395px; }
    .hero-image { background-position: 54% center; }
    .hero-shade { background: linear-gradient(90deg, rgba(18,55,78,.86), rgba(22,59,82,.60)); }
    .hero-content { padding-top: 40px; padding-bottom: 48px; }
    h1 { font-size: clamp(30px, 8.6vw, 41px); }
    h2 { font-size: 27px; }
    .hero-lead, .page-lead { font-size: 15px; }
    .hero-actions { align-items: flex-start; flex-direction: column; }
    .metrics-grid { grid-template-columns: 1fr; }
    .metric { min-height: 80px; padding: 13px 12px; border-left: 0 !important; border-right: 0; border-bottom: 1px solid #dbe3e8; }
    .metric:last-child { border-bottom: 0; }
    .metric strong { font-size: 28px; }
    .section { padding: 48px 0; }
    .section-intro { padding-top: 50px; padding-bottom: 48px; }
    .section-heading-row { display: block; }
    .section-heading-row .text-link { margin-top: 8px; }
    .service-grid, .value-grid, .team-grid, .process-grid { grid-template-columns: 1fr; }
    .service-card:last-child, .team-card:last-child { grid-column: auto; }
    .service-card { padding: 23px 21px; }
    .form-panel { padding: 21px 17px; }
    .form-row { grid-template-columns: 1fr; gap: 14px; }
    .form-submit { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 22px; padding-top: 33px; padding-bottom: 26px; }
    .footer-bottom-inner { min-height: 70px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 7px; padding-top: 12px; padding-bottom: 12px; }
    .page-hero { padding: 36px 0 30px; }
    .page-hero { padding: 35px 0; }
    .page-hero h1 { font-size: clamp(29px, 8vw, 38px); }
    .story-year { font-size: 45px; }
    .team-avatar { height: 115px; }
    .cta-band { padding: 34px 0; }
    .cta-band-inner { align-items: flex-start; flex-direction: column; gap: 18px; }
    .cta-band h2 { font-size: 26px; }
    .detail-service { grid-template-columns: 1fr; gap: 8px; padding-bottom: 32px; }
    .detail-number { font-size: 14px; }
    .detail-service-list { gap: 32px; }
    .detail-columns { grid-template-columns: 1fr; gap: 15px; }
    .map-panel { min-height: 260px; }
    .map-panel-embed iframe { min-height: 260px; }
    .address-card { padding: 23px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* Kontaktkanäle und rechtliche Inhaltsseiten. */
.contact-channel-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 23px 0 26px; }
.contact-channel { padding: 21px; border: 1px solid var(--line); background: #f8fafb; }
.contact-channel-icon { display: inline-grid; width: 36px; height: 36px; place-items: center; margin-bottom: 11px; background: #e8f0f4; color: var(--navy); }
.contact-channel-icon .icon-svg { width: 19px; height: 19px; }
.contact-channel h3 { margin-bottom: 8px; }
.contact-channel p { margin-bottom: 10px; color: #53636d; font-size: 14px; }
.contact-channel a { color: var(--navy); font-weight: 700; overflow-wrap: anywhere; }
.appointment-note { margin: 24px 0 15px; padding: 15px 17px; border-left: 3px solid var(--blue); background: #f0f5f8; color: #394d59; }
.form-intro { margin-bottom: 18px; }
.form-intro h2 { font-size: 25px; margin-bottom: 8px; }
.page-hero-plain { padding: 35px 0; }
.page-hero-plain .container { max-width: var(--content); }
.page-hero-plain h1 { margin-bottom: 10px; }
.legal-content { max-width: 900px; }
.legal-content h2 { margin-top: 31px; margin-bottom: 11px; font-size: 23px; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p { max-width: 880px; color: #4d5a62; }
.legal-content a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-content ul { padding-left: 22px; }
@media (min-width: 1000px) { .contact-channel-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .contact-channel-grid { grid-template-columns: 1fr; } }
