/* ==========================================================================
   Komm Verwaltung GmbH – Stylesheet
   Schriften lokal eingebunden (keine Verbindung zu Google) – DSGVO-freundlich.
   ========================================================================== */

/* ---------- Schriften ---------- */
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ---------- Variablen ---------- */
:root {
  --ivory: #F5F2EC;
  --sand: #EFEBE3;
  --sand-2: #E6E0D5;
  --white: #FFFFFF;
  --navy: #16212E;
  --navy-deep: #0F1824;
  --navy-black: #070D17;
  --petrol: #1F5F5B;
  --petrol-dark: #16433F;
  --mint: #8FC7BD;
  --rust: #8F5424;
  --text: #3A4552;
  --muted: #55606E;
  --on-dark: #D5DCE3;
  --on-dark-2: #C9D2DB;
  --line: #DDD6CA;
  --line-card: #E2DCD1;
  --line-dark: #33414F;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 112px);
  --radius: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 92px;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--petrol); }
a:hover { color: var(--petrol-dark); }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--petrol); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 2000;
  background: var(--navy); color: var(--white); padding: 12px 18px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--rust);
}
.on-dark .eyebrow, .eyebrow--light { color: var(--mint); }
.h2 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.1; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 8px; border: 1px solid transparent;
  font-family: var(--sans); font-size: 16px; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .25s, color .25s, transform .25s, box-shadow .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(0,0,0,.4); }
.btn--primary { background: var(--petrol); color: var(--white); }
.btn--primary:hover { background: var(--navy); color: var(--white); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--white { background: var(--white); color: var(--petrol-dark); }
.btn--white:hover { background: var(--ivory); color: var(--petrol-dark); }
.btn--ghost-white { border-color: var(--white); color: var(--white); background: transparent; }
.btn--ghost-white:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 242, 236, .92);
  -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { min-width: 0; display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand__mark { width: 48px; height: 48px; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; gap: 2px; }
.brand__name { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; white-space: nowrap; }
.brand__sub { font-size: 11px; letter-spacing: .09em; color: var(--muted); white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 500; }
.nav__link { position: relative; padding: 6px 0; color: var(--navy); text-decoration: none; transition: color .25s; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--petrol);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav__link:hover { color: var(--petrol); }
.nav__link:hover::after, .nav__link[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  flex-shrink: 0; display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--white); color: var(--navy); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }
.nav-toggle[aria-expanded="true"] .i-menu { display: none; }

/* ---------- Einstieg / Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__mark {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 70% 50%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 75% 85% at 70% 50%, #000 30%, transparent 80%);
}
.hero__mark svg { width: 100%; height: 100%; }
.mark-a { opacity: .14; animation: kvSway 7s ease-in-out infinite alternate; transform-origin: 50% 50%; }
.mark-b { opacity: .5; animation: kvDash 5s linear infinite, kvSway 9s ease-in-out infinite alternate-reverse; transform-origin: 50% 50%; }
@keyframes kvSway { 0% { transform: translate(0,0) scaleY(1); } 50% { transform: translate(-90px,22px) scaleY(1.12); } 100% { transform: translate(60px,-18px) scaleY(.9); } }
@keyframes kvDash { to { stroke-dashoffset: -360; } }

.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px); align-items: center;
  padding-block: clamp(56px, 8vw, 96px) clamp(56px, 7vw, 88px);
}
.hero__text { display: flex; flex-direction: column; gap: 28px; }
.hero__title { font-size: clamp(38px, 5.2vw, 64px); line-height: 1.06; letter-spacing: -0.015em; hyphens: manual; }
.hero__lead { max-width: 600px; }

.portrait { margin: 0; border-radius: 16px; overflow: hidden; background: var(--navy); box-shadow: 0 30px 60px -36px rgba(22,33,46,.45); }
.portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; background: #DCD4C6; }
.portrait figcaption { padding: 22px 26px; color: var(--ivory); display: flex; flex-direction: column; gap: 4px; }
.portrait__name { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.portrait__role { font-size: 14px; color: var(--on-dark-2); }

/* ---------- Dunkler Bereich: Zusammenarbeit ---------- */
.section-dark { position: relative; overflow: hidden; isolation: isolate; background: var(--navy); color: var(--ivory); }
.section-dark::before, .section-dark::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.section-dark::before { width: 720px; height: 720px; left: -180px; top: -160px; background: radial-gradient(circle, rgba(31,95,91,.75), rgba(31,95,91,0) 70%); animation: kvDrift1 8s ease-in-out infinite alternate; }
.section-dark::after { width: 640px; height: 640px; right: -160px; bottom: -200px; background: radial-gradient(circle, rgba(143,199,189,.32), rgba(143,199,189,0) 70%); animation: kvDrift2 10s ease-in-out infinite alternate; }
@keyframes kvDrift1 { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(420px,260px) scale(1.15); } 100% { transform: translate(160px,620px) scale(.95); } }
@keyframes kvDrift2 { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(-460px,-300px) scale(1.2); } 100% { transform: translate(-120px,-680px) scale(1); } }

