/* =========================================================
   PRIOR SKAVERA Fachzentrum GmbH – Stylesheet
   Farben am Original-Logo abgeglichen (Petrol #12364A, Logo-Grün #3B7A08)
   ========================================================= */

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Farben */
  --petrol: #12364a;
  --petrol-900: #0b2533;
  --petrol-700: #1b4a62;
  --green: #3b7a08;          /* Logo-Grün, Kontrast auf Weiß 5,3:1 */
  --green-700: #2f6a0c;      /* Hover / Textlinks, 6,6:1 */
  --green-300: #a9d88a;      /* Akzent auf dunklem Grund */
  --green-50: #eef5e8;
  --bg: #f6f8f5;
  --surface: #ffffff;
  --text: #26333a;
  --muted: #5b6b72;
  --line: #dfe7e1;
  --on-dark: #ffffff;
  --on-dark-muted: #c6d3d8;

  /* Typografie */
  --font-head: "Manrope", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);   /* 17–19 px */
  --fs-h1: clamp(2.25rem, 1.35rem + 3.8vw, 4.375rem);      /* 36–70 px */
  --fs-h2: clamp(2rem, 1.45rem + 2.3vw, 3.25rem);          /* 32–52 px */
  --fs-h3: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);

  /* Raum & Form */
  --container: 1240px;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --section-y: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 76px;
  --shadow-sm: 0 1px 2px rgb(18 54 74 / 0.06), 0 2px 8px rgb(18 54 74 / 0.04);
  --shadow-md: 0 2px 4px rgb(18 54 74 / 0.05), 0 12px 32px rgb(18 54 74 / 0.08);

  /* Bewegung */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--petrol);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; }
h2 { font-size: var(--fs-h2); font-weight: 800; }
h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--green-700); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--petrol);
  color: #fff;
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
  transition: transform 160ms var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

.text-green { color: var(--green); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-700);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.eyebrow-light { color: var(--green-300); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition:
    transform 160ms var(--ease-out),
    background-color 200ms ease,
    border-color 200ms ease,
    color 200ms ease;
}
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--green); color: #fff; }
.btn-ghost { background: transparent; color: var(--petrol); border-color: rgb(18 54 74 / 0.22); }
.btn-lg { min-height: 52px; padding: 0.85rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--green-700); }
  .btn-ghost:hover { border-color: var(--petrol); background: rgb(18 54 74 / 0.04); }
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--green-700);
}
.text-link::after {
  content: "→";
  transition: transform 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .text-link:hover { text-decoration: underline; }
  .text-link:hover::after { transform: translateX(3px); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(246 248 245 / 0);
  border-bottom: 1px solid transparent;
  transition: background-color 200ms ease, border-color 200ms ease;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgb(246 248 245 / 0.86);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
}
.site-header.is-open { background: var(--bg); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--header-h);
}

.brand { flex-shrink: 0; display: block; border-radius: 4px; }
.brand img { width: clamp(180px, 15vw + 80px, 260px); height: auto; }

.main-nav { display: none; margin-left: auto; }
.main-nav ul { display: flex; gap: 0.25rem; }
.main-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--petrol);
  text-decoration: none;
  transition: background-color 200ms ease, color 200ms ease;
}
.main-nav a[aria-current="true"] { color: var(--green-700); }
@media (hover: hover) and (pointer: fine) {
  .main-nav a:hover { background: rgb(18 54 74 / 0.06); }
}

.header-cta { display: none; }

.menu-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  border: 1.5px solid rgb(18 54 74 / 0.2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--petrol);
  font: 700 0.9375rem/1 var(--font-head);
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 160ms var(--ease-out);
}
.menu-toggle:active { transform: scale(0.97); }
.menu-toggle-icon { position: relative; width: 18px; height: 12px; }
.menu-toggle-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 200ms var(--ease-out), top 200ms var(--ease-out);
}
.menu-toggle-icon span:first-child { top: 1px; }
.menu-toggle-icon span:last-child { top: 9px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:first-child { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:last-child { top: 5px; transform: rotate(-45deg); }

.mobile-menu {
  position: absolute;
  inset: var(--header-h) 0 auto 0;
  padding: 0.5rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px rgb(18 54 74 / 0.12);
  transform-origin: top center;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.mobile-menu[data-state="closed"] {
  opacity: 0;
  transform: translateY(-8px);
  transition-duration: 150ms;
}
.mobile-menu ul { margin-bottom: 1.25rem; }
.mobile-menu li + li { border-top: 1px solid var(--line); }
.mobile-menu ul a {
  display: block;
  padding: 1rem 0.25rem;
  font: 700 1.25rem/1.2 var(--font-head);
  color: var(--petrol);
  text-decoration: none;
}

@media (min-width: 960px) {
  .main-nav, .header-cta { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle, .mobile-menu { display: none !important; }
}

/* ---------- Medien (Fotoplätze mit Fallback) ---------- */
.media {
  position: relative;
  overflow: hidden;
  margin: 0;
  isolation: isolate;
}
.media-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.media.has-photo .media-fallback { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 1rem + 5vw, 5.5rem) clamp(3.5rem, 2rem + 6vw, 7rem);
}
.hero-arc {
  position: absolute;
  right: -12vw;
  top: -6vw;
  width: min(72vw, 900px);
  height: auto;
  fill: var(--green);
  opacity: 0.07;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  align-items: center;
}
.hero-copy h1 { max-width: 13ch; }
.hero-lead {
  margin-top: 1.5rem;
  max-width: 38rem;
  font-family: var(--font-head);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--petrol);
}
.hero-text { margin-top: 1rem; max-width: 36rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.hero-media {
  aspect-ratio: 5 / 4;
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(120% 90% at 85% 10%, rgb(169 216 138 / 0.35), transparent 60%),
    linear-gradient(160deg, #ffffff 0%, var(--green-50) 100%);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.hero-media.has-photo { background: var(--petrol); }
.hero-brandplate {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 1rem + 3vw, 3.5rem);
}
.hero-brandplate img { width: 100%; max-width: 560px; }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .hero { min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; }
  .hero > .container { width: 100%; }
}

/* ---------- Sektionen ---------- */
.section { padding-block: var(--section-y); }
.section-tint { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-intro { margin-top: 1.25rem; font-size: 1.125em; color: var(--muted); }

/* ---------- Leistungen ---------- */
.services {
  display: grid;
  gap: clamp(1.25rem, 1rem + 1vw, 2rem);
}
@media (min-width: 820px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.service {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.service-media {
  aspect-ratio: 16 / 7;
  background:
    radial-gradient(90% 120% at calc(20% + var(--tone) * 20%) 0%, rgb(59 122 8 / 0.55), transparent 65%),
    linear-gradient(135deg, var(--petrol-700), var(--petrol-900));
}
/* dunkler Verlauf über Fotos + grüner Akzentstreifen */
.service-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgb(11 37 51 / 0.08) 0%, rgb(11 37 51 / 0.12) 45%, rgb(11 37 51 / 0.78) 100%);
}
.service-media::after {
  content: "";
  position: absolute;
  left: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  bottom: 0;
  z-index: 2;
  width: 56px;
  height: 4px;
  border-radius: 4px 4px 0 0;
  background: var(--green-300);
}
.service-media .media-photo {
  transform: scale(1);
  transition: transform 600ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .service:hover .media-photo { transform: scale(1.04); }
}
.service-num {
  position: absolute;
  left: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  bottom: 1.1rem;
  z-index: 2;
  font: 800 clamp(2.5rem, 2rem + 2vw, 3.5rem)/1 var(--font-head);
  letter-spacing: -0.04em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.service-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.9rem;
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
}
.service-claim {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--green-700);
  line-height: 1.4;
}
.service-body > p:not(.service-claim) { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.25rem; }
.tags li {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--petrol);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
}
.service .text-link { margin-top: auto; padding-top: 0.5rem; align-self: flex-start; }

/* ---------- Fachzentrum (dunkel) ---------- */
.section-dark {
  position: relative;
  overflow: hidden;
  background: var(--petrol);
  color: var(--on-dark-muted);
}
.section-dark::before {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -40%;
  width: 60vw;
  max-width: 760px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(59 122 8 / 0.28), transparent 65%);
  pointer-events: none;
}
.section-dark h2, .section-dark h3 { color: var(--on-dark); }
.trust-grid { position: relative; display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); }
.trust-head p:last-child { margin-top: 1.5rem; max-width: 36rem; font-size: 1.0625em; }

