/* =====================================================================
   RATIONAL GMBH – Stylesheet  (minimalistisch / modern)
   Zentrale Anpassung über die Variablen im :root-Block.
   ===================================================================== */

:root {
  /* ---- Farben ---- */
  --ink:        #29376d;   /* Blau – Texte, Headlines        */
  --ink-soft:   #3c4a7a;
  --muted:      #737d8c;   /* Sekundärtext                   */
  --bg:         #ffffff;
  --soft:       #f6f7f9;   /* sehr helle Sektionsflächen     */
  --line:       #e8eaef;   /* Haarlinien / Rahmen            */
  --accent:     #29376d;   /* dezenter Akzent                */
  --color-text: #29376d;   /* Standard-Textfarbe (Fließtext) */

  /* ---- Schrift ---- */
  --font:        "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; /* Fließtext */
  --font-heading:"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; /* Überschriften (2. Schrift) */
  --fs-base:    17px;      /* Basis-Schriftgröße Fließtext   */
  --lh-base:    1.7;       /* Zeilenhöhe Fließtext           */

  --h1-size:    4rem;      /* max. Größe großer Headlines    */
  --h1-weight:  600;
  --h1-lh:      1.08;
  --h2-size:    3.1rem;    /* max. Größe Sektions-Headlines  */
  --h2-weight:  600;
  --h3-size:    1.2rem;    /* Unter-Überschriften            */
  --h3-weight:  600;

  /* ---- Schriftgrößen Handy (≤ 560px) ---- */
  --h1-size-m:  1.95rem;
  --h2-size-m:  1.55rem;
  --h3-size-m:  1.08rem;
  --fs-base-m:  15.5px;

  /* ---- Form & Layout ---- */
  --maxwidth:   1400px;
  --radius:     16px;
  --radius-lg:  28px;      /* Karten / Hero-Rundung          */
  --btn-radius: 999px;     /* Button-Rundung (999 = Pille)   */
  --section-pad:130px;     /* vertikaler Sektionsabstand max */
  --header-h:   68px;      /* Höhe der Kopfzeile             */
  --hero-h:     520px;     /* Höhe des Hero-Bildes           */
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-padding-top: calc(var(--header-h) + 16px); } /* sanftes Scrollen übernimmt js/main.js */

/* Scroll-Snap: Bereiche „einrasten" (nur Desktop, ohne reduzierte Bewegung) */
@media (min-width: 1025px) and (prefers-reduced-motion: no-preference) {
  html { scroll-snap-type: y proximity; }
  .hero-intro, #spezialisierung, #geschichte, #team, #kontakt {
    scroll-snap-align: start; scroll-snap-stop: normal;
  }
}

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--bg);
  line-height: var(--lh-base);
  font-size: var(--fs-base);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ink); text-decoration: none; transition: color var(--transition), opacity var(--transition); }
a:hover { opacity: .65; }