.section-dark .wrap { padding-block: var(--section-y); display: flex; flex-direction: column; gap: clamp(48px, 6vw, 64px); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); }
.split__head { display: flex; flex-direction: column; gap: 20px; }
.split__body { display: flex; flex-direction: column; gap: 18px; font-size: 18px; line-height: 1.65; color: var(--on-dark); }
.subhead { margin: 0 0 24px; font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mint); }

.modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.mode {
  position: relative; overflow: hidden; padding: 28px; border: 1px solid var(--line-dark); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .35s var(--ease), border-color .35s, background-color .35s, box-shadow .35s;
}
.mode::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--mint), var(--white)); transition: width .45s var(--ease); }
.mode__tag { font-size: 13px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--mint); transition: letter-spacing .35s, color .35s; }
.mode__title { font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.25; }
.mode__text { font-size: 15px; line-height: 1.6; color: var(--on-dark-2); transition: color .35s; }
.mode:hover { transform: translateY(-10px); border-color: var(--navy-black); background-color: var(--navy-black); box-shadow: 0 28px 56px -18px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.12); }
.mode:hover::before { width: 100%; }
.mode:hover .mode__tag { letter-spacing: .18em; color: var(--white); }
.mode:hover .mode__text { color: var(--white); }

.process {
  margin-top: 16px; padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 52px) clamp(24px, 3vw, 40px);
  background: rgba(143,199,189,.07); border: 1px solid rgba(143,199,189,.28); border-radius: 20px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 30px 60px -30px rgba(0,0,0,.55);
}
.process .subhead { margin-bottom: 32px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.step { padding: 28px 0; border-top: 2px solid var(--mint); display: flex; flex-direction: column; gap: 10px; animation: kvStep 9s ease-in-out infinite; }
.step__no { font-family: var(--serif); font-size: 36px; line-height: 1; color: var(--mint); animation: kvNo 9s ease-in-out infinite; }
.step__title { font-size: 19px; font-weight: 600; }
.step__text { font-size: 15px; line-height: 1.6; color: var(--on-dark-2); }
.step:nth-child(2), .step:nth-child(2) .step__no { animation-delay: -6s; }
.step:nth-child(3), .step:nth-child(3) .step__no { animation-delay: -3s; }
@keyframes kvStep { 0% { opacity: .4; transform: translateY(0); border-top-color: var(--line-dark); } 6%, 30% { opacity: 1; transform: translateY(-6px); border-top-color: var(--white); } 36%, 100% { opacity: .4; transform: translateY(0); border-top-color: var(--line-dark); } }
@keyframes kvNo { 0% { color: var(--mint); } 6%, 30% { color: var(--white); } 36%, 100% { color: var(--mint); } }

/* ---------- Leistungen ---------- */
.section { padding-block: var(--section-y); }
.section-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 6vw, 96px); align-items: end; margin-bottom: clamp(40px, 5vw, 56px); }
.section-head__title { display: flex; flex-direction: column; gap: 16px; }
.section-head p { font-size: 17px; line-height: 1.65; color: var(--text); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.card {
  position: relative; overflow: hidden; padding: 32px; background: var(--white); border: 1px solid var(--line-card); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .35s var(--ease), background-color .35s, border-color .35s, box-shadow .35s;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--mint), var(--petrol)); transition: width .45s var(--ease); }
