/* ============================================================
   SCHRIFT – lokal gehostet (kein Google-Fonts-Aufruf, DSGVO)
   ============================================================ */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
                 U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
/* Farbwelt aus dem Kanzleilogo: Petrol #005F83 */
:root {
  --bg:          #f6fafc;
  --bg-alt:      #e9f2f6;
  --surface:     #ffffff;
  --dark:        #06232f;
  --dark-2:      #0b3141;
  --text:        #072430;
  --text-2:      #3b5563;
  --text-3:      #6b8794;
  --primary:     #005f83;
  --primary-2:   #0a7ba5;
  --primary-hov: #004a67;
  --primary-lt:  #d9ecf4;
  --primary-soft:#e8f4f9;
  --primary-line:#a9d3e4;
  --accent:      #38a8cd;
  --amber:       #f59e0b;
  --border:      #dfeaf0;
  --border-dark: rgba(255,255,255,0.09);
  --shadow-sm:   0 1px 4px rgba(6,35,47,0.06), 0 4px 14px rgba(6,35,47,0.04);
  --shadow:      0 4px 24px rgba(6,35,47,0.09), 0 1px 4px rgba(6,35,47,0.04);
  --shadow-lg:   0 8px 48px rgba(6,35,47,0.14);
  --r-sm:        10px;
  --r:           18px;
  --r-lg:        26px;
  --r-full:      999px;
  --max-w:       1160px;
  --header-h:    78px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  /* iOS vergrößert Text in Querlage sonst eigenmächtig */
  -webkit-text-size-adjust: 100%;
}

/* Doppeltipp auf iPhone und iPad soll nicht mehr hineinzoomen.
   Zwei-Finger-Zoom bleibt erhalten – nur die Doppeltipp-Geste entfällt,
   die beim Aufklappen von Kacheln sonst ständig ausgelöst wurde. */
/* touch-action vererbt sich nicht – deshalb auf alle Elemente */
body, body * { touch-action: manipulation; }

body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.68;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
address { font-style: normal; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 { line-height: 1.18; font-weight: 800; margin-bottom: 0; }

h1 { font-size: clamp(2.1rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.28rem); font-weight: 700; }

p { color: var(--text-2); margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

em { font-style: normal; color: var(--accent); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.65rem;
}
.eyebrow-inv { color: var(--accent); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: min(var(--max-w), calc(100% - 2.5rem));
  margin-inline: auto;
}

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }

.bg-white   { background: var(--surface); }
.bg-alt     { background: var(--bg-alt); }
.bg-dark    { background: var(--dark); }

/* Section heading block */
.sec-head {
  max-width: 720px;
  margin-bottom: clamp(2.4rem, 4vw, 3.4rem);
}
.sec-head h2 { margin-top: 0.4rem; }

.sec-head-inv h2 { color: #fff; }

.sec-sub { font-size: 1.05rem; margin-top: 0.75rem; }
.sec-sub-inv { color: #9db4bf; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.78rem 1.35rem;
  border-radius: var(--r-full);
  font: 700 0.95rem/1 "Manrope", sans-serif;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
  white-space: nowrap;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn-lg { padding: 0.9rem 1.75rem; font-size: 1rem; }

.btn-primary {
  color: #fff;
  background: linear-gradient(130deg, var(--primary), var(--primary-2));
  box-shadow: 0 6px 20px rgba(0,95,131,0.30);
}
.btn-primary:hover { background: linear-gradient(130deg, var(--primary-hov), var(--primary)); }

.btn-white {
  color: var(--dark);
  background: #fff;
  box-shadow: 0 6px 22px rgba(6,35,47,0.22);
}
.btn-white:hover { background: #e9f2f6; }

.btn-outline-white {
  color: #fff;
  background: transparent;
  border-color: rgba(255,255,255,0.45);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }

.btn-block { width: 100%; }

/* ============================================================
   SKIP LINK
   ============================================================ */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--dark);
  color: #fff;
  padding: 0.8rem 1rem;
  z-index: 9999;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(246, 250, 252, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(6,35,47,0.12); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
/* Das Logo bringt seinen eigenen Rahmen mit – deshalb kein zusätzlicher
   Rand und keine Kachel darum. */
.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.logo-texts {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.25;
}
.logo-name { font-size: 1.02rem; font-weight: 800; color: var(--text); }
.logo-sub  { font-size: 0.73rem; font-weight: 600; color: var(--text-3); letter-spacing: 0.01em; }

/* Main nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}
.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-2);
  transition: color 0.2s;
}
.nav-link:hover, .nav-link:focus-visible { color: var(--primary); }
.nav-cta { margin-left: 0.5rem; padding: 0.65rem 1.25rem; font-size: 0.9rem; }
.nav-link.active { color: var(--primary); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--dark);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(0,95,131,0.30) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

/* Hero left column */
.hero-copy { display: flex; flex-direction: column; gap: 1.5rem; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(34,184,224,0.12);
  border: 1px solid rgba(34,184,224,0.28);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.9rem;
  border-radius: var(--r-full);
  width: fit-content;
}

.hero h1 { color: #fff; margin: 0; }
/* Der Leitsatz steht als zweite Zeile in der Hauptüberschrift: Suchmaschinen
   lesen die Begriffe zuerst, der Anspruch der Kanzlei bleibt trotzdem sichtbar. */
.hero-claim {
  display: block;
  margin-top: 0.7rem;
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  font-weight: 600;
  line-height: 1.35;
  color: #c9dce4;
  letter-spacing: -0.005em;
}

.lead {
  color: #9db4bf;
  font-size: 1.05rem;
  max-width: 56ch;
  margin: 0;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
}
.hero-pills li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #c8d9e1;
}

/* Hero right card */
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-photo {
  margin: 0;
  line-height: 0;
  position: relative;
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Logo-Plakette auf dem Bild – macht die Marke präsenter */
.photo-badge {
  position: absolute;
  left: clamp(1rem, 3vw, 1.4rem);
  bottom: -26px;
  width: 66px;
  height: 66px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: block;
  background: #fff;
}
.photo-badge img { width: 100%; height: 100%; object-fit: contain; display: block; }

.hero-card-body { padding: clamp(1.2rem, 3vw, 1.75rem); padding-top: 2.6rem; }
.card-legal {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-3);
  margin: -0.75rem 0 1rem;
}

/* Kennzahlen in der Infokarte */
.card-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding-top: 0.9rem;
  border-top: 1px dashed #cfe0e8;
}
.card-facts div { display: flex; flex-direction: column; }
.card-facts strong { font-size: 1.3rem; font-weight: 900; color: var(--primary-hov); line-height: 1.1; }
.card-facts span   { font-size: 0.82rem; color: var(--text-3); font-weight: 600; }
.card-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--primary);
  margin-bottom: 0.3rem;
}
.hero-card-body h2 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); margin: 0.1rem 0 1rem; }