.pillars { display: grid; gap: 0; counter-reset: pillar; }
.pillars li {
  counter-increment: pillar;
  display: grid;
  grid-template-columns: 3rem 1fr;
  column-gap: 1rem;
  padding-block: 1.75rem;
  border-top: 1px solid rgb(169 216 138 / 0.35);
}
.pillars li:last-child { border-bottom: 1px solid rgb(169 216 138 / 0.35); }
.pillars li::before {
  content: "0" counter(pillar);
  grid-row: span 2;
  font: 700 0.9375rem/1.9 var(--font-head);
  color: var(--green-300);
  font-variant-numeric: tabular-nums;
}
.pillars h3 { font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); }
.pillars p { margin-top: 0.4rem; }

@media (min-width: 960px) {
  .trust-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}

/* ---------- Über uns ---------- */
.about-grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); align-items: center; }
.about-media {
  aspect-ratio: 4 / 5;
  max-width: 520px;
  width: 100%;
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(160deg, var(--surface), var(--green-50));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.about-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.25rem;
  padding: 2rem;
}
.about-fallback img { width: 70%; max-width: 300px; opacity: 0.9; }
.about-fallback figcaption {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.about-name { margin-top: 1.75rem; font: 800 1.5rem/1.2 var(--font-head); color: var(--petrol); }
.about-role { margin-top: 0.35rem; margin-bottom: 1.25rem; font-size: 0.9375rem; font-weight: 500; color: var(--green-700); }
.about-copy > p:not([class]) { color: var(--muted); max-width: 36rem; }

.claim-band {
  margin: 2rem 0 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--green-50);
}
.claim-band p {
  font: 700 clamp(1.125rem, 1rem + 0.6vw, 1.375rem)/1.4 var(--font-head);
  color: var(--petrol);
}

@media (min-width: 900px) {
  .about-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); }
}

/* ---------- Zielgruppen ---------- */
.audiences {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) { .audiences { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .audiences { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.audiences li {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
}
.audiences h3 { font-size: 1.1875rem; }
.audiences p { margin-top: 0.6rem; color: var(--muted); font-size: 0.9875em; }

/* ---------- Ablauf ---------- */
.steps {
  position: relative;
  display: grid;
  gap: 2rem;
}
.steps li { position: relative; padding-left: 4.25rem; }
.step-num {
  position: absolute;
  left: 0;
  top: -0.25rem;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--petrol);
  color: #fff;
  font: 800 1.125rem/1 var(--font-head);
  font-variant-numeric: tabular-nums;
}
.steps p { margin-top: 0.5rem; color: var(--muted); }

@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
  .steps::before {
    content: "";
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    right: calc((100% - 5rem) / 3);
    height: 2px;
    background: linear-gradient(90deg, var(--petrol), var(--green));
    opacity: 0.25;
  }
  .steps li { padding-left: 0; padding-top: 4.5rem; }
  .step-num { top: 0; box-shadow: 0 0 0 8px var(--bg); }
}

/* ---------- Kontakt ---------- */
.section-contact { background: var(--surface); border-top: 1px solid var(--line); }
.contact-grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); align-items: start; }
.contact-copy > p:not(.eyebrow) { margin-top: 1.25rem; max-width: 32rem; color: var(--muted); }

