@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/manrope-400.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/manrope-500.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/manrope-700.woff2") format("woff2");
}

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/sora-600.woff2") format("woff2");
}

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/sora-800.woff2") format("woff2");
}

:root {
  --bg: #e9f1f7;
  --bg-soft: #f8fbfe;
  --bg-glow-a: #dae8f8;
  --bg-glow-b: #d8efe8;
  --surface: #ffffff;
  --surface-alt: #f2f7fc;
  --text-strong: #102538;
  --text-body: #243a4e;
  --text-muted: #607589;
  --brand: #0f5f8d;
  --brand-strong: #0a4568;
  --cta-blue-start: #0b7f78;
  --cta-blue-end: #096b65;
  --cta-blue-hover-start: #087169;
  --cta-blue-hover-end: #075f58;
  --brand-focus: var(--cta-blue-start);
  --accent: #0fa384;
  --accent-soft: #daf4ec;
  --line: #c8d8e8;
  --line-strong: #b8cadb;
  --warning: #f0a24e;
  --case-yellow: #d39b2d;
  --case-blue: #3f85d8;
  --case-green: #3f9f69;
  --case-red: #cf5f68;

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-1: 0 18px 42px rgba(8, 43, 71, 0.14);
  --shadow-2: 0 10px 24px rgba(8, 43, 71, 0.1);

  --max-width: 1220px;
  --header-max-width: 1300px;
  --header-height: 100px;
  --section-space: clamp(2.8rem, 5vw, 4.8rem);
  --section-space-tight: clamp(2rem, 4vw, 3.2rem);

  --font-title: "Sora", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

html[data-theme="light"] {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1822;
  --bg-soft: #152332;
  --bg-glow-a: rgba(35, 72, 104, 0.52);
  --bg-glow-b: rgba(27, 81, 76, 0.42);
  --surface: #192b3d;
  --surface-alt: #21374a;
  --text-strong: #f4f9ff;
  --text-body: #d8e8f8;
  --text-muted: #adc0d3;
  --brand: #62c7ff;
  --brand-strong: #8ad8ff;
  --accent: #52d5ad;
  --accent-soft: #1b5044;
  --line: #30495d;
  --line-strong: #3a556a;
  --warning: #ffc174;
  --case-yellow: #f0c05e;
  --case-blue: #87bff8;
  --case-green: #7fcd95;
  --case-red: #e68d95;

  --shadow-1: 0 18px 42px rgba(3, 10, 18, 0.48);
  --shadow-2: 0 10px 24px rgba(3, 10, 18, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-top: var(--header-height);
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--text-body);
  background:
    radial-gradient(980px 560px at 4% -12%, var(--bg-glow-a) 0%, transparent 66%),
    radial-gradient(760px 460px at 94% 0%, var(--bg-glow-b) 0%, transparent 62%),
    linear-gradient(
      180deg,
      var(--bg-soft) 0%,
      var(--bg) 68%,
      color-mix(in srgb, var(--bg) 84%, var(--surface-alt)) 100%
    );
}

html.is-menu-open,
body.is-menu-open {
  overflow: hidden;
  overscroll-behavior: none;
}

body.is-menu-open {
  touch-action: none;
}

.menu-backdrop {
  display: none;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(42px);
  pointer-events: none;
}

body::before {
  width: 340px;
  height: 340px;
  right: -130px;
  top: 120px;
  background: rgba(16, 154, 123, 0.16);
}

body::after {
  width: 320px;
  height: 320px;
  left: -150px;
  bottom: 90px;
  background: rgba(15, 95, 141, 0.12);
}

img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.24;
  font-family: var(--font-title);
  color: var(--text-strong);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

h3 {
  font-size: clamp(1.1rem, 1.7vw, 1.32rem);
}

p {
  margin: 0;
  color: var(--text-body);
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 58%, transparent);
  outline-offset: 2px;
  border-radius: 10px;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
input:not([type="checkbox"]):not([type="radio"]):focus-visible,
textarea:focus,
textarea:focus-visible,
select:focus,
select:focus-visible {
  outline: 2px solid var(--brand-focus);
  outline-offset: 2px;
  border-color: var(--brand-focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-focus) 30%, transparent);
}

main p a:not(.btn):not(.news-link):not(.case-link),
main li a:not(.btn):not(.news-link):not(.case-link) {
  color: var(--brand-strong);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 10px;
  top: -120px;
  padding: 0.66rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  z-index: 3000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 10px;
}

.site-shell,
.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin-inline: auto;
}

.lead {
  font-size: clamp(1.03rem, 1.8vw, 1.15rem);
  color: var(--text-strong);
  max-width: 68ch;
}

.small,
.muted {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.surface-card,
.card,
.panel {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--line-strong) 74%, transparent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
}

.card-body {
  padding: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.6rem;
  min-width: 0;
}

.card-body > * {
  min-width: 0;
}

.btn,
.header-cta {
  appearance: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: var(--radius-pill);
  padding: 0.66rem 1.08rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary,
.header-cta {
  background: linear-gradient(145deg, var(--cta-blue-start), var(--cta-blue-end));
  color: #fff;
  box-shadow: 0 10px 22px rgba(8, 47, 74, 0.25);
}

.btn-primary:hover,
.header-cta:hover {
  background: linear-gradient(145deg, var(--cta-blue-hover-start), var(--cta-blue-hover-end));
  transform: translateY(-1px);
}

.btn-primary:active,
.header-cta:active {
  transform: translateY(0);
}

.btn-secondary,
.btn-ghost {
  border: 1.5px solid color-mix(in srgb, var(--line-strong) 80%, transparent);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  color: var(--brand-strong);
}

.btn-secondary:hover,
.btn-ghost:hover {
  border-color: color-mix(in srgb, var(--brand) 58%, var(--line-strong));
  background: color-mix(in srgb, var(--surface-alt) 92%, transparent);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  transform: translateY(0);
  background: color-mix(in srgb, var(--bg-soft) 84%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line-strong) 60%, transparent);
  backdrop-filter: blur(10px) saturate(120%);
  transition: transform 0.22s ease, backdrop-filter 0.28s ease, background-color 0.28s ease, box-shadow 0.28s ease;
}

.site-header.is-hidden {
  transform: translateY(calc(-100% - 8px));
}

.site-header:focus-within {
  transform: translateY(0);
}

.site-header.is-sticky {
  background: color-mix(in srgb, var(--bg-soft) 92%, transparent);
  box-shadow: 0 10px 24px rgba(10, 39, 63, 0.14);
}

.site-header .site-shell {
  width: min(var(--header-max-width), calc(100% - clamp(1.1rem, 2.2vw, 2rem)));
}

.header-row {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: clamp(0.35rem, 0.8vw, 0.9rem);
}

.brand {
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-family: var(--font-title);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: clamp(1.12rem, 3vw, 1.42rem);
}

.brand-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.main-nav {
  margin-left: 48px;
}

.nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-link,
.services-toggle {
  box-sizing: border-box;
  border: 0;
  background: transparent;
  color: var(--text-strong);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1;
  font-weight: 550;
  border-radius: var(--radius-pill);
  height: 40px;
  padding: 0 12px;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  position: relative;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.services-toggle:hover,
.services-toggle:focus-visible {
  background: color-mix(in srgb, var(--accent-soft) 68%, transparent);
}

.nav-link[aria-current="page"],
.nav-link[aria-current="page"]:hover,
.nav-link[aria-current="page"]:focus-visible {
  padding: 0 12px;
  background: transparent;
  color: color-mix(in srgb, var(--text-strong) 92%, #000 8%);
}

.services-toggle[aria-expanded="true"] {
  background: color-mix(in srgb, var(--accent-soft) 56%, transparent);
}

.services-toggle.is-current {
  background: transparent;
}

.services-toggle.is-current:hover,
.services-toggle.is-current:focus-visible {
  background: transparent;
}

.nav-link[aria-current="page"]::after,
.practice-summary[aria-current="page"]::after,
.services-toggle.is-current::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #9adfbb 0%, #1f8753 50%, #9adfbb 100%);
}

.nav-item-services {
  position: relative;
}

.nav-item-practice {
  position: relative;
}

.practice-menu {
  position: relative;
}

.practice-menu summary {
  list-style: none;
}

.practice-menu summary::-webkit-details-marker {
  display: none;
}

.services-toggle {
  justify-content: flex-start;
  gap: 0.2rem;
}

.services-toggle svg,
.practice-summary svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}

.practice-summary {
  gap: 0.2rem;
}

.services-mobile-row {
  display: none;
}

.services-panel {
  position: absolute;
  top: calc(100% + 0.62rem);
  left: 0;
  width: min(600px, calc(100vw - 2rem));
  padding: 1rem;
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.68rem;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--line-strong) 70%, transparent);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: var(--shadow-1);
}

.services-panel.is-open {
  display: grid;
}

.practice-panel {
  position: absolute;
  top: calc(100% + 0.62rem);
  left: 0;
  width: min(360px, calc(100vw - 2rem));
  padding: 0.8rem;
  display: none;
  grid-template-columns: 1fr;
  gap: 0.58rem;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--line-strong) 70%, transparent);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: var(--shadow-1);
  z-index: 40;
}

.practice-menu[open] .practice-panel,
.nav-item-practice:hover .practice-panel,
.nav-item-practice:focus-within .practice-panel {
  display: grid;
}

.services-panel-list {
  grid-column: 1 / -1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.68rem;
}

.services-panel-item {
  min-width: 0;
}

.services-panel-title {
  grid-column: 1 / -1;
  margin: 0 0 0.2rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.services-link {
  display: block;
  width: 100%;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--line-strong) 70%, transparent);
  background: color-mix(in srgb, var(--surface-alt) 88%, transparent);
  padding: 0.78rem 0.82rem;
  text-decoration: none;
  line-height: 1.35;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.services-link:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 56%, var(--line-strong));
  background: color-mix(in srgb, var(--surface) 97%, transparent);
}

.services-link strong {
  display: flex;
  align-items: center;
  gap: 0.46rem;
  color: var(--text-strong);
}

.services-link strong::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  flex: 0 0 6px;
}

.services-link span {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.header-tools {
  margin-left: 40px;
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.nav-item-search {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-search-toggle {
  appearance: none;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line-strong) 72%, transparent);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  color: var(--text-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-search-toggle:hover,
.nav-search-toggle:focus-visible,
.nav-item-search.is-open .nav-search-toggle {
  border-color: color-mix(in srgb, var(--brand) 56%, var(--line-strong));
  background: rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 12px rgba(8, 43, 71, 0.12);
}

.nav-search-panel {
  position: absolute;
  top: calc(100% + 0.48rem);
  right: 0;
  min-width: min(330px, calc(100vw - 2rem));
  padding: 0.38rem;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--line-strong) 74%, transparent);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: var(--shadow-2);
  display: flex;
  align-items: center;
  gap: 0.36rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.nav-item-search.is-open .nav-search-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.nav-search-input {
  width: 100%;
  min-width: 0;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--line-strong) 72%, transparent);
  background: color-mix(in srgb, var(--surface) 98%, transparent);
  color: var(--text-strong);
  padding: 0.5rem 0.72rem;
  font: inherit;
}

.nav-search-input::placeholder {
  color: var(--text-muted);
}

.nav-search-submit {
  border: 1px solid color-mix(in srgb, var(--line-strong) 70%, transparent);
  background: linear-gradient(145deg, #0e5f8d, #0a4568);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 0.48rem 0.8rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.nav-search-submit:hover {
  background: linear-gradient(145deg, #11689a, #0b4d74);
}

.theme-btn {
  position: relative;
  --theme-toggle-width: 60px;
  --theme-toggle-height: 30px;
  --theme-thumb-size: 26px;
  --theme-thumb-offset: 2px;
  --theme-thumb-shift: calc(var(--theme-toggle-width) - var(--theme-thumb-size) - (var(--theme-thumb-offset) * 2));
  --theme-track-icon-size: 12px;
  --theme-thumb-icon-size: 13px;
  width: var(--theme-toggle-width);
  height: var(--theme-toggle-height);
  margin-left: 24px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--line-strong) 80%, transparent);
  background: linear-gradient(160deg, #eaf2fa, #dfeaf5);
  color: transparent;
  font-size: 0;
  line-height: 1;
  border-radius: var(--radius-pill);
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45), 0 4px 10px rgba(8, 43, 71, 0.12);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.theme-icon {
  position: relative;
  z-index: 1;
  width: var(--theme-track-icon-size);
  height: var(--theme-track-icon-size);
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 0;
  color: #35536f;
  transition: opacity 0.2s ease, filter 0.2s ease, color 0.2s ease;
  pointer-events: none;
}

.theme-glyph {
  width: 100%;
  height: 100%;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.theme-glyph-sun circle {
  fill: currentColor;
  stroke: none;
}

.theme-glyph-moon {
  fill: currentColor;
  stroke: none;
}

.theme-icon-sun {
  opacity: 1;
  color: #a06816;
}

.theme-icon-moon {
  opacity: 0.5;
  color: #35536f;
}

.theme-thumb {
  position: absolute;
  left: var(--theme-thumb-offset);
  top: var(--theme-thumb-offset);
  width: var(--theme-thumb-size);
  height: var(--theme-thumb-size);
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
  background: linear-gradient(170deg, #fff8d8, #ffd679);
  box-shadow: 0 2px 7px rgba(10, 39, 63, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.58);
  transform: translateX(0);
  transition: transform 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
  z-index: 2;
  pointer-events: none;
}

.theme-thumb-icon {
  grid-area: 1 / 1;
  width: var(--theme-thumb-icon-size);
  height: var(--theme-thumb-icon-size);
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 0;
  transition: opacity 0.2s ease, filter 0.2s ease, color 0.2s ease;
}

.theme-thumb-icon .theme-glyph {
  width: 100%;
  height: 100%;
}

.theme-thumb-icon-sun {
  opacity: 1;
  color: #8d5710;
}

.theme-thumb-icon-moon {
  opacity: 0;
  color: #10324e;
}

.theme-btn[aria-checked="true"] {
  background: linear-gradient(155deg, #34485c, #243649);
  border-color: color-mix(in srgb, #2d4660 64%, var(--line-strong));
}

.theme-btn[aria-checked="true"] .theme-thumb {
  transform: translateX(var(--theme-thumb-shift));
  background: linear-gradient(170deg, #e4f0ff, #9fc8ff);
  box-shadow: 0 5px 12px rgba(4, 14, 24, 0.38), inset 0 0 0 1px rgba(228, 240, 255, 0.58);
}

.theme-btn[aria-checked="true"] .theme-icon-sun {
  opacity: 0.45;
  color: #95a8bc;
}

.theme-btn[aria-checked="true"] .theme-icon-moon {
  opacity: 1;
  color: #dce9f7;
  filter: saturate(1.06);
}

.theme-btn[aria-checked="true"] .theme-thumb-icon-sun {
  opacity: 0;
}

.theme-btn[aria-checked="true"] .theme-thumb-icon-moon {
  opacity: 1;
  color: #10324e;
  filter: none;
}

.theme-btn:hover {
  border-color: color-mix(in srgb, var(--brand) 54%, var(--line-strong));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45), 0 6px 14px rgba(8, 43, 71, 0.18);
}

html[data-theme="dark"] .theme-btn {
  border-color: color-mix(in srgb, var(--brand-strong) 34%, var(--line-strong));
  background: linear-gradient(160deg, #1a3044, #142537);
  box-shadow: inset 0 0 0 1px rgba(198, 225, 246, 0.16), 0 5px 12px rgba(2, 10, 17, 0.42);
}

html[data-theme="dark"] .theme-btn[aria-checked="true"] {
  background: linear-gradient(155deg, #223b54, #15293c);
  border-color: color-mix(in srgb, var(--brand) 46%, var(--line-strong));
}

html[data-theme="dark"] .theme-btn[aria-checked="true"] .theme-thumb {
  background: linear-gradient(170deg, #d6e8ff, #8ab8f2);
  box-shadow: 0 5px 13px rgba(2, 8, 14, 0.58), inset 0 0 0 1px rgba(243, 250, 255, 0.72);
}

html[data-theme="dark"] .theme-btn[aria-checked="true"] .theme-icon-sun {
  opacity: 1;
  color: #ffd86a;
  filter: drop-shadow(0 0 4px rgba(255, 216, 106, 0.45));
}

html[data-theme="dark"] .theme-btn[aria-checked="true"] .theme-icon-moon {
  opacity: 0.78;
  color: #9cb5ca;
  filter: none;
}

html[data-theme="dark"] .theme-btn[aria-checked="false"] .theme-icon-sun {
  color: #70470a;
}

html[data-theme="dark"] .theme-btn[aria-checked="false"] .theme-icon-moon {
  opacity: 0.72;
  color: #9cb5ca;
}

.header-cta {
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menu-btn {
  display: none;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--brand-strong);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.menu-btn svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.1;
}

.page-main {
  padding-bottom: 3rem;
}

.section {
  padding-block: var(--section-space);
}

.section-tight {
  padding-block: var(--section-space-tight);
}

.section-head {
  margin-bottom: clamp(1.1rem, 2.4vw, 1.9rem);
}

.breadcrumb {
  margin: 0 0 clamp(0.72rem, 1.6vw, 0.98rem);
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.section-head p {
  max-width: 68ch;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-strong);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.kicker-compact {
  margin-bottom: 0.42rem;
}

.hero {
  padding-block: clamp(2.6rem, 5.5vw, 4.6rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(1.2rem, 2.4vw, 1.8rem);
  align-items: stretch;
}

.hero-copy {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--line-strong) 70%, transparent);
  border-radius: var(--radius-xl);
  padding: clamp(1.45rem, 3vw, 2.35rem) clamp(1.35rem, 3vw, 2.25rem) clamp(1.6rem, 3.2vw, 2.45rem);
  box-shadow: var(--shadow-2);
}

.hero-copy .kicker {
  margin-bottom: clamp(0.95rem, 2.3vw, 1.3rem);
}

.hero-copy h1 {
  margin: 0 0 clamp(1.5rem, 3.1vw, 1.75rem);
}

.hero-copy .hero-subline {
  margin: 0 0 clamp(1rem, 2.2vw, 1.2rem);
  font-size: clamp(1.06rem, 2vw, 1.22rem);
  font-weight: 500;
  line-height: 1.55;
  max-width: 52ch;
}

.hero-points {
  margin: 0;
  padding-left: 1.22rem;
  display: grid;
  gap: 0.52rem;
}

.hero-actions {
  margin-top: clamp(1.35rem, 2.8vw, 1.95rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-actions .btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-actions .btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0) 22%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 78%);
  transform: translateX(-72%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.58s ease, opacity 0.34s ease;
}

.hero-actions .btn:hover::after,
.hero-actions .btn:focus-visible::after {
  transform: translateX(72%);
  opacity: 0.28;
}

.hero-actions .btn:hover,
.hero-actions .btn:focus-visible {
  box-shadow: 0 12px 24px rgba(8, 43, 71, 0.2);
}

body[data-page="home"] .hero-actions {
  gap: clamp(0.75rem, 1.6vw, 0.95rem);
}

body[data-page="home"] .hero-actions .btn-primary {
  border: 0;
  background: linear-gradient(145deg, var(--cta-blue-start), var(--cta-blue-end));
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(8, 47, 74, 0.25);
}

body[data-page="home"] .hero-actions .btn-primary:hover,
body[data-page="home"] .hero-actions .btn-primary:focus-visible {
  background: linear-gradient(145deg, var(--cta-blue-hover-start), var(--cta-blue-hover-end));
  box-shadow: 0 12px 24px rgba(8, 47, 74, 0.28);
}

body[data-page="home"] .hero-actions .btn:nth-child(2),
body[data-page="home"] .hero-actions .btn:nth-child(3) {
  background: #ffffff;
  border: 1.5px solid var(--cta-blue-start);
  color: var(--cta-blue-end);
  box-shadow: 0 4px 10px -9px rgba(8, 47, 74, 0.18);
}

body[data-page="home"] .hero-actions .btn:nth-child(2):hover,
body[data-page="home"] .hero-actions .btn:nth-child(2):focus-visible,
body[data-page="home"] .hero-actions .btn:nth-child(3):hover,
body[data-page="home"] .hero-actions .btn:nth-child(3):focus-visible {
  background: color-mix(in srgb, var(--cta-blue-start) 10%, #ffffff);
  border-color: var(--cta-blue-start);
  color: var(--cta-blue-end);
  box-shadow: 0 6px 12px -10px rgba(8, 47, 74, 0.18);
}

body[data-page="home"] .hero-actions .btn:nth-child(2)::after,
body[data-page="home"] .hero-actions .btn:nth-child(3)::after {
  display: none;
}

html[data-theme="dark"] body[data-page="home"] .hero-actions .btn:nth-child(2),
html[data-theme="dark"] body[data-page="home"] .hero-actions .btn:nth-child(3) {
  background: color-mix(in srgb, var(--surface) 86%, #152636);
  border-color: color-mix(in srgb, var(--brand-strong) 34%, var(--line-strong));
  color: color-mix(in srgb, var(--brand-strong) 86%, var(--text-strong));
}

html[data-theme="dark"] body[data-page="home"] .hero-actions .btn:nth-child(2):hover,
html[data-theme="dark"] body[data-page="home"] .hero-actions .btn:nth-child(2):focus-visible,
html[data-theme="dark"] body[data-page="home"] .hero-actions .btn:nth-child(3):hover,
html[data-theme="dark"] body[data-page="home"] .hero-actions .btn:nth-child(3):focus-visible {
  background: color-mix(in srgb, var(--surface) 78%, #102131);
  border-color: color-mix(in srgb, var(--brand-strong) 46%, var(--line-strong));
  color: var(--brand-strong);
}

.hero-media {
  min-height: 340px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid color-mix(in srgb, var(--line-strong) 62%, transparent);
  position: relative;
  box-shadow: var(--shadow-1);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(9, 40, 62, 0.66));
}

.hero-media img {
  height: 100%;
  object-fit: cover;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.service-card {
  display: grid;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--line-strong) 75%, transparent);
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  box-shadow: 0 10px 26px rgba(8, 43, 71, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.service-card-link {
  color: inherit;
  text-decoration: none;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand) 42%, var(--line-strong));
  box-shadow: 0 16px 30px rgba(8, 43, 71, 0.14);
}

.service-card img {
  min-height: 184px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.service-card-body {
  padding: 1.02rem 1rem 1.1rem;
  display: grid;
  gap: 0.62rem;
}

.service-card p {
  color: color-mix(in srgb, var(--text-strong) 80%, var(--text-muted));
}

.service-mini-list {
  margin: 0;
  padding: 0.72rem 0 0;
  list-style: none;
  border-top: 1px solid color-mix(in srgb, var(--line-strong) 74%, transparent);
  display: grid;
  gap: 0.42rem;
}

.service-mini-list li {
  position: relative;
  padding-left: 1rem;
  line-height: 1.45;
  color: color-mix(in srgb, var(--text-strong) 84%, var(--text-muted));
}

.service-mini-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-soft) 76%, transparent);
}

.service-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 800;
  color: var(--brand-strong);
}

.service-card-cta::after {
  content: "›";
  font-size: 1rem;
}

body[data-page="home"] #leistungen .service-grid {
  gap: clamp(0.95rem, 1.6vw, 1.15rem);
  align-items: stretch;
}

body[data-page="home"] #leistungen .section-head .lead {
  max-width: 62ch;
  color: color-mix(in srgb, var(--text-body) 88%, var(--text-muted));
}

body[data-page="home"] #leistungen .service-card {
  grid-template-rows: auto auto 1fr;
  align-content: start;
  border-width: 2.5px;
  border-color: color-mix(in srgb, var(--brand) 22%, var(--line-strong));
  background: color-mix(in srgb, var(--surface) 98%, var(--surface-alt));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--surface) 72%, var(--line-strong)),
    0 14px 28px -22px rgba(8, 43, 71, 0.45),
    0 6px 14px -12px rgba(8, 43, 71, 0.25);
}

body[data-page="home"] #leistungen .service-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line-strong));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--surface) 74%, var(--line-strong)),
    0 20px 34px -22px rgba(8, 43, 71, 0.5),
    0 10px 18px -12px rgba(8, 43, 71, 0.3);
}