.adr-list { display: grid; gap: 0.55rem; margin-bottom: 1rem; }
.adr-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--text-2);
}
.adr-row svg { flex-shrink: 0; margin-top: 2px; }
.adr-row a { color: var(--primary); font-weight: 600; }
.adr-row a:hover { text-decoration: underline; }

.rating-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px dashed #cfe0e8;
}
.stars { color: var(--amber); font-size: 1.05rem; letter-spacing: 0.1em; }
.rating-text-wrap { display: flex; align-items: baseline; gap: 0.35rem; }
.rating-num { font-size: 1.5rem; font-weight: 900; color: var(--text); }
.rating-label { font-size: 0.85rem; color: var(--text-3); }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.6rem 0;
}
.trust-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 1;
  min-width: 160px;
}
.trust-item div { display: flex; flex-direction: column; gap: 0.1rem; }
.trust-item strong { font-size: 0.97rem; font-weight: 800; color: var(--text); }
.trust-item span   { font-size: 0.82rem; color: var(--text-3); }

/* Die Trennstriche entstehen jetzt als Rahmen, damit die Merkmale
   eine erweiterbare Sammlung sein können. */
.trust-item + .trust-item {
  border-left: 1px solid var(--border);
  padding-left: 1rem;
}

/* ============================================================
   SERVICES
   ============================================================ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.svc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: clamp(1.4rem, 3vw, 2rem);
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}
.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-line);
}

.svc-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-soft);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  flex-shrink: 0;
}

.svc-card h3 { margin-bottom: 0.5rem; color: var(--text); }
.svc-card p  { font-size: 0.93rem; margin: 0; }

/* ============================================================
   ABOUT / SPLIT LAYOUT
   ============================================================ */
.split-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.split-content h2 { margin-top: 0.4rem; margin-bottom: 1.2rem; }
.split-content p  { max-width: 56ch; }

.about-photo {
  margin-top: 1.5rem;
  text-align: center;
}
.about-photo img {
  border-radius: var(--r);
  border: 1px solid var(--border);
  width: min(100%, 760px);
  margin-inline: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
  box-shadow: var(--shadow);
}

/* Stats column */
.split-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-sm);
}
.stat-val {
  display: block;
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--primary-hov);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-card p { font-size: 0.88rem; color: var(--text-2); margin: 0; }