.contact-list { margin: 2rem 0 0; display: grid; gap: 0; }
.contact-list > div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1rem;
  border-top: 1px solid var(--line);
}
.contact-list > div:last-child { border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.contact-list dd { margin: 0; font-weight: 600; color: var(--petrol); overflow-wrap: anywhere; }
.contact-list a { color: inherit; }

.form-card {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: calc(var(--radius) + 4px);
  background: var(--bg);
  border: 1px solid var(--line);
}
.demo-note {
  margin-bottom: 1.5rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: #fff7e0;
  border: 1px solid #ecd9a0;
  color: #5c4708;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.contact-form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; min-width: 0; align-content: start; }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field label { font-size: 0.9375rem; font-weight: 600; color: var(--petrol); }
.optional { font-weight: 400; color: var(--muted); }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid #c9d5cd;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: 400 16px/1.4 var(--font-body);   /* 16 px: kein Auto-Zoom auf iOS */
  transition: border-color 160ms ease, box-shadow 160ms ease;
  -webkit-appearance: none;
  appearance: none;
}
textarea { resize: vertical; min-height: 140px; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgb(59 122 8 / 0.2);
}
[aria-invalid="true"] { border-color: #b3261e !important; }

.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--petrol);
  border-bottom: 2px solid var(--petrol);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
select { padding-right: 2.5rem; cursor: pointer; }

.field-check { grid-template-columns: auto 1fr; align-items: start; gap: 0.75rem; }
.field-check input {
  width: 20px; height: 20px;
  margin: 0.15rem 0 0;
  accent-color: var(--green);
}
.field-check label { font-weight: 400; font-size: 0.875rem; color: var(--muted); line-height: 1.5; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { min-height: 1.5em; font-size: 0.9375rem; line-height: 1.5; }
.form-status[data-type="error"] { color: #b3261e; }
.form-status[data-type="info"] { color: var(--petrol); }

@media (min-width: 960px) {
  .contact-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--petrol-900);
  color: var(--on-dark-muted);
  padding-block: clamp(3rem, 2rem + 4vw, 5rem) calc(2rem + env(safe-area-inset-bottom, 0px));
  font-size: 0.9375rem;
}
.footer-grid { display: grid; gap: 2.5rem; align-items: center; }
.footer-logo {
  width: 100%;
  max-width: 300px;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: #fff;
}
.footer-name { font: 800 1.125rem/1.3 var(--font-head); color: #fff; }
.footer-claim { margin-top: 0.25rem; color: var(--green-300); font-weight: 500; }
.footer-fields { margin-top: 1rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1.5rem; }
.footer-nav a { color: #fff; font-weight: 600; text-decoration: none; }
.footer-copy { margin-top: 1.5rem; font-size: 0.8125rem; opacity: 0.8; }
@media (hover: hover) and (pointer: fine) {
  .footer-nav a:hover { text-decoration: underline; }
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 280px minmax(0, 1fr); gap: 3.5rem; }
}

/* ---------- Rechtstext-Seiten ---------- */
.legal { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.legal .container { max-width: calc(52rem + var(--gutter) * 2); }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-bottom: 2rem; }
.legal h2 { font-size: 1.375rem; margin: 2.5rem 0 0.75rem; }
.legal p, .legal li { color: var(--text); }
.legal p + p { margin-top: 0.75rem; }
.legal .placeholder-note {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: #fff7e0;
  border: 1px solid #ecd9a0;
  color: #5c4708;
}

/* ---------- Einblenden beim Scrollen ---------- */
/* Nur aktiv, wenn JavaScript läuft (Klasse .js am <html>). */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 600ms var(--ease-out),
    transform 600ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { transform: none; transition: opacity 200ms ease; transition-delay: 0ms; }
  .service-media .media-photo { transition: none; }
  .mobile-menu, .mobile-menu[data-state="closed"] { transform: none; }
  .btn:active, .menu-toggle:active { transform: none; }
}

/* =========================================================
   Interaktion & Feinschliff
   ========================================================= */
:root {
  --shadow-lg: 0 4px 8px rgb(18 54 74 / 0.06), 0 24px 48px rgb(18 54 74 / 0.14);
}

/* ---------- Scroll-Fortschritt unter dem Header ---------- */
/* Nur in Browsern mit scroll-getriebener Animation, sonst unsichtbar. */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--green-300));
  transform-origin: 0 50%;
  transform: scaleX(0);
  opacity: 0;
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .scroll-progress {
    opacity: 1;
    animation: scroll-progress linear both;
    animation-timeline: scroll(root);
  }
  @keyframes scroll-progress { to { transform: scaleX(1); } }
}

/* ---------- Aktiver Navigationspunkt: gleitende Linie ---------- */
.main-nav { position: relative; }
.nav-indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100px;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  transform-origin: 0 50%;
  transform: scaleX(0);
  opacity: 0;
  transition: transform 280ms var(--ease-in-out), opacity 200ms ease;
  pointer-events: none;
}
.nav-indicator.is-active { opacity: 1; }
.nav-indicator.no-transition { transition: none; }

/* ---------- Hero: Fachbereich-Navigator ---------- */
.hero-visual { position: relative; }
@media (max-width: 959px) {
  .hero-visual .hero-media { aspect-ratio: 4 / 3.3; }
  .hero-brandplate { padding: 1.25rem 1.5rem 3.25rem; }
  .hero-brandplate img { max-width: 400px; }
}
.hero-media { aspect-ratio: 16 / 11; }
.hero-index {
  position: relative;
  z-index: 2;
  margin: -2.5rem 0.75rem 0;
  padding: 1rem 0.75rem 0.75rem;
  border-radius: var(--radius);
  background: var(--petrol);
  color: #fff;
  box-shadow: 0 24px 48px rgb(11 37 51 / 0.28);
}
.hero-index-title {
  margin: 0.25rem 0.75rem 0.5rem;
  font: 700 0.75rem/1.2 var(--font-head);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-300);
}
.hero-index li + li { border-top: 1px solid rgb(255 255 255 / 0.08); }
.hero-index a {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  color: #fff;
  font: 600 0.9375rem/1.3 var(--font-head);
  text-decoration: none;
  touch-action: manipulation;
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
.hero-index a:active { transform: scale(0.98); }
.hero-index a:focus-visible { outline-color: var(--green-300); outline-offset: 0; }
.hi-num { font-size: 0.8125rem; color: var(--green-300); font-variant-numeric: tabular-nums; }
.hi-arrow::before {
  content: "→";
  display: inline-block;
  opacity: 0.6;
  transition: transform 200ms var(--ease-out), opacity 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .hero-index a:hover { background: rgb(255 255 255 / 0.07); }
  .hero-index a:hover .hi-arrow::before { transform: translateX(3px); opacity: 1; }
}

@media (min-width: 960px) {
  .hero-visual { padding-bottom: 3rem; }
  .hero-media { aspect-ratio: 1 / 0.92; }
  .hero-brandplate { place-items: start center; padding: clamp(1.75rem, 1rem + 2vw, 3rem) 2.5rem 0; }
  .hero-brandplate img { max-width: 420px; }
  .hero-index {
    position: absolute;
    right: -1rem;
    bottom: 0;
    width: min(400px, 78%);
    margin: 0;
  }
}

/* ---------- Leistungskarten: ganze Karte klickbar ---------- */
.service {
  position: relative;
  transition:
    transform 300ms var(--ease-out),
    box-shadow 300ms var(--ease-out),
    border-color 200ms ease;
}
.service .text-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
}
.service-media {
  background:
    repeating-radial-gradient(circle at calc(78% + var(--tone) * 5%) 135%, rgb(255 255 255 / 0.07) 0 1px, transparent 1.5px 22px),
    radial-gradient(90% 120% at calc(20% + var(--tone) * 20%) 0%, rgb(59 122 8 / 0.55), transparent 65%),
    linear-gradient(135deg, var(--petrol-700), var(--petrol-900));
}
.service-media::after { transition: transform 300ms var(--ease-out); transform-origin: 0 50%; }