html[data-theme="dark"] body[data-page="home"] #leistungen .service-card {
  border-color: color-mix(in srgb, var(--brand-strong) 34%, var(--line-strong));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--line-strong) 74%, #0f2334),
    0 16px 30px -20px rgba(3, 10, 18, 0.64),
    0 8px 16px -12px rgba(3, 10, 18, 0.44);
}

html[data-theme="dark"] body[data-page="home"] #leistungen .service-card:hover {
  border-color: color-mix(in srgb, var(--brand-strong) 46%, var(--line-strong));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--line-strong) 78%, #11283a),
    0 20px 34px -20px rgba(3, 10, 18, 0.7),
    0 10px 18px -10px rgba(3, 10, 18, 0.5);
}

body[data-page="home"] #leistungen .service-card:focus-visible {
  outline: 2px solid var(--brand-focus);
  outline-offset: 2px;
}

body[data-page="home"] #leistungen .service-card img {
  width: 100%;
  min-height: 190px;
  display: block;
}

body[data-page="home"] #leistungen .service-card-title-badge {
  margin: 0.82rem 0.92rem 0;
  padding: 0.5rem 0.72rem;
  border-radius: 9px;
  border: 1px solid color-mix(in srgb, var(--line-strong) 64%, transparent);
  background: color-mix(in srgb, var(--surface-alt) 90%, var(--surface));
}

body[data-page="home"] #leistungen .service-card-title-badge h3 {
  margin: 0;
  font-size: clamp(1.04rem, 1.4vw, 1.2rem);
  line-height: 1.24;
  font-weight: 800;
  color: var(--text-strong);
  overflow-wrap: anywhere;
}

body[data-page="home"] #leistungen .service-card-body {
  padding: 0.72rem 0.92rem 1rem;
  gap: 0.62rem;
  align-content: start;
}

body[data-page="home"] #leistungen .service-card-body p {
  margin: 0;
  font-size: 0.99rem;
  line-height: 1.5;
}

body[data-page="home"] #leistungen .service-mini-list {
  margin: 0;
  padding-top: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
  border-top-color: color-mix(in srgb, var(--line-strong) 78%, transparent);
}

body[data-page="home"] #leistungen .service-mini-list li {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.56rem;
  padding-left: 0;
  font-size: 0.99rem;
  line-height: 1.42;
  color: color-mix(in srgb, var(--text-strong) 88%, var(--text-body));
  overflow-wrap: anywhere;
}

body[data-page="home"] #leistungen .service-mini-list li::before {
  position: static;
  flex: 0 0 6px;
  margin-top: 0.42em;
  width: 6px;
  height: 6px;
  background: color-mix(in srgb, var(--accent) 88%, #0f8f78);
  box-shadow: none;
}

body[data-page="home"] #leistungen .service-card-cta {
  margin-top: 0.12rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--brand-strong) 88%, var(--text-strong));
}

body[data-page="home"] #leistungen .service-card-cta::after {
  content: "\203A";
  font-size: 1.02rem;
}

.case-seo-showcase {
  margin-top: clamp(1rem, 2.4vw, 1.35rem);
}

.case-seo-showcase--secondary {
  margin-top: clamp(1.15rem, 2.7vw, 1.7rem);
  padding-top: clamp(0.75rem, 1.8vw, 1rem);
  border-top: 1px solid color-mix(in srgb, var(--line-strong) 55%, transparent);
}

.case-seo-head {
  margin-bottom: clamp(0.85rem, 1.9vw, 1.15rem);
}

.case-seo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.72rem, 1.7vw, 1rem);
}

.case-seo-card {
  padding: clamp(0.92rem, 1.9vw, 1.15rem);
  display: grid;
  align-content: start;
  gap: 0.58rem;
  border-color: color-mix(in srgb, var(--case-accent, var(--brand)) 24%, var(--line-strong));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--case-accent, var(--accent)) 5%, transparent), transparent 62%),
    color-mix(in srgb, var(--surface) 96%, transparent);
}

.case-seo-card--compact {
  padding: clamp(0.78rem, 1.5vw, 0.98rem);
  gap: 0.48rem;
  box-shadow: 0 10px 26px color-mix(in srgb, var(--ink) 6%, transparent);
}

.case-seo-card h3 {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  line-height: 1.28;
}

.case-seo-card p {
  margin: 0;
  color: var(--text-body);
  font-size: 0.94rem;
  line-height: 1.48;
}

.case-seo-card--compact p {
  font-size: 0.9rem;
  line-height: 1.43;
}

.case-seo-card strong {
  color: var(--text-strong);
}

.case-seo-actions {
  margin-top: 0.16rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.46rem 0.72rem;
}

.case-seo-actions .case-link {
  font-weight: 700;
  font-size: 0.93rem;
}

@media (max-width: 1180px) {
  .case-seo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 660px) {
  .case-seo-grid {
    grid-template-columns: 1fr;
  }
}

/* Anker-Sektionen auf den DachCheck-Seiten unter dem Sticky-Header freihalten,
   damit seitenuebergreifende Deeplinks (z. B. ?roof_reason=...#dachcheck-anfrage)
   und In-Page-Sprunglinks die Ueberschrift nicht hinter dem Header verstecken. */
.dachcheck-page section[id] {
  scroll-margin-top: calc(var(--header-height, 74px) + 1rem);
}

.filter-bar {
  margin-top: 1rem;
  scroll-margin-top: calc(var(--header-height, 74px) + 1rem);
  padding: clamp(0.88rem, 2vw, 1.1rem);
  border-color: color-mix(in srgb, var(--line-strong) 70%, transparent);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
}

.filter-bar h2 {
  margin: 0 0 0.58rem;
  font-size: clamp(1.05rem, 2.1vw, 1.22rem);
}

.filter-bar [data-case-filter-list] {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.52rem;
  align-items: stretch;
}

.filter-bar [data-case-filter] {
  appearance: none;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--case-accent, var(--accent)) 34%, var(--line-strong));
  background: color-mix(in srgb, var(--case-accent, var(--accent)) 8%, var(--surface));
  color: color-mix(in srgb, var(--case-accent, var(--accent)) 20%, var(--text-strong));
  border-radius: var(--radius-pill);
  min-height: 2.38rem;
  padding: 0.46rem 1rem 0.96rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.filter-bar .case-filter-chip .case-group-label-text {
  display: inline-flex;
  justify-content: center;
  max-width: 100%;
  text-align: center;
  line-height: 1.14;
  padding-bottom: 0;
}

.filter-bar .case-filter-chip::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.42rem;
  height: 4px;
  border-radius: 999px;
  background: var(--case-accent, var(--accent));
  opacity: 0.78;
  transition: opacity 0.2s ease;
}

.filter-bar [data-case-filter]:hover,
.filter-bar [data-case-filter]:focus-visible {
  border-color: color-mix(in srgb, var(--case-accent, var(--accent)) 58%, var(--line-strong));
  background: color-mix(in srgb, var(--case-accent, var(--accent)) 14%, var(--surface));
}

.filter-bar [data-case-filter][aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--case-accent, var(--accent)) 82%, var(--line-strong));
  background: color-mix(in srgb, var(--case-accent, var(--accent)) 28%, var(--surface));
  color: color-mix(in srgb, var(--case-accent, var(--accent)) 46%, var(--text-strong));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--case-accent, var(--accent)) 42%, transparent),
    0 2px 5px -3px color-mix(in srgb, var(--case-accent, var(--accent)) 36%, transparent);
}

.filter-bar [data-case-filter][aria-pressed="true"] .case-group-label-text {
  font-weight: 700;
}

.filter-bar [data-case-filter]:hover::after,
.filter-bar [data-case-filter]:focus-visible::after {
  opacity: 0.95;
}

.filter-bar [data-case-filter][aria-pressed="true"]::after {
  opacity: 1;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--case-accent, var(--accent)) 34%, transparent);
}

.filter-bar [data-case-filter-list] > .case-filter-chip--all {
  background: var(--surface-alt);
  border: 1.5px solid var(--line-strong);
  color: var(--text-body);
  border-radius: 999px;
}

.filter-bar [data-case-filter-list] > .case-filter-chip--all ~ [data-case-filter] {
  border-radius: 999px;
}

.filter-bar .case-filter-chip--all:hover,
.filter-bar .case-filter-chip--all:focus-visible {
  background: color-mix(in srgb, var(--surface-alt) 88%, var(--brand) 12%);
  border-color: color-mix(in srgb, var(--brand) 34%, var(--line-strong));
  color: var(--text-strong);
}

.filter-bar .case-filter-chip--all[aria-pressed="true"] {
  background: linear-gradient(145deg, var(--cta-blue-start), var(--cta-blue-end));
  color: #ffffff;
  border-color: transparent;
  box-shadow:
    0 8px 14px -10px rgba(8, 43, 71, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.filter-bar .case-filter-chip--all::after {
  display: block;
  background: #ffffff;
  opacity: 0.92;
  box-shadow: none;
}

.filter-bar .case-filter-chip--all[aria-pressed="true"]::after,
.filter-bar .case-filter-chip--all:hover::after,
.filter-bar .case-filter-chip--all:focus-visible::after {
  box-shadow: none;
}

@media (max-width: 1360px) {
  .filter-bar [data-case-filter-list] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .filter-bar [data-case-filter-list] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .filter-bar [data-case-filter-list] {
    grid-template-columns: 1fr;
  }
}

.filter-bar input[data-case-search-input] {
  width: 100%;
  margin-top: 0.58rem;
  min-height: 2.45rem;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--line-strong) 74%, transparent);
  background: color-mix(in srgb, var(--surface) 98%, transparent);
  color: var(--text-strong);
  padding: 0.56rem 0.86rem;
  font: inherit;
}

.filter-bar input[data-case-search-input]::placeholder {
  color: var(--text-muted);
}

.filter-bar input[data-case-search-input].is-guided-highlight {
  border-color: color-mix(in srgb, var(--brand) 64%, var(--line-strong));
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--brand) 24%, transparent),
    0 0 0 6px color-mix(in srgb, var(--accent-soft) 30%, transparent);
  animation: case-search-highlight 0.85s ease-out 1;
}

@keyframes case-search-highlight {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 0%, transparent);
  }

  36% {
    box-shadow:
      0 0 0 4px color-mix(in srgb, var(--brand) 26%, transparent),
      0 0 0 8px color-mix(in srgb, var(--accent-soft) 34%, transparent);
  }

  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 0%, transparent);
  }
}

.filter-bar [data-case-search-status] {
  margin: 0.56rem 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  min-height: 1.32rem;
}

.filter-bar .case-zero-cta {
  width: 100%;
  margin-top: 0.42rem;
  padding: 0;
  border: 0;
  background: transparent;
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 0.56rem;
  flex-wrap: wrap;
}

.filter-bar .case-zero-cta.is-visible {
  display: flex;
}

.filter-bar .case-zero-cta-text {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: right;
}

.filter-bar .case-zero-cta .btn {
  min-height: 2.1rem;
  padding-inline: 0.98rem;
}

.cases-layout {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.86rem;
}

.cases-nav {
  padding: 0.45rem;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
  scrollbar-color: color-mix(in srgb, var(--brand) 52%, var(--line-strong)) color-mix(in srgb, var(--surface-alt) 86%, transparent);
}

.cases-nav::-webkit-scrollbar {
  width: 11px;
}

.cases-nav::-webkit-scrollbar-track {
  background: color-mix(in srgb, var(--surface-alt) 86%, transparent);
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line-strong) 38%, transparent);
}

.cases-nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--brand) 54%, #dff1ff),
    color-mix(in srgb, var(--brand-strong) 68%, #8cccf2)
  );
}

.cases-nav::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--brand) 66%, #e6f5ff),
    color-mix(in srgb, var(--brand-strong) 78%, #9dd7f8)
  );
}

.cases-nav::-webkit-scrollbar-button {
  width: 0;
  height: 0;
  display: none;
}

.cases-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.38rem;
}

.cases-nav [data-case-empty] {
  margin: 0;
  padding: 0.85rem 0.7rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.case-empty-card {
  margin: 0;
  padding: 0.78rem 0.8rem;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--line-strong) 68%, transparent);
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  display: grid;
  gap: 0.5rem;
}

.case-empty-title {
  margin: 0;
  color: var(--text-strong);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.4;
}

.case-empty-copy {
  margin: 0;
  color: var(--text-body);
  font-size: 0.88rem;
  line-height: 1.45;
}

.case-empty-action {
  width: fit-content;
}

.case-category--gebaeude {
  --case-accent: var(--case-yellow);
}

.case-category--vermessung {
  --case-accent: var(--case-blue);
}

.case-category--landwirtschaft {
  --case-accent: var(--case-green);
}

.case-category--sicherheit {
  --case-accent: var(--case-red);
}

.case-nav-item {
  appearance: none;
  width: 100%;
  text-align: left;
  border: 1px solid color-mix(in srgb, var(--case-accent, var(--accent)) 26%, var(--line-strong));
  background: color-mix(in srgb, var(--case-accent, var(--accent)) 4%, var(--surface));
  color: var(--text-strong);
  border-radius: var(--radius-md);
  padding: 0.68rem 0.78rem 0.68rem 0.96rem;
  display: grid;
  gap: 0.28rem;
  font: inherit;
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.case-nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.46rem;
  bottom: 0.46rem;
  width: 3px;
  border-radius: 999px;
  background: var(--case-accent, var(--accent));
  opacity: 0.45;
  transition: opacity 0.2s ease;
}

.case-nav-item:hover,
.case-nav-item:focus-visible {
  border-color: color-mix(in srgb, var(--case-accent, var(--accent)) 54%, var(--line-strong));
  background: color-mix(in srgb, var(--case-accent, var(--accent)) 10%, var(--surface-alt));
}

.case-nav-item[aria-current="true"] {
  border-color: color-mix(in srgb, var(--case-accent, var(--accent)) 68%, var(--line-strong));
  background: color-mix(in srgb, var(--case-accent, var(--accent)) 16%, var(--surface-alt));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--case-accent, var(--accent)) 30%, transparent);
}

.case-nav-item:hover::before,
.case-nav-item:focus-visible::before {
  opacity: 0.8;
}

.case-nav-item[aria-current="true"]::before {
  opacity: 1;
}

.case-nav-item strong {
  font-size: calc(0.94rem * 1.1);
  line-height: 1.32;
}

.case-nav-item small {
  color: var(--text-body);
  line-height: 1.4;
}

.case-group-label {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 0.16rem 0.52rem 0.2rem;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-strong);
  background: color-mix(in srgb, var(--case-accent, var(--accent)) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--case-accent, var(--accent)) 42%, transparent);
}

.case-group-label-text {
  display: inline-flex;
  line-height: 1.1;
}

.case-nav-item:hover .case-group-label,
.case-nav-item:focus-visible .case-group-label {
  background: color-mix(in srgb, var(--case-accent, var(--accent)) 20%, transparent);
  border-color: color-mix(in srgb, var(--case-accent, var(--accent)) 50%, transparent);
}

.case-nav-item[aria-current="true"] .case-group-label {
  background: color-mix(in srgb, var(--case-accent, var(--accent)) 24%, transparent);
  border-color: color-mix(in srgb, var(--case-accent, var(--accent)) 58%, transparent);
}

.cases-detail .case-detail-group {
  margin-bottom: 0.14rem;
}

.cases-detail {
  padding: clamp(0.95rem, 2.2vw, 1.25rem);
  min-height: 320px;
}

.cases-detail [data-case-back-to-list] {
  margin-bottom: 0.78rem;
}

.cases-detail article {
  display: grid;
  gap: 0.58rem;
}

.cases-detail h2 {
  margin: 0;
  font-size: clamp(1.18rem, 2vw, 1.46rem);
}

.cases-detail h3 {
  margin: 0.34rem 0 0;
  font-size: 0.77rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brand-strong);
}

.cases-detail p {
  margin: 0;
  color: var(--text-body);
}

.cases-detail img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.cases-detail [data-case-image-placeholder] {
  min-height: 150px;
  border-radius: var(--radius-md);
  border: 1px dashed color-mix(in srgb, var(--line-strong) 70%, transparent);
  background: color-mix(in srgb, var(--surface-alt) 78%, transparent);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.cases-detail .detail-actions {
  margin-top: 0.38rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cases-detail [data-case-empty] {
  margin: 0;
  color: var(--text-muted);
}

@media (min-width: 900px) {
  .cases-layout {
    grid-template-columns: minmax(290px, 0.95fr) minmax(0, 1.7fr);
    align-items: start;
  }

  .cases-nav {
    position: sticky;
    top: calc(var(--header-height) + 0.85rem);
    max-height: calc(100vh - var(--header-height) - 1.8rem);
    overflow: auto;
  }

  .cases-detail [data-case-back-to-list] {
    display: none;
  }
}

/* Rechtstexte (Datenschutz, Impressum): klare Lesefuehrung */
body[data-page="legal"] .breadcrumb {
  margin: 0 0 0.8rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

body[data-page="legal"] .page-main .surface-card {
  padding: clamp(1rem, 2.1vw, 1.5rem);
  max-width: 100%;
  min-width: 0;
}

body[data-page="legal"] .page-main .surface-card > h1 {
  margin-bottom: 0.2rem;
  font-size: clamp(1.72rem, 7vw, 2.35rem);
  line-height: 1.14;
  hyphens: auto;
  overflow-wrap: anywhere;
}

body[data-page="legal"] .page-main .surface-card > * {
  min-width: 0;
}

body[data-page="legal"] .page-main .surface-card section + section {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid color-mix(in srgb, var(--line-strong) 58%, transparent);
}

body[data-page="legal"] .page-main .surface-card h2 {
  font-size: clamp(1.02rem, 1.9vw, 1.24rem);
}

body[data-page="legal"] .page-main .surface-card p,
body[data-page="legal"] .page-main .surface-card li {
  font-size: 0.96rem;
  hyphens: auto;
  overflow-wrap: anywhere;
}

body[data-page="legal"] .page-main .surface-card a,
body[data-page="legal"] .page-main .surface-card code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

body[data-page="legal"] .page-main address {
  font-style: normal;
  line-height: 1.6;
}

/* Defensive overflow guard: keep legal text inside card on very narrow viewports */
body[data-page="legal"] .page-main .surface-card,
body[data-page="legal"] .page-main .surface-card > *,
body[data-page="legal"] .page-main .surface-card > section,
body[data-page="legal"] .page-main .surface-card > section > * {
  min-width: 0;
}

body[data-page="legal"] .page-main .surface-card > h1,
body[data-page="legal"] .page-main .surface-card p,
body[data-page="legal"] .page-main .surface-card li,
body[data-page="legal"] .page-main .surface-card a,
body[data-page="legal"] .page-main .surface-card code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Dienstleistungen-Seite: klare Hierarchie, ruhige Materialwirkung, starke Nutzerfuehrung */
body[data-page="services"] {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--bg-soft) 92%, var(--surface)) 0%,
    color-mix(in srgb, var(--bg) 88%, var(--surface-alt)) 100%
  );
}

body[data-page="services"]::before,
body[data-page="services"]::after {
  display: none;
}

body[data-page="services"] .site-header {
  background: color-mix(in srgb, var(--surface) 90%, var(--bg-soft));
  border-bottom: 1px solid color-mix(in srgb, var(--line-strong) 76%, transparent);
  backdrop-filter: blur(8px) saturate(110%);
}

body[data-page="services"] .site-header.is-sticky {
  background: color-mix(in srgb, var(--surface) 95%, var(--bg-soft));
  box-shadow: var(--shadow-2);
}

/* Dienstleistungs-Detailseiten: Scan- und Entscheidungslayout */
.service-detail-page .container {
  width: min(1080px, calc(100% - 2rem));
  margin-inline: auto;
  padding-top: clamp(0.95rem, 2vw, 1.55rem);
}

.service-detail-page .breadcrumb {
  margin: 0 0 clamp(0.92rem, 2vw, 1.28rem);
  color: var(--text-muted);
  font-size: 0.86rem;
}

.service-detail-page .section-title {
  margin: 0;
  font-size: clamp(1.28rem, 2.4vw, 1.84rem);
}

.service-detail-page h1.section-title {
  margin-top: 0;
  margin-bottom: clamp(0.5rem, 1.25vw, 0.86rem);
  font-size: clamp(1.92rem, 4vw, 2.72rem);
}

.service-detail-page .section-subtitle {
  margin: 0;
  font-size: clamp(1rem, 1.55vw, 1.12rem);
  color: color-mix(in srgb, var(--text-strong) 70%, var(--text-muted));
  max-width: 66ch;
}

.service-detail-page .section-title-underlined {
  position: relative;
  padding-bottom: 0.5rem;
}

.service-detail-page .section-title-underlined::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: clamp(88px, 16vw, 132px);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand-strong) 76%, var(--accent)), transparent 86%);
}

.service-detail-page .section-tight {
  padding-block: clamp(1.4rem, 3vw, 2.15rem);
}

.service-detail-page .section-tight > .section-title-underlined {
  margin-bottom: clamp(0.82rem, 1.8vw, 1.18rem);
}

.service-detail-page .section-tight > h3 {
  margin-top: clamp(0.78rem, 1.8vw, 1.14rem);
  margin-bottom: clamp(0.34rem, 0.9vw, 0.56rem);
}

.service-detail-page .section-tight > p + h3 {
  margin-top: clamp(1rem, 2.1vw, 1.4rem);
}

.service-detail-page .section-tight > p + p {
  margin-top: clamp(0.72rem, 1.45vw, 1rem);
}

.service-detail-page .section-tight > ul,
.service-detail-page .section-tight > ol,
.service-detail-page .section-tight > .grid,
.service-detail-page .section-tight > .notice-box {
  margin-top: clamp(0.74rem, 1.55vw, 1.04rem);
}

.service-detail-page .section-tight.related-cases {
  padding-top: clamp(1.62rem, 3.2vw, 2.24rem);
  padding-bottom: clamp(1.78rem, 3.5vw, 2.46rem);
}

.service-detail-page .section-tight.related-cases > .section-title-underlined {
  margin-bottom: clamp(1rem, 2.2vw, 1.44rem);
}

.service-detail-page .section-tight.related-cases > .check-list:not(.decision-facts-grid) {
  margin-top: 0;
  gap: clamp(0.62rem, 1.2vw, 0.9rem);
}

.service-detail-page .section-tight.related-cases > .check-list:not(.decision-facts-grid) li {
  padding-left: 1.12rem;
  line-height: 1.52;
}

.service-detail-page .section-tight.related-cases > .check-list + p {
  margin-top: clamp(0.92rem, 1.9vw, 1.28rem);
}

.service-detail-page .section-tight + .section-tight {
  border-top: 1px solid color-mix(in srgb, var(--line-strong) 62%, transparent);
}

.location-overview-page .container {
  width: min(1180px, calc(100% - 2rem));
}

.location-hero {
  padding-block: clamp(1.2rem, 3vw, 2.35rem) clamp(1.55rem, 3.4vw, 2.6rem);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.72fr);
  gap: clamp(1.1rem, 3vw, 2rem);
  align-items: end;
  border-bottom: 1px solid color-mix(in srgb, var(--line-strong) 62%, transparent);
}

.location-hero-copy {
  min-width: 0;
}

.location-overview-page .location-hero h1.section-title {
  max-width: 20ch;
  font-size: clamp(2.08rem, 4.3vw, 3.35rem);
  line-height: 1.04;
}

.location-hero .section-subtitle {
  max-width: 60ch;
  margin-top: clamp(0.7rem, 1.6vw, 1rem);
  color: color-mix(in srgb, var(--text-strong) 76%, var(--text-muted));
}

