:root {
  --surface: #f7f5ef;
  --surface-blue: #dceaf0;
  --surface-blue-deep: #bfd8e3;
  --text: #263943;
  --text-muted: #3f5863;
  --accent: #285d72;
  --line: #abc8d4;
  --max-width: 76rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background: var(--surface);
  color: var(--text);
  font-family: "Liberation Sans", Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent); text-decoration-thickness: 2px; }
a:active { color: var(--text); }
button { color: inherit; font: inherit; }
h1, h2, h3, p { margin: 0; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header, main > section, footer {
  width: min(100%, var(--max-width));
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3.5rem);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 44px;
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.06em;
  text-decoration: none;
}

.brand span { color: var(--accent); }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.primary-menu { gap: 0.25rem; }

.primary-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.7rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.hero {
  position: relative;
  width: 100%;
  max-width: none;
  margin-top: clamp(1rem, 3vw, 2rem);
  margin-bottom: 0;
  padding-inline: 0;
  padding-top: clamp(4.5rem, 12vw, 9rem);
  padding-bottom: clamp(4rem, 10vw, 7rem);
  overflow: hidden;
  background: linear-gradient(rgba(247, 245, 239, 0.08), rgba(247, 245, 239, 0.08)), url("../../img/charlesdeluvio-Lks7vei-eAg-unsplash.jpg") 70% center / cover;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(247, 245, 239, 0.72); pointer-events: none; }