@media (hover: hover) and (pointer: fine) {
  .service:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgb(59 122 8 / 0.35);
  }
  .service:hover .service-media::after { transform: scaleX(1.6); }
  .service:hover .text-link::after { transform: translateX(3px); }
}
.service:active { transform: translateY(-2px) scale(0.995); }

@supports selector(:has(*)) {
  .service:has(.text-link:focus-visible) {
    outline: 3px solid var(--green);
    outline-offset: 3px;
  }
  .service .text-link:focus-visible { outline: none; }
}

/* ---------- Ablauf: Verbindungslinie zeichnet sich ---------- */
@media (min-width: 860px) {
  .js .steps::before {
    transform-origin: 0 50%;
    transform: scaleX(0);
    transition: transform 900ms var(--ease-in-out) 150ms;
  }
  .js .steps.is-drawn::before { transform: scaleX(1); }
}
.js .steps [data-reveal] .step-num {
  transform: scale(0.9);
  transition: transform 500ms var(--ease-out);
  transition-delay: inherit;
}
.js .steps [data-reveal].is-visible .step-num { transform: scale(1); }

/* ---------- Formular: Inline-Validierung und Rückmeldung ---------- */
.field-error {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #b3261e;
}
.field-error:empty { display: none; }
.field-check .field-error { grid-column: 2; }
input[data-valid="true"], select[data-valid="true"], textarea[data-valid="true"] {
  border-color: rgb(59 122 8 / 0.55);
}

.form-status:empty { display: none; }
.form-status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out);
}
@starting-style {
  .form-status { opacity: 0; transform: translateY(4px); }
}
.form-status[data-type="error"] { background: #fdecea; border-color: #f3c1bc; }
.form-status[data-type="info"] { background: var(--green-50); border-color: rgb(59 122 8 / 0.3); }
.form-status a { font-weight: 600; }

/* ---------- Mobile Schnellkontakt-Leiste ---------- */
.action-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgb(18 54 74 / 0.18);
  transform: translateY(calc(100% + 32px));
  transition: transform 200ms var(--ease-out);
}
.action-bar .btn { flex: 1; }
.action-bar.is-visible { transform: translateY(0); transition-duration: 280ms; }
.action-bar.no-call .action-call { display: none; }

@media (max-width: 959px) {
  .site-footer { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 960px) {
  .action-bar { display: none; }
}

/* ---------- Reduzierte Bewegung (Ergänzungen) ---------- */
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  .nav-indicator { transition: opacity 200ms ease; }
  .service, .service:hover, .service:active { transform: none; }
  .service:hover .service-media::after { transform: none; }
  .js .steps::before { transform: none !important; transition: none; }
  .js .steps [data-reveal] .step-num { transform: none; }
  .action-bar { transition: opacity 200ms ease; opacity: 0; transform: none; pointer-events: none; }
  .action-bar.is-visible { opacity: 1; pointer-events: auto; }
  .hero-index a:active { transform: none; }
}

/* =========================================================
   Professioneller Feinschliff (Stufe 3)
   ========================================================= */

/* ---------- Buttons: mehr Tiefe ---------- */
.btn-primary {
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.14), 0 6px 16px -6px rgb(59 122 8 / 0.55);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.14), 0 10px 22px -8px rgb(59 122 8 / 0.6); }
}

/* ---------- Status-Punkt (geöffnet/geschlossen) ---------- */
.status-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9aa8ae;
}
[data-open="true"] .status-dot, .status-dot[data-open="true"] {
  background: #5fbf3a;
  box-shadow: 0 0 0 3px rgb(95 191 58 / 0.22);
}

/* ---------- Serviceleiste über dem Header ---------- */
.topbar {
  display: none;
  background: var(--petrol-900);
  color: var(--on-dark-muted);
  font-size: 0.8125rem;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 40px;
}
.topbar-status { display: inline-flex; align-items: center; gap: 0.6rem; }
.topbar-links { display: flex; gap: 1.75rem; }
.topbar-links a { color: #fff; text-decoration: none; font-weight: 500; }
@media (hover: hover) and (pointer: fine) {
  .topbar-links a:hover { text-decoration: underline; }
}
@media (min-width: 960px) { .topbar { display: block; } }

/* ---------- Telefonnummer im Header ---------- */
.header-phone {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--line);
  font: 700 0.9375rem/1 var(--font-head);
  color: var(--petrol);
  text-decoration: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.header-phone::before {
  content: "";
  width: 16px;
  height: 16px;
  background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 4h3l2 5-2.5 1.5a11 11 0 0 0 6 6L15 14l5 2v3a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 4h3l2 5-2.5 1.5a11 11 0 0 0 6 6L15 14l5 2v3a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (hover: hover) and (pointer: fine) {
  .header-phone:hover { color: var(--green-700); }
}
@media (min-width: 1200px) { .header-phone { display: inline-flex; } }
.mobile-menu-call { margin-top: 0.75rem; }

/* ---------- Hero: Typografie und Bildmosaik ---------- */
h1 { font-size: clamp(2.25rem, 1.3rem + 3.3vw, 4rem); }
.hero-copy h1 { max-width: 15ch; }
.hero-copy h1 .text-green { white-space: nowrap; }
@media (max-width: 420px) { .hero-copy h1 .text-green { white-space: normal; } }

.hero-mosaic ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.625rem, 0.4rem + 0.8vw, 1rem);
}
.hero-mosaic li:nth-child(even) { transform: translateY(clamp(1.25rem, 0.5rem + 2.5vw, 2.75rem)); }
.hero-mosaic { padding-bottom: clamp(1.25rem, 0.5rem + 2.5vw, 2.75rem); }