.location-hero-actions {
  margin-top: clamp(1rem, 2vw, 1.35rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
}

.location-fact-strip {
  margin: 0;
  display: grid;
  gap: 0.62rem;
}

.location-fact-strip div {
  padding: 0.78rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--line-strong) 72%, transparent);
  border-left: 4px solid color-mix(in srgb, var(--brand) 72%, var(--accent));
  background: color-mix(in srgb, var(--surface-alt) 78%, transparent);
}

.location-fact-strip dt {
  margin: 0 0 0.18rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.location-fact-strip dd {
  margin: 0;
  color: var(--text-strong);
  font-weight: 800;
  line-height: 1.35;
}

.location-section-head {
  max-width: 78ch;
}

.location-section-head p {
  margin-top: clamp(0.72rem, 1.45vw, 1rem);
}

.location-zone-grid {
  margin-top: clamp(1rem, 2vw, 1.35rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.86rem;
}

.location-zone {
  min-width: 0;
  padding: clamp(0.92rem, 1.8vw, 1.12rem);
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--line-strong) 72%, transparent);
  background: color-mix(in srgb, var(--surface) 95%, var(--surface-alt));
}

.location-zone-core {
  background: color-mix(in srgb, var(--surface) 92%, var(--accent-soft));
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line-strong));
}

.location-zone-label {
  display: inline-flex;
  margin-bottom: 0.58rem;
  color: color-mix(in srgb, var(--brand-strong) 82%, var(--accent));
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.location-zone h3 {
  margin: 0 0 0.48rem;
  color: var(--text-strong);
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
}

.location-zone p {
  margin: 0;
}

.location-city-links {
  margin-top: 0.78rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.location-city-links a,
.location-city-links span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.34rem 0.58rem;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--line-strong) 72%, transparent);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  color: var(--brand-strong);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
}

.location-city-links a:hover,
.location-city-links a:focus-visible {
  border-color: color-mix(in srgb, var(--brand) 58%, var(--line-strong));
  background: color-mix(in srgb, var(--surface-alt) 92%, transparent);
}

.location-zone-link {
  display: inline-flex;
  margin-top: 0.78rem;
  color: var(--brand);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.location-zone-note {
  margin-top: clamp(0.8rem, 1.6vw, 1.05rem);
  color: var(--text-muted);
  font-size: 0.94rem;
}

.location-overview-page .location-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(0.72rem, 1.6vw, 0.95rem);
  align-items: stretch;
}

.location-overview-page .location-card-grid .trust-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
}

.location-overview-page .location-card-grid .trust-item strong,
.location-overview-page .location-card-grid .trust-item p {
  overflow-wrap: anywhere;
}

/* Leistungs-Auswahl (6 Kacheln): ausgewogen 3 + 3 statt 4 + 2 */
@media (min-width: 621px) {
  .location-overview-page .location-card-grid--services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .location-overview-page .location-card-grid--services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Abstand zwischen Leistungs-Kacheln und dem "Jetzt NEU"-Hinweis vergroessern */
.service-new-hint {
  margin-top: clamp(1.4rem, 2.8vw, 2.1rem);
}

/* "Jetzt NEU"-Badge vor dem DachCheck-Hinweis */
.new-flag {
  display: inline-block;
  margin-right: 0.5em;
  padding: 0.14em 0.62em;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.72em;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}

.service-detail-page .service-hero-media + .section-tight.decision-fit {
  margin-top: clamp(1rem, 2.2vw, 1.45rem);
}

.service-detail-page .section-tight.decision-fit + .section-tight.decision-intro {
  margin-top: clamp(0.92rem, 2vw, 1.35rem);
  border-top: 0;
}

.service-detail-page .service-hero-media {
  margin-top: clamp(1.2rem, 2.4vw, 1.7rem) !important;
  padding: clamp(0.92rem, 1.8vw, 1.12rem) !important;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--line-strong) 66%, transparent);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow-2);
}

.service-detail-page .service-hero-media img {
  border-radius: calc(var(--radius-md) - 2px);
  min-height: clamp(220px, 42vw, 360px);
  object-fit: cover;
}

.service-detail-page .decision-fit {
  border-radius: var(--radius-lg);
  padding: clamp(0.95rem, 2.3vw, 1.2rem);
  background: color-mix(in srgb, var(--surface) 95%, var(--surface-alt));
  box-shadow: var(--shadow-2);
}

.service-detail-page .decision-fit-grid {
  margin-top: 0.22rem;
  display: grid;
}

.service-detail-page .decision-fit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
}

.service-detail-page .decision-fit-row + .decision-fit-row {
  border-top: 1px solid color-mix(in srgb, var(--line-strong) 64%, transparent);
}

.service-detail-page .decision-fit-cell {
  padding-block: 0.78rem;
}

.service-detail-page .decision-fit-situation {
  padding-right: 2rem;
}

.service-detail-page .decision-fit-benefit {
  border-left: 1px solid color-mix(in srgb, var(--line-strong) 62%, transparent);
  padding-left: 2rem;
}

.service-detail-page .decision-fit-kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.44rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand-strong);
}

.service-detail-page .decision-fit-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 72%, var(--brand));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-soft) 68%, transparent);
}

.service-detail-page .decision-fit-cell p {
  margin: 0;
}

.service-detail-page .decision-fit-cell p + p {
  margin-top: 0.28rem;
}

.service-detail-page .decision-fit-cell p:last-child {
  color: var(--text-body);
  max-width: 62ch;
}

.service-detail-page .decision-intro {
  border-radius: var(--radius-md);
  padding: clamp(0.92rem, 2.1vw, 1.18rem);
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  box-shadow: var(--shadow-2);
}

.service-detail-page .decision-intro p {
  margin: 0;
  max-width: 76ch;
}

.service-detail-page .decision-intro p + p {
  margin-top: 0.7rem;
}

.service-detail-page .decision-facts-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid color-mix(in srgb, var(--line-strong) 62%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line-strong) 62%, transparent);
}

.service-detail-page .decision-facts-grid li {
  margin: 0;
  padding: 0.58rem 0.08rem;
  display: grid;
  grid-template-columns: minmax(180px, 0.92fr) minmax(0, 1.78fr);
  gap: 0.82rem;
  align-items: start;
  border-top: 1px solid color-mix(in srgb, var(--line-strong) 56%, transparent);
  color: var(--text-body);
}

.service-detail-page .decision-facts-grid li:first-child {
  border-top: 0;
}

.service-detail-page .decision-facts-grid li strong {
  display: block;
  margin: 0;
  color: var(--text-strong);
  font-weight: 800;
}

.service-detail-page .check-list:not(.decision-facts-grid) {
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.44rem;
}

.service-detail-page .check-list:not(.decision-facts-grid) li {
  position: relative;
  margin: 0;
  padding-left: 1rem;
  color: var(--text-body);
}

.service-detail-page .check-list:not(.decision-facts-grid) li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 70%, var(--brand));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-soft) 66%, transparent);
}

.service-detail-page .grid.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.84rem;
}

.service-detail-page .trust-item {
  padding: 0.9rem 0.95rem;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  border: 1px solid color-mix(in srgb, var(--line-strong) 68%, transparent);
  box-shadow: var(--shadow-2);
}

.service-detail-page .trust-item strong {
  display: block;
  margin-bottom: 0.44rem;
  color: var(--text-strong);
}

.service-detail-page .trust-item p + p {
  margin-top: clamp(0.46rem, 0.95vw, 0.66rem);
}

/* Clickable standort cards */
.trust-item-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.service-detail-page .trust-item-link strong,
.trust-item-link strong {
  color: var(--brand);
}

.trust-item-link p {
  color: var(--text-body);
}

.trust-item-cta {
  margin-top: auto;
  padding-top: 0.6rem;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.92rem;
}

.trust-item-link:hover,
.trust-item-link:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line-strong));
  box-shadow: var(--shadow-3, 0 10px 28px rgba(15, 95, 141, 0.16));
}

.trust-item-link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.service-detail-page .notice-box {
  margin-top: 0.86rem;
  padding: 0.76rem 0.84rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid color-mix(in srgb, var(--brand) 64%, var(--accent));
  background: color-mix(in srgb, var(--surface-alt) 74%, transparent);
}

.service-detail-page .notice-box p {
  margin: 0;
}

.service-detail-page .notice-box p + p {
  margin-top: 0.54rem;
}

.service-detail-page .list-steps {
  margin: 0.58rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.56rem;
}

.service-detail-page .list-steps li {
  margin: 0;
  padding: 0.7rem 0.8rem 0.72rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid color-mix(in srgb, var(--brand) 58%, var(--accent));
  background: color-mix(in srgb, var(--surface-alt) 72%, transparent);
}

.services-page .services-hero {
  padding-block: clamp(2.8rem, 5vw, 4.4rem) clamp(1.1rem, 2vw, 1.5rem);
  text-align: left;
}

.services-hero-inner {
  max-width: none;
}

.services-page h1 {
  font-size: clamp(2.05rem, 4.3vw, 3.2rem);
  line-height: 1.1;
  max-width: 14ch;
}

.services-lead {
  margin-top: 0.95rem;
  max-width: 56ch;
  font-size: clamp(1.02rem, 1.45vw, 1.16rem);
  color: var(--text-body);
}

.services-hero-actions {
  margin-top: 1.35rem;
  display: flex;
  align-items: center;
  gap: 0;
}

.services-page .services-catalog {
  padding-top: clamp(2.4rem, 3.8vw, 3rem);
}

.services-section-head {
  margin-bottom: clamp(1.1rem, 2.8vw, 1.9rem);
}

.services-section-head h2 {
  font-size: clamp(1.45rem, 2.8vw, 2.2rem);
  margin-bottom: 0.48rem;
}

.services-section-head p {
  max-width: 66ch;
  color: var(--text-body);
}

.services-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.service-offer-card {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border: 1px solid color-mix(in srgb, var(--line-strong) 74%, transparent);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-offer-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 28%, var(--line-strong));
  box-shadow: var(--shadow-1);
}

.service-offer-image {
  height: 186px;
  object-fit: cover;
  border-radius: 0;
}

.service-offer-content {
  padding: 1.05rem 1.05rem 1.12rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.78rem;
  min-height: 100%;
}