.hero-video { width: min(100%, var(--max-width)); max-width: var(--max-width); margin-top: 0.25rem; background: linear-gradient(rgba(247, 245, 239, 0.08), rgba(247, 245, 239, 0.08)); }
.hero-video::before { z-index: 1; }
.hero-media { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero-video .hero-content { z-index: 2; }
.hero-video .hero-mark { display: none; }
.hero-video-toggle { position: absolute; z-index: 3; right: 0.65rem; bottom: 0.65rem; display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; padding: 0; border: 1px solid color-mix(in srgb, var(--text) 30%, transparent); border-radius: 50%; background: color-mix(in srgb, var(--surface) 82%, transparent); color: var(--text); cursor: pointer; }
.hero-video-toggle:hover { background: var(--surface); }
.hero-video-icon { width: 0.85rem; height: 0.85rem; }
.hero-video-icon path, .hero-video-icon rect { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.hero-video-play, .hero-video-toggle[aria-pressed="true"] .hero-video-pause { display: none; }
.hero-video-toggle[aria-pressed="true"] .hero-video-play { display: block; }
.hero-content { position: relative; z-index: 1; width: min(100%, var(--max-width)); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3.5rem); }
.hero-kicker, .section-label, .eyebrow {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-kicker { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-bottom: 1.5rem; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.045em; }
.section-icon { display: inline-block; width: 1.05em; height: 1.05em; margin-right: 0.35em; color: var(--accent); line-height: 1; vertical-align: -0.15em; }
.section-icon path, .section-icon circle, .section-icon rect, .service-icon path, .service-icon circle, .service-icon rect { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
h1 { max-width: 13ch; font-size: clamp(3rem, 8vw, 6.6rem); font-weight: 700; }
h1 em { color: var(--accent); font-family: Georgia, serif; font-weight: 400; }
.hero-bottom { display: flex; align-items: end; justify-content: space-between; gap: 2rem; max-width: 45rem; margin-top: clamp(2.5rem, 7vw, 5rem); }
.hero-bottom p { max-width: 34rem; color: var(--text-muted); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.hero-mark { position: absolute; right: clamp(1.25rem, 6vw, 5rem); bottom: 1.5rem; color: var(--surface-blue-deep); font-family: "Liberation Serif", Georgia, serif; font-size: clamp(7rem, 19vw, 15rem); line-height: 0.7; pointer-events: none; }

.services-intro, .profile { padding-block: clamp(4rem, 9vw, 7.5rem); }
.services-intro { padding-block: clamp(4.5rem, 10vw, 8rem); }
.principles { width: 100%; padding-inline: 0; background: var(--surface-blue); }
.section-label { margin-bottom: 1.5rem; }
.section-heading { display: grid; gap: 1rem; max-width: 58rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.services-intro .section-heading { grid-template-columns: minmax(0, 1.4fr) minmax(14rem, 0.6fr); max-width: none; gap: 3rem; align-items: end; }
.services-intro .section-heading h2 { max-width: 16ch; font-size: clamp(2.5rem, 4.5vw, 4.8rem); line-height: 0.98; }
.services-intro .section-heading p { max-width: 26rem; margin-bottom: 0.25rem; }
h2 { font-size: clamp(2rem, 4.5vw, 4rem); font-weight: 700; }
.section-heading p, .lead, .contact-intro { color: var(--text-muted); font-size: 1.05rem; }
.service-grid { display: grid; border-top: 1px solid var(--line); }
.service-card { position: relative; min-width: 0; padding: 1.5rem 1.25rem 3.5rem 0; border-bottom: 1px solid var(--line); }
.service-card { min-height: 18rem; padding-top: 1.75rem; padding-bottom: 1.75rem; }
.service-card > span, .principles-list > article > span, .fit-list span { color: var(--accent); font-size: 0.78rem; font-weight: 750; letter-spacing: 0.08em; }
.service-icon { display: block; width: clamp(2.5rem, 4vw, 3rem); height: clamp(2.5rem, 4vw, 3rem); margin-top: 2.25rem; color: var(--accent); }
.service-card h3 { max-width: 15ch; margin-top: 1rem; font-size: clamp(1.35rem, 2.5vw, 1.75rem); }
.service-card h3 { margin-top: 3.5rem; font-size: clamp(1.5rem, 2.2vw, 2rem); }
.service-card p { max-width: 26rem; margin-top: 1rem; color: var(--text-muted); }
.service-card p { max-width: 20rem; }
.service-card ul { display: grid; gap: 0.6rem; padding: 0; margin: 1.5rem 0 0; list-style: none; color: var(--text-muted); font-size: 0.92rem; }
.service-card li { position: relative; padding-left: 1rem; }
.service-card li::before { content: "\2192"; position: absolute; left: 0; color: var(--accent); }

.fit { width: 100%; background: var(--surface); }
.principles { width: 100%; padding-inline: 0; padding-block: clamp(4rem, 9vw, 7.5rem); }
.principles > * { width: min(100%, var(--max-width)); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3.5rem); }
.principles-grid, .healthcare-grid, .fit-grid, .profile-grid { display: grid; gap: clamp(2.5rem, 7vw, 7rem); }
.principles-statement > span { color: var(--accent); font-family: Georgia, serif; font-size: clamp(1.25rem, 3vw, 1.8rem); font-style: italic; }
.principles-statement h2 { margin-top: 1rem; }
.principles-list article { display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.75rem; padding-block: 1.25rem; border-top: 1px solid var(--line); }
.principles-list article:last-child { border-bottom: 1px solid var(--line); }
.principles-list > article > span { display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; }
.principles-list > article > span .section-icon { width: 1.15rem; height: 1.15rem; margin-right: 0; vertical-align: initial; }
.principles-list h3 { font-size: 1.15rem; }
.principles-list p { margin-top: 0.4rem; color: var(--text-muted); }

.profile-grid { align-items: start; }
.profile-portrait { margin: 0; background: var(--surface-blue-deep); }
.profile-portrait img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center top; }
.profile-portrait figcaption { padding: 0.85rem 1rem; color: var(--text-muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.profile-copy .eyebrow { margin-bottom: 0.75rem; }
.profile-copy h2 { max-width: 17ch; }
.profile-copy p:not(.eyebrow) { margin-top: 1.25rem; }
.profile-copy .lead { color: var(--text); font-size: 1.1rem; }
.credentials { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.75rem; }
.credentials span { padding: 0.3rem 0.55rem; border: 1px solid var(--line); color: var(--text-muted); font-size: 0.78rem; font-weight: 650; }
.profile-actions, .contact-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; margin-top: 2rem; }
.profile-actions a, .contact-links a { color: var(--accent); font-weight: 700; }

.services-intro { background: var(--surface-blue); box-shadow: 0 0 0 100vmax var(--surface-blue); clip-path: inset(0 -100vmax); }
.video-hero-page .services-intro { background: var(--surface); box-shadow: none; clip-path: none; }
.video-hero-page .principles { background: var(--surface); }
.video-hero-page .section-label { display: inline-flex; width: fit-content; padding: 0.35rem 0.55rem; margin-inline: 0; background: var(--surface-blue); }
.video-hero-page .healthcare .section-label { background: var(--surface); }
.video-hero-page .service-grid { padding: 0 1.25rem; background: color-mix(in srgb, var(--surface-blue) 38%, var(--surface)); }
.fit, .cases, .profile, .contact { width: 100%; padding-inline: 0; background: var(--surface); }
.profile > * { width: min(100%, var(--max-width)); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3.5rem); }
.cases-content, .contact-content { width: min(100%, var(--max-width)); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3.5rem); }
.cases { padding-block: clamp(4rem, 9vw, 7.5rem); }
.case-grid { display: grid; gap: 2rem; margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.case-card { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.case-client { color: var(--accent); font-size: 0.78rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.case-card h3 { margin-top: 1rem; font-size: 1.35rem; }
.case-details { display: grid; gap: 0.75rem; margin: 1.25rem 0 0; }
.case-details div { display: grid; grid-template-columns: 8rem 1fr; gap: 0.75rem; }
.case-details dt { color: var(--text-muted); font-size: 0.8rem; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; }
.case-details dd { margin: 0; }

.fit { padding-inline: 0; padding-block: clamp(4rem, 8vw, 6.5rem); }
.fit-content { width: min(100%, var(--max-width)); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3.5rem); }
.fit h2 { max-width: 16ch; }
.fit-list { padding-top: 0; }
.fit-list p { display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.75rem; padding-block: 1rem; border-top: 1px solid var(--line); }
.fit-list p:last-child { border-bottom: 1px solid var(--line); }

.healthcare { width: 100%; padding-inline: 0; padding-block: clamp(4rem, 9vw, 7.5rem); background: var(--surface); }
.healthcare-content { width: min(100%, var(--max-width)); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3.5rem); padding-block: clamp(2rem, 5vw, 4rem); background: var(--surface-blue); }
.healthcare-grid h2 { max-width: 15ch; }
.healthcare-grid p + p { margin-top: 1.25rem; }
.healthcare-grid ul { display: grid; gap: 0.6rem; padding: 1.5rem 0 0; margin: 1.5rem 0 0; border-top: 1px solid var(--line); list-style: none; color: var(--text-muted); }
.healthcare-grid li { position: relative; padding-left: 1rem; }
.healthcare-grid li::before { content: "\2192"; position: absolute; left: 0; color: var(--accent); }

.contact { padding-top: clamp(4rem, 9vw, 7.5rem); padding-bottom: clamp(5rem, 10vw, 8rem); background: var(--accent); color: var(--surface); }
.contact h2 { max-width: 18ch; margin-top: 0.75rem; }
.contact-intro { max-width: 38rem; margin-top: 1.25rem; }
.contact-address { margin-top: 2rem; font-style: normal; }
.contact-links a { display: inline-flex; align-items: baseline; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.contact .eyebrow, .contact .section-icon { color: var(--surface-blue-deep); }
.contact-intro, .contact-address { color: var(--surface-blue); }
.contact-links a, .contact-form label { color: var(--surface); }

.contact-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.contact-form label { display: grid; gap: 0.35rem; font-size: 0.9rem; font-weight: 700; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.contact-form input, .contact-form textarea { border-color: var(--surface-blue-deep); background: transparent; color: var(--surface); }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.contact-form button {
  justify-self: start;
  min-height: 44px;
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.contact-form button:hover { background: var(--text); border-color: var(--text); }
.contact-form button { border-color: var(--surface); background: var(--surface); color: var(--accent); }
.contact-form button:hover { border-color: var(--surface-blue); background: var(--surface-blue); color: var(--text); }

footer { display: grid; gap: 1.25rem; padding-top: 2rem; padding-bottom: 2rem; border-top: 1px solid var(--line); color: var(--text-muted); font-size: 0.88rem; }
.footer-brand { color: var(--text); }
footer div { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; }
footer small { font-size: inherit; }

.legal-page { width: min(100%, 50rem); margin-inline: auto; padding: clamp(1.25rem, 4vw, 3.5rem); }
.legal-content { padding-block: clamp(3rem, 8vw, 6rem); }
.legal-content h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); }
.legal-content h2 { margin-top: 2.5rem; font-size: clamp(1.35rem, 3vw, 2rem); }
.legal-content p { margin-top: 0.75rem; }
.legal-content a { color: var(--accent); font-weight: 700; }

@media (max-width: 767px) {
  .site-header { position: sticky; top: 0; z-index: 10; background: var(--surface); }
  #top { scroll-margin-top: 5rem; }
  #leistungen, #situationen, #healthcare, #referenzen, #arbeitsweise, #profil, #kontakt { scroll-margin-top: 5rem; }
  .menu-toggle { display: inline-flex; }
  .primary-menu { display: none; }
  .primary-menu.is-open { display: grid; position: absolute; top: 5rem; right: 0; left: 0; padding: 0.75rem clamp(1.25rem, 4vw, 3.5rem); border-bottom: 1px solid var(--line); background: var(--surface); }
  .primary-menu a { min-height: 44px; }
  .service-grid, .principles-grid, .profile-grid, .fit-grid, .healthcare-grid { grid-template-columns: 1fr; }
  .services-intro .section-heading { grid-template-columns: 1fr; gap: 2rem; }
  .service-card { min-height: auto; }
  .service-card h3 { margin-top: 2rem; }
  .case-details div { grid-template-columns: 1fr; }
  .hero { margin-block: 0; background-position: 68% center; }
  .hero-bottom { align-items: center; }
  .hero-mark { display: none; }
}

@media (min-width: 768px) {
  .menu-toggle { display: none; }
  .primary-menu { display: flex; align-items: center; }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .service-card { padding-right: 1.5rem; padding-left: 1.5rem; border-right: 1px solid var(--line); }
  .service-card:first-child { padding-left: 0; }
  .service-card:last-child { padding-right: 0; border-right: 0; }
  .principles-grid, .healthcare-grid, .fit-grid, .profile-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); }
  .fit-grid { align-items: start; }
  .contact-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
  .contact-form { margin-top: 0; }
  .case-card h3 { max-width: 32ch; font-size: clamp(1.6rem, 2.5vw, 2.1rem); }
  .case-details { gap: 1rem; margin-top: 1.75rem; }
  .case-details div { grid-template-columns: 10rem minmax(0, 48rem); gap: 1.25rem; }
  .case-details dd { font-size: 1.05rem; }
  footer { grid-template-columns: 1.2fr 1.5fr auto; align-items: center; }
  footer small { grid-column: 3; justify-self: end; }
}