.mosaic-tile {
  position: relative;
  display: block;
  aspect-ratio: 6 / 7;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius);
  background: var(--petrol);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 4px rgb(18 54 74 / 0.06), 0 18px 40px -12px rgb(18 54 74 / 0.35);
  touch-action: manipulation;
  transition: transform 160ms var(--ease-out);
}
.mosaic-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 600ms var(--ease-out);
}
.mosaic-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(11 37 51 / 0) 40%, rgb(11 37 51 / 0.82) 100%);
}
.mosaic-tile:active { transform: scale(0.98); }
.mosaic-tile:focus-visible { outline-offset: 4px; }

.mosaic-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 0.2rem;
  padding: clamp(0.85rem, 0.6rem + 0.8vw, 1.25rem);
}
.mosaic-num {
  font: 700 0.75rem/1 var(--font-head);
  letter-spacing: 0.1em;
  color: var(--green-300);
  font-variant-numeric: tabular-nums;
}
.mosaic-name {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  font: 700 clamp(0.875rem, 0.8rem + 0.35vw, 1.0625rem)/1.25 var(--font-head);
  text-wrap: balance;
}
.mosaic-name::after {
  content: "→";
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 200ms ease, transform 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .mosaic-tile:hover img { transform: scale(1.05); }
  .mosaic-tile:hover .mosaic-name::after { opacity: 1; transform: translateX(0); }
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
}

/* ---------- Eckdaten-Leiste ---------- */
.facts {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.facts-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.facts-list li {
  display: grid;
  gap: 0.2rem;
  padding: 1.5rem 1rem 1.5rem 0;
}
.facts-list li:nth-child(n + 3) { border-top: 1px solid var(--line); }
.facts-list li:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }
.fact-title { font: 700 1rem/1.3 var(--font-head); color: var(--petrol); }
.fact-text { font-size: 0.9375rem; color: var(--muted); }
@media (min-width: 900px) {
  .facts-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts-list li { padding: 2rem 1.5rem; border-top: 0 !important; }
  .facts-list li:first-child { padding-left: 0; }
  .facts-list li + li { border-left: 1px solid var(--line); }
}

/* ---------- Sektionskopf zweispaltig ---------- */
@media (min-width: 960px) {
  .section-head--split {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 4rem;
    align-items: end;
  }
  .section-head--split .eyebrow { grid-column: 1 / -1; }
  .section-head--split .section-intro { margin-top: 0; max-width: 32rem; justify-self: end; }
}

/* ---------- Über uns: Visitenkarte statt Platzhalter ---------- */
.about-media { background: var(--petrol); border-color: transparent; }
.about-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 100% 0%, rgb(59 122 8 / 0.45), transparent 70%),
    linear-gradient(160deg, var(--petrol-700), var(--petrol-900));
  color: #fff;
}
.about-card-signet {
  width: 62%;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: #fff;
  box-sizing: content-box;
  max-width: 220px;
}
.about-card-kicker {
  font: 700 0.75rem/1.2 var(--font-head);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-300);
}
.about-card-name { margin-top: 0.5rem; font: 800 clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem)/1.1 var(--font-head); letter-spacing: -0.02em; }
.about-card-role { margin-top: 0.35rem; color: var(--on-dark-muted); }
.about-card-links {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 0.14);
}
.about-card-links a { color: #fff; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) {
  .about-card-links a:hover { text-decoration: underline; }
}

/* ---------- Kontakt: Karten mit Symbolen ---------- */
.contact-cards { display: grid; gap: 0.75rem; margin-top: 2rem; }
.ci {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: start;
  gap: 1rem;
  padding: 1.1rem 1.1rem 1.1rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.ci-icon {
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: 12px;
  background: var(--green-50);
  fill: none;
  stroke: var(--green-700);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ci-label { font-size: 0.8125rem; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.ci-value {
  display: inline-block;
  margin-top: 0.15rem;
  font: 700 1.0625rem/1.4 var(--font-head);
  font-style: normal;
  color: var(--petrol);
  text-decoration: none;
  overflow-wrap: anywhere;
}
a.ci-value { text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color 200ms ease; }
@media (hover: hover) and (pointer: fine) {
  a.ci-value:hover { text-decoration-color: currentColor; }
}
.ci-link { display: inline-block; margin-top: 0.4rem; font-size: 0.875rem; font-weight: 600; }

.hours { margin: 0.25rem 0 0; display: grid; gap: 0.15rem; }
.hours div { display: flex; flex-wrap: wrap; gap: 0 0.75rem; justify-content: space-between; max-width: 22rem; }
.hours dt { color: var(--text); }
.hours dd { margin: 0; font-weight: 600; color: var(--petrol); font-variant-numeric: tabular-nums; }
.open-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--petrol);
}

.copy-btn {
  align-self: center;
  min-height: 36px;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--petrol);
  font: 600 0.8125rem/1 var(--font-body);
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 160ms var(--ease-out), border-color 200ms ease, color 200ms ease, background-color 200ms ease;
}
.copy-btn:active { transform: scale(0.96); }
.copy-btn[data-state="copied"] { color: var(--green-700); border-color: rgb(59 122 8 / 0.4); background: var(--green-50); }
.copy-label { display: inline-block; transition: opacity 120ms ease, filter 120ms ease; }
.copy-label.is-swapping { opacity: 0; filter: blur(2px); }
@media (hover: hover) and (pointer: fine) {
  .copy-btn:hover { border-color: var(--petrol); }
}
@media (max-width: 420px) {
  .ci { grid-template-columns: 40px minmax(0, 1fr); }
  .ci-icon { width: 40px; height: 40px; padding: 10px; }
  .copy-btn { grid-column: 2; justify-self: start; }
}

/* ---------- Footer: Spalten ---------- */
.footer-grid { align-items: start; }
.footer-col { display: grid; gap: 0.75rem; align-content: start; }
.footer-col address { font-style: normal; }
.footer-col a { color: #fff; text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .footer-col a:hover { text-decoration: underline; }
}
.footer-head {
  font: 700 0.75rem/1.2 var(--font-head);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-300);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
}
.footer-bottom .footer-copy, .footer-bottom .footer-nav { margin: 0; }
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 240px minmax(0, 1fr); gap: 2.5rem 3.5rem; }
}
@media (min-width: 1100px) {
  .footer-grid { grid-template-columns: 240px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); }
}

