/* =========================================================
   R+R Praxis im Vertrauen GmbH – gemeinsames Stylesheet
   Modern & elegant · Überarbeitung November 2026
   ========================================================= */

:root {
  --ink: #11335e;          /* Navy aus dem Logo (dunkle Flächen) */
  --ink-soft: #1b4576;
  --paper: #ffffff;
  --bg: #f5f8fc;
  --bg-alt: #eaf0f8;
  --muted: #56667a;
  --line: #dde6f1;
  --gold: #1d4e8f;         /* Markenblau aus dem Logo (Hauptakzent) */
  --gold-soft: #9cc0e8;    /* helles Blau für dunkle Hintergründe */
  --teal: #2e6bb5;         /* zweiter, hellerer Blauton */
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 48px -28px rgba(17, 51, 94, 0.38);
  --shadow-sm: 0 1px 2px rgba(17, 51, 94, 0.05), 0 10px 24px -16px rgba(17, 51, 94, 0.28);
  --ring: 0 0 0 3px rgba(46, 107, 181, 0.35);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --maxw: 1140px;
  --header-h: 76px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);   /* Sprungmarken nicht unter dem Kopf verstecken */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p { text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

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

::selection { background: rgba(46, 107, 181, 0.22); }

/* Sichtbarer Tastatur-Fokus (nur bei Tastaturbedienung) */
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .page-hero :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

.wrap { width: min(var(--maxw), 92%); margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
/* auf dunklen Flächen hell, damit lesbar */
.hero .eyebrow, .page-hero .eyebrow, .cta-band .eyebrow { color: var(--gold-soft); }

/* Links im Fließtext erkennbar machen */
:where(.legal-card, .map-placeholder, .consent, .section p) a:not(.btn) {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(29, 78, 143, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}
:where(.legal-card, .map-placeholder, .consent, .section p) a:not(.btn):hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.6; cursor: progress; transform: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--gold) 55%, #14406f 100%);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(29, 78, 143, 0.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(29, 78, 143, 0.8); }

/* Hauptbutton auf dunklen Flächen: hell, damit er sich abhebt */
.hero .btn-primary, .cta-band .btn-primary {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.55);
}
.hero .btn-primary:hover, .cta-band .btn-primary:hover { background: #eef4fb; box-shadow: 0 20px 36px -14px rgba(0, 0, 0, 0.6); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.8); transform: translateY(-2px); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-soft); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px -22px rgba(17, 51, 94, 0.55);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  padding: 0.6rem 0;
}
.brand { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.brand-logo { display: block; height: 46px; width: auto; }
.brand-logo--light { height: 52px; }

.nav-links { display: flex; align-items: center; gap: clamp(1rem, 1.9vw, 1.8rem); list-style: none; }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 0.35rem 0;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px; border-radius: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { font-weight: 600; }

.nav-toggle {
  display: none;
  background: none; border: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; align-items: center;
  cursor: pointer; border-radius: 10px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Desktop: Kontakt als Schaltfläche, Rechtliches dezenter */
@media (min-width: 1081px) {
  .nav-links a[href$="kontakt.html"] {
    padding: 0.5rem 1.15rem;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-weight: 600;
    transition: background-color 0.25s ease, transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  }
  .nav-links a[href$="kontakt.html"]::after { display: none; }
  .nav-links a[href$="kontakt.html"]:hover,
  .nav-links a[href$="kontakt.html"].active { background: var(--gold); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 20px -12px rgba(29, 78, 143, 0.8); }
  .nav-links a[href$="impressum.html"],
  .nav-links a[href$="datenschutz.html"] { font-size: 0.82rem; color: var(--muted); }
  .nav-links li:has(> a[href$="impressum.html"]) { margin-left: -0.4rem; }
  .nav-links li:has(> a[href$="datenschutz.html"]) { margin-left: -0.6rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(120% 120% at 80% 0%, var(--ink-soft) 0%, var(--ink) 55%, #0c2646 100%);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 60% at 85% 30%, rgba(46, 107, 181, 0.38), transparent 70%),
    radial-gradient(30% 50% at 8% 95%, rgba(46, 107, 181, 0.22), transparent 70%);
  pointer-events: none;
}
/* feines Linienraster – verläuft nach unten aus */
.hero::after, .page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(90% 90% at 70% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(90% 90% at 70% 0%, #000 0%, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(4rem, 8vw, 6.5rem);
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); margin-bottom: 1.4rem; }
.hero h1 .accent { color: var(--gold-soft); font-style: italic; }
.hero p { font-size: clamp(1.02rem, 1.4vw, 1.14rem); color: #d3ddea; max-width: 34rem; margin-bottom: 2.2rem; }
.hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  bottom: 16px; left: 16px; right: 16px;
  background: rgba(12, 38, 70, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 0.85rem 1.1rem;
  display: flex; align-items: center; gap: 0.8rem;
  font-size: 0.88rem;
  line-height: 1.4;
}
.hero-badge .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #54d695; box-shadow: 0 0 0 4px rgba(84, 214, 149, 0.22); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.bg-alt { background: var(--bg-alt); }

/* ---------- Intro split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.split-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transition: transform 0.8s var(--ease); }
.split-media:hover img { transform: scale(1.03); }
.split h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); margin-bottom: 1.2rem; }
.split p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.4rem;
}
.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 0.9rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  min-width: 0;
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat .num { font-family: var(--serif); font-size: clamp(2rem, 3vw, 2.6rem); color: var(--ink); line-height: 1; font-variant-numeric: lining-nums; }
.stat .num span { color: var(--teal); }
.stat .label { margin-top: 0.6rem; color: var(--muted); font-size: 0.86rem; line-height: 1.4; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: anywhere; }

/* ---------- Feature cards ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
}
.feature {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: "";
  position: absolute; left: 0; top: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, var(--gold), var(--teal));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.feature:hover, .feature:focus-within { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c9d8ea; }
.feature:hover::before, .feature:focus-within::before { transform: scaleX(1); }
.feature .icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #eef4fb, #dfe9f6); color: var(--gold);
  margin-bottom: 1.2rem;
}
.feature .icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.feature p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Team ---------- */
.team {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 2rem);
  margin-top: 1rem;
  max-width: 860px;
  margin-inline: auto;
}
.member {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.member-photo { aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg-alt); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.8s var(--ease); }
.member:hover .member-photo img { transform: scale(1.03); }
.member-body { padding: 1.5rem 1.7rem 1.8rem; }
.member-body h3 { font-size: 1.35rem; }
.member-body .role { color: var(--gold); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 0.25rem; }
.member-body .quote { margin-top: 1rem; padding-left: 1rem; border-left: 3px solid var(--line); color: var(--muted); font-style: italic; }

/* ---------- Contact / Form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1.3rem; }
.contact-item { display: flex; gap: 1rem; align-items: center; }
.contact-item .ci-icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ink-soft), var(--ink)); color: var(--gold-soft);
}
.contact-item .ci-icon svg { width: 22px; height: 22px; }
.contact-item .ci-label { font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.contact-item .ci-value { font-size: 1.05rem; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.contact-item a.ci-value { transition: color 0.2s ease; }
.contact-item a.ci-value:hover { color: var(--teal); }

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1.3rem; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 0.45rem; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #cfdbea;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #8c9bb0; }
.field input:hover, .field textarea:hover { border-color: #b3c5db; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: var(--ring);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 140px; }
.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.86rem; line-height: 1.5; color: var(--muted); margin-bottom: 1.4rem; cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 0.15rem; accent-color: var(--gold); cursor: pointer; }
.form-card .btn[type="submit"] { width: 100%; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 1rem; }
.form-msg { margin-top: 1rem; padding: 0.9rem 1rem; border-radius: var(--radius-sm); font-size: 0.92rem; display: none; }
.form-msg.ok  { display: block; background: #e7f6ee; color: #1a6a43; border: 1px solid #bce3cd; }
.form-msg.err { display: block; background: #fdecec; color: #a32424; border: 1px solid #f5b8b8; }
.hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* ---------- Karte ---------- */
.map-card {
  margin-top: 1.2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: var(--paper);
}
.map-card iframe { width: 100%; height: 340px; border: 0; display: block; filter: grayscale(0.15); }

/* Zwei-Klick-Lösung (Datenschutz) */
.map-consent .map-placeholder {
  min-height: 300px; display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 2rem 1.5rem; gap: 0.6rem;
  background:
    linear-gradient(rgba(17, 51, 94, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 51, 94, 0.05) 1px, transparent 1px),
    var(--bg-alt);
  background-size: 32px 32px, 32px 32px, auto;
}
.map-consent .map-placeholder p { color: var(--muted); font-size: 0.9rem; max-width: 34rem; margin: 0; }
.map-consent .map-placeholder p strong { color: var(--ink); font-size: 1.05rem; }
.map-consent .map-placeholder .btn { margin-top: 0.6rem; }
.map-consent .map-alt { font-size: 0.82rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
  color: #fff;
  border-radius: 24px;
  padding: clamp(2.2rem, 5vw, 3.5rem);
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(40% 80% at 80% 20%, rgba(46, 107, 181, 0.4), transparent 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 0.9rem; }
.cta-band p { color: #d3ddea; max-width: 38rem; margin: 0 auto 1.8rem; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  background: radial-gradient(120% 140% at 80% 0%, var(--ink-soft) 0%, var(--ink) 60%, #0c2646 100%);
  color: #fff;
  padding: clamp(3rem, 7vw, 4.5rem) 0 clamp(2.8rem, 6vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(35% 60% at 80% 20%, rgba(46, 107, 181, 0.34), transparent 70%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 1rem; }
.page-hero p { color: #d3ddea; max-width: 42rem; margin: 0 auto; font-size: clamp(1rem, 1.4vw, 1.1rem); }

/* ---------- Legal / text page ---------- */
.legal-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.8rem);
  box-shadow: var(--shadow-sm);
  max-width: 760px;
  margin-inline: auto;
}
.legal-card h2 { font-size: 1.4rem; margin: 1.8rem 0 0.6rem; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p { color: var(--ink-soft); margin-bottom: 0.4rem; }
.legal-card .muted { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--ink) 0%, #0c2646 100%);
  color: #c9d4e0;
  padding: clamp(3rem, 6vw, 4rem) 0 2rem;
  position: relative;
}
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--teal), var(--gold-soft));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand p { margin-top: 1rem; font-size: 0.95rem; max-width: 26rem; color: #a9b9cb; }
.footer-col h4 { font-family: var(--sans); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold-soft); margin-bottom: 1rem; }
.footer-col a, .footer-col p { display: block; font-size: 0.95rem; color: #a9b9cb; margin-bottom: 0.55rem; }
.footer-col a { width: fit-content; transition: color 0.2s ease, transform 0.2s var(--ease); overflow-wrap: anywhere; }
.footer-col a:hover { color: #fff; transform: translateX(3px); }
.footer-social { display: flex; gap: 0.7rem; margin-top: 0.8rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; margin: 0;
  background: rgba(255, 255, 255, 0.07);
  color: #c9d4e0; transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s var(--ease);
}
.footer-social a:hover { background: var(--teal); color: #fff; transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { padding-top: 1.6rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; font-size: 0.85rem; color: #8ea0b5; }

/* ---------- Visuell versteckt (für semantische Überschriften, SEO/Accessibility) ---------- */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* Karten in Rastern leicht versetzt einblenden */
.features > .reveal:nth-child(2), .team > .reveal:nth-child(2) { transition-delay: 0.08s; }
.features > .reveal:nth-child(3) { transition-delay: 0.16s; }
.features > .reveal:nth-child(4) { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */

/* Mobile Navigation (ab hier Menü-Schaltfläche, weil sieben Menüpunkte Platz brauchen) */
@media (max-width: 1080px) {
  :root { --header-h: 68px; }
  .brand-logo { height: 40px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    gap: 0; padding: 0 4%;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -28px rgba(17, 51, 94, 0.5);
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height 0.35s var(--ease), padding 0.35s var(--ease), visibility 0s linear 0.35s;
  }
  .nav-links.open { max-height: 80vh; padding-block: 0.6rem 1rem; visibility: visible; overflow-y: auto; transition-delay: 0s; }
  .nav-links li { width: 100%; border-bottom: 1px solid var(--bg-alt); }
  .nav-links li:last-child { border-bottom: 0; }
  .nav-links a { display: block; padding: 0.85rem 0.25rem; font-size: 1rem; }
  .nav-links a::after { display: none; }
  .nav-links a.active { color: var(--gold); }
}

/* Statistik: schmale Spalte → Zeilenlayout */
@media (min-width: 921px) and (max-width: 1100px), (max-width: 600px) {
  .stats { grid-template-columns: 1fr; gap: 0.75rem; }
  .stat { display: flex; align-items: center; gap: 1.1rem; text-align: left; padding: 1rem 1.3rem; }
  .stat .num { flex: none; min-width: 5.2rem; font-size: 2rem; }
  .stat .label { margin-top: 0; font-size: 0.92rem; }
}

@media (max-width: 920px) {
  .hero-inner, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; width: 100%; margin-inline: auto; aspect-ratio: 4 / 3; }
  .split-media { order: -1; }                 /* Bild immer vor dem Text */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .features, .team { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 auto; }
  .brand-logo { height: 34px; }
  .brand-logo--light { height: 44px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

/* ---------- Bewegung reduzieren, wenn im System so eingestellt ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Druck (normale Seiten) ---------- */
@media print {
  .site-header, .nav-toggle, .map-card, .footer-social { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { background: #fff; }
}
