/* ==========================================================================
   Jens Riepel Consulting – Stylesheet
   Statischer Nachbau der WordPress-Seite (Boxed Layout, 1240px)
   ========================================================================== */

/* ---------- Schriften (selbst gehostet, DSGVO-konform) ---------- */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/open-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/open-sans-latin-italic.woff2") format("woff2");
}

/* Ersatzschrift mit Open-Sans-Maßen: kein Layout-Sprung beim Nachladen der Webfont (CLS) */
@font-face {
  font-family: "Open Sans Fallback";
  src: local("Arial");
  ascent-override: 101.65%;
  descent-override: 27.86%;
  line-gap-override: 0%;
  size-adjust: 105.22%;
}

/* ---------- Variablen ---------- */
:root {
  --primary: #f9a02c;
  --primary-dark: #e38a14;
  --link: #a85d00;          /* Textlinks auf Weiß: Kontrast 4,96:1 (WCAG AA) */
  --accent: #ff6600;
  --secondary: #666;
  --text: #333;
  --heading: #000;
  --muted: #999;
  --alt-bg: #f6f6f6;
  --border: #e5e5e5;
  --border-light: #ebebeb;
  --body-bg: #f2f1f0;
  --box: 1240px;
  --gutter: 40px;
  --section-pad: 50px;
  --header-top: 36px;
  --header-main: 120px;
  --header-main-sticky: 60px;
  --radius: 5px;
  --ease: cubic-bezier(.25, .8, .25, 1);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Open Sans", "Open Sans Fallback", Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--body-bg);
  background-image: url("../img/bg-skyline-1920.jpg");
  background-image: image-set(url("../img/bg-skyline-1920.webp") type("image/webp"), url("../img/bg-skyline-1920.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: top center;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, svg { max-width: 100%; }
img { height: auto; display: block; border: 0; }
a { color: var(--primary); text-decoration: none; transition: color .2s, background-color .2s, box-shadow .2s, opacity .2s; }
a:hover { color: var(--heading); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .6em;
  font-weight: 400;
  line-height: 1.3;
  color: var(--heading);
}
/* Fließende Schriftgrößen (v5): skalieren stufenlos zwischen Handy und Desktop */
h1, .h1 { font-size: clamp(28px, 1.9vw + 15px, 38px); }
h2, .h2 { font-size: clamp(24px, 1.4vw + 14px, 32px); }
h3, .h3 { font-size: clamp(21px, 1vw + 14px, 26px); }
h4, .h4 { font-size: clamp(19px, .6vw + 14px, 22px); }
h5, .h5 { font-size: clamp(17px, .5vw + 13px, 20px); }
h6, .h6 { font-size: clamp(16px, .3vw + 13px, 18px); }
p, ul, ol, table, figure, blockquote, address { margin: 0 0 1.3em; }
ul, ol { padding-left: 2.2em; }
li { margin-bottom: .3em; }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--border); margin: 30px 0; }
table { border-collapse: collapse; }
td { padding: 2px 24px 2px 0; vertical-align: top; }
address { font-style: normal; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1em; height: 1em; fill: currentColor; vertical-align: -.125em; flex: none; }
.sr-only, .tabs__heading.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 10px; top: -60px; z-index: 1000; padding: 10px 18px;
  background: var(--heading); color: #fff; border-radius: 0 0 var(--radius) var(--radius);
}
.skip-link:focus { top: 0; color: #fff; }
.text-center { text-align: center; }
.d-block { display: block; }
h1 .d-block + .d-block { margin-top: .55em; }
.row--boxed { padding: 55px 0; }
.accent, .sec .accent a { color: var(--accent); }
.sec .accent a:hover { color: #fff; text-decoration: underline; }
.list-plain { list-style: none; padding-left: 0; }

/* Semantische Überschriften im Look der Original-Absätze (SEO-Struktur, Optik unverändert) */
.subhead { margin: 0 0 1.3em; font-size: inherit; font-weight: 700; line-height: inherit; letter-spacing: normal; color: inherit; }
p.h1, p.h2, p.h3, p.h4, p.h5, p.h6 { font-weight: 400; line-height: 1.3; color: var(--heading); margin: 0 0 .6em; }
.sec--primary :is(p.h1, p.h2, p.h3, p.h4, p.h5, p.h6), .sec--secondary :is(p.h1, p.h2, p.h3, p.h4, p.h5, p.h6) { color: #fff; }
/* Textlinks im weißen Inhaltsbereich kontraststärker */
.sec:not(.sec--primary, .sec--secondary) .col :is(p, li, td, address) a:not(.btn, .socials__link, .lightbox-link),
.form-row--check label a { color: var(--link); text-decoration: underline; text-decoration-color: rgba(168, 93, 0, .35); text-underline-offset: 2px; }
.sec:not(.sec--primary, .sec--secondary) .col :is(p, li, td, address) a:not(.btn, .socials__link, .lightbox-link):hover,
.form-row--check label a:hover { color: var(--heading); text-decoration-color: currentColor; }
.contacts--circles a[href^="mailto"] { text-decoration: none; }
.form-row--check label a { padding: 3px 0; }  /* größere Tippfläche, ohne die Zeilenhöhe zu ändern */

/* ---------- Boxed Canvas ---------- */
.canvas {
  position: relative;
  max-width: var(--box);
  margin: 0 auto;
  padding-top: calc(var(--header-top) + var(--header-main));
  background: #fff;
  box-shadow: 0 0 40px rgba(0, 0, 0, .25);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  max-width: var(--box);
  margin: 0 auto;
  background: #fff;
  transition: box-shadow .3s;
}
.site-header.is-sticky { box-shadow: 0 2px 14px rgba(0, 0, 0, .12); }

.topbar { background: var(--alt-bg); color: #666; font-size: 13px; overflow: hidden; transition: margin-top .3s var(--ease); }
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: var(--header-top); padding: 0 var(--gutter);
}
.topbar ul { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.topbar li { margin: 0; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.topbar .i { color: #999; font-size: 13px; }
.topbar a { display: inline-flex; align-items: center; min-height: var(--header-top); color: inherit; }
.topbar a:hover { color: var(--primary); }
.topbar__socials { gap: 16px !important; }
.topbar__socials a { display: flex; font-size: 15px; color: #666; position: relative; }
.topbar__socials .i { color: inherit; font-size: 15px; }
.site-header.is-sticky .topbar { margin-top: calc(var(--header-top) * -1); }

.mainbar__inner {
  display: flex; align-items: center; gap: 10px;
  height: var(--header-main); padding: 0 var(--gutter);
  transition: height .3s var(--ease);
}
.site-header.is-sticky .mainbar__inner { height: var(--header-main-sticky); }
.logo { display: block; margin-right: auto; }
.logo img { height: 80px; width: auto; transition: height .3s var(--ease); }
.site-header.is-sticky .logo img { height: 46px; }

.nav { height: 100%; }
.nav__list { display: flex; height: 100%; list-style: none; margin: 0; padding: 0; }
.nav__item { margin: 0; height: 100%; }
.nav__link {
  display: flex; align-items: center; height: 100%; padding: 0 17px;
  font-size: 15px; color: var(--text);
}
.nav__link span { position: relative; }
.nav__link span::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--primary); opacity: 0; transition: bottom .25s, opacity .25s;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--primary); }
.nav__link:hover span::after { bottom: -2px; opacity: 1; }
.nav__toggle, .search-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--text); font-size: 17px; border-radius: var(--radius);
}
.search-toggle { margin-left: 4px; font-size: 16px; }
.nav__toggle:hover, .search-toggle:hover { color: var(--primary); }
.nav__toggle { display: none; font-size: 22px; }

/* ---------- Suche ---------- */
.search {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(255, 255, 255, .97);
  display: flex; justify-content: center; align-items: flex-start;
  padding: 18vh 20px 40px; overflow-y: auto;
}
.search[hidden] { display: none; }
.search__form { position: relative; width: 100%; max-width: 760px; }
.search__label { display: block; margin-bottom: 8px; font-size: 14px; color: var(--muted); }
.search__input {
  width: 100%; padding: 8px 50px 12px 0; border: 0; border-bottom: 2px solid var(--primary);
  background: transparent; font: inherit; font-size: 34px; color: var(--heading); outline: none; border-radius: 0;
}
.search__input::-webkit-search-cancel-button { display: none; }
.search__close {
  position: absolute; right: 0; top: 30px; width: 44px; height: 44px; border: 0; background: none;
  cursor: pointer; font-size: 26px; color: var(--heading);
}
.search__close:hover { color: var(--primary); }
.search__results { list-style: none; margin: 26px 0 0; padding: 0; }
.search__results li { margin: 0; border-bottom: 1px solid var(--border-light); }
.search__results a { display: block; padding: 14px 0; color: var(--text); }
.search__results a:hover, .search__results a:focus { color: var(--primary); }
.search__results strong { display: block; font-size: 19px; font-weight: 400; color: var(--heading); }
.search__results a:hover strong { color: var(--primary); }
.search__results span { font-size: 14px; color: #777; }
.search__results mark { background: #fde4c2; color: inherit; padding: 0 1px; }
.search__empty { padding: 14px 0; color: var(--muted); }

/* ---------- Sektionen ---------- */
.sec { position: relative; background: #fff; }
.sec__inner { position: relative; z-index: 1; padding: var(--section-pad) var(--gutter); }
.sec--flush > .sec__inner { padding-top: 0; padding-bottom: 0; }
.sec--wide > .sec__inner { padding-left: 0; padding-right: 0; }
.sec--alt { background: var(--alt-bg); }
.sec--primary { background: var(--primary); color: #fff; }
.sec--secondary { background: var(--secondary); color: #fff; }
.sec--primary h1, .sec--primary h2, .sec--primary h3, .sec--primary h4, .sec--primary h5, .sec--primary h6,
.sec--secondary h1, .sec--secondary h2, .sec--secondary h3, .sec--secondary h4, .sec--secondary h5, .sec--secondary h6 { color: #fff; }
.sec--primary a, .sec--secondary a { color: #fff; }
.sec--has-bg { overflow: hidden; }
.sec__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center center; background-repeat: no-repeat;
  will-change: transform;
}
.sec--parallax .sec__bg { top: -20%; bottom: -20%; }
.sec--parallax-h .sec__bg { left: -30%; right: 0; }
.sec__overlay { position: absolute; inset: 0; z-index: 0; }

/* ---------- Raster ---------- */
.row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 40px; row-gap: 30px; }
.row:has(> .col > .ibox--top) { row-gap: 0; }
.col > .ibox--top:last-child { margin-bottom: 25px; }
.col { min-width: 0; }
.col > :last-child, .tabs__panel > :last-child, .actionbox__text > :last-child, .ibox__text > :last-child { margin-bottom: 0; }
.col-12 { grid-column: span 12; }
.col-10 { grid-column: span 10; }
.col-8 { grid-column: span 8; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }
.col-2 { grid-column: span 2; }
.sp { display: block; }

/* Zickzack-Trenner */
.zigzag {
  height: 12px; margin: 0 0 4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M0 6 6 0l6 6v4L6 4 0 10z' fill='%23ebebeb'/%3E%3C/svg%3E") repeat-x 0 50%;
}

/* ---------- Bilder ---------- */
.media { margin: 0 0 1.3em; }
.media--center { display: flex; justify-content: center; }
.media--left { display: flex; justify-content: flex-start; }
.media picture, .media img { display: block; }
.lightbox-link { display: block; cursor: zoom-in; overflow: hidden; border-radius: 2px; }
.lightbox-link img { transition: transform .5s var(--ease); }
.lightbox-link:hover img { transform: scale(1.03); }

/* ---------- Slider ---------- */
.slider { position: relative; aspect-ratio: 1900 / 600; overflow: hidden; background: #3a3a3a; }
.slider__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease-in-out; }
.slider__slide.is-active { opacity: 1; }
.slider__slide picture { display: block; height: 100%; }
.slider__slide img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hero (Startseite, v2) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  min-height: clamp(440px, 44vw, 560px);
  background: #1d3245; color: #fff;
}
.hero__media { position: absolute; inset: 0; z-index: -1; display: block; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 34, 48, 0) 26%, rgba(18, 34, 48, .42) 50%, rgba(18, 34, 48, .8) 100%),
    linear-gradient(0deg, rgba(18, 34, 48, .5) 0%, rgba(18, 34, 48, 0) 38%);
}
.hero__img {
  width: 100%; height: 100%; object-fit: cover; object-position: left center;
  transform-origin: 18% 45%; animation: hero-zoom 16s ease-out both;
}
.hero__content {
  width: min(600px, 56%); margin-left: auto;
  padding: 50px 60px 110px 0;
}
.hero__content > * { animation: hero-in .9s var(--ease) both; }
.hero__content > :nth-child(2) { animation-delay: .12s; }
.hero__content > :nth-child(3) { animation-delay: .26s; }
.hero__content > :nth-child(4) { animation-delay: .4s; }
.hero__eyebrow {
  display: flex; align-items: center; gap: 14px; margin: 0 0 16px;
  font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--primary);
}
.hero__eyebrow::before { content: ""; width: 36px; height: 2px; border-radius: 2px; background: var(--primary); }
.hero__title {
  margin: 0 0 18px; font-size: clamp(30px, 3.5vw, 46px); font-weight: 300; line-height: 1.15;
  color: #fff; letter-spacing: -.01em;
}
.hero__amp { color: var(--primary); font-weight: 400; }
.hero__lead { max-width: 500px; margin: 0 0 30px; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .88); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .btn--primary { box-shadow: 0 10px 24px rgba(249, 160, 44, .35); }
.hero .btn--primary:hover { background: #fff; color: var(--primary); }
.btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .75); }
.btn--ghost:hover { background: #fff; color: #1d3245; box-shadow: inset 0 0 0 2px #fff; }
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes hero-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Leistungsleiste (ehemals "Bubbles") ---------- */
.services {
  position: relative; z-index: 3;
  margin: -64px var(--gutter) 50px; padding: 20px 14px;
  background: #fff; border-radius: 16px;
  box-shadow: 0 24px 60px rgba(18, 34, 48, .16), 0 2px 6px rgba(18, 34, 48, .06);
}
.services__list { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0; padding: 0; }
.services__list li { position: relative; flex: 1 1 0; margin: 0; }
.services__list li + li::before {
  content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: #eee;
}
.service {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 12px 6px 8px; border-radius: 12px; text-align: center; color: var(--text);
  transition: background-color .3s;
}
.service__icon {
  display: flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: #fff3e1; color: var(--primary); font-size: 24px;
  transition: background-color .3s, color .3s, transform .35s var(--ease), box-shadow .3s;
}
.service__title { font-size: 14.5px; font-weight: 600; line-height: 1.3; color: var(--heading); transition: color .3s; }
.service__more { height: 12px; font-size: 12px; line-height: 1; color: var(--primary); opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s; }
.service:hover { background: #fffaf3; color: var(--text); }
.service:hover .service__icon { background: var(--primary); color: #fff; transform: translateY(-4px); box-shadow: 0 10px 22px rgba(249, 160, 44, .38); }
.service:hover .service__title { color: var(--primary); }
.service:hover .service__more { opacity: 1; transform: none; }

@media (max-width: 1023px) {
  .hero__content { width: min(560px, 58%); padding-right: 40px; }
  .hero__lead { font-size: 16px; }
  .services__list { row-gap: 6px; }
  .services__list li { flex: 0 0 25%; }
  .services__list li:nth-child(4n + 1)::before { display: none; }
}
@media (max-width: 767px) {
  .hero { display: block; min-height: 0; }
  .hero__media { position: relative; inset: auto; aspect-ratio: 860 / 645; }
  .hero__media::after { background: linear-gradient(180deg, rgba(29, 50, 69, 0) 45%, #1d3245 100%); }
  .hero__img { transform-origin: 30% 40%; }
  .hero__content { width: auto; margin: -36px 0 0; padding: 0 var(--gutter) 92px; position: relative; }
  .hero__title { font-size: 28px; }
  .hero__lead { font-size: 15px; margin-bottom: 24px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .services { margin: -60px var(--gutter) 36px; padding: 14px 8px; }
  .services__list li { flex: 0 0 50%; }
  .services__list li::before { display: none; }
  .service__more { display: none; }
}

/* ---------- Icon-Boxen ---------- */
.ibox { margin: 0 0 10px; }
.ibox__head { display: block; color: inherit; }
a.ibox__head:hover { color: inherit; }
.ibox__icon { display: inline-flex; align-items: center; justify-content: center; color: var(--primary); transition: background-color .3s, color .3s, transform .3s var(--ease); }
.ibox__title { margin: 0; transition: color .3s; }
.ibox__text { margin-top: 10px; }
.ibox--top { text-align: center; margin-bottom: 25px; }
.ibox--top .ibox__title { padding-top: 15px; }
.ibox--left .ibox__head { display: flex; align-items: center; gap: 20px; }
.ibox--left .ibox__text { margin-left: 66px; }

.ibox--outlined .ibox__icon, .ibox--solid .ibox__icon { border-radius: 50%; }
.ibox--outlined .ibox__icon { box-shadow: inset 0 0 0 2px var(--primary); }
.ibox--solid .ibox__icon { background: var(--primary); color: #fff; }
a.ibox__head:hover .ibox__icon { background: var(--primary); color: #fff; transform: translateY(-3px); }
a.ibox__head:hover .ibox__title { color: var(--primary); }

.ibox--small .ibox__icon { width: 70px; height: 70px; font-size: 28px; }
.ibox--small .ibox__title { font-size: 19px; }
.ibox--medium .ibox__icon { width: 90px; height: 90px; font-size: 36px; }
.ibox--big .ibox__icon { width: 110px; height: 110px; font-size: 48px; }
.ibox--plain .ibox__icon { width: auto; height: auto; font-size: 46px; }
.ibox--plain.ibox--left .ibox__icon { font-size: 40px; width: 46px; }
.ibox--icon-only { text-align: center; margin: 0 auto 10px; }

/* ---------- Testimonials ---------- */
.testimonial {
  margin: 0 0 20px; padding: 30px 32px; border-radius: var(--radius);
  box-shadow: inset 0 0 0 2px #e8e8e8;
  transition: box-shadow .3s, transform .3s var(--ease);
}
.testimonial:hover { box-shadow: inset 0 0 0 2px #e8e8e8, 0 12px 30px rgba(0, 0, 0, .08); transform: translateY(-3px); }
.testimonial__text { margin: 0 0 20px; font-style: italic; font-size: 15px; line-height: 1.75; }
.testimonial__text p { margin: 0; }
.testimonial__text q { quotes: "\201C" "\201D"; }
.testimonial__person { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; color: var(--muted); }
.testimonial__person .i { color: #bbb; font-size: 15px; }
.testimonial__person strong { color: var(--text); }

/* ---------- Action-Box & Buttons ---------- */
.actionbox {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  padding: 30px 40px; border-radius: var(--radius);
}
.actionbox--grey { background: transparent; }
.actionbox--secondary { background: var(--secondary); color: #fff; padding-left: 0; padding-right: 0; }
.actionbox__text h3 { margin: 0; }
.actionbox__text h3 + p { margin: 12px 0 0; }
.actionbox__controls { flex: none; }

.btn {
  display: inline-block; padding: 0 26px; border: 0; border-radius: 3px;
  font: inherit; font-size: 13px; font-weight: 700; line-height: 44px; letter-spacing: .02em;
  text-transform: uppercase; text-align: center; cursor: pointer;
  transition: background-color .25s, color .25s, box-shadow .25s, transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--big { padding: 0 34px; line-height: 52px; font-size: 14px; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--text); color: #fff; }
.btn--default { background: var(--border); color: var(--text); }
.btn--default:hover { background: var(--text); color: #fff; }
.btn--secondary, .sec .btn--secondary { background: var(--secondary); color: #fff; }
.btn--secondary:hover, .sec .btn--secondary:hover { background: var(--primary); color: #fff; }
.btn--white.btn--outlined, .sec .btn--white.btn--outlined { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.btn--white.btn--outlined:hover, .sec .btn--white.btn--outlined:hover { background: #fff; color: var(--primary); }

/* Individuelle Kästen (Über mich) */
.row--box-grey { background: #c9c9c9; border-radius: 10px; padding: 0 20px; }
.row--box-orange { background: #eda348; border-radius: 10px; }
.row--box-orange .actionbox__text p { font-size: 13px; line-height: 1.6; }

/* ---------- Social Icons ---------- */
.socials { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 1.3em; padding: 0; }
.socials li { margin: 0; }
.socials--center { justify-content: center; }
.socials__link {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius); color: var(--text); font-size: 15px;
  box-shadow: inset 0 0 0 2px #e8e8e8;
}
.socials--big .socials__link { width: 46px; height: 46px; font-size: 19px; }
.socials--footer .socials__link { color: #666; box-shadow: inset 0 0 0 2px #e2e2e2; }
.socials__link:hover { color: #fff; box-shadow: none; }
.socials__link--email:hover { background: var(--primary); }
.socials__link--linkedin:hover { background: #0a66c2; }
.socials__link--xing:hover { background: #026466; }
[data-tip]::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 5;
  transform: translate(-50%, 4px); padding: 3px 9px; border-radius: 3px;
  background: rgba(0, 0, 0, .8); color: #fff; font-size: 12px; line-height: 1.6; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.topbar [data-tip]::after { bottom: auto; top: calc(100% + 6px); }

/* ---------- Team ---------- */
.team { max-width: 350px; margin: 0 auto 1.3em; text-align: center; }
.team__image { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #eee; }
.team__image img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.team .team__name { margin: 20px 0 0; font-size: 22px; }

/* ---------- Tabs ---------- */
.tabs { margin: 0 0 1.3em; }
.tabs__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.tabs__tab {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px;
  border: 1px solid #e3e3e3; border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0;
  background: #ebebeb; color: #666; font: inherit; font-size: 13px; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.tabs__tab .i { font-size: 13px; }
.tabs__tab:hover { background: #f4f4f4; color: var(--text); }
.tabs__tab[aria-selected="true"] { background: #f8f8f8; color: var(--text); }
.tabs__panel { padding: 30px 40px; background: #f8f8f8; border-radius: var(--radius); font-size: 14px; }
.tabs__panel + .tabs__panel { margin-top: 16px; }
.js .tabs__panel + .tabs__panel { margin-top: 0; }
.js .tabs__heading { display: none; }
.tabs__panel[hidden] { display: none; }

/* ---------- Kontaktdaten ---------- */
.contacts ul { list-style: none; margin: 0; padding: 0; }
.contacts li { display: flex; gap: 14px; margin: 0 0 16px; }
.contacts a { color: var(--primary); }
.contacts a:hover { color: var(--heading); }
.contacts--circles li { align-items: flex-start; }
.contacts--circles .contacts__icon {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 38px; height: 38px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--primary);
  color: var(--primary); font-size: 16px;
}
.contacts--circles .contacts__value { padding-top: 6px; font-size: 14px; line-height: 1.6; }
.contacts--circles li:has(a[href^="tel"]) .contacts__value a { color: var(--text); }
.contacts--circles li:has(a[href^="tel"]) .contacts__value a:hover { color: var(--primary); }
.contacts--small li { gap: 12px; margin-bottom: 9px; font-size: 13px; line-height: 1.6; }
.contacts--small .contacts__icon { width: 16px; flex: none; color: #666; font-size: 14px; padding-top: 1px; }
.contacts--small a[href^="tel"] { color: inherit; }
.contacts--small a[href^="tel"]:hover { color: var(--primary); }

/* ---------- Kontaktformular ---------- */
.contact-form { font-size: 13px; }
.form-row { margin: 0 0 16px; }
.form-row label { display: block; min-height: 24px; margin-bottom: 4px; }
.form-hint { margin: 0 0 10px; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"],
.contact-form select, .contact-form textarea {
  width: 100%; height: 42px; padding: 0 14px; border: 0; border-radius: 3px;
  background: var(--alt-bg); font: inherit; font-size: 14px; color: var(--heading);
  box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s, background-color .2s;
}
.contact-form textarea { height: 140px; padding: 10px 14px; resize: vertical; line-height: 1.6; }
.contact-form select { appearance: none; padding-right: 36px; cursor: pointer;
  background: var(--alt-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23333' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; background-color: #fff; box-shadow: inset 0 0 0 2px var(--primary); }
.contact-form [aria-invalid="true"] { box-shadow: inset 0 0 0 2px #d9534f; }
.form-row--check { display: flex; align-items: flex-start; gap: 10px; }
.form-row--check input { margin: 4px 0 0; width: 16px; height: 16px; accent-color: var(--primary); flex: none; }
.form-row--check label { margin: 0; line-height: 1.6; }
.form-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn--submit { line-height: 38px; padding: 0 32px; }
.btn--submit[disabled] { opacity: .6; cursor: wait; transform: none; }
.form-status:empty { display: none; }
.form-status { margin-top: 16px; padding: 12px 16px; border-radius: 3px; font-size: 14px; }
.form-status.is-success { background: #e8f5e3; color: #2f6b1f; box-shadow: inset 0 0 0 1px #b9dfab; }
.form-status.is-error { background: #fbeaea; color: #a3302b; box-shadow: inset 0 0 0 1px #efc2c0; }

/* ---------- Footer (v2 – modern, Navy aus dem Hero-Foto) ---------- */
.site-footer {
  position: relative; max-width: var(--box); margin: 0 auto;
  background: #1c2833; color: rgba(255, 255, 255, .72);
  box-shadow: 0 0 40px rgba(0, 0, 0, .25);
}
.footer-top {
  border-top: 4px solid var(--primary);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(249, 160, 44, .11), rgba(249, 160, 44, 0) 55%),
    linear-gradient(180deg, #213141 0%, #1a2530 100%);
  font-size: 14px; line-height: 1.65;
}
.footer-top__inner {
  display: grid; grid-template-columns: 1.35fr 1fr 1.25fr .9fr; gap: 48px;
  padding: 64px var(--gutter) 52px;
}
.footer-title {
  margin: 0 0 22px; font-size: 13px; font-weight: 700; line-height: 1.3;
  letter-spacing: .16em; text-transform: uppercase; color: #fff;
}
.footer-title::after {
  content: ""; display: block; width: 28px; height: 2px; margin-top: 11px;
  border-radius: 2px; background: var(--primary);
}
.footer-logo { display: inline-block; margin-bottom: 18px; }
.footer-logo img { width: 170px; height: auto; }
.footer-claim { margin: 0 0 10px; font-size: 15px; color: #fff; }
.footer-motto { margin: 0 0 22px; font-size: 13.5px; font-style: italic; color: rgba(255, 255, 255, .58); }

.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin: 0; }
.footer-menu a { display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; color: rgba(255, 255, 255, .78); }
.footer-menu .i { font-size: 11px; color: var(--primary); transition: transform .25s var(--ease); }
.footer-menu a:hover { color: #fff; }
.footer-menu a:hover .i { transform: translateX(4px); }
.footer-menu a[aria-current="page"] { color: var(--primary); font-weight: 600; }

.contacts--footer li { align-items: flex-start; gap: 14px; margin: 0 0 14px; }
.contacts--footer .contacts__icon {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(249, 160, 44, .14); color: var(--primary); font-size: 14px;
  transition: background-color .25s, color .25s;
}
.contacts--footer li:hover .contacts__icon { background: var(--primary); color: #fff; }
.contacts--footer .contacts__value { padding-top: 6px; line-height: 1.55; }
.contacts--footer a { color: rgba(255, 255, 255, .88); }
.contacts--footer a:hover { color: var(--primary); }

.footer-vcard {
  position: relative; display: inline-block; margin: 12px;
  padding: 12px; border-radius: 18px; background: #fff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .38), 0 0 0 1px rgba(255, 255, 255, .08);
  transition: transform .35s var(--ease), box-shadow .35s;
}
/* orange Scan-Ecken rund um den QR-Code */
.footer-vcard::after {
  content: ""; position: absolute; inset: -10px; pointer-events: none;
  --c: var(--primary); --l: 22px; --w: 3px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) top left / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--l) no-repeat;
  transition: inset .35s var(--ease);
}
.footer-vcard:hover { transform: translateY(-3px); box-shadow: 0 24px 52px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .1); }
.footer-vcard:hover::after { inset: -14px; }
.footer-vcard img { display: block; width: 136px; height: auto; border-radius: 6px; }

.socials--footer { margin: 0; }
.site-footer .socials__link { width: 40px; height: 40px; border-radius: 50%; color: #fff; box-shadow: none; }
.site-footer .socials__link:not(:hover) { background: rgba(255, 255, 255, .08); }
.site-footer .socials__link:hover { transform: translateY(-3px); }

.footer-bottom { background: #151e27; color: rgba(255, 255, 255, .5); font-size: 13px; }
.footer-bottom__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 30px;
  padding: 22px var(--gutter);
}
.footer-legal { display: flex; flex-direction: column; gap: 3px; }
.copyright { margin: 0; }
.credits { margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, .42); letter-spacing: .01em; }
.site-footer .credits { hyphens: manual; -webkit-hyphens: manual; }
.credits a { color: rgba(255, 255, 255, .85); font-weight: 700; letter-spacing: .04em; }
.credits a:hover { color: var(--primary); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin: 0; }
.footer-nav a { display: inline-block; padding: 4px 0; color: rgba(255, 255, 255, .62); }
.footer-nav a:hover, .footer-nav a[aria-current="page"] { color: var(--primary); }

/* ---------- Datenschutz-Einstellungen (Cookie-Banner) ---------- */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 400;
  display: flex; justify-content: center; padding: 16px; pointer-events: none;
}
.consent[hidden] { display: none; }
.consent__box {
  pointer-events: auto; width: 100%; max-width: 720px; max-height: calc(100vh - 32px); overflow: auto;
  padding: 24px 28px 18px; border-top: 4px solid var(--primary); border-radius: 16px;
  background: #fff; color: var(--text); font-size: 14px; line-height: 1.6;
  box-shadow: 0 24px 70px rgba(18, 34, 48, .35), 0 2px 8px rgba(18, 34, 48, .12);
  animation: consent-in .45s var(--ease) both; outline: none;
}
.consent__title { margin: 0 0 6px; font-size: 19px; font-weight: 700; color: var(--heading); }
.consent__text { margin: 0 0 14px; }
.consent__groups { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 16px; }
.consent__check { display: inline-flex; align-items: center; gap: 9px; min-height: 28px; font-weight: 600; cursor: pointer; }
.consent__check input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
.consent__check input:disabled + span { color: #777; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent__actions .btn { flex: 1 1 190px; padding: 0 18px; line-height: 44px; }
.btn--outline-dark { background: transparent; color: var(--heading); box-shadow: inset 0 0 0 2px #d6d6d6; }
.btn--outline-dark:hover { color: var(--heading); box-shadow: inset 0 0 0 2px var(--primary); }
.consent__more {
  display: inline-block; margin: 12px 0 0; padding: 4px 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--link); text-decoration: underline; text-underline-offset: 2px;
}
.consent__more:hover { color: var(--heading); }
.consent__details { margin-top: 10px; padding-top: 12px; border-top: 1px solid #eee; font-size: 13px; }
.consent__details p { margin: 0 0 8px; }
.consent__group-title { font-weight: 700; color: var(--heading); }
.consent__table { width: 100%; margin: 4px 0 16px; border-collapse: collapse; font-size: 12.5px; }
.consent__table th, .consent__table td { padding: 6px 8px; border-bottom: 1px solid #eee; text-align: left; vertical-align: top; }
.consent__table th { font-weight: 600; color: var(--heading); background: var(--alt-bg); }
.consent__table td:first-child { font-family: ui-monospace, Menlo, Consolas, monospace; white-space: nowrap; }
.consent__links { margin: 12px 0 0; font-size: 12.5px; color: #777; }
.consent__links a { color: var(--link); }
.consent-open .toplink { visibility: hidden; }
@keyframes consent-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
  .consent { padding: 0; }
  .consent__box { max-height: 88vh; padding: 20px 18px 14px; border-radius: 16px 16px 0 0; }
  .consent__actions .btn { flex-basis: 100%; }
}

/* ---------- Rechtstexte (Datenschutz) ---------- */
.legal-meta { color: #777; font-size: 13px; }
.legal-summary { margin: 0 0 2em; padding: 22px 26px; border-left: 4px solid var(--primary); border-radius: 0 12px 12px 0; background: var(--alt-bg); }
.legal-summary__title, .legal-highlight__title { margin: 0 0 8px; font-weight: 700; color: var(--heading); }
.legal-summary ul { margin: 0; }
.legal-highlight { margin: 0 0 1.3em; padding: 20px 24px; border: 2px solid var(--primary); border-radius: 12px; background: #fffaf3; }
.legal-highlight p:last-child { margin-bottom: 0; }
.legal-consent { margin: 0 0 1.3em; padding: 18px 22px; border-radius: 12px; background: var(--alt-bg); }
.legal-consent p:last-child { margin-bottom: 0; }
.legal-consent__status { font-weight: 600; color: var(--heading); }
.legal h3 { scroll-margin-top: 90px; }

/* ---------- Nach-oben-Button ---------- */
.toplink {
  position: fixed; right: 15px; bottom: 15px; z-index: 90;
  display: flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: var(--radius); background: rgba(0, 0, 0, .35); color: #fff; font-size: 26px;
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: opacity .3s, visibility .3s, transform .3s var(--ease), background-color .2s;
}
.toplink.is-visible { opacity: 1; visibility: visible; transform: none; }
.toplink:hover { background: var(--primary); color: #fff; }

/* ---------- Lightbox ---------- */
.lightbox { max-width: 94vw; max-height: 94vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(0, 0, 0, .86); }
.lightbox__img { max-width: 94vw; max-height: 88vh; width: auto; margin: 0 auto; box-shadow: 0 10px 50px rgba(0, 0, 0, .5); }
.lightbox__close {
  position: absolute; top: -46px; right: 0; width: 40px; height: 40px; border: 0; background: none;
  color: #fff; font-size: 28px; cursor: pointer; opacity: .85;
}
.lightbox__close:hover { opacity: 1; }
.lightbox[open] { animation: lb-in .25s ease; }
@keyframes lb-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- Einblend-Animationen ---------- */
.js [data-anim] { opacity: 0; transition: opacity .9s ease, transform .9s var(--ease); }
.js [data-anim="up"] { transform: translateY(40px); }
.js [data-anim="down"] { transform: translateY(-40px); }
.js [data-anim="left"] { transform: translateX(-60px); }
.js [data-anim="right"] { transform: translateX(60px); }
.js [data-anim="scale"] { transform: scale(.88); }
.js [data-anim][data-delay="1"] { transition-delay: .2s; }
.js [data-anim].is-in { opacity: 1; transform: none; }

/* ---------- Seitenspezifisch ---------- */
.error-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin: 1.5em 0 2em; }
.error-links li { margin: 0; }
.page-index .sec--flush.sec--parallax-h .media img { margin-top: 0; }
.page-datenschutz .col :is(h3, h4, h5):not(.h1) { font-size: 18px; margin-top: 1.4em; font-weight: 600; }
.page-datenschutz .col .list-plain :is(h3, h4, h5):not(.h1) { font-size: 16px; }
.page-datenschutz .col { font-size: 14px; }
.page-impressum .col, .page-datenschutz .col { overflow-wrap: anywhere; }
.page-impressum .col h2 { font-size: 24px; margin-top: 1em; }
.page-impressum .col h2.h1 { font-size: 30px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1239px) {
  .canvas, .site-footer { box-shadow: none; }
}
@media (max-width: 1100px) {
  .nav__link { padding: 0 11px; font-size: 14px; }
}
@media (max-width: 1023px) {
  :root { --gutter: 30px; --header-main: 90px; }
  .logo img { height: 60px; }
  .nav { height: auto; }
  .nav__toggle { display: flex; }
  .nav__list {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 50;
    display: block; height: auto; max-height: 0; overflow: hidden;
    background: #fff; box-shadow: 0 10px 20px rgba(0, 0, 0, .1);
    transition: max-height .35s var(--ease);
  }
  .nav.is-open .nav__list { max-height: 480px; }
  .nav__item { height: auto; border-top: 1px solid var(--border-light); }
  .nav__link { height: auto; padding: 13px var(--gutter); font-size: 15px; }
  .nav__link span::after { display: none; }
  .mainbar { position: relative; }
  .col-3 { grid-column: span 6; }
  .col-10 { grid-column: span 9; }
  .col-2 { grid-column: span 3; }
  .footer-top__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  /* Header nicht mehr fixiert (wie im Original) */
  .site-header { position: relative; }
  .canvas { padding-top: 0; }
  .site-header.is-sticky .topbar { margin-top: 0; }
  .site-header.is-sticky .mainbar__inner { height: var(--header-main); }
  .site-header.is-sticky .logo img { height: 60px; }
  .site-header.is-sticky { box-shadow: none; }
  html { scroll-padding-top: 0; }
  body { background-attachment: scroll; }
}
@media (max-width: 767px) {
  :root { --gutter: 20px; --section-pad: 36px; --header-main: 76px; }
  body { font-size: 15px; line-height: 1.7; }
  .logo img, .site-header.is-sticky .logo img { height: 52px; }
  .topbar__contacts li:nth-child(3) { display: none; }
  .topbar ul { gap: 16px; }
  .row { column-gap: 20px; }
  .col { grid-column: span 12; }
  .col:has(> .ibox--top:only-child) { grid-column: span 6; }
  .actionbox { flex-direction: column; align-items: flex-start; padding: 24px; }
  .actionbox--secondary { padding: 0; }
  .sec--primary .actionbox--grey { padding-left: 0; padding-right: 0; }
  .tabs__tab { padding: 9px 12px; font-size: 12px; }
  .tabs__panel { padding: 22px 20px; }
  .ibox--small .ibox__title { font-size: 17px; }
  .testimonial { padding: 24px; }
  .row--box-grey { padding: 10px 20px 20px; }
  .media--left { justify-content: center; }
  .footer-top__inner { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .footer-bottom__inner { flex-direction: column; align-items: flex-start; }
  .search__input { font-size: 24px; }
  .page-impressum .col h2.h1 { font-size: 24px; }
}
@media (max-width: 420px) {
  .topbar__contacts li:nth-child(2) { display: none; }
}

/* Touch-Geräte: kein iOS-Zoom beim Antippen von Formularfeldern, keine "hängenden" Hover-Effekte */
@media (pointer: coarse) {
  .contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"],
  .contact-form select, .contact-form textarea { font-size: 16px; }
  .form-row--check input { width: 22px; height: 22px; margin-top: 1px; }
}
@media (hover: none) {
  .btn:hover, .testimonial:hover, .footer-vcard:hover, .site-footer .socials__link:hover,
  .service:hover .service__icon, a.ibox__head:hover .ibox__icon, .lightbox-link:hover img { transform: none; }
}

/* Weniger Bewegung, wenn im System gewünscht */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js [data-anim] { opacity: 1; transform: none; }
  .sec__bg { transform: none !important; }
  html { scroll-behavior: auto; }
}

/* Druck */
@media print {
  body { background: #fff; }
  .site-header { position: static; }
  .canvas { padding-top: 0; box-shadow: none; }
  .topbar, .nav, .search-toggle, .toplink, .search, .slider, .sec__bg, .sec__overlay, .footer-top { display: none !important; }
  .sec--primary, .sec--secondary { background: #fff; color: #000; }
  .sec--primary *, .sec--secondary * { color: #000 !important; }
  .js [data-anim] { opacity: 1; transform: none; }
}

/* ==========================================================================
   v5 – Responsive-Feinschliff: Seiten-Heros, Lesebreite, Startseiten-Hero
   ========================================================================== */

/* ---------- Seiten-Heros (einheitlich auf allen Unterseiten) ---------- */
.sec--pagehero { background-color: #1d3245; color: #fff; }
.sec--pagehero > .sec__inner {
  display: flex; flex-direction: column; justify-content: center;
  min-height: clamp(210px, 22vw + 60px, 330px); padding-top: 44px; padding-bottom: 44px;
}
.sec--pagehero .row { width: 100%; }
.sec--pagehero .sec__bg { filter: saturate(.85); }
.sec__overlay--hero {
  background:
    linear-gradient(90deg, rgba(18, 34, 48, .9) 0%, rgba(18, 34, 48, .68) 45%, rgba(18, 34, 48, .38) 100%),
    linear-gradient(0deg, rgba(18, 34, 48, .35), rgba(18, 34, 48, 0) 60%);
}
.pagehero__crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 14px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--primary);
}
.pagehero__crumbs::before { content: ""; width: 36px; height: 2px; margin-right: 4px; border-radius: 2px; background: var(--primary); }
.pagehero__crumbs a { color: rgba(255, 255, 255, .85); }
.pagehero__crumbs a:hover { color: #fff; }
.pagehero__sep { color: rgba(255, 255, 255, .5); }
.sec--pagehero h1.pagehero__title {
  max-width: 860px; margin: 0; color: #fff;
  font-size: clamp(26px, 3.4vw + 12px, 50px); font-weight: 300; line-height: 1.15; letter-spacing: .02em;
  text-transform: uppercase; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word;
}
.sec--pagehero .pagehero__title .d-block + .d-block { margin-top: .12em; }
.sec--pagehero .pagehero__title :is(strong, b) { font-weight: inherit; }
.sec--pagehero .col > * { animation: hero-in .8s var(--ease) both; }
.sec--pagehero .col > :nth-child(2) { animation-delay: .1s; }

/* ---------- Lesebreite für Textabschnitte (ca. 100 Zeichen pro Zeile) ---------- */
.sec--prose > .sec__inner { max-width: 980px; margin-left: auto; margin-right: auto; }

/* ---------- Startseiten-Hero ---------- */
.hero__media { overflow: hidden; }                 /* kein heller Streifen beim Zoom-Effekt */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero { min-height: 420px; }
  .hero__content { width: min(540px, 54%); padding-right: 32px; }
}
@media (max-width: 767px) {
  .hero__media { aspect-ratio: auto; height: clamp(230px, 60vw, 370px); }
  .hero__img { object-position: 30% 26%; }
  .hero__content { margin-top: -30px; }
  .hero__eyebrow { font-size: 12px; letter-spacing: .16em; }
}
@media (max-width: 380px) {
  .hero__title { font-size: 25px; }
  .hero__lead { font-size: 14.5px; }
}

/* ---------- Zweispaltige Text-Bereiche auf Tablets untereinander ---------- */
@media (max-width: 860px) {
  .col-6 { grid-column: span 12; }
  .sec--pagehero > .sec__inner { padding-top: 36px; padding-bottom: 36px; }
}
@media (max-width: 767px) {
  .pagehero__crumbs { font-size: 11.5px; letter-spacing: .12em; }
  .pagehero__crumbs::before { width: 24px; }
}

/* v5.1 – Feinschliff nach Audit */
.pagehero__crumbs a { display: inline-block; padding: 4px 0; }
@media (max-width: 767px) {
  .pagehero__crumbs { font-size: 12px; }
  /* Leistungs-Kästen MIT Beschreibung auf dem Handy einspaltig (lange Wörter passen sonst nicht) */
  .col:has(> .ibox--top .ibox__text) { grid-column: span 12; }
  /* Deutsche Silbentrennung für lange Komposita auf kleinen Bildschirmen */
  p, li, h1, h2, h3, h4, h5, h6, .ibox__title { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
}

/* v5.2 – Feinschliff nach visueller Durchsicht */
/* Abschluss-Button im grauen Balken als Button erkennbar (weißer Rahmen) */
.actionbox--secondary .btn--secondary, .sec .actionbox--secondary .btn--secondary { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85); }
.actionbox--secondary .btn--secondary:hover, .sec .actionbox--secondary .btn--secondary:hover { background: #fff; color: var(--secondary); box-shadow: inset 0 0 0 2px #fff; }
/* QR-Code auf der Kontaktseite im selben Rahmen wie im Footer */
.page-kontakt .media .lightbox-link:has(img[src*="vcard"]) {
  position: relative; overflow: visible; margin: 14px; padding: 14px; border-radius: 18px; background: #fff;
  box-shadow: 0 14px 36px rgba(18, 34, 48, .14), 0 0 0 1px #eee;
}
.page-kontakt .media .lightbox-link:has(img[src*="vcard"])::after {
  content: ""; position: absolute; inset: -10px; pointer-events: none;
  --c: var(--primary); --l: 22px; --w: 3px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) top left / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--l) no-repeat;
}
.page-kontakt .media .lightbox-link:has(img[src*="vcard"]) img { width: 200px; transform: none; }
@media (max-width: 767px) {
  /* Silbentrennung nur für lange Wörter (mind. 10 Zeichen, 4 vor/nach dem Strich) */
  p, li, h1, h2, h3, h4, h5, h6, .ibox__title {
    hyphenate-limit-chars: 10 4 4; -webkit-hyphenate-limit-before: 4; -webkit-hyphenate-limit-after: 4;
  }
  .row--boxed { padding: 6px 0; }
  .btn--submit { width: 100%; line-height: 46px; }
}
@media (max-width: 600px) {
  /* Tabs (Über mich) als sauberes 2×2-Raster */
  .tabs__list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
  .tabs__tab { justify-content: center; border: 1px solid #e3e3e3; border-radius: var(--radius); }
}
@media (max-width: 600px) {
  .tabs__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabs__tab { min-width: 0; padding: 9px 8px; text-align: center; }
}
@media (max-width: 380px) {
  .tabs__tab { font-size: 12px; gap: 6px; }
  .tabs__tab .i { display: none; }
}