.service-offer-meta {
  margin: 0;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.service-offer-content h3 {
  margin: 0;
  font-size: clamp(1.16rem, 1.6vw, 1.34rem);
}

.service-offer-intro {
  margin: 0;
  color: var(--text-body);
}

.service-offer-chips {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 0.46rem;
}

.service-offer-chips li {
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0.46rem 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.22;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  color: color-mix(in srgb, var(--brand-strong) 82%, var(--text-body));
  background: color-mix(in srgb, var(--surface-alt) 88%, var(--accent-soft));
  border: 1px solid color-mix(in srgb, var(--line-strong) 74%, transparent);
}

@media (max-width: 420px) {
  .service-offer-chips {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1280px) {
  .service-offer-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.service-offer-when {
  margin: 0;
  padding-top: 0.72rem;
  border-top: 1px solid color-mix(in srgb, var(--line-strong) 74%, transparent);
  font-size: 0.93rem;
  color: var(--text-body);
}

.service-offer-when strong {
  color: var(--text-strong);
}

.service-offer-cta {
  margin-top: auto;
  align-self: stretch;
  text-align: center;
}

.services-guidance {
  padding-top: clamp(2.2rem, 4.2vw, 3rem);
}

.services-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.services-step {
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border: 1px solid color-mix(in srgb, var(--line-strong) 74%, transparent);
  border-radius: var(--radius-md);
  padding: 0.92rem 0.9rem;
  box-shadow: var(--shadow-2);
}

.services-step-number {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.88rem;
  color: #fff;
  background: var(--brand);
  margin-bottom: 0.58rem;
}

.services-step h3 {
  font-size: 1rem;
  margin-bottom: 0.28rem;
}

.services-step p {
  margin: 0;
  font-size: 0.92rem;
}

.services-decision-cta {
  padding-top: clamp(1.5rem, 3vw, 2.2rem);
}

.services-decision-inner {
  border-radius: var(--radius-xl);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--brand-strong) 42%, #06283f),
    color-mix(in srgb, var(--brand) 30%, #041f33)
  );
  color: #e6f4ff;
  padding: clamp(1.2rem, 2.3vw, 1.7rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-1);
}

.services-decision-copy {
  max-width: 66ch;
}

.services-kicker-compact {
  margin-bottom: 0.45rem;
}

.services-kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.services-decision-copy .services-kicker {
  color: #b8dcf4;
}

.services-decision-copy h2 {
  color: #f4faff;
  margin-bottom: 0.42rem;
}

.services-decision-copy p {
  margin: 0;
  color: #cfe5f5;
}

.services-decision-actions {
  display: inline-flex;
  gap: 0.56rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.services-decision-cta .btn-secondary {
  background: color-mix(in srgb, #ffffff 7%, transparent);
  border-color: rgba(184, 216, 238, 0.56);
  color: #eaf6ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.services-decision-cta .btn-secondary:hover {
  background: color-mix(in srgb, #ffffff 12%, transparent);
  border-color: rgba(212, 233, 248, 0.72);
}

html[data-theme="dark"] .services-step-number {
  color: #0b2538;
}

.auto-strip {
  position: relative;
  background: color-mix(in srgb, var(--surface) 94%, var(--surface-alt));
  border-radius: var(--radius-xl);
  padding: 1.15rem;
  box-shadow:
    0 24px 38px -30px rgba(16, 44, 70, 0.34),
    0 10px 20px -18px rgba(16, 44, 70, 0.2);
}

.auto-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

html[data-theme="dark"] .auto-strip {
  background: color-mix(in srgb, var(--surface) 88%, #0c1824);
  box-shadow:
    0 30px 48px -28px rgba(0, 0, 0, 0.62),
    0 14px 24px -18px rgba(0, 0, 0, 0.52);
}

html[data-theme="dark"] .auto-strip::before {
  box-shadow: inset 0 1px 0 rgba(201, 227, 245, 0.1);
}

.scroller-frame {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.45rem;
}

.h-scroll-arrow {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 0;
  background: color-mix(in srgb, var(--surface) 95%, var(--surface-alt));
  color: var(--brand-strong);
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow:
    0 12px 20px -16px rgba(16, 44, 70, 0.36),
    0 6px 12px -12px rgba(16, 44, 70, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.h-scroll-arrow:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    0 18px 28px -16px rgba(16, 44, 70, 0.42),
    0 9px 15px -11px rgba(16, 44, 70, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

html[data-theme="dark"] .h-scroll-arrow {
  background: color-mix(in srgb, var(--surface) 92%, #0b1723);
  box-shadow:
    0 16px 24px -14px rgba(0, 0, 0, 0.62),
    0 8px 14px -10px rgba(0, 0, 0, 0.54),
    inset 0 1px 0 rgba(201, 227, 245, 0.1);
}

html[data-theme="dark"] .h-scroll-arrow:hover:not(:disabled) {
  box-shadow:
    0 22px 32px -14px rgba(0, 0, 0, 0.66),
    0 10px 16px -10px rgba(0, 0, 0, 0.56),
    inset 0 1px 0 rgba(201, 227, 245, 0.12);
}

.h-scroll-arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.h-scroll-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  border-radius: calc(var(--radius-lg) + 2px);
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.h-scroll-viewport::-webkit-scrollbar {
  display: none;
}

.h-scroll-viewport.is-dragging {
  cursor: grabbing;
}

.h-scroll-track {
  display: flex;
  align-items: stretch;
  gap: 0.8rem;
  padding: 0.12rem;
}

.h-scroll-card {
  flex: 0 0 clamp(255px, 31vw, 332px);
  position: relative;
  display: grid;
  background: color-mix(in srgb, var(--surface) 97%, var(--surface-alt));
  border-radius: var(--radius-lg);
  box-shadow:
    0 16px 26px -20px rgba(16, 44, 70, 0.38),
    0 8px 16px -14px rgba(16, 44, 70, 0.26);
  overflow: hidden;
  transform: translateY(0);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.h-scroll-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.h-scroll-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 24px 34px -18px rgba(16, 44, 70, 0.44),
    0 12px 18px -12px rgba(16, 44, 70, 0.3);
}

html[data-theme="dark"] .h-scroll-card {
  background: color-mix(in srgb, var(--surface) 94%, #0c1723);
  box-shadow:
    0 20px 32px -16px rgba(0, 0, 0, 0.66),
    0 10px 18px -12px rgba(0, 0, 0, 0.56);
}

html[data-theme="dark"] .h-scroll-card::before {
  box-shadow: inset 0 1px 0 rgba(201, 227, 245, 0.1);
}

html[data-theme="dark"] .h-scroll-card:hover {
  box-shadow:
    0 26px 40px -16px rgba(0, 0, 0, 0.7),
    0 12px 20px -12px rgba(0, 0, 0, 0.58);
}

.h-scroll-card .card-body {
  padding: 1rem;
  gap: 0.6rem;
}

.h-scroll-card h3 {
  font-size: 1.04rem;
}

.h-scroll-card--case .card-body {
  padding: 0.94rem 0.96rem 1rem;
  gap: 0.66rem;
}

.case-study-body {
  display: grid;
  align-content: start;
  gap: 0.66rem;
}

.case-study-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.52rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: color-mix(in srgb, var(--brand-strong) 72%, var(--text-strong));
  background: color-mix(in srgb, var(--accent-soft) 60%, var(--surface));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.case-study-title {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.26;
}

.case-study-flow {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.54rem;
  position: relative;
}

.case-study-flow::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 7px;
  bottom: 7px;
  width: 1px;
  background: color-mix(in srgb, var(--line-strong) 68%, transparent);
  opacity: 0.82;
}

.case-study-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 0.56rem;
  align-items: start;
}

.case-step-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: color-mix(in srgb, var(--brand-strong) 70%, var(--text-strong));
  background: color-mix(in srgb, var(--surface) 90%, var(--surface-alt));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 6px 10px -8px rgba(16, 44, 70, 0.42);
}

.case-step-glyph {
  width: 13px;
  height: 13px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.case-step-copy {
  display: grid;
  gap: 0.14rem;
  min-width: 0;
}

.case-step-heading {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--brand-strong);
}

.case-step-text {
  margin: 0;
  color: var(--text-body);
  font-size: 0.88rem;
  line-height: 1.44;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.case-study-step--result {
  padding: 0.38rem 0.44rem 0.42rem 0.02rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent-soft) 42%, transparent);
}

.case-study-step--result .case-step-icon {
  color: color-mix(in srgb, var(--accent) 78%, var(--brand-strong));
  background: color-mix(in srgb, var(--accent-soft) 65%, var(--surface));
}

.case-study-step--result .case-step-heading {
  color: color-mix(in srgb, var(--accent) 68%, var(--brand-strong));
}

.case-study-link {
  margin-top: 0.06rem;
}

html[data-theme="dark"] .case-study-badge {
  background: color-mix(in srgb, var(--accent-soft) 46%, var(--surface));
  box-shadow: inset 0 1px 0 rgba(210, 231, 246, 0.14);
}

html[data-theme="dark"] .case-study-flow::before {
  background: color-mix(in srgb, var(--line-strong) 64%, #2c4559);
}

html[data-theme="dark"] .case-step-icon {
  background: color-mix(in srgb, var(--surface) 92%, #102235);
  box-shadow:
    inset 0 1px 0 rgba(201, 227, 245, 0.13),
    0 8px 12px -10px rgba(0, 0, 0, 0.62);
}

html[data-theme="dark"] .case-study-step--result {
  background: color-mix(in srgb, var(--accent-soft) 34%, transparent);
}

.news-overview-list {
  margin-top: clamp(0.9rem, 2.1vw, 1.35rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.95rem, 2.3vw, 1.35rem);
}

body[data-page="news-overview"] .breadcrumb {
  margin-bottom: clamp(0.42rem, 1vw, 0.62rem);
}

body[data-page="news-overview"] .section-head {
  margin-bottom: clamp(1.35rem, 2.8vw, 2.2rem);
}

body[data-page="news-overview"] .section-head h1 {
  margin: 0 0 clamp(0.8rem, 1.9vw, 1.08rem);
  line-height: 1.12;
}

body[data-page="news-overview"] .section-head p {
  margin: 0;
  max-width: 70ch;
  line-height: 1.62;
  font-size: clamp(1rem, 1.25vw, 1.1rem);
}

body[data-page="news-overview"] .section-head p + p {
  margin-top: 0.58rem;
}

body[data-page="news-overview"] .section-head .small {
  font-size: 0.95rem;
}

.news-overview-card {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--line-strong) 74%, transparent);
  background: color-mix(in srgb, var(--surface) 97%, transparent);
  box-shadow:
    0 14px 24px -20px rgba(10, 44, 70, 0.34),
    0 6px 12px -10px rgba(10, 44, 70, 0.22);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.news-overview-card:hover,
.news-overview-card:focus-within {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 44%, var(--line-strong));
  box-shadow:
    0 24px 34px -22px rgba(10, 44, 70, 0.42),
    0 10px 16px -10px rgba(10, 44, 70, 0.3);
}

.news-overview-card.is-targeted {
  border-color: color-mix(in srgb, var(--brand) 56%, var(--line-strong));
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent),
    0 20px 28px -20px rgba(10, 44, 70, 0.38);
}

.news-overview-card .news-card-image {
  width: 100%;
  min-height: 176px;
  max-height: 242px;
  display: block;
  object-fit: cover;
}

.news-overview-content {
  padding: clamp(0.88rem, 1.8vw, 1.05rem);
  display: grid;
  align-content: start;
  gap: 0.74rem;
  min-height: 100%;
}

.news-overview-meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.58rem;
  flex-wrap: wrap;
}

.news-meta {
  display: flex;
  gap: 0.52rem;
  flex-wrap: wrap;
  font-size: 0.77rem;
  color: var(--text-muted);
}

.news-overview-card .news-meta {
  margin: 0;
}

.news-overview-card .news-meta > * {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.news-overview-card .news-meta > * + * {
  padding-left: 0.64rem;
}

.news-overview-card .news-meta > * + *::before {
  content: "";
  position: absolute;
  left: 0.22rem;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: color-mix(in srgb, var(--line-strong) 78%, transparent);
}

.news-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.52rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  background: var(--accent-soft);
  color: color-mix(in srgb, var(--accent) 82%, #01291f);
}

.news-source-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin-left: auto;
  padding: 0.2rem 0.58rem;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--line-strong) 72%, transparent);
  background: color-mix(in srgb, var(--surface-alt) 78%, transparent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: color-mix(in srgb, var(--text-strong) 62%, var(--text-muted));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-overview-card h3 {
  margin: 0;
  font-size: clamp(1.06rem, 1.56vw, 1.24rem);
  line-height: 1.3;
  color: var(--text-strong);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.news-overview-excerpt {
  margin: 0;
  color: var(--text-body);
  line-height: 1.64;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.news-overview-actions {
  margin-top: auto;
  padding-top: 0.08rem;
  display: flex;
  align-items: center;
  gap: 0.52rem;
  flex-wrap: wrap;
}

.news-card-image {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.case-link,
.news-link {
  color: var(--brand-strong);
  font-weight: 800;
  text-decoration: none;
}

.news-overview-card .news-link {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  border-radius: var(--radius-pill);
  line-height: 1.1;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.news-overview-card .news-link--detail {
  padding: 0.52rem 0.86rem;
  background: linear-gradient(145deg, var(--cta-blue-start), var(--cta-blue-end));
  color: #fff;
  box-shadow: 0 10px 16px -12px rgba(8, 47, 74, 0.4);
}

.news-overview-card .news-link--detail::after {
  content: "›";
  font-size: 0.98rem;
}

.news-overview-card .news-link--detail:hover,
.news-overview-card .news-link--detail:focus-visible {
  transform: translateY(-1px);
  background: linear-gradient(145deg, var(--cta-blue-hover-start), var(--cta-blue-hover-end));
}

.news-overview-card .news-link--source {
  padding: 0.49rem 0.74rem;
  border: 1px solid color-mix(in srgb, var(--line-strong) 74%, transparent);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  color: color-mix(in srgb, var(--brand-strong) 76%, var(--text-strong));
}

.news-overview-card .news-link--source:hover,
.news-overview-card .news-link--source:focus-visible {
  border-color: color-mix(in srgb, var(--brand) 52%, var(--line-strong));
  background: color-mix(in srgb, var(--surface-alt) 88%, var(--surface));
  color: var(--brand-strong);
}

@media (min-width: 760px) {
  .news-overview-card:not(.news-overview-card--no-image) {
    grid-template-columns: minmax(180px, 34%) minmax(0, 1fr);
  }

  .news-overview-card:not(.news-overview-card--no-image) .news-card-image {
    min-height: 100%;
    max-height: none;
    height: 100%;
    aspect-ratio: auto;
  }

  .news-overview-card .news-overview-content {
    padding: clamp(0.94rem, 1.7vw, 1.14rem);
  }
}

@media (max-width: 520px) {
  .news-overview-card .news-link--detail {
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 1060px) {
  .news-overview-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

html[data-theme="dark"] .news-overview-card {
  background: color-mix(in srgb, var(--surface) 92%, #102132);
  border-color: color-mix(in srgb, var(--line-strong) 76%, transparent);
  box-shadow:
    0 20px 30px -18px rgba(0, 0, 0, 0.62),
    0 10px 16px -10px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .news-overview-card:hover,
html[data-theme="dark"] .news-overview-card:focus-within {
  border-color: color-mix(in srgb, var(--brand) 42%, var(--line-strong));
  box-shadow:
    0 26px 38px -20px rgba(0, 0, 0, 0.66),
    0 12px 18px -10px rgba(0, 0, 0, 0.54);
}

html[data-theme="dark"] .news-overview-card.is-targeted {
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--brand) 26%, transparent),
    0 22px 30px -18px rgba(0, 0, 0, 0.62);
}

html[data-theme="dark"] .news-source-chip {
  border-color: color-mix(in srgb, var(--line-strong) 74%, #35526a);
  background: color-mix(in srgb, var(--surface-alt) 70%, #0f2336);
  color: color-mix(in srgb, var(--text-body) 82%, var(--text-muted));
}

html[data-theme="dark"] .news-overview-card .news-link--source {
  border-color: color-mix(in srgb, var(--line-strong) 72%, #345068);
  background: color-mix(in srgb, var(--surface) 90%, #102335);
  color: color-mix(in srgb, var(--brand-strong) 74%, var(--text-body));
}

body[data-page="news-detail"] .news-article,
body[data-page="news-static"] .news-article {
  padding: clamp(1.12rem, 2.4vw, 1.85rem);
  border-color: color-mix(in srgb, var(--line-strong) 74%, transparent);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  display: grid;
  align-content: start;
  gap: clamp(0.72rem, 1.8vw, 1rem);
}

body[data-page="news-detail"] .news-article .news-meta,
body[data-page="news-static"] .news-article .news-meta {
  margin: 0;
  font-size: 0.81rem;
  line-height: 1.4;
}

body[data-page="news-detail"] .news-article h1,
body[data-page="news-static"] .news-article h1 {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(1.44rem, 3vw, 2.16rem);
  line-height: 1.16;
}

body[data-page="news-detail"] .news-article .news-card-image,
body[data-page="news-static"] .news-article .news-card-image {
  width: 100%;
  min-height: clamp(210px, 42vw, 420px);
  max-height: clamp(260px, 52vw, 470px);
  border-radius: var(--radius-md);
  object-fit: cover;
  margin-top: 0.12rem;
}

body[data-page="news-detail"] .news-article > p:not(.news-meta),
body[data-page="news-static"] .news-article > p:not(.news-meta) {
  margin: 0;
  max-width: 72ch;
  font-size: clamp(1rem, 1.22vw, 1.1rem);
  line-height: 1.72;
  color: color-mix(in srgb, var(--text-body) 92%, var(--text-strong));
}

body[data-page="news-detail"] .news-article .article-content,
body[data-page="news-static"] .news-article .article-content {
  margin-top: 0.12rem;
  max-width: 74ch;
  display: grid;
  gap: 0.88rem;
}

body[data-page="news-detail"] .news-article .article-content > *,
body[data-page="news-static"] .news-article .article-content > * {
  margin: 0;
}

body[data-page="news-detail"] .news-article .article-content h2,
body[data-page="news-static"] .news-article .article-content h2 {
  margin-top: 0.46rem;
  font-size: clamp(1.16rem, 1.82vw, 1.42rem);
  line-height: 1.28;
  color: var(--text-strong);
}

body[data-page="news-detail"] .news-article .article-content h3,
body[data-page="news-static"] .news-article .article-content h3 {
  margin-top: 0.28rem;
  font-size: clamp(1.04rem, 1.5vw, 1.18rem);
  line-height: 1.32;
  color: var(--text-strong);
}

body[data-page="news-detail"] .news-article .article-content p,
body[data-page="news-detail"] .news-article .article-content li,
body[data-page="news-static"] .news-article .article-content p,
body[data-page="news-static"] .news-article .article-content li {
  color: var(--text-body);
  line-height: 1.72;
}

body[data-page="news-detail"] .news-article .article-content ul,
body[data-page="news-detail"] .news-article .article-content ol,
body[data-page="news-static"] .news-article .article-content ul,
body[data-page="news-static"] .news-article .article-content ol {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
}

body[data-page="news-detail"] [data-news-detail-nav],
body[data-page="news-static"] [data-news-detail-nav] {
  margin-top: clamp(0.8rem, 1.9vw, 1.06rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.56rem;
}

body[data-page="news-detail"] [data-news-detail-nav] .btn,
body[data-page="news-static"] [data-news-detail-nav] .btn {
  min-height: 2.3rem;
}

.strip-controls {
  margin-top: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
}

.strip-copy {
  display: grid;
  gap: 0.26rem;
}

.strip-hint {
  color: var(--text-body);
  font-size: 0.9rem;
  font-weight: 600;
}

.strip-mobile-hint {
  display: none;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.strip-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
}

.auto-strip .strip-actions .btn-secondary {
  border: 0;
  background: color-mix(in srgb, var(--surface) 95%, var(--surface-alt));
  box-shadow:
    0 14px 22px -16px rgba(16, 44, 70, 0.36),
    0 7px 12px -11px rgba(16, 44, 70, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.auto-strip .strip-actions .btn-secondary:hover,
.auto-strip .strip-actions .btn-secondary:focus-visible {
  background: color-mix(in srgb, var(--surface) 95%, var(--surface-alt));
  transform: translateY(-2px);
  box-shadow:
    0 20px 30px -16px rgba(16, 44, 70, 0.42),
    0 9px 14px -10px rgba(16, 44, 70, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

html[data-theme="dark"] .auto-strip .strip-actions .btn-secondary {
  background: color-mix(in srgb, var(--surface) 93%, #0b1723);
  box-shadow:
    0 18px 28px -14px rgba(0, 0, 0, 0.64),
    0 8px 14px -10px rgba(0, 0, 0, 0.54),
    inset 0 1px 0 rgba(201, 227, 245, 0.1);
}

html[data-theme="dark"] .auto-strip .strip-actions .btn-secondary:hover,
html[data-theme="dark"] .auto-strip .strip-actions .btn-secondary:focus-visible {
  background: color-mix(in srgb, var(--surface) 93%, #0b1723);
  box-shadow:
    0 24px 34px -14px rgba(0, 0, 0, 0.68),
    0 10px 16px -10px rgba(0, 0, 0, 0.56),
    inset 0 1px 0 rgba(201, 227, 245, 0.12);
}

.strip-progress {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
}

.strip-progress span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 30%, var(--line));
}

.strip-progress span:first-child {
  background: color-mix(in srgb, var(--brand) 58%, var(--line));
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr);
  gap: 1rem;
}

.about-panel,
.about-facts {
  border-color: color-mix(in srgb, var(--line-strong) 72%, transparent);
}

.about-panel {
  padding: clamp(1.1rem, 2.2vw, 1.5rem);
}

.about-panel .lead {
  margin-top: 0.72rem;
}

.projects-cta-actions {
  margin-top: 0.12rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.58rem;
}

body[data-page="projects"] .breadcrumb {
  margin-bottom: clamp(0.84rem, 1.8vw, 1.16rem);
}

body[data-page="projects"] .section-head {
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
}

body[data-page="projects"] .current-projects-title-media {
  margin: clamp(0.2rem, 0.7vw, 0.4rem) 0 clamp(1.7rem, 3.5vw, 2.3rem);
  display: block;
  width: min(100%, 74ch);
}

body[data-page="projects"] .current-projects-title-media .news-card-image {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: fill;
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="projects"] .section-head .kicker {
  margin-bottom: clamp(1rem, 2vw, 1.25rem);
}

body[data-page="projects"] .section-head h1 {
  margin: 0;
  line-height: 1.04;
  hyphens: auto;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

body[data-page="projects"] .section-head .lead {
  margin-top: clamp(1rem, 2.2vw, 1.45rem);
  max-width: 58ch;
  line-height: 1.7;
}

body[data-page="projects"] .current-projects-stage {
  --project-flow-indent: clamp(1.2rem, 2.6vw, 1.65rem);
  margin-top: clamp(1rem, 2.4vw, 1.7rem);
  width: min(100%, 74ch);
  max-width: none;
  margin-inline: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="projects"] .current-projects-stage .news-overview-card {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  cursor: default;
  transition: none;
}

body[data-page="projects"] .current-projects-stage .news-overview-card:hover,
body[data-page="projects"] .current-projects-stage .news-overview-card:focus-within {
  transform: none;
  border: 0;
  box-shadow: none;
}

body[data-page="projects"] .current-projects-stage .news-overview-content {
  order: 1;
  padding: 0;
  align-content: start;
  gap: clamp(1.9rem, 3.8vw, 2.9rem);
}

body[data-page="projects"] .current-projects-stage .current-projects-overview,
body[data-page="projects"] .current-projects-stage .current-projects-report-intro,
body[data-page="projects"] .current-projects-stage .current-projects-report {
  max-width: none;
}

body[data-page="projects"] .current-projects-stage .current-projects-overview {
  display: grid;
  gap: clamp(0.9rem, 1.9vw, 1.2rem);
  padding: var(--project-flow-indent);
  border: 1px solid color-mix(in srgb, var(--line-strong) 54%, transparent);
  border-radius: clamp(1rem, 2vw, 1.3rem);
  background: color-mix(in srgb, var(--surface) 98%, var(--surface-alt) 2%);
  box-shadow: 0 22px 38px -34px rgba(10, 44, 70, 0.18);
}

body[data-page="projects"] .current-projects-stage .news-overview-meta-row {
  justify-content: flex-start;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.15rem;
}

body[data-page="projects"] .current-projects-stage .news-badge {
  padding: 0.14rem 0.5rem;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, transparent);
  background: color-mix(in srgb, var(--accent-soft) 46%, var(--surface));
  color: color-mix(in srgb, var(--accent) 54%, var(--text-body));
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

body[data-page="projects"] .current-projects-stage .news-source-chip {
  margin-left: 0;
  padding: 0.14rem 0.52rem;
  border-color: color-mix(in srgb, var(--line-strong) 54%, transparent);
  background: color-mix(in srgb, var(--surface-alt) 34%, transparent);
  color: color-mix(in srgb, var(--text-body) 76%, var(--text-muted));
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

body[data-page="projects"] .current-projects-stage .current-projects-overview h2,
body[data-page="projects"] .current-projects-stage .current-projects-report-intro h2 {
  margin: 0;
  font-size: clamp(1.2rem, 1.95vw, 1.45rem);
  line-height: 1.22;
}

body[data-page="projects"] .current-projects-stage .current-projects-overview-lead {
  margin: 0;
  line-height: 1.72;
  color: var(--text-strong);
}

body[data-page="projects"] .current-projects-stage .current-projects-overview-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.2rem;
  padding-top: clamp(0.95rem, 2vw, 1.2rem);
  border-top: 1px solid color-mix(in srgb, var(--line-strong) 58%, transparent);
}

body[data-page="projects"] .current-projects-stage .current-projects-overview-fact {
  display: grid;
  gap: 0.24rem;
}

body[data-page="projects"] .current-projects-stage .current-projects-overview-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

body[data-page="projects"] .current-projects-stage .current-projects-overview-value {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--text-strong);
}

body[data-page="projects"] .current-projects-stage .current-projects-report-intro {
  display: grid;
  gap: 0.9rem;
  margin-top: clamp(1.1rem, 2.4vw, 1.55rem);
  padding-inline: var(--project-flow-indent);
  padding-top: 0;
  border-top: 0;
}

body[data-page="projects"] .current-projects-stage .current-projects-report-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--brand-strong) 72%, var(--text-muted));
}

body[data-page="projects"] .current-projects-stage .current-projects-report-intro > p:not(.current-projects-report-kicker) {
  margin: 0;
  line-height: 1.72;
  color: var(--text-body);
}

body[data-page="projects"] .current-projects-stage .current-projects-report {
  display: grid;
  gap: clamp(1.45rem, 2.8vw, 1.9rem);
}

body[data-page="projects"] .current-projects-stage .current-projects-report-cta {
  display: grid;
  gap: 0.8rem;
  padding:
    clamp(1.35rem, 2.7vw, 1.7rem)
    var(--project-flow-indent)
    var(--project-flow-indent);
  border-top: 1px solid color-mix(in srgb, var(--line-strong) 58%, transparent);
}

body[data-page="projects"] .current-projects-stage .current-projects-report-cta h2 {
  margin: 0;
  font-size: clamp(1.12rem, 1.85vw, 1.34rem);
  line-height: 1.24;
  color: var(--text-strong);
}

body[data-page="projects"] .current-projects-stage .current-projects-report-cta p:not(.current-projects-report-kicker) {
  margin: 0;
  line-height: 1.68;
  color: var(--text-body);
}

body[data-page="projects"] .current-projects-stage .current-projects-inline-media,
body[data-page="projects"] .current-projects-stage .current-projects-inline-media-group {
  display: grid;
}

body[data-page="projects"] .current-projects-stage .current-projects-report-section .current-projects-inline-media,
body[data-page="projects"] .current-projects-stage .current-projects-report-section .current-projects-inline-media-group {
  margin-top: clamp(1rem, 2.2vw, 1.3rem);
}

body[data-page="projects"] .current-projects-stage .current-projects-report-intro .current-projects-inline-media {
  margin-top: clamp(1rem, 2.2vw, 1.3rem);
}

body[data-page="projects"] .current-projects-stage .current-projects-report-section {
  display: grid;
  gap: 0.78rem;
  padding-top: clamp(1.35rem, 2.7vw, 1.7rem);
  padding-inline: var(--project-flow-indent);
  border-top: 1px solid color-mix(in srgb, var(--line-strong) 58%, transparent);
}

body[data-page="projects"] .current-projects-stage .current-projects-report-section:first-child {
  padding-top: 0;
  border-top: 0;
}

body[data-page="projects"] .current-projects-stage .current-projects-report-section h3 {
  margin: 0 0 0.52rem;
  display: block;
  font-size: clamp(1.02rem, 1.5vw, 1.14rem);
  line-height: 1.35;
  color: var(--text-strong);
  overflow: visible;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
}

body[data-page="projects"] .current-projects-stage .current-projects-report-section p {
  margin: 0;
  line-height: 1.7;
  color: var(--text-body);
}

body[data-page="projects"] .current-projects-stage .current-projects-report-section p + p {
  margin-top: 0;
}

body[data-page="projects"] .current-projects-stage .current-projects-media-item {
  margin: 0;
  display: grid;
  gap: 0.68rem;
}

body[data-page="projects"] .current-projects-stage .current-projects-media-item .news-card-image {
  width: 100%;
  min-height: 0;
  height: auto;
  max-height: none;
  display: block;
  border: 1px solid color-mix(in srgb, var(--line-strong) 48%, transparent);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface-alt) 24%, transparent);
  object-fit: cover;
}

body[data-page="projects"] .current-projects-stage .current-projects-media-item--main .news-card-image {
  border: 0;
  border-radius: calc(var(--radius-lg) - 4px);
  box-shadow: 0 28px 40px -36px rgba(10, 44, 70, 0.24);
}

body[data-page="projects"] .current-projects-stage .current-projects-media-item figcaption {
  margin: 0;
  padding-top: 0.55rem;
  border-top: 1px solid color-mix(in srgb, var(--line-strong) 48%, transparent);
  font-size: 0.75rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--text-body) 74%, var(--text-muted));
}

body[data-page="projects"] .current-projects-stage .current-projects-inline-media-group {
  gap: 0.82rem;
}

body[data-page="projects"] .current-projects-stage .current-projects-image-main {
  aspect-ratio: 4 / 3;
  object-position: center 36%;
}

body[data-page="projects"] .current-projects-stage .current-projects-media-item--wide .news-card-image {
  aspect-ratio: 16 / 9;
}

body[data-page="projects"] .current-projects-stage .current-projects-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.8vw, 1rem);
}

body[data-page="projects"] .current-projects-stage .current-projects-media-grid .current-projects-media-item .news-card-image {
  aspect-ratio: 3 / 2;
}

@media (max-width: 959px) {
  body[data-page="projects"] .current-projects-stage .current-projects-overview-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="projects"] .current-projects-stage .current-projects-image-main {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 640px) {
  body[data-page="projects"] .section-head h1 {
    font-size: clamp(1.72rem, 8.7vw, 2.3rem);
    line-height: 1.02;
  }

  body[data-page="projects"] .current-projects-stage .news-overview-card {
    padding: 0;
  }

  body[data-page="projects"] .current-projects-stage .current-projects-overview-facts {
    grid-template-columns: 1fr;
  }
}

body[data-page="cases"] .cases-intro-card {
  margin-top: clamp(2.2rem, 4.5vw, 3.2rem);
  border-color: color-mix(in srgb, var(--brand) 28%, var(--line-strong));
  background: color-mix(in srgb, var(--surface) 95%, var(--accent-soft) 5%);
  box-shadow:
    inset 0 3px 0 color-mix(in srgb, var(--brand) 34%, transparent),
    0 16px 26px -22px rgba(10, 44, 70, 0.36),
    0 8px 14px -12px rgba(10, 44, 70, 0.24);
}

body[data-page="cases"] .cases-intro-card h2 {
  margin: 0;
  font-size: clamp(1.24rem, 2.2vw, 1.56rem);
}

body[data-page="cases"] .cases-intro-card p {
  margin-bottom: 0;
}

html[data-theme="dark"] body[data-page="cases"] .cases-intro-card {
  border-color: color-mix(in srgb, var(--brand-strong) 34%, var(--line-strong));
  background: color-mix(in srgb, var(--surface) 91%, #102336);
}

html[data-theme="dark"] body[data-page="projects"] .current-projects-stage {
  background: transparent;
  box-shadow: none;
}

html[data-theme="dark"] body[data-page="projects"] .current-projects-stage .news-overview-card {
  border-color: color-mix(in srgb, var(--line-strong) 72%, #29445c);
  background: transparent;
  box-shadow: none;
}

html[data-theme="dark"] body[data-page="projects"] .current-projects-stage .news-overview-card:hover,
html[data-theme="dark"] body[data-page="projects"] .current-projects-stage .news-overview-card:focus-within {
  border-color: color-mix(in srgb, var(--line-strong) 72%, #29445c);
  box-shadow: none;
}

html[data-theme="dark"] body[data-page="projects"] .current-projects-stage .current-projects-overview {
  border-color: color-mix(in srgb, var(--line-strong) 72%, #29445c);
  background: color-mix(in srgb, var(--surface) 95%, #102132);
  box-shadow: 0 28px 46px -40px rgba(0, 0, 0, 0.64);
}

html[data-theme="dark"] body[data-page="projects"] .current-projects-stage .news-badge {
  border-color: color-mix(in srgb, var(--accent) 24%, #18362d);
  background: color-mix(in srgb, var(--accent) 18%, var(--surface));
  color: color-mix(in srgb, #c9efe5 76%, var(--text-body));
}

html[data-theme="dark"] body[data-page="projects"] .current-projects-stage .news-source-chip {
  border-color: color-mix(in srgb, var(--line-strong) 70%, #335068);
  background: color-mix(in srgb, var(--surface-alt) 34%, #102538);
  color: color-mix(in srgb, var(--text-body) 78%, #9ab0c2);
}

html[data-theme="dark"] body[data-page="projects"] .current-projects-stage .current-projects-overview-facts,
html[data-theme="dark"] body[data-page="projects"] .current-projects-stage .current-projects-report-intro,
html[data-theme="dark"] body[data-page="projects"] .current-projects-stage .current-projects-report-section,
html[data-theme="dark"] body[data-page="projects"] .current-projects-stage .current-projects-report-cta,
html[data-theme="dark"] body[data-page="projects"] .current-projects-stage .current-projects-media-item figcaption {
  border-top-color: color-mix(in srgb, var(--line-strong) 70%, #36546c);
}

html[data-theme="dark"] body[data-page="projects"] .current-projects-stage .current-projects-overview h2,
html[data-theme="dark"] body[data-page="projects"] .current-projects-stage .current-projects-report-intro h2,
html[data-theme="dark"] body[data-page="projects"] .current-projects-stage .current-projects-report-section h3,
html[data-theme="dark"] body[data-page="projects"] .current-projects-stage .current-projects-report-cta h2,
html[data-theme="dark"] body[data-page="projects"] .current-projects-stage .current-projects-overview-value {
  color: color-mix(in srgb, var(--brand-strong) 78%, var(--text-strong));
}

html[data-theme="dark"] body[data-page="projects"] .current-projects-stage .current-projects-media-item .news-card-image {
  border-color: color-mix(in srgb, var(--line-strong) 72%, #35526a);
  background: color-mix(in srgb, var(--surface-alt) 34%, #102538);
}

html[data-theme="dark"] body[data-page="projects"] .current-projects-stage .current-projects-media-item--main .news-card-image,
html[data-theme="dark"] body[data-page="projects"] .current-projects-stage .current-projects-inline-media--hero .news-card-image {
  box-shadow: 0 26px 40px -38px rgba(0, 0, 0, 0.78);
}

html[data-theme="dark"] body[data-page="projects"] .current-projects-stage .current-projects-inline-media-group {
  color: inherit;
}

@media (max-width: 520px) {
  body[data-page="projects"] .current-projects-stage .current-projects-media-grid {
    grid-template-columns: 1fr;
  }

  .projects-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.prose {
  margin-top: 0.78rem;
  max-width: 72ch;
}

.prose h3 {
  margin-top: 1.05rem;
  margin-bottom: 0.35rem;
}

.prose p + p {
  margin-top: 0.72rem;
}

.about-benefits {
  margin: 0.9rem 0 0;
  padding: 0 0 0 1.05rem;
  display: grid;
  gap: 0.4rem;
}

.about-benefits li::marker {
  color: var(--accent);
}

.about-facts {
  padding: 1.05rem 1.08rem;
}

.about-facts h3 {
  margin-bottom: 0.72rem;
}

.fact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.68rem;
}

.fact-list li {
  padding: 0.62rem 0.68rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--line-strong) 78%, transparent);
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  display: grid;
  gap: 0.2rem;
}

.fact-list span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
}

.fact-list strong {
  font-size: 0.95rem;
  line-height: 1.4;
}

.company-slideshow {
  position: relative;
  margin-top: 0.86rem;
  min-height: clamp(220px, 26vw, 330px);
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--line-strong) 72%, transparent);
  background: color-mix(in srgb, var(--surface-alt) 56%, transparent);
  overflow: hidden;
  box-shadow: 0 16px 26px -22px rgba(10, 44, 70, 0.32);
}

.company-slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    inset 0 -42px 60px -54px rgba(5, 22, 36, 0.58);
}

.company-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 1.25s ease, transform 5.5s ease;
}

.company-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.company-slideshow--crest {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.94), rgba(238, 245, 250, 0.76) 58%, rgba(218, 232, 242, 0.62)),
    color-mix(in srgb, var(--surface-alt) 72%, transparent);
}

.company-slideshow--crest .company-slide {
  object-fit: contain;
  padding: clamp(1.5rem, 4vw, 3rem);
  transform: none;
}

.company-slideshow--crest .company-slide.is-active {
  transform: none;
}

.company-slideshow-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 1rem;
  color: var(--text-muted);
  text-align: center;
  font-size: 0.9rem;
}

.callout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: clamp(1.15rem, 2.2vw, 1.45rem);
  border-color: color-mix(in srgb, var(--line-strong) 72%, transparent);
}

.callout-copy h2 {
  margin-bottom: 0.42rem;
}

.callout-actions {
  display: grid;
  gap: 0.55rem;
}

.callout-actions .btn {
  min-width: clamp(13.5rem, 18vw, 15.5rem);
  justify-content: center;
}

.home-focus-section {
  padding-top: clamp(1.4rem, 3vw, 2rem);
}

.home-focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.2rem);
}

.home-focus-card {
  padding: clamp(1.05rem, 2.3vw, 1.45rem);
  display: grid;
  align-content: start;
  gap: 0.78rem;
}

.home-focus-card h3 {
  margin: 0;
  font-size: clamp(1.22rem, 2vw, 1.55rem);
}

.home-focus-card p {
  margin: 0;
  color: var(--text-body);
  line-height: 1.66;
}

.home-focus-card .btn {
  justify-self: start;
  margin-top: 0.2rem;
}

.home-focus-card--accent {
  border-color: color-mix(in srgb, var(--brand) 38%, var(--line-strong));
  background: color-mix(in srgb, var(--surface) 93%, var(--accent-soft));
}

.home-dachcheck {
  border-color: color-mix(in srgb, var(--brand) 38%, var(--line-strong));
  background: color-mix(in srgb, var(--surface) 93%, var(--accent-soft));
}

.home-dachcheck .service-offer-meta {
  color: var(--text-muted);
}

.home-dachcheck-list {
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.44rem;
}

.home-dachcheck-list li {
  position: relative;
  margin: 0;
  padding-left: 1rem;
  color: var(--text-body);
}

.home-dachcheck-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 70%, var(--brand));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-soft) 66%, transparent);
}

.service-detail-page .callout {
  padding-inline: 0;
}

.service-detail-page .callout-grid {
  display: grid;
  gap: clamp(0.8rem, 1.7vw, 1.05rem);
}

.service-detail-page .callout-grid > div p {
  margin-top: 0.44rem;
}

.service-detail-page .callout-grid .btn {
  justify-self: start;
  margin-top: clamp(0.18rem, 0.6vw, 0.34rem);
}

.contact-layout {
  margin-top: clamp(1rem, 2.5vw, 1.6rem);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.78fr);
  gap: clamp(0.85rem, 2vw, 1.2rem);
  align-items: start;
}

.contact-form-card,
.contact-aside-card {
  border-color: color-mix(in srgb, var(--line-strong) 72%, transparent);
  background: color-mix(in srgb, var(--surface) 95%, transparent);
}

.contact-form-card {
  padding: clamp(1.05rem, 2.6vw, 1.55rem);
}

.contact-form-card h2 {
  margin-bottom: 0.36rem;
  font-size: clamp(1.22rem, 2.2vw, 1.52rem);
}

.contact-form-lead {
  margin: 0 0 0.95rem;
  color: var(--text-body);
  max-width: 68ch;
}

.contact-form {
  display: grid;
  gap: 0.72rem;
}

.contact-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.78rem;
}

.contact-field {
  display: grid;
  align-content: start;
  gap: 0.34rem;
  min-width: 0;
}

.contact-field--full,
.contact-preference {
  grid-column: 1 / -1;
}

.contact-field label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-strong);
}

.contact-label-optional {
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--text-muted);
}

.contact-field input:not([type="radio"]):not([type="checkbox"]),
.contact-field select,
.contact-field textarea {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--line-strong) 74%, transparent);
  background: color-mix(in srgb, var(--surface) 98%, transparent);
  color: var(--text-strong);
  border-radius: 12px;
  padding: 0.64rem 0.78rem;
  font: inherit;
  line-height: 1.42;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: var(--text-muted);
}

