:root {
  --beige: #EDE6DA;
  --paper: #FAF7F1;
  --ink: #141414;
  --blue: #33526B;
  --accent: #33526B;
  --warmgrey: #8C8578;
  --muted: #625D55;
  --line: #D6CDBD;
  --white: #FFFFFF;
  --display: 'Playfair Display', Georgia, serif;
  --body: 'Karla', Arial, sans-serif;
  --wrap: min(100% - 2rem, 76rem);
  --content: min(100% - 2rem, 58rem);
  --space-1: clamp(.75rem, 1.3vw, 1.25rem);
  --space-2: clamp(1.25rem, 2vw, 2rem);
  --space-3: clamp(2rem, 4vw, 4rem);
  --space-4: clamp(3.5rem, 8vw, 8rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1rem; line-height: 1.75; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--accent); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; top: .5rem; left: .5rem; transform: translateY(-160%); padding: .55rem .8rem; background: var(--ink); color: var(--white); font-weight: 700; }
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--line); background: rgba(250,247,241,.96); }
.header-shell { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; padding: 1rem 0; }
.brand-link { display: inline-flex; width: min(13rem, 100%); color: var(--ink); text-decoration: none; }
.brand-mark { width: 100%; height: auto; }
.header-tools { display: flex; align-items: center; gap: .8rem; }
.header-phone { color: var(--accent); font-size: .87rem; font-weight: 700; white-space: nowrap; }
.nav-toggle { display: none; border: 0; padding: .25rem 0; background: transparent; color: var(--ink); font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.nav-toggle-mark { display: inline-block; width: 1.25rem; height: .7rem; margin-left: .45rem; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; vertical-align: middle; }
.site-nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .7rem 1.2rem; align-items: center; font-size: .84rem; }
.site-nav a { text-decoration: none; }
.site-nav a:not(.nav-cta) { position: relative; padding: .2rem 0; }
.site-nav a:not(.nav-cta)::after { position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: currentColor; content: ''; transform: scaleX(0); transform-origin: right; transition: transform .2s ease; }
.site-nav a:not(.nav-cta):hover::after, body[data-page="start"] .site-nav a[data-nav="start"]::after, body[data-page="leistungen"] .site-nav a[data-nav="leistungen"]::after, body[data-page="mobilitaet"] .site-nav a[data-nav="mobilitaet"]::after, body[data-page="ueber-uns"] .site-nav a[data-nav="ueber-uns"]::after, body[data-page="kontakt"] .site-nav a[data-nav="kontakt"]::after { transform: scaleX(1); transform-origin: left; }
.site-nav a[data-nav] { color: var(--ink); }
body[data-page="start"] .site-nav a[data-nav="start"], body[data-page="leistungen"] .site-nav a[data-nav="leistungen"], body[data-page="mobilitaet"] .site-nav a[data-nav="mobilitaet"], body[data-page="ueber-uns"] .site-nav a[data-nav="ueber-uns"], body[data-page="kontakt"] .site-nav a[data-nav="kontakt"] { color: var(--accent); }
.nav-cta, .btn { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .75rem; border: 1px solid var(--ink); border-radius: 0; font-size: .78rem; font-weight: 700; letter-spacing: .04em; line-height: 1.2; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.nav-cta:hover, .btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }

main { overflow: clip; }
.editorial-shell { width: var(--wrap); margin: 0 auto; }
.hero { padding: var(--space-4) 0 var(--space-3); }
.hero-layout, .section-layout, .contact-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-2); }
.margin-note, .eyebrow, .footer-kicker, .section-label, .breadcrumb { margin: 0; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .16em; line-height: 1.45; text-transform: uppercase; }
.margin-note { padding-top: .6rem; border-top: 1px solid var(--line); }
.hero h1, h1 { max-width: 14ch; margin: 0; font-family: var(--display); font-size: clamp(3rem, 8.7vw, 7.3rem); font-weight: 400; line-height: .96; letter-spacing: -.045em; }
.hero h1 em, h1 em, .pull-quote em, .service-title em { font-style: italic; }
.hero-intro { max-width: 38rem; margin: var(--space-2) 0 0; padding-top: var(--space-2); border-top: 1px solid var(--ink); font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.55; }
.hero-links { display: flex; flex-wrap: wrap; gap: 1.2rem; margin: var(--space-2) 0 0; font-weight: 700; }
.hero-links a { color: var(--accent); }
.hero-image, .image-band { margin: 0; }
.hero-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
figcaption { display: flex; gap: .9rem; padding: .8rem 0 0; color: var(--muted); font-size: .76rem; line-height: 1.45; }
figcaption::before { flex: 0 0 auto; color: var(--accent); content: 'ABB. /'; font-size: .65rem; font-weight: 700; letter-spacing: .12em; }
.section { padding: var(--space-4) 0; border-top: 1px solid var(--line); }
.section-heading { max-width: 40rem; margin: 0 0 var(--space-3); font-family: var(--display); font-size: clamp(2.15rem, 5vw, 4rem); font-weight: 400; line-height: 1.03; letter-spacing: -.035em; }
.section-heading small { display: block; margin-bottom: .65rem; color: var(--muted); font-family: var(--body); font-size: .68rem; font-weight: 700; letter-spacing: .16em; line-height: 1.4; text-transform: uppercase; }
.prose { max-width: 42rem; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.2rem; }
.prose h2, .prose h3 { margin: 2rem 0 .5rem; font-family: var(--display); font-weight: 400; line-height: 1.1; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.prose h3 { font-size: 1.42rem; }
.prose ul { margin: 0 0 1.5rem; padding-left: 1.25rem; }
.prose li + li { margin-top: .45rem; }

.service-index { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.service-index li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.service-number { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .1em; }
.service-title { display: inline; margin: 0; font-family: var(--display); font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 400; line-height: 1.1; }
.service-index p { max-width: 44rem; margin: .5rem 0 0; }
.service-index a { color: var(--accent); font-weight: 700; }
.pull-quote { margin: 0; padding: var(--space-3) 0 var(--space-3) 12%; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-family: var(--display); font-size: clamp(2rem, 5.2vw, 4.7rem); font-style: italic; font-weight: 400; line-height: 1.05; letter-spacing: -.04em; }
.pull-quote cite { display: block; margin-top: 1.25rem; color: var(--muted); font-family: var(--body); font-size: .7rem; font-style: normal; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.principles { display: grid; gap: 1.5rem; }
.principle { padding-top: 1rem; border-top: 1px solid var(--line); }
.principle h3 { margin: 0 0 .45rem; font-family: var(--display); font-size: 1.55rem; font-weight: 400; line-height: 1.1; }
.principle p { margin: 0; }
.diptych { display: grid; gap: 1px; margin: 0; background: var(--line); }
.diptych figure { margin: 0; background: var(--paper); }
.diptych img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.contact-callout { display: grid; gap: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--ink); }
.contact-callout address { font-style: normal; }
.contact-callout a { color: var(--accent); font-size: 1.1rem; font-weight: 700; }
.plain-link { color: var(--accent); font-weight: 700; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: var(--space-2); letter-spacing: .08em; }
.breadcrumb a { text-decoration: none; }
.page-hero { padding-bottom: var(--space-3); }
.page-hero h1 { max-width: 12ch; font-size: clamp(3rem, 7vw, 6.2rem); }
.page-lede { max-width: 42rem; margin: var(--space-2) 0 0; font-size: 1.18rem; line-height: 1.6; }
.service-detail { display: grid; gap: var(--space-2); padding: 1.5rem 0 2rem; border-top: 1px solid var(--line); }
.service-detail h2 { margin: 0; font-family: var(--display); font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 400; line-height: 1.08; }
.service-detail p { max-width: 44rem; margin: 0; }
.service-detail a { color: var(--accent); font-weight: 700; }
.note-box { max-width: 43rem; padding: 1.15rem 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); color: var(--accent); font-size: .95rem; }
.note-box p { margin: 0; }

.contact-grid { display: grid; gap: var(--space-3); }
.contact-facts { display: grid; gap: 1.2rem; }
.contact-fact { padding-top: .85rem; border-top: 1px solid var(--line); }
.contact-fact h2 { margin: 0 0 .25rem; font-family: var(--display); font-size: 1.45rem; font-weight: 400; }
.contact-fact p, .contact-fact address { margin: 0; font-style: normal; }
.contact-fact a { color: var(--accent); font-weight: 700; }
.contact-form { max-width: 45rem; }
.form-row { display: grid; gap: 1rem; }
.field { margin-bottom: 1rem; }
.field label, .checkbox { display: block; font-size: .9rem; font-weight: 700; }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field textarea { width: 100%; margin-top: .35rem; padding: .7rem 0; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); }
.field textarea { border: 1px solid var(--line); padding: .7rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.checkbox { display: grid; grid-template-columns: 1.1rem 1fr; gap: .65rem; align-items: start; margin: 1.4rem 0; font-weight: 400; line-height: 1.55; }
.checkbox input { width: 1rem; height: 1rem; margin-top: .3rem; accent-color: var(--accent); }
.field-error { margin: .3rem 0 0; color: #8C2929; font-size: .86rem; font-weight: 700; line-height: 1.35; }
.form-status { min-height: 1.75em; margin: 1rem 0 0; font-weight: 700; }
.form-status a { color: var(--accent); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.settings-form { max-width: 43rem; }
.settings-choice { display: grid; grid-template-columns: 1.1rem 1fr; gap: .8rem; align-items: start; padding: 1rem 0; border-top: 1px solid var(--line); }
.settings-choice input { width: 1rem; height: 1rem; margin-top: .35rem; accent-color: var(--accent); }
.settings-choice strong, .settings-choice span { display: block; }
.settings-choice span { color: var(--muted); font-size: .93rem; }

.site-footer { margin-top: var(--space-4); border-top: 1px solid var(--ink); background: var(--beige); }
.footer-grid { width: var(--wrap); margin: 0 auto; display: grid; gap: 2rem; padding: var(--space-3) 0; }
.footer-grid > div { padding-top: 1rem; border-top: 1px solid var(--line); }
.footer-grid p { max-width: 22rem; margin: .5rem 0 0; }
.footer-contact, .footer-links { display: grid; align-content: start; justify-items: start; gap: .35rem; }
.footer-contact .footer-kicker, .footer-links .footer-kicker { margin-bottom: .25rem; }
.footer-contact address { font-style: normal; }
.footer-bottom { width: var(--wrap); margin: 0 auto; padding: 1rem 0 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .77rem; line-height: 1.5; }
.footer-bottom p { margin: .3rem 0; }

.consent-banner { position: fixed; z-index: 20; right: 1rem; bottom: 1rem; left: 1rem; max-width: 42rem; padding: 1.2rem; border: 1px solid var(--ink); background: var(--paper); box-shadow: 0 14px 38px rgba(20,20,20,.16); }
.consent-banner h2 { margin: .25rem 0; font-family: var(--display); font-size: 1.6rem; font-weight: 400; }
.consent-banner p:not(.eyebrow) { margin: .25rem 0 0; font-size: .9rem; line-height: 1.5; }
.consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1rem; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-primary { background: var(--ink); color: var(--white); }

@media (min-width: 640px) {
  .form-row, .diptych { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-index li:nth-child(odd) { padding-right: 1.5rem; border-right: 1px solid var(--line); }
  .service-index li:nth-child(even) { padding-left: 1.5rem; }
  .service-index li:nth-child(-n+2) { border-top: 0; }
  .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1.2fr .9fr 1fr; gap: 2rem; }
}

@media (min-width: 900px) {
  .header-shell { grid-template-columns: minmax(12rem, 1fr) auto auto; padding: 1.1rem 0; }
  .header-tools { order: 3; }
  .site-nav { grid-column: auto; order: 2; flex-wrap: nowrap; gap: 1rem; }
  .nav-cta { margin-left: .25rem; }
  .hero-layout, .section-layout, .contact-layout { grid-template-columns: 1.5fr minmax(0, 8fr) 1.5fr; gap: 2rem; }
  .hero-copy, .section-content, .contact-content { grid-column: 2; }
  .hero-layout .margin-note, .section-layout .margin-note, .contact-layout .margin-note { grid-column: 1; grid-row: 1; }
  .hero-image { width: calc(100% + 4rem); margin-left: -2rem; }
  .hero-image figcaption { width: calc(100% - 4rem); margin-left: 2rem; }
  .section-heading { margin-left: 12%; }
  .section-content .prose { margin-left: 12%; }
  .section-content > .service-index, .section-content > .diptych { margin-left: 0; }
  .section-content > .contact-callout { margin-left: 12%; }
  .service-detail { grid-template-columns: minmax(13rem, 1fr) 2fr; gap: 2rem; }
  .service-detail p { padding-top: .25rem; }
  .contact-grid { grid-template-columns: .9fr 1.6fr; gap: 4rem; }
  .page-hero .page-lede { margin-left: 12%; }
  .page-hero .breadcrumb { margin-left: 12%; }
  .footer-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 899px) {
  html.js-enabled .nav-toggle { display: inline-flex; align-items: center; }
  html.js-enabled .site-nav { display: none; }
  html.js-enabled .site-nav.is-open { display: flex; }
  html.js-enabled .nav-toggle[aria-expanded="true"] .nav-toggle-mark { background: linear-gradient(to bottom, transparent 42%, currentColor 42%, currentColor 58%, transparent 58%); }
}

@media (min-width: 1200px) {
  :root { --wrap: min(100% - 3rem, 88rem); }
  .hero-image { width: calc(100% + 8rem); margin-left: -4rem; }
  .hero-image figcaption { width: calc(100% - 8rem); margin-left: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
