/* ==========================================================
   Kanzlei Burg – Onepager (Entwurf)
   Farben laut Moodboard: Weiß, Hellgrau, Grau, Dunkelgrün
   Struktur laut Miro-Webstruktur:
   Hero · Störer · Kernleistungen · Christine & Team · Kontakt
   ========================================================== */

:root {
  --green: #2F4A3C;
  --green-dark: #1F3329;
  --green-soft: #E6ECE8;
  --white: #FFFFFF;
  --grey-50: #F5F5F4;
  --grey-100: #EDEDEC;
  --grey-300: #D6D6D4;
  --grey-500: #686865;   /* ≥ 4,5:1 auf Weiß, Grau-50 und Grün-soft (WCAG AA) */
  --border-input: #8A8A87; /* ≥ 3:1 Nicht-Text-Kontrast für Formularfelder */
  --grey-700: #5C5C5A;
  --ink: #2B2B2A;

  --font-body: "Nunito Sans", "Avenir Next", Avenir, system-ui, sans-serif;
  --font-logo: "Barlow", "DIN Next", "DIN Alternate", system-ui, sans-serif;

  --radius: 6px;
  --radius-lg: 14px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 120px);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
/* Header-Versatz gilt auch für Tastaturfokus (WCAG 2.4.11) und wird von Lenis mitberücksichtigt */
html { scroll-padding-top: calc(var(--header-h) + 1px); }
html.lenis { scroll-behavior: auto; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px, skaliert mit der Browser-Schriftgröße */
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--green); }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6em; color: var(--green-dark); }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); font-weight: 300; letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 300; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { position: relative; width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--green); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }

.eyebrow {
  font-family: var(--font-logo);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  font-weight: 500;
  color: var(--green);
  margin-bottom: 1em;
}
.eyebrow-light { color: rgba(255,255,255,.65); }

/* ---------- Buttons & Links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.7em;
  border: 1px solid var(--green);
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font: 600 .95rem/1 var(--font-body);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-arrow::after { content: "→"; transition: transform .2s; }
.btn-arrow:hover::after { transform: translateX(3px); }
.btn-small { padding: .7em 1.2em; font-size: .88rem; }
.btn-light { background: #fff; color: var(--green-dark); border-color: #fff; }
.btn-light:hover { background: var(--grey-100); border-color: var(--grey-100); color: var(--green-dark); }

.text-link { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.section-dark :focus-visible, .notice :focus-visible,
.location-card :focus-visible, .site-footer :focus-visible { outline-color: #fff; }
/* Programmatisch fokussierte Abschnitte (Sprungziele) ohne Rahmen */
[tabindex="-1"]:focus { outline: none; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-mark { width: 34px; height: 44px; flex: none; --mark-b: var(--green); --mark-k: #fff; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name { font-family: var(--font-logo); font-size: 1.35rem; letter-spacing: .06em; text-transform: uppercase; color: var(--grey-700); }
.logo-sub { font-family: var(--font-logo); font-size: .82rem; color: var(--grey-500); letter-spacing: .02em; }
.logo-light .logo-mark { --mark-b: #fff; --mark-k: var(--green-dark); }
.logo-light .logo-name { color: #fff; }
.logo-light .logo-sub { color: rgba(255,255,255,.65); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--grey-100); box-shadow: 0 6px 24px rgba(0,0,0,.04); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.main-nav ul a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; position: relative; }
.main-nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.main-nav ul a:hover::after { transform: scaleX(1); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
/* Hamburger → X: erst zusammenschieben, dann drehen */
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 11px; width: 22px; height: 2px; border-radius: 2px;
  background: var(--green-dark); content: "";
}
.nav-toggle-bar { top: 21px; transition: background-color .2s ease .15s; }
.nav-toggle-bar::before, .nav-toggle-bar::after {
  left: 0;
  transition: top .2s ease .2s, transform .3s cubic-bezier(.22, 1, .36, 1) 0s;
}
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background-color: transparent; transition-delay: 0s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before,
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  top: 0;
  transition: top .2s ease 0s, transform .35s cubic-bezier(.22, 1, .36, 1) .18s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: rotate(-45deg); }

/* ---------- Fotos (leicht entsättigt, damit sie mit Grün/Grau harmonieren) ---------- */
.photo { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--grey-100); }
.photo picture { display: contents; } /* <img> liegt in <picture>, positioniert sich aber an .photo */
.photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.88) contrast(1.02);
}