.contact-field select {
  appearance: none;
  /* Platz fuer den Pfeil reservieren, damit langer Optionstext nicht darunter laeuft */
  padding-right: 2.1rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.contact-field textarea {
  min-height: 176px;
  resize: vertical;
}

.contact-field.is-hidden {
  display: none;
}

.contact-preference {
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--line-strong) 70%, transparent);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface-alt) 58%, var(--surface));
  overflow: hidden;
}

.contact-preference-toggle {
  width: 100%;
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.68rem 0.78rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-strong);
  text-align: left;
}

.contact-preference-toggle-icon {
  width: 1.26rem;
  height: 1.26rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: var(--brand-strong);
  border: 1px solid color-mix(in srgb, var(--line-strong) 80%, transparent);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.contact-preference.is-open .contact-preference-toggle-icon {
  transform: rotate(180deg);
}

.contact-preference-panel {
  height: 0;
  opacity: 0;
  overflow: hidden;
  border-top: 1px solid transparent;
  transition: height 0.28s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.contact-preference.is-open .contact-preference-panel {
  opacity: 1;
  border-top-color: color-mix(in srgb, var(--line-strong) 68%, transparent);
}

.contact-preference-body {
  padding: 0.2rem 0.78rem 0.74rem;
}

.contact-preference-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.contact-preference-fieldset legend {
  margin: 0 0 0.46rem;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.contact-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.contact-choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.38rem 0.68rem;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--line-strong) 76%, transparent);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  color: var(--text-strong);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.contact-choice:hover {
  border-color: color-mix(in srgb, var(--brand) 52%, var(--line-strong));
  background: color-mix(in srgb, var(--surface-alt) 84%, var(--surface));
}

.contact-choice:focus-within {
  border-color: color-mix(in srgb, var(--brand) 66%, var(--line-strong));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}

.contact-choice input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  inline-size: 1px;
  block-size: 1px;
  pointer-events: none;
}

.contact-choice.is-selected {
  border-color: color-mix(in srgb, var(--brand) 66%, var(--line-strong));
  background: color-mix(in srgb, var(--brand) 16%, var(--surface));
  color: var(--brand-strong);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 28%, transparent);
}

.contact-consent {
  display: grid;
  gap: 0.34rem;
}

.contact-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-body);
}

.contact-checkbox input[type="checkbox"] {
  margin-top: 0.14rem;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  accent-color: var(--brand);
}

.contact-checkbox a {
  color: var(--brand-strong);
  text-underline-offset: 2px;
}

.contact-consent input[aria-invalid="true"] {
  outline: 2px solid color-mix(in srgb, #c84c5c 72%, var(--line-strong));
  outline-offset: 2px;
}

.dachcheck-image-ack {
  padding: 0.72rem 0.78rem;
  border: 1px solid color-mix(in srgb, var(--warning) 44%, var(--line-strong));
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--warning) 12%, var(--surface));
}

/* Sichtbarkeit per JS (syncImageAckState) steuerbar: `display:grid` von
   .contact-consent wuerde sonst das hidden-Attribut aushebeln. */
.dachcheck-image-ack[hidden] {
  display: none;
}

.dachcheck-image-source-hints {
  display: grid;
  gap: 0.5rem;
  margin: 0;
}

.dachcheck-source-hint {
  margin: 0;
  padding: 0.66rem 0.78rem;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--line-strong) 70%, transparent);
  background: color-mix(in srgb, var(--surface-alt) 70%, transparent);
  color: var(--text-body);
  font-size: 0.88rem;
  line-height: 1.52;
}

.dachcheck-source-hint[data-image-source-hint="customer"] {
  border-color: color-mix(in srgb, var(--warning) 42%, var(--line-strong));
  background: color-mix(in srgb, var(--warning) 10%, var(--surface));
}

.dachcheck-source-hint[data-image-source-hint="drone"] {
  border-color: color-mix(in srgb, var(--brand) 28%, var(--line-strong));
  background: color-mix(in srgb, var(--accent-soft) 34%, var(--surface));
}

.contact-error {
  margin: 0;
  min-height: 1.05rem;
  font-size: 0.79rem;
  color: #b84455;
}

.contact-error:empty {
  min-height: 0;
}