/* ---------- Reduzierte Bewegung (Stufe 3) ---------- */
@media (prefers-reduced-motion: reduce) {
  .mosaic-tile, .mosaic-tile img, .mosaic-name::after, .copy-btn { transition: none; }
  .mosaic-tile:hover img, .mosaic-tile:active, .copy-btn:active { transform: none; }
}

/* ---------- Hero: Feinabstimmung Desktop ---------- */
@media (min-width: 960px) {
  h1 { font-size: clamp(2.75rem, 1.2rem + 2.6vw, 3.5rem); }
  .hero { min-height: calc(100svh - var(--header-h) - 40px); padding-block: 3rem 4rem; }
  .hero-mosaic { width: 100%; max-width: 540px; justify-self: end; }
  .mosaic-tile { aspect-ratio: 1 / 1.08; }
}

/* ---------- Zielgruppen: Akzentstreifen wie bei den Leistungen ---------- */
.audiences li {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.audiences li::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 0;
  width: 40px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--green);
}
.ci-link { display: block; width: fit-content; }

/* ---------- Mobile Feinschliff ---------- */
.hero-copy h1 .text-green { white-space: normal; }
@media (max-width: 959px) {
  h1 { font-size: clamp(2rem, 1.4rem + 3vw, 2.75rem); }
}
.mosaic-name { min-width: 0; overflow-wrap: break-word; hyphens: manual; }
@media (max-width: 480px) {
  .mosaic-name { font-size: 0.8125rem; }
  .mosaic-label { padding: 0.75rem; }
}
.action-bar .btn { white-space: nowrap; padding-inline: 0.9rem; font-size: 0.9375rem; }
.hours div { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; }
@media (max-width: 420px) {
  .hours div { grid-template-columns: 1fr; }
  .hours div + div { margin-top: 0.35rem; }
}
@media (max-width: 759px) {
  .footer-logo { max-width: 220px; padding: 1rem 1.25rem; }
}
@media (max-width: 899px) {
  .fact-title { font-size: 0.9375rem; }
}

/* ---------- Hero-Feinkorrekturen ---------- */
@media (min-width: 960px) {
  .hero-copy h1 .text-green { white-space: nowrap; }
}
/* Pfeil als Badge oben rechts statt neben dem Namen: der Name behält die volle Breite */
.mosaic-name::after { content: none; }
.mosaic-tile::after {
  content: "→";
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgb(255 255 255 / 0.25);
  font: 600 1rem/1 var(--font-head);
  color: #fff;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 200ms ease, transform 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .mosaic-tile:hover::after { opacity: 1; transform: translateY(0); }
}
.mosaic-tile:focus-visible::after { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .mosaic-tile::after { transition: opacity 150ms ease; transform: none; }
}

/* =========================================================
   Unterseiten der Fachbereiche
   ========================================================= */

/* ---------- Brotkrumen ---------- */
.breadcrumb { padding-top: clamp(1.25rem, 1rem + 1vw, 2rem); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.35rem 0.6rem; font-size: 0.875rem; color: var(--muted); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 0.6rem; }
.breadcrumb li + li::before { content: "/"; color: #b4c0c5; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb [aria-current="page"] { color: var(--petrol); font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .breadcrumb a:hover { color: var(--green-700); text-decoration: underline; }
}

/* ---------- Seitenkopf ---------- */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(1.75rem, 1rem + 3vw, 3.5rem) clamp(3rem, 2rem + 4vw, 5.5rem); }
.page-hero-grid { position: relative; display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4rem); align-items: center; }
.page-hero h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); }
.page-hero-claim {
  margin-top: 1rem;
  font: 700 clamp(1.125rem, 1rem + 0.6vw, 1.375rem)/1.4 var(--font-head);
  color: var(--green-700);
}
.page-hero-lead { margin-top: 1.25rem; max-width: 36rem; color: var(--muted); font-size: 1.0625em; }
.page-hero .hero-actions { margin-top: 2rem; }
.page-hero-media {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 2px 4px rgb(18 54 74 / 0.06), 0 24px 56px -16px rgb(18 54 74 / 0.4);
}
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgb(11 37 51 / 0.55));
}
.page-hero-num {
  position: absolute;
  left: 1.25rem;
  bottom: 1rem;
  z-index: 1;
  font: 800 clamp(2.75rem, 2rem + 2.5vw, 4rem)/1 var(--font-head);
  letter-spacing: -0.04em;
  color: #fff;
}
.page-hero-num::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-top: 0.6rem;
  border-radius: 4px;
  background: var(--green-300);
}
@media (min-width: 960px) {
  .page-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}

/* ---------- Auf einen Blick ---------- */
.glance { background: var(--surface); border-block: 1px solid var(--line); }
.glance-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.glance-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.25rem 1rem 1.25rem 0;
  font: 700 0.9375rem/1.35 var(--font-head);
  color: var(--petrol);
}
.glance-list li::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: -1px;
  border-radius: 50%;
  background: var(--green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.5 3.2 3.2L17 9' fill='none' stroke='%232f6a0c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.glance-list li:nth-child(n + 3) { border-top: 1px solid var(--line); }
.glance-list li:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }
@media (min-width: 900px) {
  .glance-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .glance-list li { padding: 1.75rem 1.25rem; border-top: 0 !important; }
  .glance-list li:first-child { padding-left: 0; }
  .glance-list li + li { border-left: 1px solid var(--line); }
}

/* ---------- Inhalt mit Seitenleiste ---------- */
.detail-layout {
  display: grid;
  gap: clamp(2.5rem, 2rem + 2vw, 4rem);
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem);
}
@media (min-width: 1024px) {
  .detail-layout { grid-template-columns: 260px minmax(0, 1fr); align-items: start; }
  .detail-aside { position: sticky; top: calc(var(--header-h) + 24px); }
}
.detail-aside { display: grid; gap: 1.25rem; }