/* ---------- Bildplatzhalter ---------- */
.ph { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.ph-green { background: linear-gradient(150deg, #93a399 0%, #5d7266 55%, #3a5246 100%); }
.ph-light { background: linear-gradient(150deg, #d9dbd8 0%, #a9aea9 100%); }
.ph-grey  { background: linear-gradient(120deg, #e4e4e2 0%, #bdbdb9 60%, #9d9d99 100%); }
.placeholder-label {
  position: absolute; left: 16px; bottom: 14px;
  font: 500 .72rem/1.3 var(--font-logo);
  letter-spacing: .08em; text-transform: uppercase;
  color: #fff;
  background: rgba(0,0,0,.28);
  padding: 5px 9px; border-radius: 3px;
}

/* ---------- 1 · Hero ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--grey-700); max-width: 32em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 2em; }
.hero-media { aspect-ratio: 5 / 6; min-height: 380px; }
.hero-media img { object-position: 50% 30%; }

/* ---------- 2 · Störer ---------- */
.notice { margin-top: calc(clamp(24px, 4vw, 48px) * -1); padding-bottom: clamp(16px, 3vw, 32px); }
.notice-inner {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  padding: clamp(26px, 4vw, 40px) clamp(24px, 4vw, 48px);
  background: var(--green);
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(31,51,41,.18);
}
.notice-icon { width: 52px; height: 52px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.notice h2 { color: #fff; font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 600; margin-bottom: .35em; }
.notice p { margin: 0; color: rgba(255,255,255,.88); max-width: 46em; }
.notice strong { color: #fff; }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section-head { max-width: 48em; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p:last-child { color: var(--grey-700); font-size: 1.08rem; }

/* ---------- 3 · Kernleistungen ---------- */
.service-group + .service-group { margin-top: clamp(48px, 6vw, 72px); }
.group-title {
  display: flex; align-items: center; gap: 20px;
  font-family: var(--font-logo); font-weight: 500; font-size: .9rem;
  text-transform: uppercase; letter-spacing: .14em; color: var(--grey-700);
  margin-bottom: 24px;
}
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--grey-300); }

.cards { display: grid; gap: 20px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  position: relative;
  padding: 32px 32px 28px;
  background: var(--grey-50);
  border-radius: var(--radius-lg);
  transition: background .25s, box-shadow .25s, transform .25s;
}
.card:hover { background: #fff; box-shadow: 0 16px 40px rgba(31,51,41,.09); transform: translateY(-2px); }
.card h4 { padding-left: 16px; border-left: 3px solid var(--green); }
.card p { margin: 0; color: var(--grey-700); font-size: .98rem; }
.card-featured { background: var(--green-soft); }
.card-tag {
  position: absolute; top: 18px; right: 20px;
  font: 500 .7rem/1 var(--font-logo); letter-spacing: .12em; text-transform: uppercase;
  color: var(--green); background: #fff; padding: 6px 10px; border-radius: 999px;
}

/* ---------- 4 · Christine & Team (dunkel) ---------- */
.section-dark { background: var(--green-dark); color: rgba(255,255,255,.82); overflow: hidden; }
.section-dark h2 { color: #fff; }
.section-watermark {
  position: absolute; top: -.32em; left: var(--gutter);
  font: 500 clamp(5rem, 16vw, 13rem)/1 var(--font-logo);
  text-transform: uppercase; letter-spacing: .04em;
  color: rgba(255,255,255,.04);
  pointer-events: none; user-select: none;
}
.about-row { position: relative; display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-row + .about-row { margin-top: clamp(64px, 9vw, 120px); }
.about-row-team { grid-template-columns: 6fr 5fr; }
.about-photo { aspect-ratio: 4 / 5; }
.about-photo img { object-position: 60% 40%; }
.about-text h2 span { display: block; margin-top: .35em; font: 500 1rem/1.3 var(--font-logo); letter-spacing: .04em; color: rgba(255,255,255,.6); }
.about-text .lead { font-size: 1.2rem; color: #fff; font-weight: 300; }
.about-text .btn { margin-top: 1em; }

.team-images { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.team-img-a { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.team-img-a img { object-position: 55% 45%; }
.team-img-b { grid-column: 2; aspect-ratio: 4 / 3; margin-top: -18%; outline: 6px solid var(--green-dark); }
.team-img-b img { object-position: 50% 40%; }

/* ---------- 5 · Einblicke (Bildergalerie) ---------- */
.section-muted { background: var(--grey-50); }
.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(10px, 1.4vw, 16px);
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(170px, 19vw, 240px);
  grid-template-areas:
    "a a b c"
    "a a b d"
    "e f g g"
    "e h i j";
}
.g-a { grid-area: a; } .g-b { grid-area: b; } .g-c { grid-area: c; } .g-d { grid-area: d; } .g-e { grid-area: e; }
.g-f { grid-area: f; } .g-g { grid-area: g; } .g-h { grid-area: h; } .g-i { grid-area: i; } .g-j { grid-area: j; }
.gallery-item { position: relative; margin: 0; }
.gallery-link {
  position: absolute; inset: 0; display: block; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--grey-100); cursor: zoom-in;
}
.gallery-link img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.88) contrast(1.02);
  transition: transform .9s cubic-bezier(.22,1,.36,1);
}
.gallery-link::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(31,51,41,.45), rgba(31,51,41,0) 50%);
  opacity: 0; transition: opacity .4s ease;
}
.gallery-link::before {
  content: ""; position: absolute; right: 14px; bottom: 14px; z-index: 1;
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F3329' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 18px no-repeat;
  opacity: 0; transform: scale(.7); transition: opacity .3s ease, transform .4s cubic-bezier(.22,1,.36,1);
}
.gallery-link:hover img, .gallery-link:focus-visible img { transform: scale(1.05); }
.gallery-link:hover::after, .gallery-link:focus-visible::after,
.gallery-link:hover::before, .gallery-link:focus-visible::before { opacity: 1; transform: none; }

/* Großansicht */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 72px clamp(16px, 7vw, 104px);
  border: 0; background: rgba(20, 32, 26, .96); color: #fff;
  overscroll-behavior: contain;
}
.lightbox[open] { display: grid; place-items: center; animation: lb-fade .35s ease; }
.lightbox::backdrop { background: transparent; }
.lightbox :focus-visible { outline-color: #fff; }
.lightbox-figure { margin: 0; width: 100%; display: grid; gap: 16px; justify-items: center; }
.lightbox-media { display: flex; justify-content: center; width: 100%; }
.lightbox-media img {
  display: block; width: auto; height: auto;
  max-width: 100%; max-height: calc(100dvh - 200px);
  border-radius: var(--radius);
  animation: lb-img .45s cubic-bezier(.22,1,.36,1);
}
.lightbox-caption {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 16px;
  max-width: 40em; text-align: center; font-size: .98rem; color: rgba(255,255,255,.88);
}
.lightbox-count { font-family: var(--font-logo); font-size: .85rem; letter-spacing: .14em; color: rgba(255,255,255,.65); }
.lightbox-btn {
  position: absolute; display: grid; place-items: center;
  width: 48px; height: 48px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.06); color: #fff;
  cursor: pointer; transition: background-color .2s ease, border-color .2s ease;
}
.lightbox-btn:hover { background: rgba(255,255,255,.18); border-color: #fff; }
.lightbox-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev, .lightbox-next { top: 50%; margin-top: -24px; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
@keyframes lb-fade { from { opacity: 0; } }
@keyframes lb-img { from { opacity: 0; transform: scale(.98); } }

/* ---------- 6 · Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-info > p { color: var(--grey-700); }
.contact-list { margin: 28px 0 0; display: grid; gap: 14px; }
.contact-list div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--grey-100); }
.contact-list dt { font-family: var(--font-logo); text-transform: uppercase; letter-spacing: .1em; font-size: .76rem; color: var(--grey-500); padding-top: 4px; }
.contact-list dd { margin: 0; font-weight: 600; }
.contact-list a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--border-input); }
.contact-list a:hover, .contact-list a:focus-visible { text-decoration-color: currentColor; }

.contact-form {
  display: grid; gap: 16px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--grey-50);
  border-radius: var(--radius-lg);
}
.contact-form h3 { margin: 0 0 4px; font-size: 1.3rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form .field { display: grid; gap: 6px; }
.contact-form .field > label { font-size: .88rem; font-weight: 600; color: var(--grey-700); }
.field-hint { margin: 0; font-size: .82rem; color: var(--grey-700); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius);
  background: #fff;
  font: 400 1rem/1.4 var(--font-body);
  color: var(--ink);
}
.contact-form ::placeholder { color: var(--grey-500); opacity: 1; }
.contact-form textarea { resize: vertical; }
.contact-form .req { color: var(--green); font-weight: 700; }
.form-hint { margin: -6px 0 4px; font-size: .85rem; color: var(--grey-700); }
.contact-form .check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--grey-700); }
.contact-form .check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--green); }
.contact-form .btn { justify-self: start; }
.form-status { margin: 0; font-size: .88rem; color: var(--green); }

.location { margin-top: clamp(48px, 7vw, 88px); min-height: 440px; display: flex; align-items: center; padding: clamp(24px, 5vw, 56px); }
.location img { object-position: 60% 40%; }
.location-card {
  position: relative; z-index: 1;
  width: min(360px, 100%);
  padding: 32px;
  background: var(--green-dark);
  color: rgba(255,255,255,.85);
  border-radius: var(--radius-lg);
}
.location-card p { margin-bottom: 1.1em; }
.location-card a:not(.btn) { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.location-name { font-family: var(--font-logo); font-size: 1.15rem; letter-spacing: .05em; text-transform: uppercase; color: #fff; line-height: 1.3; }
.location-name span { text-transform: none; letter-spacing: .02em; font-size: .88rem; color: rgba(255,255,255,.6); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: rgba(255,255,255,.75); padding: 56px 0 28px; font-size: .92rem; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.footer-address { margin: 0; justify-self: center; text-align: center; font-style: normal; }
.footer-nav { display: flex; gap: 16px; }
.footer-nav a { color: #fff; text-decoration: none; display: inline-block; padding: 10px 8px; } /* Zielgröße ≥ 24px */
.footer-address a { color: inherit; }
.footer-nav a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; color: rgba(255,255,255,.5); }

/* ==========================================================
   Responsive
   ========================================================== */
/* Navigation: auf Desktop und Tablet offen, kompakter je schmaler */
@media (max-width: 1080px) {
  .main-nav { gap: 22px; }
  .main-nav ul { gap: 20px; }
  .main-nav .btn { padding: .65em 1em; font-size: .85rem; }
}
@media (max-width: 920px) {
  .logo-sub { display: none; }
  .logo-mark { width: 28px; height: 36px; }
  .logo-name { font-size: 1.15rem; }
}

/* Hamburger erst auf Mobilgeräten */
@media (max-width: 767px) {
  :root { --header-h: 72px; }
  .logo-sub { display: inline; }
  .nav-toggle { display: block; }
  /* Menü klappt weich von oben auf. visibility sorgt dafür, dass die Links
     im geschlossenen Zustand weder sichtbar noch per Tab erreichbar sind. */
  .main-nav {
    --menu-ease: cubic-bezier(.22, 1, .36, 1);
    position: absolute; top: 100%; left: 0; right: 0;
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--grey-100);
    box-shadow: 0 18px 40px rgba(31,51,41,.10);
    padding: 8px var(--gutter) 24px;
    visibility: hidden;
    clip-path: inset(0 0 100% 0);
    transition:
      clip-path .45s var(--menu-ease),
      visibility 0s linear .45s;
  }
  .main-nav.is-open {
    visibility: visible;
    clip-path: inset(0 0 -60px 0); /* unten Platz für den Schatten */
    transition:
      clip-path .55s var(--menu-ease),
      visibility 0s;
  }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--grey-100); }
  .main-nav ul a::after { display: none; }
  .main-nav .btn { margin-top: 18px; padding: .95em 1.7em; font-size: .95rem; }

  /* Einträge gleiten nacheinander herein */
  .main-nav li, .main-nav .btn {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .25s ease, transform .35s var(--menu-ease);
  }
  .main-nav.is-open li, .main-nav.is-open .btn {
    opacity: 1;
    transform: none;
    transition: opacity .4s ease, transform .5s var(--menu-ease);
  }
  .main-nav.is-open li:nth-child(1) { transition-delay: .08s; }
  .main-nav.is-open li:nth-child(2) { transition-delay: .13s; }
  .main-nav.is-open li:nth-child(3) { transition-delay: .18s; }
  .main-nav.is-open .btn            { transition-delay: .24s; }
}

@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 42vw;
    grid-template-areas: "a a" "b c" "b d" "e f" "e h" "g g" "i j";
  }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 16 / 10; min-height: 0; }
  .notice { margin-top: 0; }
  .notice-inner { grid-template-columns: 1fr; }
  .notice-inner .btn { justify-self: start; }
  .about-row, .about-row-team { grid-template-columns: 1fr; }
  .about-photo { aspect-ratio: 4 / 3; max-width: 560px; }
  .about-row-team .team-images { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; justify-items: start; }
  .footer-address { justify-self: start; text-align: left; }
}

@media (max-width: 680px) {
  .lightbox { padding: 72px 12px 88px; }
  .lightbox-media img { max-height: calc(100dvh - 230px); }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 16px; margin-top: 0; }
  body { font-size: 1rem; }
  .logo-mark { width: 28px; height: 36px; }
  .logo-name { font-size: 1.1rem; }
  .logo-sub { font-size: .72rem; }
  .cards-2 { grid-template-columns: 1fr; }
  .card { padding: 26px 22px 22px; }
  .card-featured h4 { padding-right: 96px; }
  .field-row { grid-template-columns: 1fr; }
  .contact-list div { grid-template-columns: 1fr; gap: 2px; }
  .location { min-height: 0; padding: 16px; padding-top: 240px; }
  .location img { height: 300px; bottom: auto; object-position: 72% 30%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .lightbox[open], .lightbox-media img { animation: none; }
}

/* Windows-Kontrastmodus / erzwungene Farben */
@media (forced-colors: active) {
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { background: CanvasText; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .card, .contact-form, .notice-inner, .location-card { border: 1px solid CanvasText; }
  .checklist li::before { border-color: CanvasText; }
  .lightbox { border: 1px solid CanvasText; }
  .lightbox-btn { border-color: ButtonText; }
}