.contact-field input[aria-invalid="true"],
.contact-field select[aria-invalid="true"],
.contact-field textarea[aria-invalid="true"] {
  border-color: color-mix(in srgb, #c84c5c 70%, var(--line-strong));
  background: color-mix(in srgb, #c84c5c 6%, var(--surface));
}

.contact-submit {
  width: fit-content;
  min-height: 2.65rem;
  padding-inline: 1.3rem;
}

.contact-submit-note {
  margin: -0.12rem 0 0;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.contact-form-status {
  margin: 0;
  min-height: 1.2rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.contact-form-status.is-success {
  color: color-mix(in srgb, var(--accent) 78%, #0b3d31);
}

.contact-form-status.is-error {
  color: #b84455;
}

.contact-upload-note {
  margin: 0;
  padding: 0.66rem 0.78rem;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--line-strong) 70%, transparent);
  background: color-mix(in srgb, var(--surface-alt) 64%, transparent);
  color: var(--text-body);
  font-size: 0.88rem;
  line-height: 1.52;
}

.contact-aside-card {
  padding: clamp(0.95rem, 2.1vw, 1.25rem);
  display: grid;
  align-content: start;
  gap: 0.82rem;
  position: sticky;
  top: calc(var(--header-height) + 0.9rem);
}

.contact-aside-card h2 {
  font-size: clamp(1.1rem, 1.9vw, 1.35rem);
}

.contact-aside-lead {
  margin: -0.2rem 0 0;
  color: var(--text-body);
}

.contact-action-list {
  display: grid;
  gap: 0.52rem;
}

.contact-action {
  border: 1px solid color-mix(in srgb, var(--line-strong) 72%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 98%, transparent);
  padding: 0.7rem 0.74rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.34rem 0.72rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.contact-action:hover,
.contact-action:focus-within {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brand) 52%, var(--line-strong));
  background: color-mix(in srgb, var(--surface-alt) 78%, var(--surface));
}

.contact-action-main {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 0.24rem;
  text-decoration: none;
}

.contact-action-main:hover strong,
.contact-action-main:focus-visible strong {
  color: var(--brand-strong);
}

.contact-action-label {
  display: block;
  margin: 0;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-action strong {
  display: block;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.22;
  font-weight: 700;
  color: var(--text-strong);
}

.contact-action-tools {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 0.36rem;
  justify-self: end;
  transform: translateY(0.24rem);
}

.contact-action-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 40px;
  text-decoration: none;
  cursor: pointer;
}

.contact-action-icon {
  color: #ffffff;
  border: 0;
  box-shadow:
    0 10px 18px -12px rgba(12, 36, 58, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.contact-action-icon:hover,
.contact-action-icon:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.contact-action--phone .contact-action-icon {
  background: linear-gradient(155deg, var(--cta-blue-start), var(--cta-blue-end));
}

.contact-action--whatsapp .contact-action-icon {
  background: linear-gradient(155deg, #2ecb66, #159f48);
}

.contact-action--mail .contact-action-icon {
  background: linear-gradient(155deg, color-mix(in srgb, var(--accent) 88%, #1f866e), color-mix(in srgb, var(--accent) 72%, #186f5b));
}

.contact-copy-button {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 40px;
}

.contact-action-icon svg,
.contact-copy-button svg {
  width: 24px;
  height: 24px;
  display: block;
}

.contact-action-icon svg {
  fill: currentColor;
  stroke: none;
}

.contact-copy-button svg {
  width: 16px;
  height: 16px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.contact-copy-button {
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--line-strong) 76%, transparent);
  background: color-mix(in srgb, var(--surface) 97%, transparent);
  color: color-mix(in srgb, var(--brand-strong) 62%, var(--text-strong));
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.contact-copy-button:hover,
.contact-copy-button:focus-visible {
  border-color: color-mix(in srgb, var(--brand) 52%, var(--line-strong));
  background: color-mix(in srgb, var(--surface-alt) 82%, var(--surface));
  color: var(--brand-strong);
}

.contact-copy-button:active {
  transform: translateY(1px);
}

.contact-copy-status {
  grid-column: 1 / -1;
  justify-self: end;
  margin-top: 0;
  max-height: 0;
  overflow: hidden;
  font-size: 0.74rem;
  line-height: 1.2;
  font-weight: 700;
  color: color-mix(in srgb, var(--accent) 70%, var(--brand-strong));
  opacity: 0;
  transition: opacity 0.16s ease, max-height 0.16s ease, margin-top 0.16s ease;
}

.contact-action.is-copied .contact-copy-status,
.contact-action.is-copy-error .contact-copy-status {
  margin-top: 0.1rem;
  max-height: 1.1rem;
  opacity: 1;
}

.contact-action.is-copy-error .contact-copy-status {
  color: #b84455;
}

.contact-area-note {
  margin: 0.1rem 0 0;
  color: var(--text-body);
  font-size: 0.9rem;
}

.contact-location {
  margin-top: 0.2rem;
  padding-top: 0.7rem;
  border-top: 1px solid color-mix(in srgb, var(--line-strong) 66%, transparent);
  display: grid;
  align-items: center;
  gap: 0.5rem;
}

.contact-location h3 {
  margin: 0;
  font-size: 0.92rem;
}

.contact-map-button {
  width: 100%;
  min-height: 2.55rem;
  padding-block: 0.62rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
  border-color: color-mix(in srgb, var(--line-strong) 84%, transparent);
}

html[data-theme="dark"] .contact-form-card,
html[data-theme="dark"] .contact-aside-card {
  background: color-mix(in srgb, var(--surface) 90%, #0f1d2b);
  border-color: color-mix(in srgb, var(--line-strong) 78%, transparent);
}

html[data-theme="dark"] .contact-preference {
  background: color-mix(in srgb, var(--surface-alt) 68%, #102132);
}

html[data-theme="dark"] .contact-choice {
  background: color-mix(in srgb, var(--surface) 93%, #0e1c29);
}

html[data-theme="dark"] .contact-choice.is-selected {
  background: color-mix(in srgb, var(--brand) 18%, #132537);
}

html[data-theme="dark"] .contact-action {
  background: color-mix(in srgb, var(--surface) 93%, #0f1d2c);
}

html[data-theme="dark"] .contact-copy-button {
  border-color: color-mix(in srgb, var(--line-strong) 78%, #2a4154);
  background: color-mix(in srgb, var(--surface) 92%, #0f1e2c);
}

html[data-theme="dark"] .contact-copy-button {
  color: color-mix(in srgb, var(--brand-strong) 78%, var(--text-body));
}

html[data-theme="dark"] .contact-field input[aria-invalid="true"],
html[data-theme="dark"] .contact-field textarea[aria-invalid="true"] {
  background: color-mix(in srgb, #ad4655 14%, #17283a);
}

.site-footer {
  margin-top: clamp(2.2rem, 5vw, 3rem);
  border-top: 1px solid color-mix(in srgb, var(--line-strong) 72%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 95%, transparent), color-mix(in srgb, var(--surface-alt) 72%, transparent));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  min-height: 0;
  align-items: stretch;
  padding-block: 1.35rem 1.2rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid color-mix(in srgb, var(--line-strong) 66%, transparent);
}

.footer-brand-block {
  display: grid;
  gap: 0.35rem;
}

.footer-brand {
  font-family: var(--font-title);
  font-weight: 800;
}

.footer-lead {
  max-width: 62ch;
}

.footer-quick-title {
  margin: 0;
  font-weight: 800;
}

.footer-highlights {
  margin: 0.28rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.22rem;
  font-size: 0.9rem;
}

.footer-highlights a {
  color: var(--brand-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text-strong);
}

.footer-links a:nth-child(3) {
  border-left: 1px solid color-mix(in srgb, var(--line-strong) 55%, transparent);
  padding-left: 0.8rem;
}

@media (max-width: 600px) {
  .footer-links a:nth-child(3) {
    border-left: none;
    padding-left: 0;
  }
}

.appear {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.44s ease, transform 0.44s ease;
}

body.is-ready .appear {
  opacity: 1;
  transform: translateY(0);
}

body.is-ready .appear:nth-of-type(2) {
  transition-delay: 0.06s;
}

body.is-ready .appear:nth-of-type(3) {
  transition-delay: 0.12s;
}

body[data-page="home"] .hero .appear {
  opacity: 1;
  transform: none;
  transition: none;
}

/* Header-Desktop: kollisionsfrei zwischen 1025px und Desktop */
@media (min-width: 1025px) {
  .header-row {
    flex-wrap: nowrap;
    min-width: 0;
  }

  .header-row > .brand {
    flex: 0 0 auto;
  }

  .header-row > .main-nav,
  .header-row > .header-tools,
  .header-row > .header-actions {
    min-width: 0;
    flex-shrink: 1;
  }

  .main-nav {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: clamp(14px, 2vw, 38px);
    overflow: visible;
  }

  .main-nav > .nav-list {
    min-width: 0;
    gap: clamp(6px, 1vw, 18px);
  }

  .main-nav > .nav-list > li,
  .main-nav > .nav-list > li + li,
  .main-nav > .nav-list > .nav-item-search,
  .main-nav > .nav-list > .nav-item-search + li {
    margin-left: 0;
  }

  .main-nav .nav-link,
  .main-nav .services-toggle,
  .main-nav .practice-summary {
    white-space: nowrap;
    height: 40px;
    padding: 0 clamp(6px, 0.8vw, 10px);
    font-size: clamp(0.9rem, 0.32vw + 0.79rem, 1rem);
  }

  .main-nav .nav-link[aria-current="page"],
  .main-nav .nav-link[aria-current="page"]:hover,
  .main-nav .nav-link[aria-current="page"]:focus-visible,
  .main-nav .practice-summary[aria-current="page"],
  .main-nav .practice-summary[aria-current="page"]:hover,
  .main-nav .practice-summary[aria-current="page"]:focus-visible {
    padding: 0 clamp(6px, 0.8vw, 10px);
  }

  .header-tools {
    margin-left: clamp(10px, 1.4vw, 22px);
    gap: clamp(0.28rem, 0.6vw, 0.55rem);
    flex: 0 0 auto;
    min-width: 0;
  }

  .header-tools .header-cta {
    display: inline-flex;
    flex: 0 0 auto;
    white-space: nowrap;
    height: 40px;
    padding-inline: clamp(12px, 1vw, 18px);
    font-size: 0.95rem;
  }

  .header-tools .theme-btn {
    margin-left: 0;
    --theme-toggle-width: 56px;
    --theme-toggle-height: 28px;
    --theme-thumb-size: 24px;
    --theme-track-icon-size: 11px;
    --theme-thumb-icon-size: 12px;
  }
}

@media (min-width: 1025px) and (max-width: 1380px) {
  .main-nav > .nav-list {
    gap: clamp(4px, 0.6vw, 12px);
  }

  .main-nav .nav-link,
  .main-nav .services-toggle,
  .main-nav .practice-summary {
    padding: 0 clamp(4px, 0.55vw, 8px);
    font-size: clamp(0.88rem, 0.24vw + 0.8rem, 0.97rem);
  }

  .main-nav .nav-link[aria-current="page"],
  .main-nav .nav-link[aria-current="page"]:hover,
  .main-nav .nav-link[aria-current="page"]:focus-visible,
  .main-nav .practice-summary[aria-current="page"],
  .main-nav .practice-summary[aria-current="page"]:hover,
  .main-nav .practice-summary[aria-current="page"]:focus-visible {
    padding: 0 clamp(4px, 0.55vw, 8px);
  }

  .header-tools {
    margin-left: clamp(8px, 1vw, 14px);
    gap: 0.35rem;
  }

  .header-tools .header-cta {
    padding-inline: clamp(11px, 0.9vw, 15px);
    font-size: 0.92rem;
  }
}

@media (min-width: 1025px) and (max-width: 1380px) {
  .main-nav .nav-item-search {
    display: none;
  }
}

/* DachCheck-Seiten (inkl. Start-Seite data-page="dachcheck-start") nutzen die breite
   CTA "DachCheck anfragen"; im 1300px-Shell ist daneben kein Platz fuer das Such-Icon,
   sonst ueberlappt die Nav die CTA. Im Mobile-Menue (< 1025px) bleibt die Suche erhalten. */
@media (min-width: 1025px) {
  body[data-page^="dachcheck"] .nav-item-search {
    display: none;
  }
}

/* Standortseiten nutzen die lokale CTA "Einsatz in <Stadt>" (teils sehr lang,
   z. B. Recklinghausen/Gelsenkirchen). Wie bei den DachCheck-Seiten wird dafuer
   im Desktop-Header das Such-Icon ausgeblendet. Im schmalen Desktop-Band, in dem
   selbst dann kein Platz bleibt, weicht die lange CTA aus; der Kontakt-Link
   bleibt in der Navigation erhalten. */
@media (min-width: 1025px) {
  .site-header:has(.header-cta--local) .nav-item-search {
    display: none;
  }

  /* Nav auf Standortseiten auch oberhalb 1380px kompakt halten (gleiche Werte wie
     im 1025-1380-Band), damit neben der langen lokalen CTA kein Ueberlapp entsteht. */
  .site-header:has(.header-cta--local) .main-nav > .nav-list {
    gap: clamp(4px, 0.6vw, 12px);
  }

  .site-header:has(.header-cta--local) .main-nav .nav-link,
  .site-header:has(.header-cta--local) .main-nav .services-toggle,
  .site-header:has(.header-cta--local) .main-nav .practice-summary {
    padding: 0 clamp(4px, 0.55vw, 8px);
  }
}

@media (min-width: 1025px) and (max-width: 1239px) {
  .header-tools .header-cta--local {
    display: none;
  }
}

@media (min-width: 1025px) and (max-width: 1220px) {
  .brand-sub {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }
}

@media (min-width: 1025px) and (max-width: 1160px) {
  .header-tools .header-cta {
    display: none;
  }

  .header-tools {
    margin-left: 6px;
    gap: 0;
  }
}

@media (max-width: 1080px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-focus-grid {
    grid-template-columns: 1fr;
  }

  .services-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-layout > .contact-aside-card {
    order: 1;
  }

  .contact-layout > .contact-form-card {
    order: 2;
  }

  .contact-aside-card {
    position: static;
    top: auto;
  }

  .footer-main {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .service-detail-page .decision-fit-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .service-detail-page .decision-fit-benefit {
    border-left: 0;
    border-top: 1px solid color-mix(in srgb, var(--line-strong) 62%, transparent);
    padding-left: 0;
    padding-top: 0.7rem;
    margin-top: 0.02rem;
  }

  .service-detail-page .decision-fit-situation {
    padding-right: 0;
  }

  .service-detail-page .decision-facts-grid li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .service-detail-page .grid.grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  :root {
    --header-height: 80px;
  }

  .header-row {
    min-height: 80px;
    gap: 0.45rem;
  }

  .brand-title {
    font-size: clamp(1rem, 4.8vw, 1.24rem);
  }

  .brand-sub {
    font-size: 0.74rem;
  }

  .menu-btn {
    display: inline-flex;
    order: 3;
  }

  .header-tools {
    order: 2;
    margin-left: auto;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(430px, 100vw);
    max-width: 100%;
    margin-left: 0;
    padding:
      calc(env(safe-area-inset-top, 0px) + 0.95rem)
      calc(env(safe-area-inset-right, 0px) + 0.92rem)
      calc(env(safe-area-inset-bottom, 0px) + 1rem)
      calc(env(safe-area-inset-left, 0px) + 0.92rem);
    border-radius: 0;
    border: 0;
    border-left: 1px solid color-mix(in srgb, var(--line-strong) 78%, transparent);
    background: color-mix(in srgb, var(--surface) 98%, #fff 2%);
    box-shadow: -16px 0 30px rgba(6, 26, 43, 0.22);
    display: block;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    transform: translate3d(104%, 0, 0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.2s ease, visibility 0.2s step-end;
    z-index: 2601;
  }

  .main-nav.is-open {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.28s ease, opacity 0.2s ease, visibility 0s;
  }

  .site-header.is-menu-open {
    z-index: 2600;
    transform: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .site-header.is-menu-open .main-nav {
    will-change: transform, opacity;
  }

  .menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(5, 16, 28, 0.56);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s step-end;
    z-index: 2600;
  }

  .menu-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.22s ease;
  }

  .site-header.is-menu-open .menu-backdrop {
    will-change: opacity;
  }

  .nav-list {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .nav-list > li {
    padding-block: 0.12rem;
  }

  .nav-list > li + li {
    border-top: 1px solid color-mix(in srgb, var(--line-strong) 64%, transparent);
  }

  .nav-link,
  .services-toggle,
  .practice-summary,
  .services-mobile-link {
    width: 100%;
    text-align: left;
    min-height: 48px;
    height: auto;
    padding: 0.56rem 0.9rem;
    border-radius: 12px;
    font-weight: 620;
  }

  .nav-link:hover,
  .nav-link:focus-visible,
  .practice-summary:hover,
  .practice-summary:focus-visible,
  .services-mobile-link:hover,
  .services-mobile-link:focus-visible {
    background: color-mix(in srgb, var(--accent-soft) 48%, transparent);
  }

  .practice-menu {
    display: grid;
  }

  .practice-panel {
    position: static;
    width: 100%;
    margin-top: 0.2rem;
    padding: 0.4rem 0 0.7rem 0.9rem;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .practice-menu:not([open]) .practice-panel {
    display: none;
  }

  .practice-menu[open] .practice-panel {
    display: grid;
  }

  .practice-panel .services-link {
    padding: 0.68rem 0.72rem;
  }

  .nav-link[aria-current="page"],
  .services-mobile-link[aria-current="page"] {
    background: color-mix(in srgb, var(--accent-soft) 68%, var(--surface));
    color: var(--text-strong);
    padding-left: 1.12rem;
  }

  .nav-link[aria-current="page"]::after,
  .services-mobile-link[aria-current="page"]::after {
    display: none;
  }

  .nav-link[aria-current="page"]::before,
  .services-mobile-link[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 22px;
    border-radius: 999px;
    background: var(--accent);
  }

  .nav-item-search {
    display: none !important;
  }

  .nav-item-services.has-mobile-controls > .services-toggle {
    display: none;
  }

  .services-mobile-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.24rem;
    border-radius: 12px;
    padding-right: 0.2rem;
  }

  .nav-item-services.is-open > .services-mobile-row {
    background: color-mix(in srgb, var(--accent-soft) 44%, transparent);
  }

  .services-mobile-link {
    margin: 0;
    text-decoration: none;
    background: transparent;
    border: 1px solid transparent;
  }

  .services-mobile-toggle {
    appearance: none;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-strong);
    display: inline-grid;
    place-items: center;
    padding: 0;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }

  .services-mobile-toggle svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    transition: transform 0.2s ease;
  }

  .nav-item-services.is-open .services-mobile-toggle svg {
    transform: rotate(180deg);
  }

  .services-mobile-toggle:hover,
  .services-mobile-toggle:focus-visible {
    border-color: color-mix(in srgb, var(--brand) 56%, var(--line-strong));
    background: color-mix(in srgb, var(--surface-alt) 78%, var(--surface));
  }

  .services-panel {
    --services-mobile-open-height: 0px;
    position: static;
    width: 100%;
    margin-top: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.26s ease, opacity 0.2s ease, padding-top 0.2s ease;
  }

  .services-panel.is-open {
    max-height: var(--services-mobile-open-height, 560px);
    opacity: 1;
    pointer-events: auto;
    padding-top: 0.18rem;
  }

  .services-panel-title {
    margin: 0 0 0.24rem;
    padding-left: 0.64rem;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .services-panel-list {
    grid-template-columns: 1fr;
    gap: 0.1rem;
    margin-left: 0.5rem;
    padding-left: 0.5rem;
    border-left: 1px solid color-mix(in srgb, var(--line-strong) 62%, transparent);
  }

  .services-link {
    border: 1px solid transparent;
    background: transparent;
    box-shadow: none;
    padding: 0.5rem 0.56rem;
    border-radius: 10px;
    line-height: 1.3;
  }

  .services-link:hover,
  .services-link:focus-visible {
    transform: none;
    border-color: color-mix(in srgb, var(--line-strong) 74%, transparent);
    background: color-mix(in srgb, var(--surface-alt) 68%, transparent);
  }

  .services-link strong {
    font-size: 0.94rem;
    font-weight: 650;
    gap: 0.4rem;
  }

  .services-link strong::before {
    width: 5px;
    height: 5px;
    flex-basis: 5px;
  }

  .services-link span {
    margin-top: 0.16rem;
    font-size: 0.78rem;
    line-height: 1.35;
  }

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

  .hero-media {
    display: none !important;
    min-height: 0;
  }

  .services-page .services-hero {
    padding-block: clamp(2rem, 5.4vw, 2.6rem) clamp(0.75rem, 1.9vw, 1rem);
  }

  .services-page .services-catalog {
    padding-top: clamp(1.3rem, 3.1vw, 1.5rem);
  }

  body[data-page="home"] .hero {
    padding-block: 0.78rem 1.3rem;
  }

  body[data-page="home"] .hero-copy {
    background: linear-gradient(
      180deg,
      color-mix(in srgb, var(--surface) 94%, var(--surface-alt)) 0%,
      color-mix(in srgb, var(--surface-alt) 92%, var(--bg-soft)) 100%
    );
    border: 1px solid color-mix(in srgb, var(--line-strong) 74%, transparent);
    border-left: 4px solid var(--cta-blue-start);
    border-radius: 16px;
    padding: clamp(0.92rem, 3.4vw, 1.22rem) clamp(0.88rem, 3.3vw, 1.06rem) clamp(0.98rem, 3.5vw, 1.18rem);
    box-shadow:
      0 18px 28px -20px rgba(8, 43, 71, 0.3),
      0 8px 16px -12px rgba(8, 43, 71, 0.2);
  }

  body[data-page="home"] .hero-copy .kicker {
    margin-bottom: 0.84rem;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--line-strong) 70%, var(--accent-soft));
    background: color-mix(in srgb, var(--surface-alt) 82%, var(--accent-soft));
    color: color-mix(in srgb, var(--brand-strong) 72%, var(--text-strong));
    letter-spacing: 0.13em;
    font-size: 0.76rem;
    line-height: 1;
  }

  body[data-page="home"] .hero-copy .kicker::before {
    display: none;
  }

  body[data-page="home"] .hero-copy h1 {
    margin: 0 0 clamp(1.2rem, 4.5vw, 1.6rem);
    font-size: clamp(2rem, 10.2vw, 3.05rem);
    line-height: 1.07;
    letter-spacing: -0.01em;
    color: var(--text-strong);
  }

  body[data-page="home"] .hero-copy .hero-subline {
    margin: 0 0 clamp(0.95rem, 3.2vw, 1.15rem);
    font-size: clamp(1rem, 3.6vw, 1.12rem);
    font-weight: 500;
    line-height: 1.55;
    color: color-mix(in srgb, var(--text-body) 92%, var(--text-muted));
  }

  body[data-page="home"] .hero-points {
    padding-left: 1.15rem;
    gap: 0.44rem;
  }

  body[data-page="home"] .hero-points li {
    line-height: 1.45;
    color: color-mix(in srgb, var(--text-body) 92%, var(--text-muted));
  }

  body[data-page="home"] .hero-points li::marker {
    color: color-mix(in srgb, var(--brand-strong) 78%, var(--text-body));
  }

  body[data-page="home"] .hero-actions {
    margin-top: 0.82rem;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  body[data-page="home"] .hero-actions .btn {
    width: 100%;
    min-height: 3.1rem;
    font-size: 1.01rem;
    justify-content: center;
  }

  .services-decision-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .services-decision-actions {
    justify-content: flex-start;
  }

  .theme-btn {
    --theme-toggle-width: 56px;
    --theme-toggle-height: 28px;
    --theme-thumb-size: 24px;
    --theme-track-icon-size: 11px;
    --theme-thumb-icon-size: 12px;
    margin-left: 18px;
  }

  .scroller-frame {
    grid-template-columns: 1fr;
    gap: 0.68rem;
  }

  .h-scroll-arrow {
    display: none;
  }

  .strip-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .strip-actions {
    width: 100%;
    justify-content: space-between;
  }

  .callout {
    flex-direction: column;
    align-items: flex-start;
  }

  .callout-actions {
    width: 100%;
  }

  .callout-actions .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: calc(100% - 1.25rem);
  }

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

  body[data-page="home"] #leistungen .service-card-title-badge {
    margin: 0.74rem 0.88rem 0;
    padding: 0.48rem 0.66rem;
  }

  body[data-page="home"] #leistungen .service-card-body {
    padding: 0.68rem 0.88rem 0.98rem;
    gap: 0.66rem;
  }

  .services-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

  body[data-page="services"] .services-cards-grid {
    gap: 1.62rem;
  }

  .service-offer-image {
    height: 172px;
  }

  body[data-page="services"] .service-offer-image {
    border-bottom: 2px solid color-mix(in srgb, var(--brand) 24%, var(--line-strong));
    box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--surface) 72%, var(--line-strong));
  }

  body[data-page="services"] .service-offer-card {
    border-width: 2.5px;
    border-color: color-mix(in srgb, var(--brand) 22%, var(--line-strong));
    box-shadow:
      inset 0 0 0 1px color-mix(in srgb, var(--surface) 72%, var(--line-strong)),
      0 16px 28px -22px rgba(8, 43, 71, 0.52),
      0 8px 16px -14px rgba(8, 43, 71, 0.3);
  }

  body[data-page="services"] .service-offer-card:nth-child(even) {
    background: color-mix(in srgb, var(--surface-alt) 88%, var(--surface));
    border-color: color-mix(in srgb, var(--brand) 28%, var(--line-strong));
  }

  html[data-theme="dark"] body[data-page="services"] .service-offer-card {
    border-color: color-mix(in srgb, var(--brand-strong) 34%, var(--line-strong));
    box-shadow:
      inset 0 0 0 1px color-mix(in srgb, var(--line-strong) 74%, #0f2334),
      0 16px 30px -20px rgba(3, 10, 18, 0.64),
      0 8px 16px -12px rgba(3, 10, 18, 0.44);
  }

  html[data-theme="dark"] body[data-page="services"] .service-offer-image {
    border-bottom-color: color-mix(in srgb, var(--brand-strong) 38%, var(--line-strong));
    box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--line-strong) 78%, #0f2334);
  }

  html[data-theme="dark"] body[data-page="services"] .service-offer-card:nth-child(even) {
    background: color-mix(in srgb, var(--surface-alt) 78%, #102131);
    border-color: color-mix(in srgb, var(--brand-strong) 42%, var(--line-strong));
  }

  .service-offer-content {
    padding: 0.92rem 0.9rem 0.96rem;
  }

  body[data-page="services"] .service-offer-content {
    gap: 0.66rem;
  }

  body[data-page="services"] .service-offer-meta {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
  }

  body[data-page="services"] .service-offer-content h3 {
    display: block;
    width: 100%;
    margin: 0.1rem 0 0.24rem;
    padding: 0.44rem 0.64rem 0.48rem;
    font-family: var(--font-title);
    font-size: clamp(1.28rem, 5.4vw, 1.5rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: 0.005em;
    color: var(--text-strong);
    border-left: 4px solid var(--cta-blue-start);
    border-bottom: 1px solid color-mix(in srgb, var(--line-strong) 60%, transparent);
    border-radius: 0 12px 12px 0;
    background: color-mix(in srgb, var(--surface-alt) 78%, var(--brand) 11%);
    box-shadow:
      inset 0 0 0 1px color-mix(in srgb, var(--line-strong) 62%, transparent),
      0 3px 8px -8px color-mix(in srgb, var(--brand) 32%, transparent);
  }

  .contact-field-grid {
    grid-template-columns: 1fr;
    gap: 0.68rem;
  }

  .contact-choice-row {
    gap: 0.44rem;
  }

  .contact-submit {
    width: 100%;
  }

  .contact-aside-card {
    gap: 0.72rem;
  }

  .contact-action {
    padding: 0.68rem 0.68rem;
    gap: 0.3rem 0.58rem;
  }

  .contact-action-tools {
    gap: 0.34rem;
    transform: translateY(0.22rem);
  }

  .contact-action-icon,
  .contact-copy-button {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .contact-copy-button {
    border-radius: 10px;
  }

  .contact-map-button {
    min-height: 2.45rem;
  }

  .services-steps {
    grid-template-columns: 1fr;
    gap: 0.82rem;
  }

  .services-hero-actions {
    width: 100%;
  }

  .services-hero-actions .btn {
    width: 100%;
  }

  .services-decision-actions {
    width: 100%;
  }

  .services-decision-actions .btn {
    width: 100%;
  }

  .service-mini-list {
    gap: 0.34rem;
  }

  .service-detail-page .decision-fit-mobile-cards .decision-fit-grid {
    margin-top: 0.34rem;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(86%, 86%);
    gap: 0.72rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    -webkit-user-select: none;
    user-select: none;
  }

  .service-detail-page .decision-fit-mobile-cards .decision-fit-row {
    grid-template-columns: 1fr;
    border: 1px solid color-mix(in srgb, var(--line-strong) 62%, transparent);
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--surface) 97%, var(--surface-alt));
    overflow: hidden;
    scroll-snap-align: start;
  }

  .service-detail-page .decision-fit-mobile-cards .decision-fit-row + .decision-fit-row {
    border-top: 0;
  }

  .service-detail-page .decision-fit-mobile-cards .decision-fit-cell {
    padding: 0.78rem 0.86rem;
  }

  .service-detail-page .decision-fit-mobile-cards .decision-fit-situation {
    padding-right: 0.86rem;
  }

  .service-detail-page .decision-fit-mobile-cards .decision-fit-benefit {
    margin-top: 0;
    border-left: 0;
    border-top: 1px solid color-mix(in srgb, var(--line-strong) 62%, transparent);
    padding-top: 0.78rem;
    padding-left: 0.86rem;
  }

  .service-detail-page .use-cases-mobile-cards {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(100%, 100%);
    gap: 0.72rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    -webkit-user-select: none;
    user-select: none;
  }

  .service-detail-page .use-cases-mobile-cards .trust-item {
    scroll-snap-align: start;
  }

  .brand-title {
    font-size: clamp(0.98rem, 5.8vw, 1.14rem);
  }

  .brand-sub {
    font-size: 0.68rem;
  }

  .nav-search-toggle {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  .nav-search-panel {
    gap: 0.28rem;
  }

  .nav-search-input {
    padding: 0.46rem 0.62rem;
  }

  .nav-search-submit {
    padding: 0.44rem 0.66rem;
    font-size: 0.8rem;
  }

  .theme-btn {
    --theme-toggle-width: 54px;
    --theme-toggle-height: 28px;
    --theme-thumb-size: 24px;
    --theme-track-icon-size: 11px;
    --theme-thumb-icon-size: 12px;
    margin-left: 0;
  }

  .filter-bar .case-zero-cta {
    justify-content: flex-start;
  }

  .filter-bar .case-zero-cta-text {
    text-align: left;
  }

  .header-cta {
    display: none;
  }

  .strip-mobile-hint {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0s !important;
  }

  .appear,
  body.is-ready .appear {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-actions .btn::after {
    opacity: 0 !important;
    transform: none !important;
  }
}

body[data-page="news-overview"] .news-category-tabs {
  margin-top: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.1rem;
  scrollbar-width: thin;
  -webkit-user-select: none;
  user-select: none;
}

body[data-page="news-overview"] .news-category-tab {
  flex: 0 0 auto;
  white-space: nowrap;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--line-strong) 74%, transparent);
  background: color-mix(in srgb, var(--surface) 97%, transparent);
  color: color-mix(in srgb, var(--text-strong) 84%, var(--text-body));
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.48rem 0.86rem;
}

body[data-page="news-overview"] .news-category-tab.is-active,
body[data-page="news-overview"] .news-category-tab[aria-selected="true"] {
  border-color: color-mix(in srgb, var(--brand) 56%, var(--line-strong));
  background: color-mix(in srgb, var(--surface-alt) 88%, transparent);
  color: var(--brand-strong);
  box-shadow: var(--shadow-2);
}

body[data-page="news-overview"] .news-active-count {
  margin-top: 0.58rem;
}

body[data-page="news-overview"] .news-overview-region {
  margin-top: clamp(0.9rem, 2.1vw, 1.3rem);
  display: grid;
  gap: 0.8rem;
}

body[data-page="news-overview"] .news-overview-list {
  margin-top: 0;
  display: grid;
  gap: clamp(0.95rem, 2.2vw, 1.25rem);
  grid-template-columns: 1fr;
}

body[data-page="news-overview"] .news-overview-group {
  display: grid;
  gap: 0.82rem;
}

body[data-page="news-overview"] .news-overview-stack {
  display: grid;
  gap: 0.82rem;
}

body[data-page="news-overview"] .news-overview-section-title {
  margin: 0;
  display: flex;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text-strong) 68%, var(--text-muted));
}

body[data-page="news-overview"] .news-overview-section-title--divider {
  margin-top: clamp(0.2rem, 0.7vw, 0.45rem);
  padding-top: clamp(0.58rem, 1.3vw, 0.74rem);
  border-top: 1px solid color-mix(in srgb, var(--line-strong) 74%, transparent);
}

body[data-page="news-overview"] .news-overview-list--gesetz {
  gap: 0.82rem;
}

body[data-page="news-overview"] .news-overview-list--blog {
  gap: clamp(0.95rem, 2.2vw, 1.25rem);
}

body[data-page="news-overview"] .news-overview-card {
  cursor: pointer;
}

body[data-page="news-overview"] .news-overview-card:hover,
body[data-page="news-overview"] .news-overview-card:focus-within {
  transform: translateY(-1px);
}

body[data-page="news-overview"] .news-overview-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

body[data-page="news-overview"] .news-overview-card-link:focus-visible {
  outline: 2px solid var(--brand-focus);
  outline-offset: -2px;
  border-radius: inherit;
}

body[data-page="news-overview"] .news-overview-card--gesetz {
  border-left: 4px solid color-mix(in srgb, var(--brand) 70%, transparent);
  background: color-mix(in srgb, var(--surface) 98%, var(--surface-alt));
  box-shadow: none;
}

body[data-page="news-overview"] .news-overview-card--gesetz:hover,
body[data-page="news-overview"] .news-overview-card--gesetz:focus-within {
  transform: translateY(-1px);
  box-shadow: var(--shadow-1);
}

body[data-page="news-overview"] .news-overview-card--gesetz .news-link--detail {
  padding: 0;
  background: none;
  box-shadow: none;
  color: var(--brand-strong);
}

body[data-page="news-overview"] .news-overview-card--gesetz .news-link--detail::after {
  content: "";
}

body[data-page="news-overview"] .news-overview-card--gesetz .news-link--detail:hover,
body[data-page="news-overview"] .news-overview-card--gesetz .news-link--detail:focus-visible {
  transform: none;
  background: none;
  color: var(--brand-strong);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

body[data-page="news-overview"] .news-overview-card--blog {
  box-shadow: var(--shadow-2);
}

body[data-page="news-overview"] .news-overview-card .news-overview-content {
  min-height: auto;
}

body[data-page="news-overview"] .news-overview-topline {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.52rem;
  flex-wrap: wrap;
  font-size: 0.79rem;
  line-height: 1.4;
  color: var(--text-muted);
}

body[data-page="news-overview"] .news-overview-topline time {
  font-weight: 700;
  color: color-mix(in srgb, var(--text-strong) 70%, var(--text-muted));
}

body[data-page="news-overview"] .news-category-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 0.17rem 0.54rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.news-category-badge--gesetz {
  color: color-mix(in srgb, var(--brand-strong) 82%, var(--text-strong));
  background: color-mix(in srgb, var(--surface-alt) 78%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--line-strong) 68%, transparent);
}

.news-category-badge--blog {
  color: color-mix(in srgb, var(--accent) 80%, var(--brand-strong));
  background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--line-strong) 62%, transparent);
}

body[data-page="news-overview"] .news-overview-card .news-meta {
  margin: 0;
  margin-top: 0.06rem;
}

body[data-page="news-overview"] .news-overview-footer-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.76rem;
  color: color-mix(in srgb, var(--text-strong) 56%, var(--text-muted));
}

body[data-page="news-overview"] .news-overview-footer-meta > * {
  position: relative;
  display: inline-flex;
  align-items: center;
}

body[data-page="news-overview"] .news-overview-footer-meta > * + * {
  padding-left: 0.58rem;
}

body[data-page="news-overview"] .news-overview-footer-meta > * + *::before {
  content: "";
  position: absolute;
  left: 0.18rem;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: color-mix(in srgb, var(--line-strong) 78%, transparent);
}

body[data-page="news-overview"] .news-overview-source-name {
  max-width: min(100%, 48ch);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-page="news-overview"] .news-source-hint {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--brand-strong) 72%, var(--text-body));
}

body[data-page="news-overview"] .news-overview-card--blog .news-card-image {
  min-height: 176px;
  max-height: 236px;
}

body[data-page="news-overview"] .news-card-image--placeholder {
  display: grid;
  place-items: center;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--surface-alt) 72%, var(--surface));
  font-size: 0.8rem;
  font-weight: 700;
}

body[data-page="news-overview"] .news-overview-actions {
  margin-top: auto;
}

body[data-page="news-overview"] .news-empty-hint {
  margin: 0;
  padding: 0.85rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--line-strong) 70%, transparent);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
}

body[data-page="news-overview"] .news-detail-view {
  margin-top: clamp(0.95rem, 2.2vw, 1.45rem);
  display: grid;
  gap: 0.8rem;
}

body[data-page="news-overview"] .news-detail-view .news-article {
  padding: clamp(1.12rem, 2.4vw, 1.85rem);
  border-color: color-mix(in srgb, var(--line-strong) 74%, transparent);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  display: grid;
  align-content: start;
  gap: clamp(0.72rem, 1.8vw, 1rem);
}

body[data-page="news-overview"] .news-detail-view .news-article .news-meta {
  margin: 0;
  font-size: 0.81rem;
  line-height: 1.4;
}

body[data-page="news-overview"] .news-detail-view .news-article h1 {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(1.44rem, 3vw, 2.16rem);
  line-height: 1.16;
}

body[data-page="news-overview"] .news-detail-view .news-article .news-card-image {
  width: 100%;
  min-height: clamp(210px, 42vw, 420px);
  max-height: clamp(260px, 52vw, 470px);
  border-radius: var(--radius-md);
  object-fit: cover;
  margin-top: 0.12rem;
}

body[data-page="news-overview"] .news-detail-view .news-article .article-content {
  margin-top: 0.12rem;
  max-width: 74ch;
  display: grid;
  gap: 0.88rem;
}

body[data-page="news-overview"] .news-detail-view .news-article .article-content > * {
  margin: 0;
}

body[data-page="news-overview"] .news-detail-view .news-article .article-content h2 {
  margin-top: 0.46rem;
  font-size: clamp(1.16rem, 1.82vw, 1.42rem);
  line-height: 1.28;
  color: var(--text-strong);
}

body[data-page="news-overview"] .news-detail-view .news-article .article-content h3 {
  margin-top: 0.28rem;
  font-size: clamp(1.04rem, 1.5vw, 1.18rem);
  line-height: 1.32;
  color: var(--text-strong);
}

body[data-page="news-overview"] .news-detail-view .news-article .article-content p,
body[data-page="news-overview"] .news-detail-view .news-article .article-content li {
  color: var(--text-body);
  line-height: 1.72;
}