/* ============================================================
   FEATURES / WARUM WIR
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.feature-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: clamp(1.4rem, 3vw, 2rem);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}
.feature-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.feature-num {
  font-size: 2.4rem;
  font-weight: 900;
  color: #cfe6f0;
  line-height: 1;
  flex-shrink: 0;
  width: 56px;
  letter-spacing: -0.02em;
}

.feature-body h3 { margin-bottom: 0.45rem; color: var(--text); }
.feature-body p  { font-size: 0.93rem; margin: 0; }

/* ============================================================
   PROCESS / STEPS
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.step-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-dark);
  border-radius: var(--r);
  padding: clamp(1.4rem, 2.5vw, 2rem);
  transition: background 0.25s ease;
}
.step-card:hover { background: rgba(255,255,255,0.08); }

.step-num {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.8rem;
  font-variant-numeric: tabular-nums;
}
.step-card h3 { color: #fff; font-size: 1.12rem; margin-bottom: 0.5rem; }
.step-card p  { color: #9db4bf; font-size: 0.9rem; margin: 0; }

.steps-cta { text-align: center; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.testi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: clamp(1.4rem, 2.5vw, 1.9rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.testi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.testi-stars { color: var(--amber); font-size: 1rem; letter-spacing: 0.12em; }

.testi-card p {
  font-size: 0.97rem;
  color: var(--text-2);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

.testi-card cite {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-3);
  font-style: normal;
}

/* Rating summary */
.rating-summary {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.4rem 2rem;
  width: fit-content;
  margin-inline: auto;
}
.rating-big {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}
.stars-lg { color: var(--amber); font-size: 1.2rem; letter-spacing: 0.15em; }
.rating-summary p { font-size: 0.9rem; color: var(--text-2); margin-top: 0.3rem; margin-bottom: 0; }
.rating-summary small { font-size: 0.8rem; color: var(--text-3); }

/* ============================================================
   LOCATION
   ============================================================ */
.loc-figure {
  margin-bottom: 1.5rem;
  text-align: center;
}
.loc-figure img {
  width: min(100%, 900px);
  margin: 0 auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 16/7;
  object-fit: cover;
}
.loc-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-3);
}
.loc-cta { display: flex; justify-content: center; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-col h2 { margin-top: 0.4rem; margin-bottom: 1rem; }
.contact-col > p { max-width: 50ch; }

.contact-details {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.cd-icon {
  width: 38px;
  height: 38px;
  background: var(--primary-lt);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-details li div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.contact-details li strong { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-3); font-weight: 700; }
.contact-details li a, .contact-details li span { font-size: 0.97rem; color: var(--text-2); font-weight: 600; }
.contact-details li a:hover { color: var(--primary); text-decoration: underline; }

.office-hours { padding-top: 1.5rem; border-top: 1px solid var(--border); }
.office-hours h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.placeholder-note { font-size: 0.88rem; color: var(--text-3); font-style: italic; }
.hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
  color: var(--text-2);
}
.hours-list li strong {
  color: var(--text);
  font-weight: 700;
}
.hours-note {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-hov);
  background: var(--primary-lt);
  border-radius: var(--r-sm);
  padding: 0.6rem 0.85rem;
}

/* Form */
.form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
}

.contact-form h3 { font-size: 1.2rem; margin-bottom: 1.4rem; color: var(--text); }

.form-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 0.85rem; }
.form-field label { font-size: 0.88rem; font-weight: 700; color: var(--text-2); }
.form-field label span { color: var(--primary); }

.form-field input,
.form-field textarea {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.72rem 0.9rem;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-size: 0.97rem;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,95,131,0.15);
}
.form-field textarea { resize: vertical; min-height: 120px; }

/* Anhang: eigene Schaltfläche statt der Systemdarstellung */
.file-field { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.file-field input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.file-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary-soft);
  border: 1.5px solid var(--primary-line);
  color: var(--primary-hov);
  border-radius: var(--r-sm);
  padding: 0.55rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.file-btn:hover { background: var(--primary-lt); border-color: var(--primary); }