.toc { display: none; }
@media (min-width: 1024px) { .toc { display: block; } }
.toc-title {
  margin-bottom: 0.75rem;
  font: 700 0.75rem/1.2 var(--font-head);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.toc ol { border-left: 2px solid var(--line); }
.toc a {
  display: block;
  margin-left: -2px;
  padding: 0.45rem 0 0.45rem 1rem;
  border-left: 2px solid transparent;
  font-size: 0.9375rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 200ms ease, border-color 200ms ease;
}
.toc a[aria-current="true"] { color: var(--petrol); font-weight: 600; border-left-color: var(--green); }
@media (hover: hover) and (pointer: fine) {
  .toc a:hover { color: var(--petrol); }
}

.aside-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--petrol);
  color: var(--on-dark-muted);
  font-size: 0.9375rem;
}
.aside-card-title { font: 700 1.0625rem/1.3 var(--font-head); color: #fff; }
.aside-card p + p { margin-top: 0.5rem; }
.aside-card a:not(.btn) { color: #fff; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.aside-card .btn { margin-top: 1.25rem; }
@media (hover: hover) and (pointer: fine) {
  .aside-card a:not(.btn):hover { text-decoration: underline; }
}
@media (max-width: 1023px) { .detail-aside { order: 2; } }

/* ---------- Textabschnitte ---------- */
.detail-main { min-width: 0; }
.detail-section + .detail-section { margin-top: clamp(3.5rem, 2.5rem + 3vw, 5rem); padding-top: clamp(3.5rem, 2.5rem + 3vw, 5rem); border-top: 1px solid var(--line); }
.detail-section { scroll-margin-top: calc(var(--header-h) + 24px); }
.detail-section h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); }
.detail-section > .eyebrow { margin-bottom: 0.9rem; }
.detail-intro { margin-top: 1rem; max-width: 44rem; color: var(--muted); }
.prose { margin-top: 1.25rem; max-width: 46rem; }
.prose p + p { margin-top: 1rem; }
.prose p { color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.chips li {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--petrol);
}

/* ---------- Leistungskarten im Detail ---------- */
.detail-grid { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 700px) { .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.detail-grid li {
  position: relative;
  padding: 1.6rem 1.5rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.detail-grid li::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 0;
  width: 40px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--green);
}
.detail-grid h3 { font-size: 1.1875rem; }
.detail-grid p { margin-top: 0.6rem; color: var(--muted); font-size: 0.9875em; }

/* ---------- Themenraster (Arten, Formate, Anlässe) ---------- */
.topic-grid { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 640px) { .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.topic-grid li {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--petrol);
  color: var(--on-dark-muted);
}
.topic-grid h3 { color: #fff; font-size: 1.125rem; }
.topic-kicker {
  display: block;
  margin-bottom: 0.5rem;
  font: 700 0.75rem/1.2 var(--font-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-300);
}
.topic-grid p { margin-top: 0.6rem; font-size: 0.9375rem; line-height: 1.6; }

/* ---------- Vorgehen als Zeitleiste ---------- */
.process { position: relative; margin-top: 2rem; display: grid; gap: 0; }
.process li {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  column-gap: 1.25rem;
  padding-bottom: 1.75rem;
}
.process li:last-child { padding-bottom: 0; }
.process li::before {
  content: "";
  position: absolute;
  left: calc(1.5rem - 1px);
  top: 3rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--line), var(--line));
}
.process li:last-child::before { display: none; }
.process-num {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--petrol);
  color: #fff;
  font: 800 1.0625rem/1 var(--font-head);
  font-variant-numeric: tabular-nums;
}
.process h3 { padding-top: 0.6rem; font-size: 1.1875rem; }
.process p { grid-column: 2; margin-top: 0.4rem; color: var(--muted); }

/* ---------- Rechtlicher Rahmen ---------- */
.legal-list { margin: 2rem 0 0; display: grid; gap: 0.75rem; }
.legal-list > div {
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.legal-list dt { font: 700 1.0625rem/1.35 var(--font-head); color: var(--petrol); }
.legal-list dd { margin: 0.4rem 0 0; color: var(--text); font-size: 0.9875em; }
.legal-note {
  margin-top: 1.25rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--green-50);
  color: var(--petrol);
  font-size: 0.875rem;
  line-height: 1.55;
}

/* ---------- Häufige Fragen ---------- */
.faq { margin-top: 2rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  display: block;
  padding: 1.25rem 3rem 1.25rem 0;
  font: 700 1.0625rem/1.4 var(--font-head);
  color: var(--petrol);
  cursor: pointer;
  list-style: none;
  touch-action: manipulation;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  background: var(--green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%2312364a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: transform 200ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq-answer { padding: 0 3rem 1.5rem 0; color: var(--muted); }
.faq-answer p + p { margin-top: 0.75rem; }
.faq-answer a { font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .faq summary:hover { color: var(--green-700); }
}
/* Weiches Aufklappen, wo der Browser es unterstützt */
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content {
    height: 0;
    overflow: clip;
    transition: height 250ms var(--ease-out), content-visibility 250ms allow-discrete;
  }
  .faq details[open]::details-content { height: auto; }
}

/* ---------- Abschlussband mit Kontakt ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  background: var(--petrol);
  color: var(--on-dark-muted);
}
.cta-band::before {
  content: "";
  position: absolute;
  right: -10%;
  top: -60%;
  width: 60vw;
  max-width: 720px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(59 122 8 / 0.3), transparent 65%);
  pointer-events: none;
}
.cta-band-grid { position: relative; display: grid; gap: 2rem; align-items: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem); }
.cta-band p { margin-top: 1rem; max-width: 34rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn-on-dark { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.35); }
@media (hover: hover) and (pointer: fine) {
  .btn-on-dark:hover { border-color: #fff; background: rgb(255 255 255 / 0.06); }
}
@media (min-width: 960px) {
  .cta-band-grid { grid-template-columns: minmax(0, 1fr) auto; }
}

/* ---------- Weitere Fachbereiche ---------- */
.more-areas { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.more-areas h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); }
.more-areas-grid { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 760px) { .more-areas-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.area-link {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out), border-color 200ms ease;
}
.area-link-media { aspect-ratio: 16 / 8; overflow: hidden; }
.area-link-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.area-link-body { display: grid; gap: 0.35rem; padding: 1.25rem 1.5rem 1.5rem; }
.area-link-num { font: 700 0.75rem/1 var(--font-head); letter-spacing: 0.12em; color: var(--green-700); }
.area-link-title { font: 700 1.125rem/1.3 var(--font-head); color: var(--petrol); }
.area-link-more { margin-top: 0.4rem; font: 700 0.875rem/1 var(--font-head); color: var(--green-700); }
.area-link-more::after { content: " →"; }
.area-link:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) {
  .area-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgb(59 122 8 / 0.35); }
  .area-link:hover img { transform: scale(1.04); }
}