body[data-page="news-overview"] .news-detail-view .news-article .article-content ul,
body[data-page="news-overview"] .news-detail-view .news-article .article-content ol {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
}

body[data-page="news-overview"] .news-detail-view [data-news-detail-nav] {
  margin-top: clamp(0.8rem, 1.9vw, 1.06rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.56rem;
}

body[data-page="news-overview"] .news-detail-view [data-news-detail-nav] .btn {
  min-height: 2.3rem;
}

.news-source-block {
  margin-top: 0.38rem;
  max-width: 74ch;
  padding: 0.82rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--line-strong) 74%, transparent);
  background: color-mix(in srgb, var(--surface-alt) 62%, transparent);
  display: grid;
  gap: 0.44rem;
}

.news-source-block h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.28;
}

.news-source-name,
.news-source-missing {
  margin: 0;
  color: var(--text-body);
  line-height: 1.5;
}

.news-source-block .news-link--source {
  width: fit-content;
  padding: 0.44rem 0.72rem;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--line-strong) 74%, transparent);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  color: color-mix(in srgb, var(--brand-strong) 76%, var(--text-strong));
}

@media (min-width: 760px) {
  body[data-page="news-overview"] .news-overview-card--blog {
    grid-template-columns: 1fr;
  }

  body[data-page="news-overview"] .news-overview-card--blog .news-card-image {
    min-height: 176px;
    max-height: 236px;
    height: auto;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 640px) {
  body[data-page="news-overview"] .news-category-tabs {
    flex-wrap: nowrap;
  }

  body[data-page="news-overview"] .news-category-tab {
    padding-inline: 0.74rem;
  }
}

@media (min-width: 1060px) {
  body[data-page="news-overview"] .news-overview-list--blog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body[data-page="news-overview"] .news-card {
  overflow: hidden;
}

body[data-page="news-overview"] .news-card-header {
  position: relative;
  width: 100%;
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  display: block;
  cursor: pointer;
}

body[data-page="news-overview"] .news-card-header-main {
  padding: clamp(0.86rem, 1.8vw, 1.04rem);
  padding-right: 3rem;
  display: grid;
  align-content: start;
  gap: 0.64rem;
  min-width: 0;
}

body[data-page="news-overview"] .news-overview-card--blog .news-card-header-main {
  padding-top: 0.84rem;
}

body[data-page="news-overview"] .news-card-header:focus-visible {
  outline: 2px solid var(--brand-focus);
  outline-offset: -2px;
}

body[data-page="news-overview"] .news-toggle-icon {
  position: absolute;
  top: 0.82rem;
  right: 0.82rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--line-strong) 72%, transparent);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  display: grid;
  place-items: center;
  pointer-events: none;
}

body[data-page="news-overview"] .news-toggle-icon::before {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid color-mix(in srgb, var(--text-strong) 72%, var(--brand-strong));
  border-bottom: 2px solid color-mix(in srgb, var(--text-strong) 72%, var(--brand-strong));
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.22s ease;
}

body[data-page="news-overview"] .news-card.is-open .news-toggle-icon::before {
  transform: rotate(-135deg) translateY(1px);
}

body[data-page="news-overview"] .news-card-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.34s ease, opacity 0.24s ease;
  will-change: max-height, opacity;
}

body[data-page="news-overview"] .news-card.is-open .news-card-panel {
  max-height: var(--news-panel-max, 1200px);
  opacity: 1;
}

body[data-page="news-overview"] .news-card-panel-inner {
  padding: 0 clamp(0.86rem, 1.8vw, 1.04rem) clamp(0.88rem, 1.9vw, 1.08rem);
  border-top: 1px solid color-mix(in srgb, var(--line-strong) 72%, transparent);
  background: color-mix(in srgb, var(--surface) 98%, var(--surface-alt));
  display: grid;
  gap: 0.72rem;
}

body[data-page="news-overview"] .news-card-panel-title {
  margin: 0;
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  line-height: 1.3;
  color: var(--text-strong);
}

body[data-page="news-overview"] .news-card-panel .news-meta {
  margin: 0;
}

body[data-page="news-overview"] .news-card-panel-content {
  margin: 0;
  display: grid;
  gap: 0.72rem;
}

body[data-page="news-overview"] .news-card-panel .news-source-block {
  margin-top: 0.12rem;
}

body[data-page="news-overview"] .news-card-panel .news-source-block h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.25;
}

body[data-page="news-overview"] .news-liability-note {
  margin: 0;
  padding: 0.62rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--line-strong) 70%, transparent);
  background: color-mix(in srgb, var(--surface-alt) 62%, transparent);
  color: var(--text-body);
  line-height: 1.52;
}

@media (min-width: 1025px) {
  .main-nav > .nav-list > li:last-child {
    display: none;
  }
}

@media (min-width: 1025px) and (max-width: 1160px) {
  .header-tools .header-cta {
    display: inline-flex;
    padding-inline: 10px;
    font-size: 0.86rem;
  }
}

body[data-page="dachcheck"] .dachcheck-hero {
  padding-block: clamp(2rem, 4vw, 3.4rem) clamp(1.25rem, 2.4vw, 2rem);
}

.dachcheck-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(340px, 0.78fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}

.dachcheck-hero-copy {
  display: grid;
  align-content: start;
}

.dachcheck-hero-copy h1 {
  max-width: 14ch;
  margin: 0 0 clamp(0.7rem, 1.4vw, 0.95rem);
  font-size: clamp(2.25rem, 4.4vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.dachcheck-hero-copy .lead {
  max-width: 58ch;
  margin: 0;
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  line-height: 1.75;
}

.dachcheck-hero .hero-actions {
  margin-top: clamp(1.15rem, 2.4vw, 1.6rem);
  gap: 0.7rem;
}

/* Gleich breite Buttons nur dort, wo darunter die zweispaltigen Vertrauens-Chips ausgerichtet werden (DachCheck-Startseite). */
.dachcheck-hero .hero-actions.dachcheck-hero-actions-even {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  max-width: 37rem;
}

.dachcheck-hero-trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.68rem;
  align-items: stretch;
  /* Abstand oben (Buttons -> Kacheln) groesser, unten kleiner -> beide gleich.
     Der untere Abstand wird unten ueber Hero-padding-bottom + Folgeabschnitt geregelt. */
  margin-top: clamp(1.7rem, 3.4vw, 2.4rem);
  margin-bottom: 0;
  max-width: 37rem;
}

/* Nur der Hero MIT Vertrauens-Kacheln: unteren Innenabstand entfernen und den
   Folgeabschnitt so weit heranruecken wie der Abstand ueber den Kacheln, damit
   oben und unten gleich gross sind. */
body[data-page="dachcheck"] .dachcheck-hero:has(.dachcheck-hero-trust) {
  padding-bottom: 0;
}

body[data-page="dachcheck"] .dachcheck-hero:has(.dachcheck-hero-trust) + .section-tight {
  padding-top: clamp(1.7rem, 3.4vw, 2.4rem);
}

.dachcheck-hero-trust span {
  position: relative;
  display: flex;
  gap: 0.52rem;
  align-items: flex-start;
  min-height: 3.7rem;
  padding: 0.7rem 0.78rem;
  border: 1px solid color-mix(in srgb, var(--line-strong) 70%, transparent);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--text-strong);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.32;
  box-shadow: 0 10px 22px -24px rgba(14, 45, 68, 0.32);
}

.dachcheck-hero-trust span::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.36em;
  border-radius: 999px;
  background: var(--brand);
  flex: 0 0 auto;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-soft) 58%, transparent);
}

.dachcheck-hero-media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 26px 42px -34px rgba(14, 45, 68, 0.34);
  border: 1px solid color-mix(in srgb, var(--line-strong) 70%, transparent);
}

.dachcheck-hero-media img {
  width: 100%;
  aspect-ratio: 1.38 / 1;
  object-fit: cover;
  display: block;
}

.dachcheck-reassurance-section {
  padding-top: 0;
}

.dachcheck-message-band {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1fr);
  gap: 0.85rem clamp(1.4rem, 4vw, 3rem);
  align-items: start;
  padding: clamp(1.25rem, 2.8vw, 1.9rem);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(7, 53, 72, 0.98), rgba(8, 85, 91, 0.96) 56%, rgba(6, 42, 62, 0.98));
  color: #fff;
  box-shadow: 0 30px 52px -34px rgba(4, 25, 40, 0.58);
}

.dachcheck-message-band .kicker {
  grid-column: 1 / -1;
  color: color-mix(in srgb, #ffffff 78%, var(--accent-soft));
}

.dachcheck-message-band .kicker::before {
  background: color-mix(in srgb, var(--brand) 72%, #ffffff);
}

.dachcheck-message-band h2 {
  grid-column: 1;
  margin: 0;
  max-width: 15ch;
  color: #fff;
  font-size: clamp(1.55rem, 2.7vw, 2.45rem);
  line-height: 1.08;
}

.dachcheck-message-copy {
  grid-column: 2;
  display: grid;
  gap: 1rem;
  justify-items: start;
  align-self: center;
}

.dachcheck-message-band p {
  margin: 0;
  max-width: 66ch;
  color: color-mix(in srgb, #ffffff 84%, var(--accent-soft));
  line-height: 1.62;
}

.dachcheck-message-band .btn-primary {
  min-width: clamp(13.5rem, 17vw, 16rem);
  justify-content: center;
  background: linear-gradient(145deg, var(--cta-blue-start), var(--cta-blue-end));
  color: #fff;
  box-shadow: 0 16px 30px -20px rgba(0, 0, 0, 0.65);
}

.dachcheck-role-grid,
.dachcheck-explain-grid,
.dachcheck-trust-grid,
.dachcheck-intent-grid,
.dachcheck-control-grid,
.dachcheck-result-grid,
.dachcheck-quality-grid,
.dachcheck-image-grid,
.dachcheck-quiet-grid,
.dachcheck-partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.2rem);
}

.dachcheck-explain-grid,
.dachcheck-trust-grid,
.dachcheck-intent-grid,
.dachcheck-control-grid,
.dachcheck-result-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dachcheck-quality-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dachcheck-image-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dachcheck-quiet-grid {
  display: grid;
  gap: clamp(0.8rem, 1.8vw, 1.05rem);
}

.dachcheck-quiet-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dachcheck-quiet-grid--four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dachcheck-intent-card,
.dachcheck-quiet-grid article {
  min-width: 0;
  padding: clamp(0.95rem, 1.8vw, 1.18rem);
  border: 1px solid color-mix(in srgb, var(--line-strong) 58%, transparent);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  box-shadow: none;
}

.dachcheck-intent-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 0.7rem;
}

.dachcheck-intent-card h3 {
  margin: 0;
  font-size: clamp(1.02rem, 1.55vw, 1.18rem);
}

.dachcheck-intent-card p:not(.service-offer-meta) {
  margin: 0;
  color: var(--text-body);
  line-height: 1.62;
}

.dachcheck-intent-card .case-link {
  margin-top: auto;
}

.dachcheck-quiet-grid h3 {
  margin: 0 0 0.42rem;
  color: var(--text-strong);
  font-size: clamp(1.02rem, 1.55vw, 1.18rem);
}

.dachcheck-quiet-grid p {
  margin: 0;
  color: var(--text-body);
  line-height: 1.62;
}

.dachcheck-quiet-grid .check-list {
  margin-top: 0.55rem;
}

/* DachCheck 3-step process graphic */
.dachcheck-steps-grid h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.dachcheck-step-num {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
}

.dachcheck-quiet-note {
  border-color: color-mix(in srgb, var(--brand) 26%, var(--line-strong)) !important;
  background: color-mix(in srgb, var(--accent-soft) 42%, var(--surface));
}

.dachcheck-image-guidance-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem 1.1rem;
  align-items: center;
  margin-top: clamp(0.9rem, 2vw, 1.2rem);
  padding: clamp(0.95rem, 2vw, 1.2rem);
  border: 1px solid color-mix(in srgb, var(--warning) 42%, var(--line-strong));
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--warning) 11%, var(--surface));
}

.dachcheck-image-guidance-note h3 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.02rem, 1.55vw, 1.18rem);
}

.dachcheck-image-guidance-note p {
  margin: 0;
  color: var(--text-body);
  line-height: 1.62;
}

.dachcheck-image-guidance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
  align-items: center;
  justify-content: flex-end;
}

.dachcheck-image-guidance-actions .btn {
  white-space: nowrap;
}

.roof-term-link {
  appearance: none;
  display: inline;
  border: 0;
  padding: 0;
  background: transparent;
  color: color-mix(in srgb, var(--brand-strong) 86%, var(--text-strong));
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
  cursor: help;
}

.roof-term-link:hover,
.roof-term-link:focus-visible {
  color: var(--brand-strong);
}

.roof-term-layer {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.roof-term-layer[hidden] {
  display: none;
}

.roof-term-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(6, 24, 38, 0.46);
  cursor: pointer;
}

.roof-term-card {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
  padding: 1.15rem;
  border: 1px solid color-mix(in srgb, var(--line-strong) 76%, transparent);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 98%, transparent);
  box-shadow: var(--shadow-1);
}

.roof-term-close {
  position: absolute;
  top: 0.72rem;
  right: 0.72rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid color-mix(in srgb, var(--line-strong) 70%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-alt) 84%, var(--surface));
  color: var(--text-strong);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.roof-term-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.roof-term-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: min(72vh, 620px);
  object-fit: contain;
  border: 1px solid color-mix(in srgb, var(--line-strong) 72%, transparent);
  border-radius: var(--radius-sm);
  background: #fff;
}

.roof-term-image[hidden] {
  display: none;
}

.roof-term-card p {
  margin-top: 0.62rem;
  color: var(--text-body);
  line-height: 1.6;
}

.roof-term-copy[hidden] {
  display: none;
}

.roof-term-example {
  padding: 0.72rem 0.78rem;
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--line-strong));
  background: color-mix(in srgb, var(--accent-soft) 36%, var(--surface));
}

.dachcheck-compact-section {
  padding-block: clamp(1.2rem, 2.6vw, 2.2rem);
}

.dachcheck-compact-section .services-section-head {
  margin-bottom: clamp(0.85rem, 1.8vw, 1.25rem);
}

.dachcheck-compact-section .services-section-head h2 {
  max-width: 24ch;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  line-height: 1.08;
}

.dachcheck-compact-section .services-section-head p {
  max-width: 62ch;
}

.dachcheck-partner-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dachcheck-role-card,
.dachcheck-info-card,
.dachcheck-report-preview,
.dachcheck-partner-card,
.dachcheck-note {
  padding: clamp(1rem, 2.2vw, 1.35rem);
}

.dachcheck-role-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.62rem;
  padding: 0.24rem 0.62rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--accent-soft) 72%, var(--surface));
  color: color-mix(in srgb, var(--brand-strong) 78%, var(--text-strong));
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dachcheck-role-card h2,
.dachcheck-info-card h3,
.dachcheck-report-preview h3,
.dachcheck-partner-card h2,
.dachcheck-note h2 {
  margin: 0 0 0.48rem;
  font-size: clamp(1.18rem, 2vw, 1.44rem);
}

.dachcheck-role-card p,
.dachcheck-info-card p,
.dachcheck-partner-card p,
.dachcheck-note p {
  margin: 0;
  color: var(--text-body);
  line-height: 1.66;
}

.dachcheck-report-preview .check-list {
  margin-top: 0.7rem;
}

.dachcheck-process .services-section-head {
  margin-bottom: clamp(1rem, 2.4vw, 1.4rem);
}

.dachcheck-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.78rem;
  counter-reset: dachcheck-step;
}

.dachcheck-timeline li {
  counter-increment: dachcheck-step;
  position: relative;
  min-width: 0;
  padding: 0.92rem 0.88rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--line-strong) 72%, transparent);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: var(--shadow-2);
}

.dachcheck-timeline li::before {
  content: counter(dachcheck-step);
  width: 30px;
  height: 30px;
  margin-bottom: 0.58rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.dachcheck-timeline strong {
  display: block;
  margin-bottom: 0.34rem;
  min-height: 2.5em;
  line-height: 1.25;
  color: var(--text-strong);
}

.dachcheck-timeline span {
  display: block;
  color: var(--text-body);
  font-size: 0.92rem;
  line-height: 1.55;
}

.dachcheck-inline-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
  margin-top: clamp(1rem, 2vw, 1.35rem);
}

.dachcheck-inline-cta--subtle {
  margin-top: clamp(1.05rem, 2.1vw, 1.45rem);
}

.dachcheck-package-grid .service-offer-card {
  min-height: 100%;
}

.dachcheck-package-grid .service-offer-card {
  border-color: color-mix(in srgb, var(--line-strong) 76%, transparent);
}

.dachcheck-package-grid .service-offer-meta {
  color: color-mix(in srgb, var(--brand-strong) 76%, var(--text-strong));
}

/* Pakete: Chip-Reihen über alle Karten auf gleicher Höhe (Chips ans Karten-Ende) */
.dachcheck-package-grid .service-offer-card {
  grid-template-rows: 1fr;
}

.dachcheck-package-grid .service-offer-chips {
  margin-top: auto;
}

.dachcheck-price {
  margin: -0.2rem 0 0;
  width: fit-content;
  padding: 0.28rem 0.68rem;
  border-radius: var(--radius-pill);
  color: color-mix(in srgb, var(--brand-strong) 78%, var(--text-strong));
  background: color-mix(in srgb, var(--accent-soft) 72%, var(--surface));
  font-size: 1.02rem;
  font-weight: 800;
}

.dachcheck-price-note {
  margin: 0.95rem 0 0;
  max-width: 78ch;
  color: var(--text-body);
  line-height: 1.62;
}

.dachcheck-partner-card .check-list {
  margin-top: 0.78rem;
}

.dachcheck-info-card .check-list {
  margin-top: 0.72rem;
}

.dachcheck-partner-compact {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(280px, 0.74fr);
  gap: clamp(1rem, 2.6vw, 1.6rem);
  align-items: center;
  padding: clamp(1rem, 2.4vw, 1.45rem);
}

.dachcheck-partner-band {
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 12% 10%, rgba(18, 146, 135, 0.28), transparent 34%),
    linear-gradient(145deg, #082b42, #07324b 58%, #06273c);
  color: #fff;
  box-shadow: 0 30px 52px -34px rgba(4, 25, 40, 0.58);
}

.dachcheck-partner-band .kicker {
  color: color-mix(in srgb, #ffffff 72%, var(--accent-soft));
}

.dachcheck-partner-band .kicker::before {
  background: color-mix(in srgb, var(--brand) 70%, #ffffff);
}

.dachcheck-partner-compact h2 {
  margin: 0.45rem 0 0.4rem;
  font-size: clamp(1.28rem, 2.4vw, 1.82rem);
}

.dachcheck-partner-compact p {
  margin: 0;
  max-width: 72ch;
  color: color-mix(in srgb, #ffffff 82%, var(--accent-soft));
  line-height: 1.62;
}

.dachcheck-partner-compact h2 {
  color: inherit;
}

.dachcheck-partner-bars {
  display: grid;
  gap: 0.72rem;
}

.dachcheck-partner-bar {
  position: relative;
  display: grid;
  gap: 0.18rem;
  min-height: 72px;
  padding: 0.85rem 2.5rem 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, #ffffff 26%, transparent);
  background: color-mix(in srgb, #ffffff 10%, transparent);
  color: #fff;
  text-decoration: none;
}

.dachcheck-partner-bar::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 0.62rem;
  height: 0.62rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-50%) rotate(-45deg);
  opacity: 0.78;
}

.dachcheck-partner-bar span {
  font-weight: 850;
}

.dachcheck-partner-bar small {
  color: color-mix(in srgb, #ffffff 72%, var(--accent-soft));
  font-size: 0.84rem;
  line-height: 1.35;
}

.dachcheck-partner-bar:hover,
.dachcheck-partner-bar:focus-visible {
  border-color: color-mix(in srgb, var(--brand) 64%, #ffffff);
  background: color-mix(in srgb, var(--brand) 18%, #ffffff 8%);
}

.dachcheck-contact-section {
  padding-top: clamp(2rem, 4vw, 3rem);
}

.dachcheck-contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.18fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}

.dachcheck-contact-copy {
  position: sticky;
  top: 6rem;
  display: grid;
  gap: 0.85rem;
}

.dachcheck-back-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.52rem;
  padding: 0.46rem 0.72rem 0.46rem 0.5rem;
  border: 1px solid color-mix(in srgb, var(--line-strong) 72%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, var(--accent-soft));
  color: color-mix(in srgb, var(--brand-strong) 84%, var(--text-strong));
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 24px -24px rgba(14, 45, 68, 0.34);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.dachcheck-back-link::before {
  content: "\2191";
  display: inline-grid;
  width: 1.32rem;
  height: 1.32rem;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 14%, var(--surface));
  color: var(--brand-strong);
  font-size: 0.95rem;
  line-height: 1;
}

.dachcheck-back-link:hover,
.dachcheck-back-link:focus-visible {
  border-color: color-mix(in srgb, var(--brand) 42%, var(--line-strong));
  background: color-mix(in srgb, var(--surface) 84%, var(--accent-soft));
  box-shadow: 0 14px 26px -22px rgba(14, 45, 68, 0.42);
  transform: translateY(-1px);
  text-decoration: none;
}

/* Aufmerksamkeits-Hüpfer: Doppel-Bounce alle paar Sekunden, dann Pause */
@keyframes dachcheck-back-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  70% { transform: translateY(-8px); }
  80% { transform: translateY(0); }
  87% { transform: translateY(-5px); }
  94% { transform: translateY(0); }
}

.dachcheck-back-link {
  animation: dachcheck-back-bounce 3s ease-in-out infinite;
  will-change: transform;
}

.dachcheck-back-link:hover,
.dachcheck-back-link:focus-visible {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .dachcheck-back-link {
    animation: none;
  }
}

.dachcheck-back-link--inline {
  display: flex;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.dachcheck-contact-copy h2 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.06;
}

.dachcheck-contact-copy p {
  margin: 0;
  max-width: 44ch;
  color: var(--text-body);
  line-height: 1.68;
}

.dachcheck-contact-copy .check-list {
  margin-top: 0.15rem;
}

.dachcheck-contact-card {
  box-shadow: var(--shadow-2);
}

.dachcheck-form-alt-link {
  margin: -0.35rem 0 0.95rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.dachcheck-form-alt-link a {
  color: color-mix(in srgb, var(--brand-strong) 82%, var(--text-strong));
  font-weight: 800;
  text-underline-offset: 0.16em;
}

.dachcheck-contact-form textarea {
  min-height: 146px;
}

.mobile-sticky-cta {
  display: none;
}

.dachcheck-seo-copy {
  padding: clamp(1.1rem, 2.6vw, 1.65rem);
}

.dachcheck-seo-copy h2 {
  margin: 0.45rem 0 0.9rem;
  max-width: 28ch;
  font-size: clamp(1.35rem, 2.7vw, 2.15rem);
  line-height: 1.15;
}

.dachcheck-seo-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.1rem, 3vw, 2rem);
  align-items: start;
}

.dachcheck-seo-columns > div:last-child {
  grid-column: 1 / -1;
  max-width: 92ch;
}

.dachcheck-seo-copy h3 {
  margin: 0.2rem 0 0.5rem;
  color: var(--text-strong);
  font-size: clamp(1.04rem, 1.6vw, 1.22rem);
}

.dachcheck-seo-copy p {
  max-width: 72ch;
  color: var(--text-body);
  line-height: 1.72;
}

.dachcheck-seo-copy p + p {
  margin-top: 0.82rem;
}

.dachcheck-seo-copy a {
  color: color-mix(in srgb, var(--brand-strong) 82%, var(--text-strong));
  font-weight: 800;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.dachcheck-seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.dachcheck-seo-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line-strong) 68%, transparent);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  color: color-mix(in srgb, var(--brand-strong) 82%, var(--text-strong));
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dachcheck-seo-links a:hover,
.dachcheck-seo-links a:focus-visible {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
  color: var(--brand-strong);
}