.file-field input[type="file"]:focus-visible + .file-btn {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.file-name { font-size: 0.85rem; color: var(--text-3); overflow-wrap: anywhere; }
.file-name.is-set { color: var(--text-2); font-weight: 600; }
.field-hint { font-size: 0.78rem; color: var(--text-3); margin-top: 0.4rem; }

.form-note { font-size: 0.8rem; color: var(--text-3); margin-top: 0.75rem; text-align: center; }
.form-success {
  display: none;
  text-align: center;
  padding: 1rem;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: var(--r-sm);
  color: #065f46;
  font-weight: 700;
  margin-top: 0.75rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  color: #c8d9e1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-dark);
}

/* Brand col */
.footer-brand {
  display: flex;
  align-items: center;
  /* Ohne diese Zeile zieht das Raster die Spalte auf die Höhe der
     Navigation und das Logo schwebt in der Mitte. */
  align-self: start;
  gap: 1.1rem;
}
/* Im Fußbereich steht die weiße Logo-Variante direkt auf dem dunklen Grund.
   Die Höhe orientiert sich am Textblock daneben, sonst wirkt das Logo verloren. */
.footer-logo {
  width: 92px;
  height: 92px;
  object-fit: contain;
  flex-shrink: 0;
}
.footer-brand strong { display: block; color: #fff; font-size: 1.02rem; font-weight: 800; }
.footer-brand span   { display: block; font-size: 0.82rem; color: #9db4bf; }
.footer-brand-adr { margin-top: 0.5rem; color: #7d95a0 !important; }

/* Footer columns */
.footer-col h3 {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 1rem;
}
.footer-col address p, .footer-col p { color: #9db4bf; font-size: 0.88rem; margin-bottom: 0.4rem; }
/* Telefon und E-Mail stehen in der Zeile ihres Absatzes, damit die
   Beschriftung „Telefon:“ nicht in eine eigene Zeile rutscht. */
.footer-col address p a { display: inline; margin-bottom: 0; }
.footer-col a { color: #9db4bf; font-size: 0.88rem; display: block; margin-bottom: 0.5rem; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-col nav { display: flex; flex-direction: column; }

/* Footer bottom */
.footer-bottom {
  padding: 1.1rem 0 1.5rem;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-bottom small { font-size: 0.82rem; color: #5c7683; }

.powered-by a {
  color: var(--accent);
  font-weight: 700;
  transition: opacity 0.2s;
}
.powered-by a:hover { opacity: 0.8; }

/* ============================================================
   SCHWERPUNKT-BAND (Apotheken)
   ============================================================ */
.focus-band {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(1.2rem, 3vw, 2.2rem);
  align-items: center;
  background: linear-gradient(125deg, var(--dark) 0%, #0d4a63 100%);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
  box-shadow: var(--shadow);
}
.focus-body h3 { color: #fff; font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin: 0.15rem 0 0.5rem; }
.focus-body p  { color: #9db4bf; font-size: 0.95rem; margin: 0; }
.focus-body .eyebrow { margin-bottom: 0; }

.focus-list { display: grid; gap: 0.6rem; margin: 0; }
.focus-list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #dde9ee;
  line-height: 1.5;
}
.focus-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.34em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ============================================================
   LEISTUNGSÜBERSICHT (Stichworte)
   ============================================================ */
.tag-block {
  margin-top: clamp(2rem, 4vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.tag-block h3 {
  font-size: 1.08rem;
  margin-bottom: 1.1rem;
  color: var(--text);
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}
.tag-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 0.55rem 1.5rem;
  margin: 0;
}
.tag-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-2);
  line-height: 1.45;
  padding: 0.28rem 0;
}
.tag-item::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 0.1em;
  border-radius: 6px;
  background: var(--primary-soft)
    url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='9' viewBox='0 0 10 9' fill='none'%3E%3Cpath d='M1 4.5l2.6 2.6L9 1.5' stroke='%23005f83' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 10px 9px no-repeat;
}

/* ============================================================
   BILDSTREIFEN KANZLEI
   ============================================================ */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.photo-item { margin: 0; }
/* Kachel ohne hinterlegte Datei bleibt im Markup, aber unsichtbar */
.photo-item.is-empty { display: none; }
/* Letzte Kachel zeigt die Marke statt eines Fotos */
.photo-item.is-logo img {
  object-fit: contain;
  background: var(--bg-alt);
  padding: clamp(1.4rem, 4vw, 2.6rem);
}
.photo-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--r);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   ANSPRECHPARTNER
   ============================================================ */
.person-card {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  box-shadow: var(--shadow-sm);
}
.person-body { max-width: 74ch; }
.person-body h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 0.15rem 0 0.15rem; }
.person-role {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}
.person-body p { font-size: 0.95rem; max-width: 62ch; }
.person-note {
  font-size: 0.87rem !important;
  color: var(--text-3) !important;
  border-top: 1px solid var(--border);
  padding-top: 0.9rem;
  margin-top: 1rem;
}

/* ============================================================
   ANFAHRT
   ============================================================ */
.loc-layout { display: block; }
.route-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.2rem;
}
.route-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: clamp(1.3rem, 2.5vw, 1.8rem);
  box-shadow: var(--shadow-sm);
}
/* Auf großen Schirmen stehen die Karten offen und sind nicht klickbar –
   auf dem Handy werden sie per Skript zugeklappt und aufklappbar. */
.route-card > summary { list-style: none; cursor: default; pointer-events: none; }
.route-card > summary::-webkit-details-marker { display: none; }
.route-card > summary::marker { content: ""; }
.route-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}
.route-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.route-card p  { font-size: 0.92rem; margin: 0; }

/* ============================================================
   KARRIERE
   ============================================================ */
.job-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.job-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: clamp(1.4rem, 3vw, 1.9rem);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}
.job-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-line); }
.job-card h3 { margin: 0; }
.job-card p  { font-size: 0.93rem; margin: 0; flex: 1; }
.job-link {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
/* Stellenbeschreibung als Datei – steht über dem Bewerben-Link */
.job-doc {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-3);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-bottom: 0.15rem;
}
.job-doc::before {
  content: "";
  width: 13px;
  height: 15px;
  flex-shrink: 0;
  background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='15' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8l-6-6z' stroke='%236b8794' stroke-width='2'/%3E%3Cpath d='M14 2v6h6' stroke='%236b8794' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.job-doc:hover { color: var(--primary); }
.job-doc[hidden] { display: none; }
.job-link::after { content: "→"; transition: transform 0.2s ease; }
.job-link:hover::after { transform: translateX(3px); }

.job-note {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--surface);
  border: 1px dashed #bcd8e5;
  border-radius: var(--r);
  padding: 1.2rem 1.5rem;
}
.job-note p { margin: 0; font-weight: 600; color: var(--text-2); }