/* ---- Barrierefreiheit: sichtbarer Tastatur-Fokus ---- */
a:focus-visible, button:focus-visible, .btn:focus-visible,
.nav-toggle:focus-visible, [tabindex]:focus-visible, input:focus-visible {
  outline: 3px solid #1f6feb;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Skip-Link (Zum-Inhalt-springen) ---- */
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 3000;
  background: var(--ink); color: #fff; padding: 12px 20px;
  border-radius: 10px; font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; opacity: 1; color: #fff; outline: 3px solid #fff; outline-offset: 2px; }
/* Sprungziele erhalten den Fokus (tabindex=-1), aber ohne störenden Rahmen */
#hauptinhalt:focus, #navigation:focus, [tabindex="-1"]:focus { outline: none; }

h1, h2, h3, h4 { color: var(--ink); font-family: var(--font-heading); line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
h1 { font-weight: var(--h1-weight); line-height: var(--h1-lh); }
h2 { font-weight: var(--h2-weight); }
h3 { font-weight: var(--h3-weight); }

.container { width: 100%; max-width: var(--maxwidth); margin: 0 auto; padding: 0 32px; }

section { padding: clamp(70px, 10vw, var(--section-pad)) 0; }
.section--soft { background: var(--soft); }

/* Section-Kopf – schlicht, linksbündig */
.section-head { max-width: 760px; margin: 0 0 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 20px;
}
.section-head h2 { font-size: clamp(2rem, 4.5vw, var(--h2-size)); margin-bottom: 20px; font-weight: var(--h2-weight); }
.section-head p { color: var(--muted); font-size: 1.12rem; font-weight: 300; }
/* Marken-Zeichen links neben der Überschrift */
.section-head--mark { display: flex; align-items: center; gap: 24px; }
.section-head--mark > div { min-width: 0; }
.head-mark { height: 84px; width: auto; flex-shrink: 0; }
@media (max-width: 560px) { .head-mark { height: 54px; } .section-head--mark { gap: 16px; } }

/* ----------  Buttons (Pill)  ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  border-radius: var(--btn-radius);
  font-weight: 500;
  font-size: 0.97rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { opacity: 1; background: #0c1730; transform: translateY(-4px) scale(1.03); box-shadow: 0 14px 30px rgba(20,33,61,.30); }
.btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { opacity: 1; background: var(--ink); color: #fff; transform: translateY(-4px) scale(1.03); box-shadow: 0 14px 30px rgba(20,33,61,.22); }
.btn--light { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn--light:hover { opacity: 1; background: rgba(255,255,255,.16); transform: translateY(-4px) scale(1.03); }
.btn:active { transform: translateY(-1px) scale(.99); }

/* =====================================================================
   HEADER / NAVIGATION
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.brand { display: flex; align-items: center; gap: 14px; }
.brand:hover { opacity: 1; }
.brand .logo-lockup { height: calc(var(--header-h) - 24px); width: auto; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a {
  display: block; padding: 10px 18px;
  color: var(--ink); font-weight: 500; font-size: 0.98rem;
  border-radius: 999px;
}
/* Animierter Unterstrich für die Hauptnavigation */
.nav-links > li > a:not(.btn) { position: relative; }
.nav-links > li > a:not(.btn)::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 7px; height: 2px;
  background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left center;
  transition: transform .32s cubic-bezier(.4,0,.2,1);
}
.nav-links > li > a:not(.btn):hover { opacity: 1; }
.nav-links > li > a:not(.btn):hover::after { transform: scaleX(1); }
.dropdown a:hover { opacity: 1; background: var(--soft); }

.has-dropdown > .dropdown-toggle::after { content: " ▾"; font-size: .8em; opacity: .6; }
.dropdown {
  position: absolute; top: 100%; left: 0;
  min-width: 266px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(20,33,61,.10);
  padding: 10px; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all var(--transition);
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(6px);
}
/* Untermenü als Karten mit Icon */
.dropdown a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; }
.dropdown a::before {
  content: ""; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 10px;
  background-color: var(--soft); background-position: center; background-size: 20px; background-repeat: no-repeat;
  transition: background-color .2s ease, transform .2s ease;
}
.dropdown a:hover::before { background-color: #fff; transform: scale(1.06); }
.dropdown a[href="impressum.html"]::before   { background-image: url("../img/icon-impressum.svg"); }
.dropdown a[href="datenschutz.html"]::before { background-image: url("../img/icon-datenschutz.svg"); }
.dropdown a[href="agb.html"]::before         { background-image: url("../img/icon-agb.svg"); }
.dropdown a[href="barrierefreiheit.html"]::before { background-image: url("../img/icon-barrierefreiheit.svg"); }

/* Icon vor „Mehr" */
.dropdown-toggle::before {
  content: ""; display: inline-block; width: 17px; height: 17px; margin-right: 7px; vertical-align: -3px;
  background: url("../img/icon-more.svg") center/contain no-repeat;
}

.nav-cta { margin-left: 10px; }

/* Aktiver Menüpunkt (zeigt die aktuelle Seite) */
.nav-links > li > a.active { color: var(--accent); font-weight: 600; }
.nav-links > li > a.active::after { transform: scaleX(1); }
.dropdown a.active { background: var(--soft); color: var(--accent); font-weight: 600; }

/* Anrufen / E-Mail – nur im (mobilen) Menü */
.nav-actions { display: none; }

/* Button-Textfarben im Menü sicherstellen (sonst überschreibt .nav-links a) */
.nav-links .btn--solid { color: #fff; }
.nav-links .btn--outline { color: var(--ink); }
.nav-links .btn--outline:hover { color: #fff; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 6px;
}
.nav-toggle span { display: block; height: 2px; width: 26px; background: var(--ink); border-radius: 3px; transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .25s ease; transform-origin: center; }
/* Animiertes Icon: Hamburger → X */
.nav-toggle.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =====================================================================
   HERO  – großes, abgerundetes S/W-Bild mit Caption-Notch
   ===================================================================== */
.hero { padding: 18px 0 0; perspective: 1300px; perspective-origin: center top; }
.hero .container { padding: 0 18px; }
.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--soft);
  transform-origin: center top;          /* klappt von der Oberkante weg */
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.hero-media img {
  width: 100%;
  height: min(var(--hero-h), 82vh);
  object-fit: cover;
  filter: grayscale(1) contrast(1.03);
  display: block;
}
.hero-caption {
  position: absolute; left: 0; bottom: 0;
  background: var(--bg);
  border-top-right-radius: var(--radius-lg);
  padding: 28px 58px 30px 8px;
  display: flex; flex-direction: column; gap: 20px;
}
.hero-caption .hello { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 500; color: var(--ink); }
.scroll-down {
  position: relative;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--ink);
  margin-left: 18px;
  animation: bob 2.2s ease-in-out infinite;
}
.scroll-down:hover { opacity: 1; background: var(--soft); }
.scroll-down::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  border: 2px solid var(--accent); opacity: 0;
  animation: scrollPulse 2.2s ease-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@keyframes scrollPulse { 0% { transform: scale(1); opacity: .45; } 100% { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .scroll-down { animation: none; } .scroll-down::after { display: none; } }

/* ---- Seitliche Abschnitts-Navigation (mittig, mit Punkten) ---- */
.section-dots {
  position: fixed; right: 26px; top: 50%; transform: translateY(-50%);
  z-index: 95; display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.section-dots::before {
  content: ""; position: absolute; top: 5px; bottom: 5px; left: 50%; transform: translateX(-50%);
  width: 2px; background: var(--line);
}
.section-dots-fill {
  position: absolute; top: 5px; left: 50%; transform: translateX(-50%);
  width: 2px; height: 0; background: var(--accent); transition: height .35s ease;
}
.section-dot {
  position: relative; width: 11px; height: 11px; border-radius: 50%;
  border: 2px solid var(--line); background: #fff; transition: all .25s ease;
}
.section-dot:hover { opacity: 1; }
.section-dot.done { border-color: var(--accent); background: var(--accent); }
.section-dot.active {
  border-color: var(--accent); background: var(--accent);
  transform: scale(1.4); box-shadow: 0 0 0 4px rgba(41,55,109,.14);
}
.section-dot .sd-label {
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  white-space: nowrap; background: var(--ink); color: #fff;
  font-size: .74rem; font-weight: 500; padding: 5px 10px; border-radius: 7px;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.section-dot:hover .sd-label, .section-dot:focus-visible .sd-label { opacity: 1; }
@media (max-width: 1024px) { .section-dots { display: none; } }

/* Intro-Zeile unter dem Hero */
.hero-intro { padding: clamp(60px, 8vw, 110px) 0 0; }
.hero-intro h1 {
  font-size: clamp(2.2rem, 5.5vw, var(--h1-size));
  font-weight: var(--h1-weight); max-width: 16ch; line-height: var(--h1-lh);
}
.hero-intro p { margin-top: 24px; max-width: 56ch; color: var(--muted); font-size: 1.15rem; font-weight: 300; }
.hero-intro .actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Zweispaltig: Text links, 50-Jahre-Wappen rechts */
.hero-intro-grid { display: grid; grid-template-columns: 1.5fr .9fr; gap: 50px; align-items: center; }
.hero-intro-text { min-width: 0; }
.hero-jubilee { display: flex; justify-content: center; perspective: 1000px; }
.jubilee-trigger {
  background: none; border: 0; padding: 0; cursor: pointer;
  display: inline-flex; flex-direction: column; align-items: center; gap: 16px;
}
.jubilee-trigger img {
  width: clamp(170px, 16vw, 240px); height: auto;
  filter: drop-shadow(0 14px 30px rgba(20,33,61,.22));
  transform-style: preserve-3d;
  animation: jubileeTilt 5s ease-in-out infinite;   /* sanftes Hin- und Her-Kippen */
}
.jubilee-trigger:hover img, .jubilee-trigger:focus-visible img { animation-play-state: paused; }
@keyframes jubileeTilt {
  0%, 100% { transform: rotateY(-16deg) rotateX(3deg); }
  50%      { transform: rotateY(16deg)  rotateX(-3deg); }
}
@media (prefers-reduced-motion: reduce) { .jubilee-trigger img { animation: none; } }
.jubilee-info { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: .95rem; }
.jubilee-play { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .66rem; padding-left: 2px; }
@media (max-width: 820px) {
  .hero-intro-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-jubilee { order: -1; }                 /* Wappen über dem Text */
  .jubilee-trigger img { width: 150px; }
}

/* =====================================================================
   SPEZIALISIERUNG
   ===================================================================== */
.lead-text { max-width: 720px; font-size: 1.25rem; font-weight: 300; color: var(--ink-soft); margin-bottom: 70px; }
.lead-text strong { font-weight: 600; color: var(--ink); }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 44px; row-gap: 0; margin: 14px 0 6px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 44px; row-gap: 28px; margin: 14px 0 6px; }
.feature {
  padding: 48px 0 50px;
  border-top: 1px solid var(--ink);
}
.feature .num {
  display: block;
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 300;
  color: var(--ink);
  letter-spacing: -.02em;
  margin-bottom: 22px;
  font-family: var(--font-heading);
}
.feature h3 { font-size: var(--h3-size); margin-bottom: 10px; font-weight: var(--h3-weight); }
.feature p { color: var(--muted); font-size: .98rem; font-weight: 300; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; margin-top: 90px; }
.split h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 20px; font-weight: 600; }
.split p { color: var(--muted); font-weight: 300; }
.split ul { list-style: none; margin-top: 26px; }
.split li { padding: 14px 0; border-top: 1px solid var(--line); display: flex; gap: 14px; align-items: baseline; color: var(--ink-soft); }
.split li:last-child { border-bottom: 1px solid var(--line); }
.split li::before { content: "—"; color: var(--muted); }
.split .panel {
  background: var(--soft); border-radius: var(--radius-lg);
  padding: 56px 44px; align-self: stretch;
}
.split .panel .ico { font-size: 2.2rem; margin-bottom: 22px; }
.split .panel h3 { font-size: 1.4rem; }
.panel-wappen { height: 104px; width: auto; display: block; margin-bottom: 22px; }

/* =====================================================================
   TIMELINE
   ===================================================================== */
.timeline { position: relative; max-width: 880px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; transform: translateX(-50%); background: var(--line); }
.tl-item { position: relative; padding: 0 0 50px 44px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 8px; top: 7px;
  width: 15px; height: 15px; border-radius: 50%;
  transform: translateX(-50%);
  background: #fff; border: 2px solid var(--ink);
}
.tl-year { display: block; font-size: 1.45rem; font-weight: 600; margin-bottom: 4px; letter-spacing: -.02em; }
.tl-item p { color: var(--muted); font-weight: 300; }

/* =====================================================================
   ANSPRECHPERSONEN
   ===================================================================== */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.team-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 48px 32px; text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}