/* ---------- Leistungskarten der Startseite: Link-Pfeil ---------- */
.service .text-link { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .area-link, .area-link img, .faq summary::after { transition: none; }
  .area-link:hover, .area-link:active, .area-link:hover img { transform: none; }
  .faq details::details-content { transition: none; }
}
.glance-list li, .fact-title, .topic-grid h3, .detail-grid h3, .area-link-title { min-width: 0; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 480px) { .glance-list li { font-size: 0.875rem; } }
.glance-list li { overflow-wrap: anywhere; }

/* =========================================================
   Porträt „Ihr Ansprechpartner“
   Einmaliges Einblenden beim ersten Sichtkontakt:
   Bild öffnet sich von unten, setzt sich mit leichtem Zoom,
   danach folgen Karte und Siegel. Kein Dauer-Effekt.
   ========================================================= */
.portrait {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 0 1.5rem;
  justify-self: center;
}
/* Versetzte Fläche in Markenfarben für Tiefe */
.portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(150deg, var(--green) 0%, var(--petrol) 85%);
  transform: translate(18px, 18px);
  opacity: 0.9;
}
.portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: calc(var(--radius) + 8px);
  background: #c9cdd0;
  box-shadow: 0 2px 4px rgb(18 54 74 / 0.08), 0 30px 60px -20px rgb(11 37 51 / 0.45);
}
.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
/* Verlauf, damit die Karte auf dem Foto lesbar bleibt */
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgb(11 37 51 / 0.55) 100%);
  pointer-events: none;
}

.portrait-card {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: grid;
  gap: 0.15rem;
  padding: 1.1rem 1.25rem 1.2rem;
  border-radius: var(--radius);
  background: rgb(11 37 51 / 0.78);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border: 1px solid rgb(255 255 255 / 0.12);
  color: var(--on-dark-muted);
}
.portrait-kicker {
  font: 700 0.6875rem/1.2 var(--font-head);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-300);
}
.portrait-name { margin-top: 0.3rem; font: 800 clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem)/1.1 var(--font-head); letter-spacing: -0.02em; color: #fff; }
.portrait-role { font-size: 0.875rem; }
.portrait-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgb(255 255 255 / 0.14);
  font-size: 0.875rem;
}
.portrait-links a { color: #fff; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) {
  .portrait-links a:hover { text-decoration: underline; }
}

/* Siegel mit dem Signet, überlappt die Ecke */
.portrait-seal {
  position: absolute;
  top: -1.25rem;
  right: -1.25rem;
  z-index: 3;
  display: grid;
  place-items: center;
  width: clamp(92px, 70px + 5vw, 120px);
  aspect-ratio: 1;
  padding: 0.85rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 6px rgb(255 255 255 / 0.55), 0 14px 30px -10px rgb(11 37 51 / 0.45);
}
.portrait-seal img { width: 100%; height: auto; }
@media (max-width: 560px) {
  .portrait-seal { top: -0.75rem; right: -0.5rem; }
  .portrait::before { transform: translate(12px, 12px); }
}

/* --- Einblende-Choreografie (nur mit JS, einmalig) --- */
.js .portrait[data-reveal] { opacity: 1; transform: none; transition: none; }
.js .portrait .portrait-frame {
  clip-path: inset(100% 0 0 0 round calc(var(--radius) + 8px));
  transition: clip-path 900ms var(--ease-in-out);
}
.js .portrait .portrait-img {
  transform: scale(1.12);
  transition: transform 1400ms var(--ease-out);
}
.js .portrait::before {
  opacity: 0;
  transform: translate(0, 0);
  transition: opacity 600ms ease 250ms, transform 800ms var(--ease-out) 250ms;
}
.js .portrait .portrait-card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms var(--ease-out) 550ms, transform 500ms var(--ease-out) 550ms;
}
.js .portrait .portrait-seal {
  opacity: 0;
  transform: scale(0.9) rotate(-10deg);
  transition: opacity 400ms var(--ease-out) 750ms, transform 600ms var(--ease-out) 750ms;
}
.js .portrait.is-visible .portrait-frame { clip-path: inset(0 0 0 0 round calc(var(--radius) + 8px)); }
.js .portrait.is-visible .portrait-img { transform: scale(1); }
.js .portrait.is-visible::before { opacity: 0.9; transform: translate(18px, 18px); }
.js .portrait.is-visible .portrait-card { opacity: 1; transform: none; }
.js .portrait.is-visible .portrait-seal { opacity: 1; transform: none; }
@media (max-width: 560px) {
  .js .portrait.is-visible::before { transform: translate(12px, 12px); }
}

/* Nach dem Einblenden: dezente Reaktion auf die Maus */
@media (hover: hover) and (pointer: fine) {
  .js .portrait.is-settled .portrait-img { transition: transform 600ms var(--ease-out); }
  .js .portrait.is-settled .portrait-seal { transition: transform 300ms var(--ease-out); }
  .portrait.is-settled:hover .portrait-img { transform: scale(1.03); }
  .portrait.is-settled:hover .portrait-seal { transform: rotate(6deg); }
}

@media (prefers-reduced-motion: reduce) {
  .js .portrait .portrait-frame { clip-path: none; transition: none; }
  .js .portrait .portrait-img, .js .portrait.is-visible .portrait-img { transform: none; transition: none; }
  .js .portrait::before { transform: translate(18px, 18px); transition: opacity 200ms ease; }
  .js .portrait .portrait-card, .js .portrait .portrait-seal { transform: none; transition: opacity 200ms ease; }
  .portrait.is-settled:hover .portrait-img, .portrait.is-settled:hover .portrait-seal { transform: none; }
}
@media (max-width: 560px) {
  .portrait { max-width: 340px; }
  .portrait-links { display: none; }
  .portrait-card { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; padding: 0.85rem 1rem; }
  .portrait-img { object-position: 50% 18%; }
}