/* ============================================================
   DOWNLOADS
   ============================================================ */
/* Aufklappbare Gruppen – die Besucher sehen zwei kurze Zeilen und
   öffnen nur das, was sie brauchen. Ohne JavaScript, nur <details>. */
.dl-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.dl-group + .dl-group { margin-top: 1rem; }

.dl-group > summary {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem clamp(1.1rem, 3vw, 1.5rem);
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text);
  list-style: none;
  transition: background 0.18s ease;
}
.dl-group > summary::-webkit-details-marker { display: none; }
.dl-group > summary:hover { background: var(--primary-soft); }
.dl-group > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }

.dl-group > summary::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-left: auto;
  border-right: 2.5px solid var(--primary);
  border-bottom: 2.5px solid var(--primary);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.22s ease;
  flex-shrink: 0;
}
.dl-group[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }

.dl-count {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-3);
}

.dl-group .dl-grid { padding: 0 clamp(1.1rem, 3vw, 1.5rem) clamp(1.1rem, 3vw, 1.5rem); }
.dl-group .dl-card { box-shadow: none; }

.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(410px, 100%), 1fr));
  gap: 1rem;
}
.dl-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.15rem 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
a.dl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary-line); }

.dl-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dl-body { display: flex; flex-direction: column; gap: 0.15rem; flex: 1; min-width: 0; }
.dl-body strong { font-size: 0.98rem; font-weight: 800; color: var(--text); }
.dl-text { font-size: 0.85rem; color: var(--text-3); }
.dl-action {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}

.dl-card.is-empty { background: var(--bg-alt); border-style: dashed; box-shadow: none; }
.dl-card.is-empty .dl-icon { background: #e2edf2; }
.dl-card.is-empty strong { color: var(--text-3); }
.dl-card.is-empty .dl-action { color: var(--text-3); font-weight: 700; }

/* ============================================================
   RECHTSTEXTE (Impressum, Datenschutz, Auftragsbedingungen)
   ============================================================ */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h1 { margin-bottom: 0.6rem; }
.legal-content h2 {
  font-size: 1.22rem;
  margin: 2.2rem 0 0.6rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--border);
}
.legal-content h3 { font-size: 1rem; margin: 1.3rem 0 0.4rem; }
.legal-content p,
.legal-content address,
.legal-content li {
  font-size: 0.96rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 0.55rem;
}
.legal-content a {
  color: var(--primary);
  text-decoration: underline;
  /* Lange Adressen dürfen umbrechen, sonst schieben sie die
     Seite auf dem Handy seitlich raus. */
  overflow-wrap: anywhere;
}
.legal-content { overflow-wrap: break-word; hyphens: auto; }
.legal-content ul { margin: 0 0 1rem 1.1rem; list-style: disc; }
.legal-content ul li { padding-left: 0.2rem; }
.legal-content ol { margin: 0 0 1rem 1.3rem; }
.legal-lead { font-size: 1.02rem !important; margin-bottom: 1.5rem !important; }
.legal-stand { font-size: 0.85rem !important; color: var(--text-3) !important; }

.legal-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.2rem 1.4rem;
  margin: 1.2rem 0 1.6rem;
}
.legal-box p:last-child { margin-bottom: 0; }

.legal-download {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0.9rem 1.25rem;
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  color: var(--text) !important;
  text-decoration: none !important;
  margin: 0.4rem 0 1.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.legal-download:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.legal-download small { display: block; font-weight: 600; color: var(--text-3); font-size: 0.8rem; }

.placeholder { color: #7a5f14; background: #fdf6e3; padding: 0.15rem 0.35rem; border-radius: 4px; font-style: italic; }

.legal-back { display: inline-block; margin-top: 2.5rem; font-weight: 700; }

.btn-zurueck { font-size: 0.9rem; padding: 0.65rem 1.2rem; }
@media (max-width: 640px) {
  .btn-zurueck { font-size: 0.8rem; padding: 0.55rem 0.9rem; min-height: 2.6rem; }
}
/* Auf sehr schmalen Geräten nur der Pfeil – der Text passt sonst
   neben dem Logo nicht mehr in den Kopfbereich. */
@media (max-width: 380px) {
  .btn-zurueck { font-size: 0; padding: 0.55rem 0.75rem; }
  .btn-zurueck::before { content: "←"; font-size: 1.1rem; line-height: 1; }
}

/* ============================================================
   BILD IN GROSS (Lightbox)
   ============================================================ */
.photo-item img,
.loc-figure img,
.hero-photo img { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 2.5rem);
  background: rgba(6, 35, 47, 0.92);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.lightbox.is-open { opacity: 1; }

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: var(--r);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  transform: scale(0.97);
  transition: transform 0.22s ease;
}
.lightbox.is-open img { transform: none; }

.lightbox-close {
  position: absolute;
  top: clamp(0.6rem, 2vw, 1.2rem);
  right: clamp(0.6rem, 2vw, 1.2rem);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,0.28); }