.team-card:hover { border-color: var(--ink); transform: translateY(-4px); }
.team-card .avatar {
  width: 96px; height: 96px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--soft); color: var(--ink); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 600; letter-spacing: .02em;
}
.team-card .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1); }
.team-card:hover .avatar img { filter: grayscale(0); transition: filter .4s ease; }
.team-card h3 { font-size: var(--h3-size); margin-bottom: 6px; font-weight: var(--h3-weight); }
.team-card .role { color: var(--muted); font-size: .95rem; font-weight: 300; }
.team-contact { display: flex; gap: 10px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.btn--sm { padding: 9px 18px; font-size: .85rem; }

/* =====================================================================
   KONTAKT
   ===================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
.contact-card { padding: 56px 48px 56px 0; }
.contact-card + .contact-card { padding-left: 48px; border-left: 1px solid var(--line); }
.contact-card .flag { width: 62px; height: auto; margin-bottom: 22px; display: block; }
.contact-card h3 { font-size: 1.35rem; margin-bottom: 4px; font-weight: 600; }
.contact-card .country { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .18em; margin-bottom: 28px; display: block; }
.contact-list { list-style: none; }
.contact-list li { display: flex; gap: 14px; padding: 11px 0; align-items: flex-start; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: none; }
.contact-list .ci { color: var(--muted); min-width: 64px; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; padding-top: 3px; }
.contact-list a { font-weight: 500; }

/* =====================================================================
   ONLINEVERSICHERUNG
   ===================================================================== */
/* HanseMerkur-Logo oben rechts neben dem Seitentitel */
.page-hero .ph-with-logo { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.page-hero .ph-with-logo > div { min-width: 0; }
.hm-logo--hero {
  flex-shrink: 0; background: #fff; border-radius: 14px;
  padding: 13px 20px; height: 52px; width: auto; box-sizing: content-box;
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
}
@media (max-width: 620px) { .hm-logo--hero { height: 42px; padding: 11px 16px; } }

.ov-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.ov-cat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 28px; transition: border-color var(--transition), box-shadow var(--transition);
}
.ov-cat:hover { border-color: var(--ink); box-shadow: 0 14px 36px rgba(20,33,61,.10); }
.ov-cat h2 { font-size: 1.18rem; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid var(--line); }
.ov-cat ul { list-style: none; }
.ov-cat li + li { border-top: 1px solid var(--line); }
.ov-cat a { display: flex; align-items: center; gap: 12px; padding: 13px 0; color: var(--ink-soft); font-weight: 500; font-size: .96rem; }
.ov-cat a:hover { opacity: 1; }
.ov-name { flex: 1; min-width: 0; text-align: left; }
.ov-badge {
  flex-shrink: 0; font-size: .62rem; font-weight: 700; letter-spacing: .02em;
  color: var(--ink); background: transparent; border: 1.5px solid #c7cee0; border-radius: 6px;
  padding: 3px 6px; min-width: 50px; text-align: center; white-space: nowrap;
}
.ov-badge--alt { color: #009578; border-color: #9bd9c9; }
.ov-badge--light { color: #fff; border-color: rgba(255,255,255,.55); }
.ov-book {
  flex-shrink: 0; background: var(--ink); color: #fff; border-radius: 999px;
  padding: 7px 16px; font-size: .8rem; font-weight: 600; white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}
.ov-cat a:hover .ov-book, .ov-cat a:focus-visible .ov-book { background: #009578; transform: translateX(2px); }
.ov-foot { text-align: center; margin-top: 52px; }
.ov-foot .btn { align-items: center; }
.ov-note { color: var(--muted); font-size: .9rem; margin: 18px auto 0; font-weight: 300; max-width: 60ch; }
@media (max-width: 760px) { .ov-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ov-cat a { flex-wrap: wrap; gap: 8px; } .ov-book { margin-left: auto; } }

/* Screenreader-only (für Barrierefreiheit) */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* =====================================================================
   FOOTER  (hell, minimal)
   ===================================================================== */
.site-footer { border-top: 1px solid var(--line); padding: 70px 0 40px; }

/* ---- Footer-Link-Kacheln (Impressum / Datenschutz / AGB) ---- */
.footer-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 64px; }
.link-card {
  position: relative; overflow: hidden; display: block;
  border-radius: 30px; min-height: 300px;
  transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s;
}
.link-card:hover { opacity: 1; transform: translateY(-6px); box-shadow: 0 22px 46px rgba(20,33,61,.22); }
.lc-magenta { background: #ac1452; }
.lc-navy    { background: #29376d; }
.lc-gold    { background: #ffcb04; }
.lc-img { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.lc-img img { width: 100%; height: 100%; object-fit: contain; }
.lc-label { position: absolute; left: 32px; bottom: 44px; color: #fff; font-size: 1.32rem; font-weight: 500; letter-spacing: -.01em; }
.lc-notch { position: absolute; right: 0; bottom: 0; width: 104px; height: 104px; background: var(--bg); border-top-left-radius: 34px; display: flex; align-items: center; justify-content: center; }
.lc-arrow {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; transition: transform .3s ease;
}
.link-card:hover .lc-arrow { transform: translateX(5px); }
@media (max-width: 820px) {
  .footer-cards { grid-template-columns: 1fr; gap: 20px; max-width: 460px; margin-left: auto; margin-right: auto; }
  .link-card { min-height: 240px; }
}
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 36px; margin-bottom: 50px; }
.footer-top .logo { height: 30px; }
.footer-links { list-style: none; display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-soft); font-weight: 500; font-size: .96rem; }
.footer-links a.footer-admin { color: var(--muted); opacity: .7; }
.footer-links a.footer-admin::before { content: "🔒 "; font-size: .85em; }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 26px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .88rem; color: var(--muted); font-weight: 300;
}

/* =====================================================================
   RECHTS-SEITEN
   ===================================================================== */
.page-hero { padding: clamp(70px, 9vw, 120px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, var(--h1-size)); font-weight: var(--h1-weight); }
.page-hero p { color: var(--muted); margin-top: 16px; font-weight: 300; max-width: 70ch; }

.legal { max-width: 880px; margin: 0; padding: clamp(50px, 7vw, 90px) 0; }
.legal h2 { font-size: 1.45rem; margin: 48px 0 16px; font-weight: 600; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.12rem; margin: 28px 0 8px; font-weight: 600; }
.legal h4 { font-size: 1rem; margin: 20px 0 6px; font-weight: 600; color: var(--ink-soft); }
.legal p { margin-bottom: 16px; color: var(--ink-soft); font-weight: 300; }
.legal ul { margin: 0 0 18px 22px; color: var(--ink-soft); font-weight: 300; }
.legal li { margin-bottom: 8px; }
.legal .meta { color: var(--muted); font-size: .9rem; margin-top: 40px; }

.editor-note {
  background: var(--soft); border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  border-radius: var(--radius); padding: 18px 22px; margin: 26px 0;
  font-size: .94rem; color: var(--ink-soft); font-weight: 300;
}
.editor-note strong { color: var(--ink); font-weight: 600; }

/* Back-to-top */
.to-top {
  position: fixed; right: 26px; bottom: 26px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: none; align-items: center; justify-content: center;
  z-index: 90; border: none; cursor: pointer; font-size: 1.2rem;
  box-shadow: 0 10px 30px rgba(20,33,61,.25);
}
.to-top.is-visible { display: flex; }
.to-top:hover { opacity: 1; background: #0c1730; }

/* =====================================================================
   SCROLL-EFFEKTE (Reveal beim Einblenden)
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
/* gestaffeltes Erscheinen für Karten in einer Reihe */
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
/* Timeline: Jahreszahlen laufen nacheinander von links ein */
.tl-item.reveal { transform: translateX(-28px); }
.tl-item.reveal.is-visible { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* =====================================================================
   PARALLAX-BAND (schräg) – 50 Jahre / 3D-Wappen
   ===================================================================== */
.parallax-band {
  position: relative; overflow: hidden;
  min-height: 460px; margin: 70px 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink);
  clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
}
.parallax-bg { position: absolute; inset: -20% 0; pointer-events: none; }
.parallax-bg img { width: 100%; height: 140%; object-fit: cover; will-change: transform; }
.parallax-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(41,55,109,.88) 30%, rgba(41,55,109,.45)); }
.parallax-content { position: relative; z-index: 2; text-align: center; color: #fff; padding: 0 24px; }
.parallax-content .eyebrow { color: #ffcb04; }
.parallax-content h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 12px; }
.parallax-content p { color: rgba(255,255,255,.9); font-weight: 300; font-size: 1.15rem; }
@media (max-width: 600px) { .parallax-band { min-height: 360px; clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%); } }

/* =====================================================================
   50-JAHRE-INTRO (Start-Animation mit Konfetti)
   ===================================================================== */
.intro-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: radial-gradient(circle at 50% 38%, #34468a, #29376d 72%);
  display: flex; align-items: center; justify-content: center; text-align: center;
  transition: opacity .8s ease, visibility .8s;
}
.intro-overlay.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.intro-inner { position: relative; z-index: 2; animation: introPop 1s cubic-bezier(.2,.8,.2,1) both; }
.intro-inner img { width: clamp(190px, 32vw, 320px); height: auto; margin: 0 auto; filter: drop-shadow(0 14px 34px rgba(0,0,0,.4)); }
.intro-inner h2 { color: #fff; font-size: clamp(1.7rem, 4.4vw, 2.8rem); margin-top: 20px; }
.intro-inner p { color: rgba(255,255,255,.85); margin-top: 8px; font-weight: 300; font-size: 1.1rem; }
.intro-skip { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; z-index: 3; color: rgba(255,255,255,.65); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; }
@keyframes introPop { 0% { opacity: 0; transform: scale(.7) translateY(10px); } 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .intro-overlay { display: none !important; } }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: calc(var(--header-h) + 6px); left: 12px; right: 12px;
    flex-direction: column; align-items: stretch;
    background: #fff; border: 1px solid var(--line); border-radius: 18px;
    box-shadow: 0 24px 60px rgba(20,33,61,.22);
    padding: 12px; gap: 2px; display: none;
  }
  .nav-links.is-open { display: flex; animation: menuDrop .28s cubic-bezier(.2,.8,.2,1) both; }
  .nav-links > li > a:not(.btn) { padding: 14px 16px; font-size: 1.05rem; border-radius: 12px; }
  .nav-links > li > a:not(.btn):hover { background: var(--soft); }
  .nav-links > li > a:not(.btn)::after { display: none; } /* kein Unterstrich im Mobilmenü */
  .nav-actions { display: flex; gap: 8px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
  .nav-actions a { flex: 1; justify-content: center; text-align: center; padding: 13px; }
  .nav-cta a { width: 100%; justify-content: center; padding: 13px; }
  .nav-cta { margin: 6px 0 0; }
  /* Unterseiten (Mehr) mit Trennstrich abheben */
  .nav-links .has-dropdown { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 0 14px; min-width: auto; }
  .has-dropdown:hover .dropdown { transform: none; }
  @keyframes menuDrop { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

  .team { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 40px 0; }
  .contact-card + .contact-card { padding-left: 0; border-left: none; border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .feature { padding: 28px 0; }
  .hero-caption { padding: 20px 40px 28px 6px; }
  .container { padding: 0 22px; }

  /* Schriftgrößen Handy */
  body { font-size: var(--fs-base-m); }
  .hero-intro h1, .page-hero h1 { font-size: var(--h1-size-m); }
  .section-head h2 { font-size: var(--h2-size-m); }
  .feature h3, .team-card h3 { font-size: var(--h3-size-m); }
  .hero-intro p, .section-head p { font-size: 1rem; }

  /* Hero-Bild auf dem Handy: 50 % höher als zuvor (390px statt 260px) */
  .hero-media img { height: calc(var(--hero-h) * 0.75); }
  .hero-caption .hello { font-size: 1.05rem; }
}