.dachcheck-faq-list {
  display: grid;
  gap: 0.75rem;
}

.dachcheck-faq-list details {
  border: 1px solid color-mix(in srgb, var(--line-strong) 72%, transparent);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.dachcheck-faq-list summary {
  cursor: pointer;
  padding: 1rem 1.15rem;
  color: var(--text-strong);
  font-weight: 800;
  list-style: none;
}

.dachcheck-faq-list summary::-webkit-details-marker {
  display: none;
}

.dachcheck-faq-list summary::after {
  content: "+";
  float: right;
  color: var(--brand);
  font-weight: 900;
}

.dachcheck-faq-list details[open] summary::after {
  content: "-";
}

.dachcheck-faq-list p {
  margin: 0;
  padding: 0 1.15rem 1rem;
  color: var(--text-body);
  line-height: 1.65;
}

/* Aufklappbare FAQ auf Standort- und Leistungsseiten: klares Plus/Minus-Signal */
.faq details {
  border: 1px solid color-mix(in srgb, var(--line-strong) 70%, transparent);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  margin-top: 0.7rem;
  overflow: hidden;
}

.faq details summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 0.95rem 2.7rem 0.95rem 1.1rem;
  font-weight: 700;
  color: var(--text-strong);
}

.faq details summary::-webkit-details-marker {
  display: none;
}

.faq details summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand);
  font-weight: 900;
  font-size: 1.25em;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details summary:hover {
  color: var(--brand);
}

.faq details[open] summary {
  background: color-mix(in srgb, var(--brand) 7%, transparent);
}

.faq details > p {
  margin: 0;
  padding: 0 1.1rem 1rem;
  line-height: 1.65;
}

@media (max-width: 1060px) {
  .dachcheck-hero-grid,
  .dachcheck-role-grid,
  .dachcheck-explain-grid,
  .dachcheck-trust-grid,
  .dachcheck-intent-grid,
  .dachcheck-control-grid,
  .dachcheck-result-grid,
  .dachcheck-quality-grid,
  .dachcheck-image-grid,
  .dachcheck-quiet-grid,
  .dachcheck-seo-columns,
  .dachcheck-partner-grid,
  .dachcheck-message-band,
  .dachcheck-hero-trust,
  .dachcheck-contact-layout {
    grid-template-columns: 1fr;
  }

  .dachcheck-contact-copy {
    position: static;
  }

  .dachcheck-seo-columns > div:last-child {
    grid-column: auto;
  }

  .dachcheck-partner-compact {
    grid-template-columns: 1fr;
  }

  .dachcheck-message-band h2,
  .dachcheck-message-copy,
  .dachcheck-image-guidance-note {
    grid-column: 1;
  }

  .dachcheck-image-guidance-note {
    grid-template-columns: 1fr;
  }

  .dachcheck-image-guidance-actions {
    justify-content: flex-start;
  }

  .dachcheck-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .dachcheck-hero-copy h1 {
    font-size: clamp(2rem, 10vw, 2.82rem);
  }

  .dachcheck-hero-grid {
    gap: 1rem;
  }

  .dachcheck-hero-media img {
    height: clamp(220px, 56vw, 280px);
    aspect-ratio: auto;
    object-fit: cover;
  }

  body[data-page="dachcheck"] .dachcheck-hero:has(.dachcheck-hero-trust) + .section-tight {
    padding-top: clamp(1rem, 4vw, 1.35rem);
  }

  .dachcheck-hero .hero-actions.dachcheck-hero-actions-even {
    grid-template-columns: 1fr;
  }

  .dachcheck-hero .hero-actions .btn {
    width: 100%;
  }

  .dachcheck-hero-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.48rem;
    margin-top: 0.82rem;
  }

  .dachcheck-hero-trust span {
    min-height: 4.25rem;
    padding: 0.52rem 0.56rem;
    gap: 0.42rem;
    font-size: 0.78rem;
    line-height: 1.28;
  }

  .dachcheck-hero-trust span:nth-child(1) {
    order: 1;
  }

  .dachcheck-hero-trust span:nth-child(2) {
    order: 3;
  }

  .dachcheck-hero-trust span:nth-child(3) {
    order: 2;
  }

  .dachcheck-hero-trust span:nth-child(4) {
    order: 4;
  }

  .dachcheck-hero-trust span::before {
    width: 0.42rem;
    height: 0.42rem;
    margin-top: 0.34em;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-soft) 58%, transparent);
  }

  .dachcheck-message-band .btn {
    width: 100%;
  }

  .dachcheck-image-guidance-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dachcheck-image-guidance-actions .btn {
    width: 100%;
  }

  .dachcheck-timeline {
    grid-template-columns: 1fr;
  }

  .mobile-sticky-cta {
    position: fixed;
    z-index: 80;
    right: 1rem;
    bottom: max(0.78rem, env(safe-area-inset-bottom));
    left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    max-width: calc(100vw - 2rem);
    padding: 0.72rem 1rem;
    border-radius: var(--radius-pill);
    background: var(--brand);
    color: #fff;
    font-size: 0.94rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: var(--shadow-3);
  }

  body[data-page="dachcheck"]:has(#dachcheck-anfrage:target) .mobile-sticky-cta,
  body[data-page="dachcheck"]:has(#dachcheck-anfrage :focus) .mobile-sticky-cta {
    display: none;
  }

  body[data-page="dachcheck"] .site-footer {
    padding-bottom: 5rem;
  }
}

@media (max-width: 900px) {
  .location-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .location-fact-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .location-zone-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .location-overview-page .container {
    width: min(100% - 1rem, 1180px);
  }

  .location-overview-page .location-hero h1.section-title {
    max-width: 100%;
    font-size: clamp(2rem, 11vw, 2.7rem);
  }

  .location-hero-actions .btn {
    width: 100%;
  }

  .location-fact-strip {
    grid-template-columns: 1fr;
  }

  .location-city-links a,
  .location-city-links span {
    min-height: 1.9rem;
    font-size: 0.84rem;
  }

  .location-overview-page .location-card-grid {
    --location-mobile-card-width: clamp(17.5rem, 82vw, 22rem);
    display: grid;
    grid-template-columns: var(--location-mobile-card-width);
    grid-auto-flow: column;
    grid-auto-columns: var(--location-mobile-card-width);
    gap: 0.72rem;
    overflow-x: auto;
    overflow-y: visible;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 0.05rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .location-overview-page .location-card-grid .trust-item {
    width: auto;
    min-height: 11.25rem;
    padding: 0.95rem 1rem;
    scroll-snap-align: start;
  }

  .location-overview-page .location-card-grid .trust-item strong {
    margin-bottom: 0.45rem;
    font-size: 1.04rem;
    line-height: 1.28;
  }

  .location-overview-page .location-card-grid .trust-item p {
    margin: 0;
    line-height: 1.55;
  }

  .location-overview-page .location-card-grid .trust-item-cta {
    padding-top: 0.55rem;
  }
}

/* ============================================================
   Dezente Micro-Interaktionen (Startseite)
   Hero-Bullets stagger | DachCheck-Akzentlinie | CTA-Schimmer |
   Service-Karten Hover-Zoom. Respektiert prefers-reduced-motion.
   ============================================================ */

/* 1) Hero-Bullets nacheinander leicht einblenden */
body[data-page="home"].is-ready .hero-points li {
  animation: heroPointFade 0.5s ease both;
}
body[data-page="home"].is-ready .hero-points li:nth-child(1) { animation-delay: 0.1s; }
body[data-page="home"].is-ready .hero-points li:nth-child(2) { animation-delay: 0.5s; }
body[data-page="home"].is-ready .hero-points li:nth-child(3) { animation-delay: 0.9s; }
body[data-page="home"].is-ready .hero-points li:nth-child(4) { animation-delay: 1.3s; }

@keyframes heroPointFade {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 2) DachCheck-Callout: feine Akzentlinie / Rand-Glow laeuft einmal durch
      (ausgeloest beim Scrollen ins Sichtfeld via .in-view) */
.home-dachcheck {
  position: relative;
}
.home-dachcheck::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10px;
  right: 10px;
  height: 2px;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--accent) 70%, var(--brand)) 25%,
    var(--accent) 50%,
    color-mix(in srgb, var(--accent) 70%, var(--brand)) 75%,
    transparent 100%
  );
  box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 45%, transparent);
  opacity: 0;
  pointer-events: none;
}
.home-dachcheck.in-view::before {
  animation: dachcheckLine 1.5s ease 0.05s 1 both;
}
@keyframes dachcheckLine {
  0%   { transform: scaleX(0); opacity: 0; }
  16%  { opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

/* 3) CTA "Leistungen ansehen": einmaliger, ruhiger Lichtschimmer
      nach dem Laden (kein Dauerpulsen, Hover-Effekt bleibt erhalten) */
body[data-page="home"].is-ready .hero-actions .btn-primary::after {
  animation: ctaSheen 1.15s ease 0.9s 1;
}
@keyframes ctaSheen {
  0%   { transform: translateX(-72%); opacity: 0; }
  12%  { opacity: 0.3; }
  100% { transform: translateX(72%); opacity: 0; }
}

/* 4) Service-Karten: Bild minimal zoomen + Titel-Badge betonen bei Hover/Fokus */
body[data-page="home"] #leistungen .service-card img {
  transition: transform 0.4s ease;
  will-change: transform;
}
body[data-page="home"] #leistungen .service-card:hover img,
body[data-page="home"] #leistungen .service-card:focus-visible img {
  transform: scale(1.02);
}
body[data-page="home"] #leistungen .service-card-title-badge {
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}
body[data-page="home"] #leistungen .service-card:hover .service-card-title-badge,
body[data-page="home"] #leistungen .service-card:focus-visible .service-card-title-badge {
  border-color: color-mix(in srgb, var(--brand) 42%, var(--line-strong));
  background: color-mix(in srgb, var(--surface-alt) 94%, var(--brand));
  box-shadow: 0 6px 14px -10px rgba(8, 43, 71, 0.4);
}

/* Reduced-Motion: alle vier Effekte deaktivieren */
@media (prefers-reduced-motion: reduce) {
  body[data-page="home"].is-ready .hero-points li,
  .home-dachcheck.in-view::before,
  body[data-page="home"].is-ready .hero-actions .btn-primary::after {
    animation: none !important;
  }
  .home-dachcheck::before {
    opacity: 0 !important;
  }
  body[data-page="home"] #leistungen .service-card:hover img,
  body[data-page="home"] #leistungen .service-card:focus-visible img {
    transform: none !important;
  }
}

/* =========================================================================
   DachCheck Start-Seite: Stepper + Drag-and-drop Upload
   ========================================================================= */
.dc-start-hero { padding-bottom: 0.5rem; }
.dc-start-hero .lead { max-width: 60ch; }

/* --- Stepper --- */
.dc-stepper {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  counter-reset: none;
}
.dc-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--line-strong) 60%, transparent);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.dc-step-num {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 16%, var(--surface));
  color: var(--brand-strong);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  transition: background 0.25s ease, color 0.25s ease;
}
.dc-step-text { display: flex; flex-direction: column; gap: 0.15rem; }
.dc-step-text strong { color: var(--text-strong); font-size: 1rem; }
.dc-step-text span { color: var(--text-muted); font-size: 0.86rem; line-height: 1.35; }
.dc-step.is-active {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line-strong));
  background: color-mix(in srgb, var(--accent-soft) 38%, var(--surface));
  box-shadow: 0 6px 22px -16px color-mix(in srgb, var(--brand) 70%, transparent);
}
.dc-step.is-active .dc-step-num { background: var(--brand); color: #fff; }
.dc-step.is-done .dc-step-num { background: var(--accent); color: #fff; }
.dc-step.is-done .dc-step-num span,
.dc-step.is-done .dc-step-num { font-size: 1rem; }

@media (max-width: 700px) {
  .dc-stepper { grid-template-columns: 1fr; gap: 0.55rem; }
}

/* --- Upload-Block --- */
.dc-upload { display: flex; flex-direction: column; gap: 0.5rem; }
.dc-upload-label { font-weight: 600; color: var(--text-strong); font-size: 0.95rem; }
.dc-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  padding: 1.6rem 1.2rem;
  border: 2px dashed color-mix(in srgb, var(--brand) 45%, var(--line-strong));
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-alt) 60%, var(--surface));
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.dc-dropzone:hover {
  border-color: color-mix(in srgb, var(--brand) 70%, var(--line-strong));
  background: color-mix(in srgb, var(--surface) 98%, transparent);
}
.dc-dropzone:focus-within {
  outline: 2px solid var(--brand-focus);
  outline-offset: 2px;
}
.dc-dropzone.is-dragover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface));
  transform: translateY(-1px);
}
.dc-dropzone-input {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.dc-dropzone-icon {
  display: inline-flex;
  color: var(--brand);
}
.dc-dropzone-icon svg {
  width: 40px; height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dc-dropzone.is-dragover .dc-dropzone-icon { color: var(--accent); }
.dc-dropzone-primary { font-weight: 700; color: var(--text-strong); font-size: 1.02rem; }
.dc-dropzone-secondary { color: var(--text-body); font-size: 0.9rem; }
.dc-dropzone-browse { color: var(--brand-strong); text-decoration: underline; }
.dc-dropzone-meta { color: var(--text-muted); font-size: 0.78rem; }
.dc-upload-hint { color: var(--text-muted); font-size: 0.82rem; line-height: 1.4; margin: 0; }
.dc-upload-error {
  color: #b3261e;
  font-size: 0.85rem;
  margin: 0;
}
[data-theme="dark"] .dc-upload-error { color: #ff9a90; }

/* --- Vorschau-Thumbnails --- */
.dc-thumbs {
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 0.6rem;
}
.dc-thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line-strong) 70%, transparent);
  background: var(--surface-alt);
  aspect-ratio: 1 / 1;
}
.dc-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.dc-thumb-file {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  height: 100%;
  padding: 0.4rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  text-align: center;
  word-break: break-word;
}
.dc-thumb-file svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dc-thumb-remove {
  position: absolute;
  top: 4px; right: 4px;
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: color-mix(in srgb, #0d1822 62%, transparent);
  color: #fff;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}
.dc-thumb-remove:hover { background: #b3261e; }
.dc-thumb-remove:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.dc-thumb-name {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2px 5px;
  background: color-mix(in srgb, #0d1822 60%, transparent);
  color: #fff;
  font-size: 0.66rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Mini-Trust-Zeile --- */
.dc-trust-mini {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent-soft) 46%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line-strong));
  color: var(--text-body);
  font-size: 0.82rem;
  line-height: 1.4;
}
.dc-trust-mini svg {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  margin-top: 1px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Erfolgs-Panel --- */
.dc-success {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent-soft) 60%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line-strong));
}
.dc-success[hidden] { display: none; }
.dc-success-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}
.dc-success-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.dc-success strong { color: var(--text-strong); display: block; margin-bottom: 0.15rem; }
.dc-success p { margin: 0; color: var(--text-body); font-size: 0.9rem; line-height: 1.45; }

@media (prefers-reduced-motion: reduce) {
  .dc-step, .dc-dropzone, .dc-thumb-remove { transition: none; }
  .dc-dropzone.is-dragover { transform: none; }
}

/* Klickbare Schritt-1-Karte (DachCheck-Hub -> Upload-Seite) */
.dachcheck-steps-grid .dachcheck-step-card--link { padding: 0; }
.dachcheck-step-card--link { transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.dachcheck-step-link {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  height: 100%;
  padding: clamp(0.95rem, 1.8vw, 1.18rem);
  color: inherit;
  text-decoration: none;
  border-radius: inherit;
  transition: background 0.2s ease;
}
.dachcheck-step-card--link:hover,
.dachcheck-step-card--link:focus-within {
  border-color: color-mix(in srgb, var(--brand) 58%, var(--line-strong));
  box-shadow: 0 10px 26px -20px color-mix(in srgb, var(--brand) 70%, transparent);
}
.dachcheck-step-card--link:hover .dachcheck-step-link {
  background: color-mix(in srgb, var(--accent-soft) 30%, transparent);
}
.dachcheck-step-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--brand-strong);
  font-weight: 600;
  font-size: 0.9rem;
}
.dachcheck-step-cta span { transition: transform 0.2s ease; }
.dachcheck-step-card--link:hover .dachcheck-step-cta span,
.dachcheck-step-card--link:focus-within .dachcheck-step-cta span { transform: translateX(3px); }
.dachcheck-step-link:focus-visible { outline: 2px solid var(--brand-focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .dachcheck-step-link, .dachcheck-step-card--link, .dachcheck-step-cta span { transition: none; }
  .dachcheck-step-card--link:hover .dachcheck-step-cta span { transform: none; }
}

/* CTA-Karte am Seitenende (DachCheck-Themenseiten + Hub) */
.dachcheck-cta-card {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  display: grid;
  gap: 0.9rem;
  justify-items: start;
}
.dachcheck-cta-card h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.12;
}
.dachcheck-cta-card p {
  margin: 0;
  max-width: 64ch;
  color: var(--text-body);
  line-height: 1.65;
}
.dachcheck-cta-card .btn {
  margin-top: 0.35rem;
}
.dachcheck-cta-card .dachcheck-cta-note {
  margin: 0.1rem 0 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

/* Quellenhinweis unter dem Statistik-Kachelblock (Projektseiten) */
body[data-page="projects"] .current-projects-overview-source {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Upload-Fortschritt (DachCheck Chunk-Upload) */
.dc-progress {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.3rem;
}
.dc-progress-track {
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line-strong) 40%, transparent);
  overflow: hidden;
}
.dc-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--brand);
  transition: width 0.25s ease;
}
.dc-progress-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.dc-progress-cancel {
  justify-self: start;
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--line-strong) 60%, transparent);
  background: var(--surface);
  color: var(--text-body);
  font: inherit;
  font-size: 0.82rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
}
.dc-progress-cancel:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line-strong));
}
.dc-progress-cancel:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Rehkitz: Foto-Umschalter Originalbild <-> Waermebild (reines CSS, CSP-safe) */
.kitz-compare {
  margin: 1.4rem 0 0.6rem;
}
.kitz-compare-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.kitz-compare-figure {
  margin: 0;
}
.kitz-compare-stage {
  position: relative;
}
.kitz-compare-img {
  width: 100%;
  height: auto;
  border-radius: clamp(0.6rem, 1.4vw, 1rem);
}
.kitz-compare-a {
  display: block !important;
}
.kitz-compare-b {
  display: none !important;
}
.kitz-compare-input:checked ~ .kitz-compare-figure .kitz-compare-a {
  display: none !important;
}
.kitz-compare-input:checked ~ .kitz-compare-figure .kitz-compare-b {
  display: block !important;
}
.kitz-compare-caption {
  margin-top: 0.55rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.kitz-cap-b {
  display: none;
}
.kitz-compare-input:checked ~ .kitz-compare-figure .kitz-cap-a {
  display: none;
}
.kitz-compare-input:checked ~ .kitz-compare-figure .kitz-cap-b {
  display: inline;
}
.kitz-compare-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.7rem;
  flex-wrap: wrap;
}
.kitz-compare-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 22px -16px rgba(14, 45, 68, 0.5);
}
.kitz-compare-btn:hover {
  transform: translateY(-1px);
  background: var(--brand-strong);
}
.kitz-compare-btn svg {
  width: 1.05rem;
  height: 1.05rem;
}
.kitz-btn-a,
.kitz-btn-b {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.kitz-btn-b {
  display: none;
}
.kitz-compare-input:checked ~ .kitz-compare-controls .kitz-btn-a {
  display: none;
}
.kitz-compare-input:checked ~ .kitz-compare-controls .kitz-btn-b {
  display: inline-flex;
}
.kitz-compare-input:focus-visible ~ .kitz-compare-controls .kitz-compare-btn {
  outline: 2px solid var(--brand-strong);
  outline-offset: 2px;
}
.kitz-compare-dots {
  display: inline-flex;
  gap: 0.4rem;
}
.kitz-compare-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--text-muted) 45%, transparent);
}
.kitz-compare-dots .kitz-dot-a {
  background: var(--brand);
}
.kitz-compare-input:checked ~ .kitz-compare-controls .kitz-compare-dots .kitz-dot-a {
  background: color-mix(in srgb, var(--text-muted) 45%, transparent);
}
.kitz-compare-input:checked ~ .kitz-compare-controls .kitz-compare-dots .kitz-dot-b {
  background: var(--brand);
}
@media (prefers-reduced-motion: reduce) {
  .kitz-compare-btn {
    transition: none;
  }
}

/* Auswahl waehrend des laufenden Uploads sperren */
.dc-upload.is-uploading .dc-dropzone,
.dc-upload.is-uploading .dc-thumbs {
  pointer-events: none;
  opacity: 0.55;
}

/* --- DachCheck Upload: Miniuebersicht, Qualitaetshinweis und Lightbox --- */
.dc-thumbs {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}
.dc-thumb {
  display: flex;
  flex-direction: column;
  aspect-ratio: auto;
  min-height: 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 10px 26px -24px color-mix(in srgb, var(--brand) 55%, #000);
}
.dc-thumb-preview {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}
.dc-thumb-preview:focus-visible {
  outline: 2px solid var(--brand-focus);
  outline-offset: -2px;
}
.dc-thumb-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface-alt) 82%, transparent);
}
.dc-thumb-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dc-thumb-loader {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}
.dc-thumb-loader::before {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--brand) 18%, transparent);
  border-top-color: var(--brand);
  animation: dc-upload-spin 0.8s linear infinite;
}
.dc-thumb.is-checking .dc-thumb-loader,
.dc-upload.is-checking .dc-dropzone::after {
  display: flex;
}
.dc-thumb-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.55rem 0.65rem 0.65rem;
}
.dc-thumb-name {
  position: static;
  padding: 0;
  background: none;
  color: var(--text-strong);
  font-size: 0.76rem;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dc-thumb-size {
  color: var(--text-muted);
  font-size: 0.72rem;
}
.dc-thumb-warning {
  margin: 0.2rem 0 0;
  padding: 0.4rem 0.45rem;
  border-radius: 10px;
  background: color-mix(in srgb, #f59f00 14%, var(--surface));
  color: color-mix(in srgb, #7a4d00 82%, var(--text-strong));
  font-size: 0.7rem;
  line-height: 1.35;
}
.dc-upload.is-checking .dc-dropzone {
  border-color: color-mix(in srgb, var(--brand) 70%, var(--line-strong));
}
.dc-upload.is-checking .dc-dropzone::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--brand) 18%, transparent);
  border-top-color: var(--brand);
  animation: dc-upload-spin 0.8s linear infinite;
}
@keyframes dc-upload-spin {
  to { transform: rotate(360deg); }
}
.dc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: min(5vw, 2rem);
  background: rgba(7, 16, 25, 0.82);
  backdrop-filter: blur(7px);
}
.dc-lightbox[hidden] { display: none; }
.dc-lightbox-image {
  max-width: min(94vw, 1100px);
  max-height: 78vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 24px 70px -30px rgba(0, 0, 0, 0.75);
  background: #fff;
}
.dc-lightbox-caption {
  margin: 0;
  max-width: min(94vw, 1100px);
  color: #fff;
  font-size: 0.9rem;
  text-align: center;
}
.dc-lightbox-close {
  position: fixed;
  top: 1.15rem;
  right: 1.15rem;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #102132;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 14px 34px -20px rgba(0, 0, 0, 0.8);
}
.dc-lightbox-close:focus-visible {
  outline: 3px solid var(--brand-focus);
  outline-offset: 3px;
}
@media (max-width: 520px) {
  .dc-thumbs { grid-template-columns: 1fr 1fr; }
  .dc-thumb-warning { font-size: 0.66rem; }
}
@media (prefers-reduced-motion: reduce) {
  .dc-thumb-loader::before,
  .dc-upload.is-checking .dc-dropzone::after {
    animation: none;
  }
}