/* Blättern */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  color: #fff;
  font-size: 1.9rem;
  line-height: 1;
  padding: 0 0 0.18em;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-nav.is-prev { left: clamp(0.4rem, 2vw, 1.6rem); }
.lightbox-nav.is-next { right: clamp(0.4rem, 2vw, 1.6rem); }
.lightbox-nav:active { transform: translateY(-50%) scale(0.94); }

.lightbox-foot {
  position: absolute;
  bottom: clamp(0.7rem, 2vw, 1.4rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-align: center;
}
.lightbox-count {
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  background: rgba(255,255,255,0.16);
  border-radius: var(--r-full);
  padding: 0.2rem 0.7rem;
}
.lightbox-hint { font-size: 0.82rem; color: #9db4bf; }

@media (max-width: 640px) {
  .lightbox-nav { width: 42px; height: 42px; font-size: 1.7rem; }
  .lightbox-hint { display: none; }
  .lightbox img { max-height: 78vh; }
}
body.lightbox-offen { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox img { transition: none; }
}

/* ============================================================
   AUFKLAPPEN AUF HANDY UND TABLET (≤ 1024px)
   Kacheln zeigen nur Symbol und Titel; die Beschreibung erscheint
   auf Tipp. Ab 1025px steht alles offen.
   ============================================================ */
@media (max-width: 1024px) {
  /* Wegbeschreibungen zum Aufklappen */
  .route-card { padding: 0; }
  .route-card > summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem 1.1rem;
    cursor: pointer;
    pointer-events: auto;
  }
  .route-card > summary::after {
    content: "";
    width: 9px;
    height: 9px;
    margin-left: auto;
    border-right: 2.5px solid var(--primary);
    border-bottom: 2.5px solid var(--primary);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 0.22s ease;
    flex-shrink: 0;
  }
  .route-card[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
  .route-card .route-icon { margin-bottom: 0; }
  .route-card h3 { margin-bottom: 0; }
  .route-card > p { padding: 0 1.1rem 1.05rem; }

  .is-collapsible { cursor: pointer; }
  .is-collapsible > p,
  .is-collapsible .feature-body > p { display: none; }
  .is-collapsible.is-open > p,
  .is-collapsible.is-open .feature-body > p {
    display: block;
    animation: aufklappen 0.24s ease both;
  }
  .is-collapsible:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

  .is-collapsible h3 { position: relative; padding-right: 1.3rem; margin-bottom: 0; }
  .is-collapsible h3::after {
    content: "";
    position: absolute;
    right: 2px;
    top: 0.34em;
    width: 7px;
    height: 7px;
    border-right: 2.2px solid var(--primary);
    border-bottom: 2.2px solid var(--primary);
    transform: rotate(45deg);
    transition: transform 0.22s ease;
  }
  .is-collapsible.is-open h3::after { transform: rotate(-135deg); }
  .is-collapsible.is-open > p { margin-top: 0.5rem; }
  .job-card.is-collapsible .job-link { margin-top: 0.4rem; }

  /* Gekürzte Fließtexte */
  .collapse-body.is-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .collapse-body.is-clamped.is-open {
    display: block;
    -webkit-line-clamp: unset;
    animation: aufklappen 0.24s ease both;
  }
  .collapse-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: none;
    border: 0;
    padding: 0.45rem 0;
    margin-top: 0.1rem;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--primary);
    cursor: pointer;
  }
  .collapse-toggle::after { content: "›"; font-size: 1.1rem; line-height: 1; }
}

@keyframes aufklappen {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .is-collapsible.is-open > p,
  .is-collapsible.is-open .feature-body > p,
  .collapse-body.is-clamped.is-open { animation: none; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn, .svc-card, .testi-card, .feature-item, .step-card { transition: none; }
}

@media (hover: none) {
  .svc-card:hover, .testi-card:hover, .feature-item:hover, .step-card:hover { transform: none; box-shadow: initial; }
}

/* ============================================================
   RESPONSIVE — TABLET  (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }

  .main-nav { gap: 1rem; }
  .nav-link { font-size: 0.88rem; }
  .job-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESPONSIVE — NAVIGATION  (≤ 980px)
   Sechs Menüpunkte brauchen früher das Burger-Menü als das
   übrige Layout die einspaltige Darstellung.
   ============================================================ */
@media (max-width: 980px) {
  .hamburger { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 1rem 1.25rem 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    z-index: 199;
  }
  .main-nav.open { display: flex; }
  .nav-link {
    padding: 0.65rem 0.9rem;
    border-radius: var(--r-sm);
    font-size: 1rem;
  }
  .nav-link:hover { background: var(--bg-alt); }
  .nav-cta { margin: 0.5rem 0 0; width: 100%; justify-content: center; }
}

/* ============================================================
   RESPONSIVE — SCHMALE GERÄTE  (≤ 700px)
   Tablets ab 768px behalten bewusst das zweispaltige Layout –
   einspaltig wirkt dort auseinandergezogen.
   ============================================================ */
@media (max-width: 700px) {
  /* Hero */
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 540px; }
  .hero-copy { gap: 1.2rem; }

  /* Split layouts */
  .split-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }

  /* Feature grid → 1 col */
  .feature-grid { grid-template-columns: 1fr; }

  /* Ansprechpartner ohne Bild: reine Textkarte */
  .person-card { padding: 1.15rem; }
  .person-body .eyebrow { margin-bottom: 0.1rem; }
  .person-body h3 { font-size: 1.25rem; }
  .person-role { margin-bottom: 0.7rem; }

  .route-grid { grid-template-columns: 1fr; }

}