.card__icon { width: 32px; height: 32px; fill: none; stroke: var(--petrol); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .35s, transform .45s var(--ease); }
.card__title { font-family: var(--serif); font-size: 23px; font-weight: 500; line-height: 1.2; hyphens: manual; overflow-wrap: break-word; transition: color .35s; }
.card__text { font-size: 15px; line-height: 1.6; color: var(--text); transition: color .35s; }
.card:hover { transform: translateY(-10px); background-color: var(--navy); border-color: var(--navy); box-shadow: 0 28px 56px -22px rgba(22,33,46,.55); }
.card:hover::before { width: 100%; }
.card:hover .card__title { color: var(--white); }
.card:hover .card__text { color: var(--on-dark-2); }
.card:hover .card__icon { stroke: var(--mint); transform: scale(1.15); }

/* ---------- Für wen (Waben) ---------- */
.section-hex { position: relative; overflow: hidden; isolation: isolate; background: var(--navy-deep); color: var(--ivory); }
.hex { position: absolute; inset: -160px; z-index: -1; pointer-events: none; animation: kvHexMove 10s linear infinite; }
.hex svg { width: 100%; height: 100%; }
.hex--base { opacity: .13; }
.hex--glow {
  opacity: .85;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 0%, rgba(0,0,0,.35) 45%, transparent 100%);
          mask-image: radial-gradient(circle closest-side, #000 0%, rgba(0,0,0,.35) 45%, transparent 100%);
  -webkit-mask-size: 520px 520px; mask-size: 520px 520px; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  animation: kvHexMove 10s linear infinite, kvHexGlow 9s ease-in-out infinite alternate;
}
@keyframes kvHexMove { from { transform: translate(0,0); } to { transform: translate(-83.14px,-144px); } }
@keyframes kvHexGlow { 0% { -webkit-mask-position: 10% 20%; mask-position: 10% 20%; } 35% { -webkit-mask-position: 85% 15%; mask-position: 85% 15%; } 70% { -webkit-mask-position: 60% 90%; mask-position: 60% 90%; } 100% { -webkit-mask-position: 20% 75%; mask-position: 20% 75%; } }
.section-hex .wrap { padding-block: clamp(72px, 8vw, 96px); display: flex; flex-direction: column; gap: 48px; }
.section-hex__head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.section-hex__head .h2 { font-size: clamp(30px, 3.8vw, 44px); line-height: 1.12; }

.audiences { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.audience {
  position: relative; overflow: hidden; padding: clamp(28px, 3.5vw, 40px); background: var(--ivory); color: var(--navy);
  border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; gap: 18px;
  transition: transform .35s var(--ease), background-color .35s, border-color .35s, box-shadow .35s;
}
.audience::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--mint), var(--petrol)); transition: width .45s var(--ease); }
.audience__icon { width: 56px; height: 56px; border-radius: 14px; background: #E3ECE9; color: var(--petrol); display: flex; align-items: center; justify-content: center; transition: background-color .35s, color .35s, transform .45s var(--ease); }
.audience__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.audience__title { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 28px); font-weight: 500; line-height: 1.2; margin: 0; transition: color .35s; }
.audience__text { font-size: 16px; line-height: 1.65; color: var(--text); transition: color .35s; }
.dash-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; transition: color .35s; }
.dash-list li { display: flex; gap: 10px; }
.dash-list li::before { content: "—"; color: var(--petrol); font-weight: 600; transition: color .35s; }
.audience:hover { transform: translateY(-10px); background-color: var(--navy-black); border-color: var(--mint); box-shadow: 0 28px 56px -22px rgba(0,0,0,.6); }
.audience:hover::before { width: 100%; }
.audience:hover .audience__title, .audience:hover .dash-list { color: var(--white); }
.audience:hover .audience__text { color: var(--on-dark-2); }
.audience:hover .dash-list li::before { color: var(--mint); }
.audience:hover .audience__icon { background: var(--mint); color: var(--navy); transform: scale(1.1); }