/* ============================================================
   RESPONSIVE — TABLET  (701–1024px)
   ============================================================ */
@media (min-width: 701px) and (max-width: 1024px) {
  .hero { padding: 2.4rem 0 3.2rem; }
  .hero-grid { grid-template-columns: 1fr 0.82fr; gap: 1.6rem; align-items: start; }
  .hero h1 { font-size: clamp(2rem, 4.6vw, 2.7rem); }
  .lead { font-size: 1rem; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .hero-card-body { padding: 1.1rem; padding-top: 2.3rem; }
  .hero-card-body h2 { font-size: 1.15rem; }
  .card-facts strong { font-size: 1.2rem; }
  .adr-row { font-size: 0.86rem; }

  .split-layout { grid-template-columns: 1.1fr 0.9fr; gap: 2rem; }
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .route-grid { grid-template-columns: 1fr 1fr; }
  .focus-band { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-card { padding: 1rem 1.1rem; }
  .dl-action { font-size: 0.8rem; }
}

/* ============================================================
   RESPONSIVE — MOBILE  (≤ 640px)
   Ziel: kompakt bleiben. Auf dem Handy kostet jede großzügige
   Innenabstands-Angabe sofort mehrere Bildschirmlängen.
   ============================================================ */
@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .container { width: min(var(--max-w), calc(100% - 1.5rem)); }
  .section { padding: 2.1rem 0; }
  .sec-head { margin-bottom: 1.5rem; }
  .sec-sub { font-size: 0.98rem; margin-top: 0.5rem; }

  /* Zweispaltige Kacheln statt langer Stapel */
  /* minmax(0,1fr): sonst sprengen lange Komposita wie
     „Jahresabschlüsse“ die Spalte und die Seite läuft seitlich über. */
  .svc-grid,
  .feature-grid,
  .steps-grid,
  .job-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }
  .svc-card h3, .feature-body h3, .job-card h3, .step-card h3,
  .svc-card p, .feature-body p, .job-card p, .step-card p {
    hyphens: auto;
    overflow-wrap: break-word;
  }
  .route-grid { gap: 0.6rem; }

  .svc-card,
  .feature-item,
  .job-card,
  .step-card { padding: 1rem 0.9rem; }

  .svc-card h3,
  .feature-body h3,
  .job-card h3 { font-size: 0.94rem; line-height: 1.3; }
  .step-card h3 { font-size: 0.97rem; }
  .svc-card p,
  .feature-body p,
  .job-card p,
  .step-card p { font-size: 0.82rem; line-height: 1.5; }

  .svc-icon { width: 36px; height: 36px; margin-bottom: 0.6rem; border-radius: 10px; }
  .svc-icon svg { width: 19px; height: 19px; }
  .route-icon { width: 38px; height: 38px; margin-bottom: 0.6rem; }

  /* Vorteile: Nummer über den Titel, sonst bleibt zu wenig Textbreite */
  .feature-item { flex-direction: column; gap: 0.3rem; }
  .feature-num { font-size: 1.5rem; width: auto; }

  .step-num { font-size: 1.8rem; margin-bottom: 0.35rem; }
  .steps-grid { margin-bottom: 1.6rem; }

  /* Ungerade Anzahl: die letzte Kachel nimmt die volle Breite */
  .job-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .job-link { font-size: 0.85rem; }

  /* Qualitätsmerkmale zweispaltig statt untereinander */
  .trust-strip { padding: 1.1rem 0; }
  .trust-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
  .trust-item + .trust-item { border-left: 0; padding-left: 0; }
  .trust-item { gap: 0.55rem; }
  .trust-item svg { width: 22px; height: 22px; }
  .trust-item strong { font-size: 0.88rem; }
  .trust-item span { font-size: 0.75rem; }

  /* Kennzahlen zweispaltig, die dritte über beide Spalten */
  .split-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .split-stats .btn { grid-column: 1 / -1; margin-top: 0.2rem; }
  .stat-card:nth-of-type(3) { grid-column: 1 / -1; }
  .stat-card { padding: 0.85rem 0.95rem; }
  .stat-val { font-size: 1.3rem; margin-bottom: 0.2rem; }
  .stat-card p { font-size: 0.8rem; line-height: 1.45; }
  .person-card { padding: 1.2rem; margin-top: 1.6rem; }
  .tag-block { margin-top: 1.8rem; padding: 1.15rem; }
  .tag-block h3 { font-size: 0.98rem; margin-bottom: 0.8rem; padding-bottom: 0.65rem; }
  .tag-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.3rem 0.8rem; }
  .tag-item { font-size: 0.82rem; gap: 0.45rem; padding: 0.22rem 0; hyphens: auto; overflow-wrap: break-word; }
  .tag-item::before { width: 15px; height: 15px; border-radius: 5px; background-size: 8px 7px; }
  .focus-band { margin-top: 1.2rem; padding: 1.3rem; }

  /* Formularfelder: unter 16px zoomt iOS beim Antippen hinein */
  .form-field input,
  .form-field textarea { font-size: 16px; }
  .form-field { margin-bottom: 0.7rem; }
  .form-field textarea { min-height: 100px; }
  .form-wrap { padding: 1.3rem; }
  /* Kontaktdaten als 2x2-Block */
  .contact-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem 0.7rem;
    margin: 1.2rem 0 1.4rem;
  }
  .contact-details li { gap: 0.6rem; }
  .cd-icon { width: 32px; height: 32px; }
  .cd-icon svg { width: 16px; height: 16px; }
  .contact-details li strong { font-size: 0.72rem; }
  .contact-details li a,
  .contact-details li span {
    font-size: 0.86rem;
    overflow-wrap: anywhere;
  }

  .footer-logo { width: 76px; height: 76px; }
  .footer-brand { gap: 0.9rem; }

  /* Auf dem Handy ist die Kontaktspalte nur halb so breit – Beschriftung
     und Nummer nebeneinander wirken dort gequetscht. */
  .kontakt-label { display: block; color: #7d95a0; }
  .footer-col address p { margin-bottom: 0.7rem; }

  /* Fußbereich: Navigation und Rechtliches nebeneinander */
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1rem; padding-bottom: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col address p, .footer-col a { margin-bottom: 0.3rem; }

  h1 { font-size: clamp(1.85rem, 9vw, 2.4rem); }
  h2 { font-size: clamp(1.5rem, 7vw, 1.95rem); }

  /* Startbereich */
  .hero { padding: 2rem 0 2.6rem; }
  .hero-copy { gap: 0.95rem; }
  .hero-claim { margin-top: 0.5rem; font-size: 1rem; }
  .hero-ctas { flex-direction: column; gap: 0.6rem; }
  .hero-ctas .btn { width: 100%; }
  .hero-pills { gap: 0.4rem; }
  .lead { font-size: 0.98rem; }
  .hero-card-body { padding: 1.1rem; padding-top: 2.4rem; }
  .adr-list { gap: 0.45rem; margin-bottom: 0.85rem; }

  /* Trust strip */
  .trust-row { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .trust-item { min-width: 0; width: 100%; }

  /* Testimonials */
  .testi-grid { grid-template-columns: 1fr; }

  /* Rating summary */
  .rating-summary { flex-direction: column; align-items: center; gap: 0.6rem; width: 100%; text-align: center; }
  .rating-big { font-size: 2.8rem; }

  /* Location */
  .loc-figure img { aspect-ratio: 4/3; }

  /* Footer */
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .powered-by { text-align: center; }

  /* Neue Bausteine */
  .focus-band { grid-template-columns: 1fr; }
  /* Vier gestapelte Bilder wären zu viel Höhe – zweispaltig als Streifen */
  .photo-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin-top: 1.8rem; }
  .dl-card { padding: 0.85rem 1rem; gap: 0.7rem; flex-wrap: wrap; }
  .dl-icon { width: 34px; height: 34px; }
  .dl-body strong { font-size: 0.92rem; line-height: 1.3; }
  .dl-text { font-size: 0.79rem; }
  .dl-body strong, .dl-text { hyphens: auto; overflow-wrap: break-word; }
  /* Aktion auf eigene Zeile, sonst drängt sie den Titel zusammen */
  .dl-action { width: 100%; text-align: right; font-size: 0.8rem; margin-top: 0.1rem; }
  .dl-group > summary { padding: 0.9rem 1rem; font-size: 0.97rem; }
  .dl-group .dl-grid { padding: 0 1rem 1rem; gap: 0.6rem; }
  .job-note { flex-direction: column; align-items: flex-start; padding: 1rem 1.2rem; }
  .job-note .btn { width: 100%; }
}

/* ============================================================
   RESPONSIVE — SEHR SCHMALE GERÄTE  (≤ 400px)
   ============================================================ */
@media (max-width: 400px) {
  .logo { gap: 0.55rem; min-width: 0; }
  .logo-img { width: 42px; height: 42px; }
  .logo-texts { min-width: 0; }
  .logo-name { font-size: 0.92rem; }
  .logo-sub  { font-size: 0.69rem; }
}

/* Erst auf sehr schmalen Geräten die Kennzahlen untereinander */
@media (max-width: 360px) {
  .card-facts { grid-template-columns: 1fr; gap: 0.5rem; }
  .logo-img { width: 38px; height: 38px; }
}