/* ---------- Werdegang ---------- */
.cv { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.cv__head { display: flex; flex-direction: column; gap: 18px; }
.cv__head .h2 { font-size: clamp(30px, 3.8vw, 44px); line-height: 1.12; hyphens: manual; }
.cv__head p { font-size: 16px; line-height: 1.65; color: var(--text); }
.timeline { list-style: none; margin: 0; padding: 0; }
.tl { border-top: 1px solid var(--line); }
.tl:last-child { border-bottom: 1px solid var(--line); }
.tl__btn {
  width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; gap: 20px; align-items: center;
  padding: 20px 12px 20px 0; border: 0; border-radius: 10px; background: transparent; color: inherit; text-align: left; cursor: pointer;
  transition: padding .3s var(--ease), background-color .3s;
}
.tl__btn:hover, .tl.is-open .tl__btn { padding-left: 14px; background-color: var(--sand); }
.tl__no {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--petrol); background: var(--ivory);
  display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 17px; color: var(--petrol);
  transition: background-color .3s, color .3s, transform .3s;
}
.tl__title { font-size: clamp(17px, 1.7vw, 20px); font-weight: 600; line-height: 1.35; }
.tl__chev { width: 20px; height: 20px; color: var(--petrol); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.tl__body { padding: 2px 12px 26px 78px; font-size: 16px; line-height: 1.65; color: var(--text); }
.tl__body[hidden] { display: none; }
.tl.is-past .tl__no { background: #DCE9E6; }
.tl.is-open .tl__no { background: var(--petrol); color: var(--white); transform: scale(1.08); animation: kvPulse 2.4s ease-out infinite; }
.tl.is-open .tl__chev { transform: rotate(180deg); }
.tl.is-open .tl__body { animation: kvOpen .45s var(--ease); }
@keyframes kvPulse { 0% { box-shadow: 0 0 0 0 rgba(31,95,91,.45); } 70% { box-shadow: 0 0 0 12px rgba(31,95,91,0); } 100% { box-shadow: 0 0 0 0 rgba(31,95,91,0); } }
@keyframes kvOpen { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Zitat ---------- */
.quote-wrap { padding-bottom: var(--section-y); }
.quote { padding: clamp(32px, 5vw, 64px) clamp(24px, 6vw, 72px); background: var(--white); border: 1px solid var(--line-card); border-radius: 20px; display: flex; flex-direction: column; gap: 24px; }
.quote blockquote { font-family: var(--serif); font-size: clamp(24px, 3vw, 38px); line-height: 1.3; font-weight: 400; color: var(--navy); }
.quote figcaption { font-size: 16px; color: var(--text); }
.quote figcaption strong { color: var(--navy); font-weight: 600; }
.qw { display: inline-block; animation: kvWord 11s ease-in-out infinite both; }
@keyframes kvWord { 0% { opacity: 0; filter: blur(6px); transform: translateY(8px); } 7%, 72% { opacity: 1; filter: blur(0); transform: none; } 82%, 100% { opacity: 0; filter: blur(6px); transform: translateY(-6px); } }

/* ---------- Kontakt ---------- */
.contact { position: relative; overflow: hidden; isolation: isolate; background: var(--petrol); color: var(--white); }
.eq {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; height: 160px; padding: 0 24px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; opacity: .16; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.eq span { flex: 1 1 0; max-width: 6px; background: var(--white); border-radius: 3px 3px 0 0; transform-origin: 50% 100%; animation: kvEq 3.6s ease-in-out infinite alternate; }
@keyframes kvEq { 0% { transform: scaleY(.15); } 50% { transform: scaleY(.7); } 100% { transform: scaleY(1); } }
.contact__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(72px, 8vw, 96px); }
.contact__text { display: flex; flex-direction: column; gap: 20px; }
.contact__text p { font-size: 18px; line-height: 1.65; color: #E1EEEB; max-width: 560px; }
.contact__text .btn-row { padding-top: 8px; }
.contact address { font-style: normal; display: flex; flex-direction: column; gap: 18px; font-size: 17px; line-height: 1.5; }
.contact__label { display: block; font-size: 13px; letter-spacing: .09em; text-transform: uppercase; color: #BFDCD6; }
.contact address a { color: var(--white); text-decoration: none; overflow-wrap: anywhere; }
.contact address a:hover { text-decoration: underline; }

/* ---------- Fußzeile ---------- */
.site-footer { background: var(--navy); color: var(--on-dark-2); font-size: 13px; }
.site-footer__inner { max-width: 1360px; margin: 0 auto; padding: 24px var(--gutter); display: flex; align-items: center; gap: 16px; }
.site-footer__mark { width: 28px; height: 28px; flex-shrink: 0; }
.site-footer__text { flex: 1 1 auto; min-width: 0; margin: 0; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-footer__text strong { color: var(--white); font-weight: 600; }
.site-footer nav { flex-shrink: 0; margin-left: 16px; }
.site-footer a { color: var(--white); }

/* ---------- Anfrage-Dialog ---------- */
.dialog {
  width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 20px;
  background: var(--ivory); color: var(--navy); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); overflow: auto;
}
.dialog::backdrop { background: rgba(10,16,26,.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dialog[open] { animation: kvPop .35s var(--ease); }
@keyframes kvPop { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.dialog__inner { position: relative; padding: clamp(32px, 5vw, 44px) clamp(20px, 5vw, 44px) 32px; display: flex; flex-direction: column; gap: 20px; }
.dialog__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--navy); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.dialog__close:hover { background: var(--sand-2); }
.dialog__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.dialog__title { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 4vw, 34px); line-height: 1.1; margin: 4px 0 0; }
.dialog__intro { font-size: 15px; line-height: 1.6; color: var(--text); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 14px; font-weight: 600; color: var(--navy); }
.input {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--navy);
  background: var(--white); border: 1px solid #CFC7B9; border-radius: 10px; transition: border-color .2s, box-shadow .2s;
}
.input:focus { outline: none; border-color: var(--petrol); box-shadow: 0 0 0 3px rgba(31,95,91,.18); }
.input[aria-invalid="true"] { border-color: #B4462A; }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.5; }
.fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid #CFC7B9; background: var(--white); font-size: 15px; font-weight: 500; transition: background-color .2s, color .2s, border-color .2s; }
.pill input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.pill input:focus-visible + span { outline: 2px solid var(--petrol); outline-offset: 2px; }
.form-error { padding: 10px 14px; border-radius: 10px; background: #F6E3DC; color: #8A2E14; font-size: 14px; font-weight: 500; }
.form-error[hidden] { display: none; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; padding-top: 4px; }
.form-note { font-size: 13px; color: var(--muted); }
.done { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding: 8px 0; }
.done[hidden], .form[hidden] { display: none; }
.done__check { width: 60px; height: 60px; border-radius: 50%; background: var(--petrol); color: var(--white); display: flex; align-items: center; justify-content: center; }
.done__check svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.form { display: flex; flex-direction: column; gap: 18px; }

/* ---------- Rechtstexte ---------- */
.legal { padding-block: clamp(56px, 8vw, 88px) var(--section-y); }
.legal .wrap { max-width: 920px; display: flex; flex-direction: column; gap: 32px; }
.legal__head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 16px; }
.legal__head h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.06; letter-spacing: -0.015em; }
.legal__head p { font-size: 18px; color: var(--text); }
.legal-block { background: var(--white); border: 1px solid var(--line-card); border-radius: 20px; padding: clamp(28px, 5vw, 56px) clamp(22px, 5vw, 64px); }
.legal-block h2 { font-size: clamp(30px, 3.6vw, 40px); line-height: 1.1; margin-bottom: 32px; }
.legal-block h3 { margin: 32px 0 10px; font-size: 18px; font-weight: 600; color: var(--navy); }
.legal-block h2 + h3 { margin-top: 0; }
.legal-block p, .legal-block li, .legal-block address { margin: 0; font-size: 16px; line-height: 1.7; color: var(--text); font-style: normal; overflow-wrap: break-word; }
.legal-block p + p { margin-top: 12px; }
.legal-block ul { margin: 10px 0 12px; padding-left: 20px; }
.legal-block li + li { margin-top: 6px; }
.facts { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 8px 24px; margin: 0; }
.facts dt { font-weight: 600; color: var(--navy); }
.facts dd { margin: 0; color: var(--text); }
.legal__stand { margin-top: 28px !important; font-size: 14px !important; color: var(--muted) !important; }

/* ==========================================================================
   Responsiv
   ========================================================================== */

/* Große Tablets / kleine Laptops */
@media (max-width: 1100px) {
  .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { gap: 22px; }
}

/* Tablets: Menü einklappen */
@media (max-width: 960px) {
  :root { --header-h: 76px; }
  .brand__mark { width: 42px; height: 42px; }
  .brand__name { font-size: 20px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px; background: var(--ivory); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(22,33,46,.35);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility 0s .25s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s; }
  .nav__link { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav .btn { margin-top: 16px; min-height: 52px; font-size: 16px; }

  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
  .split, .section-head, .cv, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__text { white-space: normal; }
}

/* Smartphones quer / kleine Tablets */
@media (max-width: 760px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 420px; }
  .steps, .audiences { grid-template-columns: minmax(0, 1fr); }
  .step { padding: 22px 0; }
  .site-footer__inner { flex-wrap: wrap; }
  .site-footer__text { flex-basis: calc(100% - 44px); }
  .site-footer nav { margin-left: 44px; }
}

/* Smartphones */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand__sub { display: none; }
  .modes, .cards { grid-template-columns: minmax(0, 1fr); }
  .btn-row .btn { flex: 1 1 auto; }
  .split__body { font-size: 17px; }
  .tl__btn { grid-template-columns: 40px minmax(0, 1fr) 20px; gap: 14px; }
  .tl__no { width: 40px; height: 40px; font-size: 16px; }
  .tl__body { padding-left: 54px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-actions .btn { flex: 1 1 auto; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .facts dd { margin-bottom: 10px; }
  .legal__head .btn-row .btn { flex: 1 1 100%; }
  /* Auf kleinen Geräten Effekte reduzieren (Akku, Ruckeln) */
  .section-dark::before, .section-dark::after { filter: blur(60px); animation-duration: 14s; }
  .hex--glow { display: none; }
  .mode:hover, .card:hover, .audience:hover { transform: none; }
}

/* Sehr kleine Smartphones */
@media (max-width: 380px) {
  .brand { gap: 10px; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__name { font-size: 18px; }
}

/* Touch-Geräte: Hover-Anheben vermeiden */
@media (hover: none) {
  .mode:hover, .card:hover, .audience:hover, .btn:hover { transform: none; box-shadow: none; }
}

/* Bewegung reduzieren */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .step { opacity: 1; }
}

/* Druck */
@media print {
  .site-header, .hero__mark, .section-dark::before, .section-dark::after, .hex, .eq, .dialog, .nav-toggle { display: none !important; }
  body { background: #fff; }
  .section-dark, .section-hex, .contact, .site-footer { background: #fff !important; color: #000 !important; }
  .qw { animation: none !important; opacity: 1 !important; filter: none !important; }
}
