/* =========================
   1) RESET / BASIS
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

img,
picture {
  display: block;
  max-width: 100%;
}

input,
textarea,
button,
select {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================
   2) DESIGN TOKENS / GLOBAL
========================= */
:root {
  /* Farben */
  --color-primary: #243447;
  --color-primary-strong: #182633;
  --color-accent: #b42318;
  --color-accent-hover: #8f1d13;
  --color-gold: #c9a44c;

  --color-text: #243447;
  --color-text-soft: #4b5b6a;
  --color-text-muted: #6b7280;

  --color-bg: #ffffff;
  --color-bg-soft: #f6f7f9;
  --color-bg-soft-2: #eef1f4;

  --color-border: #d9e0e7;
  --color-border-strong: #c6d0da;

  /* Typografie */
  --font-heading: "Source Sans 3", sans-serif;
  --font-body: "Inter", sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.625rem;

  --lh-tight: 1.1;
  --lh-heading: 1.2;
  --lh-body: 1.65;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Layout */
  --container-width: 1200px;
  --container-narrow: 860px;
  --container-pad: 24px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --shadow-sm: 0 6px 18px rgba(20, 33, 45, 0.04);
  --shadow-md: 0 12px 30px rgba(20, 33, 45, 0.08);

  --transition: 180ms ease;

  /* Globales Blocksystem */
  --block-space-y: clamp(32px, 4vw, 48px);
  --block-head-gap: clamp(14px, 2vw, 22px);
  --block-content-gap: clamp(22px, 3vw, 34px);

  /* Hero-System */
  --hero-space-y: clamp(32px, 5vw, 48px);
  --hero-content-y: clamp(24px, 4vw, 40px);
  --hero-head-gap: clamp(16px, 2vw, 24px);
  --hero-action-gap: clamp(22px, 3vw, 30px);
}

/* =========================
   3) GLOBAL TYPOGRAFIE
========================= */
body {
  min-width: 320px;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1 {
  font-size: clamp(2.25rem, 4vw, var(--fs-3xl));
  line-height: var(--lh-tight);
}

h2 {
  font-size: clamp(1.75rem, 3vw, var(--fs-2xl));
}

h3 {
  font-size: var(--fs-xl);
}

h4 {
  font-size: var(--fs-lg);
}

p {
  color: var(--color-text-soft);
}

strong {
  font-weight: var(--fw-semibold);
}

small {
  font-size: var(--fs-xs);
}


.text-lead {
  font-size: var(--fs-md);
  line-height: 1.7;
  color: var(--color-text-soft);
}

.text-body {
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--color-text-soft);
}

.text-note {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--color-text-muted);
}

.lead {
  color: var(--color-text-soft);
  font-size: var(--fs-md);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--color-accent);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =========================
   4) GLOBALE LAYOUT-KLASSEN
========================= */
.container {
  width: min(100% - (var(--container-pad) * 2), var(--container-width));
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - (var(--container-pad) * 2), var(--container-narrow));
  margin-inline: auto;
}

.section {
  padding: 0;
}

.section-alt {
  background: var(--color-bg-soft);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 24px;
}

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

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

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

.span-2 {
  grid-column: span 2;
}


.layout-center {
  margin-inline: auto;
  margin-left: auto;
  margin-right: auto;
}

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

.measure-sm {
  max-width: 720px !important;
}

.measure-md {
  max-width: 860px !important;
}

.measure-lg {
  max-width: 980px !important;
}

.section-head-full {
  max-width: none !important;
}

.section-head {
  max-width: none;
}

.stack-xs > * + * {
  margin-top: 12px;
}

.stack-sm > * + * {
  margin-top: 16px;
}

.stack-md > * + * {
  margin-top: 20px;
}

.stack-lg > * + * {
  margin-top: 28px;
}

/* =========================
   5) GLOBALER INHALTSBLOCK
========================= */
.content-block {
  padding-block: var(--block-space-y);
}

.content-block-head {
  display: grid;
  gap: var(--block-head-gap);
  max-width: 760px;
  margin-bottom: var(--block-head-gap);
}

.content-block-head > * {
  margin: 0 !important;
}

.content-block-head p,
.content-block-head .lead,
.content-block-head h2,
.content-block-head h3 {
  margin: 0 !important;
}

.content-block-body {
  
  gap: var(--block-content-gap);
  display: grid;
}

.content-block-body-portal {
  display: flex;
  justify-content: center;
}

.content-block-body > * {
  margin: 0 !important;
}

/* =========================
   6) WIEDERVERWENDBARE KOMPONENTEN
========================= */
.box,
.card,
.info-box {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.box {
  padding: 24px 22px;
}

.box-soft {
  background: var(--color-bg-soft);
}

.box-accent-left {
  border-left: 4px solid var(--color-accent);
}

.card {
  height: 100%;
  padding: 28px;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  font-size: var(--fs-md);
  line-height: var(--lh-body);
}

.highlight-box {
  padding: 18px 20px;
  background: var(--color-bg-soft);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--color-text);
  font-size: var(--fs-md);
  line-height: 1.7;
}

.list,
.list-dot,
.list-check {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-bullet {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-bullet li {
  position: relative;
  padding-left: 18px;
  color: var(--color-text);
  font-size: var(--fs-md);
  line-height: 1.6;
}

.list-bullet li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  transform: translateY(-50%);
}

.list-dot li,
.list-check li,
.list li {
  position: relative;
  color: var(--color-text);
  font-size: var(--fs-md);
  line-height: 1.6;
}

.list-dot li {
  padding-left: 18px;
}

.list-dot li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  transform: translateY(-50%);
}

.list-check li {
  padding-left: 22px;
}

.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
  font-weight: var(--fw-bold);
}

.portal-error {
  background: #fdecea;
  color: #b42318;
  border: 1px solid #f3c5c0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
}

/* =========================
   7) HEADER / NAV
========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  height: 26px;
  width: auto;
  object-fit: contain;
}

.brand-flag {
  height: 29px;
  width: auto;
  object-fit: contain;
  border: 0px solid var(--color-border);
  border-radius: 4px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 16px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  justify-content: flex-end;
  margin-left: auto;
}

.main-nav a {
  position: relative;
  color: var(--color-text);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  transition: color var(--transition);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--color-primary-strong);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--color-border-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--color-primary);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform var(--transition), opacity var(--transition);
}

.site-header.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-portal {
  white-space: nowrap;
}

/* =========================
   8) HERO
========================= */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-soft);
  padding-block: var(--hero-space-y);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(241, 243, 246, 0.92) 0%,
    rgba(241, 243, 246, 0.85) 30%,
    rgba(241, 243, 246, 0.65) 50%,
    rgba(241, 243, 246, 0.30) 70%,
    rgba(241, 243, 246, 0.00) 100%
  );
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 760px;
  padding-block: var(--hero-content-y);
}

.hero-content h1 {
  max-width: 25ch;
}

.hero-sub {
  max-width: 34ch;
  margin-top: var(--hero-head-gap);
  font-size: var(--fs-md);
  color: var(--color-text-soft);
  opacity: 0.9;
}

.hero-content .btn {
  margin-top: var(--hero-action-gap);
}

/* =========================
   9) SEKTIONEN
========================= */
.intro-section {
  background: var(--color-bg);
}

.intro-card {
  padding: 22px 20px;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

.intro-main {
  max-width: 760px;
}

.intro-kicker {
  margin-bottom: 20px;
  color: var(--color-primary);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  line-height: 1.35;
}

.intro-main p {
  color: var(--color-text);
  font-size: var(--fs-md);
  line-height: 1.7;
}

.intro-main p + p {
  margin-top: 18px;
}

.intro-points,
.intro-benefits,
.reality-list,
.competence-list,
.solution-benefits-list,
.impact-right ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.intro-points li,
.intro-benefits li,
.reality-list li,
.competence-list li,
.solution-benefits-list li,
.impact-right li,
.list-bullet li,
.list-check li,
.list-dot li {
  list-style: none;
}

.intro-points li::marker,
.intro-benefits li::marker,
.reality-list li::marker,
.competence-list li::marker,
.solution-benefits-list li::marker,
.impact-right li::marker,
.list-bullet li::marker,
.list-check li::marker,
.list-dot li::marker {
  content: "";
}

.intro-points {
  display: grid;
  gap: 14px;
  margin: 22px 0;
}

.intro-points li {
  position: relative;
  padding-left: 18px;
  color: var(--color-text);
  font-size: var(--fs-md);
  line-height: 1.65;
}

.intro-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  transform: translateY(-50%);
}

.intro-side-box {
  padding: 28px 26px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.intro-claim-name {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  line-height: 1.3;
}

.intro-claim-sub {
  margin-top: 10px;
  color: var(--color-primary-strong);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  line-height: 1.45;
}

.intro-benefits {
  display: grid;
  gap: 14px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--color-border);
}

.intro-benefits li {
  padding-left: 28px;
  color: var(--color-primary);
  font-weight: var(--fw-semibold);
  line-height: 1.55;
}

.reality-section,
.content-areas-section,
.references-section,
.problem-section {
  background: var(--color-bg-soft);
}

.problem-section {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.reality-layout,
.solution-grid,
.solution-impact-item {
  display: grid;
  gap: 32px;
}

.reality-layout {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.reality-list {
  column-count: 2;
  column-gap: 32px;
}

.reality-list li,
.competence-list li,
.solution-benefits-list li,
.impact-right li {
  position: relative;
  padding-left: 20px;
  color: var(--color-text);
  font-size: var(--fs-md);
  line-height: 1.6;
}

.reality-list li,
.competence-list li,
.solution-benefits-list li,
.impact-right li,
.problem-item,
.condition-block,
.tab-inner p {
  break-inside: avoid;
}

.reality-list li,
.competence-list li,
.solution-benefits-list li,
.impact-right li {
  margin-bottom: 12px;
}

.reality-list li::before,
.competence-list li::before,
.solution-benefits-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  transform: translateY(-50%);
}

.impact-right li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
  font-weight: var(--fw-bold);
}

.reality-highlight {
  padding: 24px 22px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-md);
}

.reality-impact,
.reality-highlight p,
.problem-intro,
.problem-practice p,
.solution-main p,
.impact-left p,
.content-panel,
.condition-block p,
.closing-top p {
  color: var(--color-text);
  font-size: var(--fs-md);
  line-height: 1.7;
}

.reality-impact {
  margin-bottom: 16px;
}

.reality-highlight p + p,
.solution-main p + p {
  margin-top: 14px;
}

.competence-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.competence-col {
  min-width: 0;
}

.competence-col-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: start;
  gap: 18px;
}

.competence-col .lead {
  font-weight: var(--fw-semibold);
  margin-bottom: 18px;
  color: var(--color-text);
}

.competence-intro {
  margin-bottom: 0;
  color: var(--color-text);
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
}

.competence-action {
  margin-top: 4px;
}

.competence-action .btn {
  min-width: 180px;
}

.competence-fazit {
  margin-top: 4px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  max-width: none;
  font-size: var(--fs-md);
  line-height: 1.5;
  color: var(--color-text);
}

.competence-fazit strong {
  color: var(--color-primary-strong);
  display: block;
  margin-top: 4px;
}

.problem-keypoints {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.problem-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 18px 16px 16px;
  background: #fff;
  border-top: 3px solid #e11d48;
  border-radius: 6px;
}

.problem-item strong {
  color: var(--color-primary-strong);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  line-height: 1.35;
}

.problem-item span {
  color: var(--color-text);
  font-size: var(--fs-md);
  line-height: 1.45;
}

.problem-fazit {
  padding: 18px 22px;
  background: #f1f3f5;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: center;
}

.problem-fazit h3 {
  color: var(--color-primary-strong);
  font-size: var(--fs-lg);
  line-height: 1.4;
}

.solution-section,
.conditions-section,
.booking-section,
.closing-section,
.legal-section,
.contact-page-form-section {
  background: var(--color-bg);
}

.closing-welcome {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.closing-welcome-line {
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.closing-claim {
  margin-top: 10px;
}

.solution-hero {
  padding: 32px 34px;
  background: var(--color-gold);
  border-radius: var(--radius-md);
}

.solution-label {
  display: inline-block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.solution-hero h2 {
  color: var(--color-primary-strong);
}

.solution-hero-text {
  max-width: 66ch;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--fs-lg);
  line-height: 1.55;
}

.solution-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: stretch;
  gap: 40px;
}

.solution-method-intro {
  margin-top: 28px;
  margin-bottom: 0;
  color: var(--color-primary);
  font-weight: var(--fw-semibold);
}

.solution-benefits-list {
  margin-top: 14px;
}

.solution-benefits-list li::before {
  background: var(--color-primary);
}

.solution-method-fazit {
  margin-top: 28px;
}

.solution-proof-box {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.02), rgba(17, 24, 39, 0.04));
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: var(--shadow-sm);
}

.solution-proof-box h3 {
  margin: 0 0 12px;
  color: var(--color-primary);
  font-size: var(--fs-lg);
}

.solution-proof-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.solution-proof-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1.15 / 1;
  padding: 10px;
  background: #fff;
  border: 1px dashed rgba(17, 24, 39, 0.15);
  border-radius: var(--radius-sm);
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
}

.solution-proof-item:hover,
.solution-proof-item:focus-visible {
  border-color: var(--color-primary);
  background: rgba(17, 24, 39, 0.02);
  transform: translateY(-1px);
}

.solution-proof-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(24, 38, 51, 0.86);
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox img {
  max-width: min(92vw, 1200px);
  max-height: 88vh;
  width: auto;
  height: auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.image-lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.solution-impact {
  padding-top: 30px;
  border-top: 1px solid var(--color-border);
}

.solution-impact-item {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  padding: 26px 0;
  border-bottom: 1px solid var(--color-border);
}

.impact-left h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  line-height: 1.3;
}

.impact-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--color-primary-strong);
  color: #fff;
  border-radius: 50%;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  line-height: 1;
  flex-shrink: 0;
}

.content-accordion {
  display: grid;
  gap: 12px;
}

.content-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.content-item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 18px 54px 18px 20px;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  line-height: 1.35;
}

.content-item summary::-webkit-details-marker {
  display: none;
}

.content-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary);
  font-size: 1.4rem;
  font-weight: var(--fw-bold);
  line-height: 1;
}

.content-item[open] summary {
  background: rgba(24, 38, 51, 0.03);
  border-bottom: 1px solid var(--color-border);
}

.content-item[open] summary::after {
  content: "–";
}


.section-tint-blue {
  background: rgba(11, 44, 65, 0.10);
}

.conditions-section .content-block-head {
  gap: var(--block-head-gap);
}

.conditions-section .tabs {
  background: transparent;
}

.conditions-section .tabs-nav {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

.conditions-section .tab-btn {
  border-radius: 8px;
  white-space: nowrap;
}

.conditions-section .tab-btn.active {
  background: rgba(11, 44, 65, 0.08);
  border-bottom: none;
}

.conditions-info {
  background: transparent;
  padding: 0;
}

.conditions-info .box {
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.tabs-nav {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--color-border);
}

.tab-btn {
  padding: 12px 20px;
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--color-text-soft);
}

.tab-btn.active {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
}

.tab-content {
  display: none;
  padding: 22px 0;
}

.tab-content.active {
  display: block;
}

.tab-inner p {
  margin-bottom: 14px;
}

.price-box {
  margin-top: 18px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  font-size: var(--fs-md);
}

.price-box span {
  font-size: 1.4rem;
  font-weight: var(--fw-bold);
  color: var(--color-primary);
}

.price-note,
.booking-note,
.reference-meta,
.site-footer p,
.footer-links a {
  font-size: var(--fs-sm);
}

.price-note,
.booking-note,
.reference-meta {
  color: var(--color-text-soft);
  line-height: 1.6;
}

.conditions-info {
  display: grid;
  gap: 20px;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.condition-block h3,
.reference-company,
.solution-proof-box h3,
.info-box h3 {
  margin-bottom: 10px;
  color: var(--color-primary);
  font-size: var(--fs-lg);
}

.condition-block:last-child {
  margin-bottom: 0;
}

.references-swiper {
  position: relative;
  padding-bottom: 56px;
}

.reference-card {
  height: 100%;
  padding: 22px 20px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.reference-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 56px;
  margin-bottom: 14px;
}

.reference-logo-wrap.logo-missing {
  min-height: 0;
  margin-bottom: 0;
}

.reference-logo {
  max-width: 160px;
  max-height: 42px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.reference-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.reference-text {
  color: var(--color-text);
  font-size: var(--fs-md);
  line-height: 1.65;
}

.reference-toggle {
  margin-top: 10px;
  padding: 0;
  color: var(--color-primary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
}

.reference-toggle:hover,
.reference-toggle:focus-visible {
  text-decoration: underline;
}

.references-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 24px;
}

.references-prev,
.references-next {
  position: static;
  width: 42px;
  height: 42px;
  margin: 0;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: #fff;
  color: var(--color-primary);
}

.references-prev::after,
.references-next::after {
  font-size: 16px;
  font-weight: var(--fw-bold);
}

.references-pagination {
  position: static;
  width: auto !important;
}

.references-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: var(--color-border-strong);
  opacity: 1;
}

.references-pagination .swiper-pagination-bullet-active {
  background: var(--color-primary);
}

.booking-layout {
  justify-items: center;
}

.booking-shell {
  width: min(100%, 980px);
  display: grid;
  gap: clamp(18px, 2.4vw, 26px);
  justify-items: center;
  padding: clamp(28px, 4vw, 40px);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.booking-form-wrap {
  width: min(100%, 760px);
  margin-inline: auto;
}

.booking-form-embed {
  width: 100%;
  margin-inline: auto;
}

.booking-form-embed iframe {
  width: 100%;
  border: none;
  display: block;
  margin-inline: auto;
  background: transparent;
}

.booking-note {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}


@media (max-width: 820px) {
  .booking-shell {
    padding: 24px 18px;
  }

  .booking-form-wrap,
  .booking-note {
    max-width: 100%;
  }
}

.closing-section {
  border-top: 1px solid var(--color-border);
}

.closing-top {
  padding-block: var(--block-space-y);
}

.closing-welcome {
  padding-top: 36px;
  text-align: center;
}

.closing-top .stack-sm {
  max-width: none;
}

.closing-top p {
  max-width: none;
  color: var(--color-text);
  font-size: var(--fs-md);
  line-height: 1.7;
}

.closing-welcome-line {
  color: var(--color-text);
  font-size: var(--fs-xl);
  line-height: 1.5;
}

.closing-welcome h3 {
  margin-top: 18px;
  color: var(--color-primary-strong);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.2;
}

.closing-claim {
  margin-top: 18px;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  line-height: 1.3;
}

/* =========================
   10) PORTAL / FORMULARE
========================= */
.portal-request-form {
  display: grid;
  gap: 20px;
  margin-top: 8px;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row label {
  color: var(--color-primary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
}

.form-row input,
.form input,
.form textarea,
.form select {
  width: 100%;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-row input {
  min-height: 52px;
  padding: 14px 16px;
}

.form {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin-top: 28px;
  height: 800px;
}

.form input,
.form textarea,
.form select {
  padding: 14px 16px;
}

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

.form-row input:focus,
.form input:focus,
.form textarea:focus,
.form select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(36, 52, 71, 0.08);
}

.form textarea {
  min-height: 160px;
  resize: vertical;
}

.form-actions {
  margin-top: 4px;
}

.portal-request-form .btn-primary {
  min-width: 220px;
}

/* =========================
   11) BUTTONS / LINKS
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: 1;
  white-space: nowrap;
  transition:
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.btn-primary {
  color: #fff;
  background: var(--color-accent);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  color: var(--color-primary);
  background: #fff;
  border-color: var(--color-border-strong);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--color-primary);
  background: var(--color-bg-soft);
}

/* =========================
   12) FOOTER
========================= */
.site-footer {
  padding: 28px 0;
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.88);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer p {
  color: inherit;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  transition: opacity var(--transition);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  opacity: 0.8;
}

/* =========================
   13) KONTAKT / RECHTSTEXTE
========================= */
.hero--contact {
  min-height: 180px;
  padding: 40px 0;
}

.hero-overlay--contact {
  background: linear-gradient(
    90deg,
    rgba(24, 38, 51, 0.84) 0%,
    rgba(24, 38, 51, 0.78) 34%,
    rgba(24, 38, 51, 0.60) 58%,
    rgba(24, 38, 51, 0.30) 78%,
    rgba(24, 38, 51, 0.08) 100%
  );
}

.hero-layout--contact {
  min-height: auto;
}

.hero-content--contact {
  max-width: 640px;
  padding: 16px 0 8px;
  text-align: center;
  margin: 0 auto;
}

.hero-content--contact h1 {
  max-width: none;
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
}

.hero-sub--contact {
  max-width: none;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--fs-md);
}

.contact-page-form-section {
  padding-top: 40px;
  padding-bottom: 8px !important;
}

.contact-page-form-section .booking-intro {
  margin-bottom: 24px;
}

.contact-form-frame {
  max-width: 900px;
  margin: 0 auto 20px;
}

.contact-form-frame iframe {
  width: 100%;
  min-height: auto;
  border: none;
  display: block;
  background: #fff;
}

.closing-section--contact {
  border-top: none;
}

.section.closing-section--contact {
  padding-top: 24px;
  padding-bottom: 56px;
}

.section.closing-section.closing-section--contact {
  border-top: none !important;
  padding-top: 56 !important;
  padding-bottom: 56px !important;
}

.closing-welcome--contact,
.closing-welcome.closing-welcome--contact {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: none !important;
  max-width: 980px;
  margin-inline: auto;
}

.legal-block + .legal-block {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}

.legal-block h2 {
  margin-bottom: 14px;
}

.legal-block p {
  color: var(--color-text);
  font-size: var(--fs-md);
  line-height: 1.75;
}

.legal-block p + p {
  margin-top: 14px;
}

.legal-note {
  padding: 22px 24px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.legal-note + .legal-block {
  border-top: none;
}

.legal-block a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =========================
   14) RESPONSIVE
========================= */
@media (max-width: 1080px) {
  .main-nav {
    gap: 16px;
  }

  .hero {
    min-height: 660px;
  }

  .hero-layout {
    min-height: 660px;
  }

  .hero-overlay {
    background: linear-gradient(
      90deg,
      rgba(241, 243, 246, 0.97) 0%,
      rgba(241, 243, 246, 0.93) 38%,
      rgba(241, 243, 246, 0.82) 56%,
      rgba(241, 243, 246, 0.42) 76%,
      rgba(241, 243, 246, 0.06) 100%
    );
  }

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

  .intro-grid,
  .reality-layout,
  .solution-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .problem-keypoints {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .solution-proof-list {
    grid-template-columns: 1fr;
  }

  .solution-proof-item {
    aspect-ratio: auto;
    min-height: 140px;
  }
}

@media (max-width: 900px) {
  .solution-impact-item {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .reference-company {
    font-size: var(--fs-md);
  }

  .reference-text {
    font-size: var(--fs-base);
  }
}

@media (max-width: 820px) {
  :root {
    --container-pad: 20px;
    --block-space-y: clamp(36px, 7vw, 56px);
    --block-head-gap: 12px;
    --block-content-gap: clamp(20px, 4.2vw, 28px);
    --hero-space-y: clamp(48px, 9vw, 72px);
    --hero-content-y: clamp(18px, 4vw, 30px);
  }

  .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px 16px;
    padding: 14px 0;
    min-height: auto;
  }

  .brand {
    width: auto;
    min-width: 0;
  }

  .brand-logo {
    height: 24px;
  }

  .brand-flag {
    display: none;
  }

  .header-actions {
    margin-left: 0;
    justify-self: end;
  }

  .nav-portal {
    min-height: 42px;
    padding-inline: 14px;
    font-size: 0.875rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    margin-left: 0;
    padding: 14px 0 4px;
    border-top: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .site-header.is-open .main-nav {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    padding: 12px 0;
  }

  .main-nav a::after {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-layout {
    min-height: auto;
  }

  .hero-content h1 {
    max-width: 12ch;
  }

  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(241, 243, 246, 0.95) 0%,
      rgba(241, 243, 246, 0.90) 44%,
      rgba(241, 243, 246, 0.72) 68%,
      rgba(241, 243, 246, 0.45) 100%
    );
  }

  .hero-bg img {
    object-position: center center;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .problem-keypoints {
    grid-template-columns: 1fr;
  }

  .site-footer .container {
    align-items: flex-start;
    flex-direction: column;
  }

  .intro-kicker {
    font-size: var(--fs-lg);
  }

  .intro-main p,
  .intro-points li,
  .intro-benefits li,
  .solution-main p,
  .impact-left p,
  .impact-right li,
  .content-panel,
  .closing-top p,
  .closing-welcome-line,
  .problem-intro,
  .problem-practice p,
  .problem-item strong,
  .problem-item span,
  .reality-highlight p,
  .reality-impact,
  .condition-block p,
  .solution-hero-text,
  .solution-benefits-list li,
  .highlight-box,
  .lead,
  .hero-sub--contact {
    font-size: var(--fs-base);
  }

  .intro-claim-name,
  .impact-left h4,
  .content-item summary,
  .closing-claim {
    font-size: var(--fs-lg);
  }

  .intro-claim-sub,
  .problem-fazit h3 {
    font-size: var(--fs-md);
  }

  .intro-side-box,
  .solution-proof-box,
  .solution-hero {
    padding: 22px 18px;
  }

  .reality-list {
    column-count: 1;
  }

  .competence-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .competence-col-right {
    gap: 16px;
  }

  .competence-action .btn {
    width: 100%;
  }

  .closing-welcome {
    padding-top: 28px;
  }

  .hero--contact {
    min-height: 180px;
    padding: 56px 0 28px;
  }

  .hero-overlay--contact {
    background: linear-gradient(
      180deg,
      rgba(24, 38, 51, 0.84) 0%,
      rgba(24, 38, 51, 0.72) 48%,
      rgba(24, 38, 51, 0.38) 100%
    );
  }

  .hero-content--contact {
    padding: 12px 0 4px;
  }

  .contact-form-frame iframe {
    min-height: 680px;
  }

  .section.closing-section--contact {
    padding-top: 20px;
    padding-bottom: 44px;
  }
}

@media (max-width: 640px) {
  :root {
    --fs-3xl: 28px;
  }

  .hero {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

@media (max-width: 540px) {
  :root {
    --container-pad: 16px;
    --block-space-y: clamp(32px, 8vw, 48px);
    --block-content-gap: 20px;
    --hero-space-y: clamp(40px, 10vw, 60px);
  }

  body {
    font-size: var(--fs-sm);
  }

  .logos span {
    min-height: 76px;
    font-size: var(--fs-md);
  }

  .btn,
  .portal-request-form .btn-primary {
    width: 100%;
  }

  .header-actions .btn {
    width: auto;
  }
}


@media (max-width: 540px) {
  .box {
    padding: 20px 18px;
  }
}


/* =========================
   11) V11 – INHALTE / LÖSUNGSBLOCK FEINSCHLIFF
========================= */

/* Lösungsblock: Farblogik korrigieren */
.solution-hero {
  background: var(--color-primary-strong);
}

.solution-label {
  color: rgba(255, 255, 255, 0.75);
}

.solution-hero h2,
.solution-hero-text {
  color: #fff;
}

.solution-benefits-list li::before {
  background: var(--color-primary);
}

.impact-number {
  background: var(--color-gold);
  color: var(--color-primary-strong);
}

.impact-right li {
  padding-left: 30px;
}

.impact-right li::before {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-primary-strong);
  font-size: 0.8rem;
  font-weight: var(--fw-bold);
  top: 0.15em;
}

/* Inhalte-Block */

.content-item.box {
  padding: 0;
  box-shadow: none;
}

.content-item {
  border-radius: 12px;
}

.content-accordion {
  gap: 14px;
}

.content-item summary {
  padding: 14px 52px 14px 20px;
  color: var(--color-accent);
  font-size: var(--fs-md);
  line-height: 1.3;
}

.content-item summary::after {
  color: var(--color-accent);
  right: 18px;
}

.content-item[open] summary {
  background: rgba(201, 164, 76, 0.06);
}

@media (max-width: 820px) {
  .content-item summary {
    padding: 13px 46px 13px 16px;
  }
}


/* v12 polish: solution checks + accordion content spacing */
.impact-right li::before {
  background: none;
  border-radius: 0;
  width: auto;
  height: auto;
  display: block;
  color: var(--color-gold);
  font-size: 1rem;
  font-weight: var(--fw-bold);
  top: 0.02em;
}

.content-panel {
  padding: 18px 24px 20px;
}

@media (max-width: 820px) {
  .content-panel {
    padding: 16px 20px 18px;
  }
}


/* =========================
   REFERENZEN – LOGO-ZEILEN
========================= */
.references-note {
  max-width: 86ch;
}

.references-source {
  display: none !important;
}

.references-marquee {
  display: grid;
  gap: 16px;
  margin-top: 12px;
  overflow: hidden;
  padding-top: 20px;
}

.references-row {
  position: relative;
  overflow: visible;
  padding-top: 4px;
  padding-bottom: 2px;
  
      -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);

}

.references-track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  animation: references-marquee 42s linear infinite;
  will-change: transform;
  

}

.references-track.is-reverse {
  animation-direction: reverse;
  animation-duration: 48s;
}

.references-row[data-row="3"] .references-track {
  animation-duration: 54s;
}

.logo-chip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 190px;
  height: 92px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  overflow:visible;
}

.logo-chip img {
  max-width: 146px;
  max-height: 42px;
  width: auto;
  height: auto;
  object-fit: contain;
}


.logo-chip.is-new .logo-badge {

  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 24px;
  line-height: 1;
  color: #C9A44C;
  text-shadow:
    0 2px 4px rgba(0,0,0,.22),
    0 0 8px rgba(201,164,76,.35);
  filter:
    drop-shadow(0 0 3px rgba(201,164,76,.35))
    drop-shadow(0 0 8px rgba(201,164,76,.22));
    z-index: 3;
}


@keyframes references-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-50% - 9px), 0, 0); }
}

@media (max-width: 820px) {
  .references-note {
    max-width: none;
  }

  .logo-chip {
    width: 164px;
    height: 84px;
    padding: 16px 18px;
  }

  .logo-chip img {
    max-width: 128px;
    max-height: 38px;
  }

  .references-track,
  .references-track.is-reverse,
  .references-row[data-row="3"] .references-track {
    animation-duration: 34s;
  }
}

@media (max-width: 540px) {
  .references-marquee {
    gap: 12px;
  }

  .logo-chip {
    width: 148px;
    height: 76px;
    padding: 14px 16px;
  }

  .logo-chip img {
    max-width: 112px;
    max-height: 34px;
  }
}


/* =========================
   REFERENZEN – EXTERNE LOGOS
========================= */
.references-section {
  background: #f6f7f9;
}

.references-head {
  max-width: 980px;
}

.references-head.content-block-head {
  margin-bottom: 26px;
}

.reference-note {
  max-width: 980px;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  line-height: 1.85;
}

.references-marquee {
  display: grid;
  gap: 16px;
  margin-top: 12px;
  overflow: hidden;
}

.references-row {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 6%, black 94%, transparent 100%);
}

.references-track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  animation: references-scroll 42s linear infinite;
  will-change: transform;
}

.references-track.is-reverse {
  animation-direction: reverse;
  animation-duration: 46s;
}

.references-track.is-slow {
  animation-duration: 54s;
}

.logo-chip {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 152px;
  height: 64px;
  padding: 4px 12px;
  background: transparent;
}

.logo-chip img {
  display: block;
  max-width: 122px;
  max-height: 34px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.logo-badge {
  position: absolute;
  top: -3px;
  right: 0;
  color: var(--color-gold);
  font-size: 24px;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(255,255,255,0.85);
}

@keyframes references-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 820px) {
  .references-head.content-block-head {
    margin-bottom: 22px;
  }

  .references-marquee {
    gap: 12px;
  }

  .references-track {
    gap: 14px;
  }

  .logo-chip {
    min-width: 128px;
    height: 58px;
    padding: 4px 8px;
  }

  .logo-chip img {
    max-width: 102px;
    max-height: 30px;
  }

  .logo-badge {
    font-size: 20px;
    top: -2px;
  }
}





.closing-section .container:last-child .content-block-body {
  justify-items: center;
}

.closing-welcome {
  width: min(100%, 980px);
}


/* --- Feinschliff Abstände --- */
.conditions-section .content-block-body {
  gap: clamp(14px, 2vw, 22px);
}

.closing-section > .container:last-child {
  padding-bottom: var(--block-space-y);
}

/* =========================
   CLOSING WELCOME IMAGE
========================= */

.closing-welcome-bg{
  position:relative;
  overflow:hidden;
  isolation:isolate;
  background-image:url("../img/hero-lehrlinge-ausbilder.webp");
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  padding:clamp(3rem, 5vw, 5rem) 0;
}

.closing-welcome-bg::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  background:inherit;
  transform:scale(1.02);
}

.closing-welcome-overlay{
  position:absolute;
  inset:0;
  z-index:-1;
  background:
    linear-gradient(90deg, rgba(11,44,65,.58) 0%, rgba(11,44,65,.38) 48%, rgba(11,44,65,.22) 100%),
    rgba(11,44,65,.14);
}

.closing-welcome-bg .closing-welcome{
  max-width:780px;
  margin:0 auto;
  padding:clamp(1.7rem, 3vw, 2.6rem);
  border-radius:28px;
  background:rgba(255,255,255,.82);
  backdrop-filter:blur(6px);
  box-shadow:0 22px 54px rgba(11,44,65,.18);
  text-align:center;
}

.closing-welcome-bg .closing-welcome-line{
  color:var(--blue, #0b2c41);
}

.closing-welcome-bg h3{
  color:var(--blue, #0b2c41);
}

.closing-welcome-bg .closing-claim{
  color:var(--blue, #0b2c41);
}

@media (max-width:760px){
  .closing-welcome-bg{
    padding:2.5rem 0;
    background-position:center;
  }

  .closing-welcome-bg .closing-welcome{
    border-radius:22px;
    padding:1.35rem;
    background:rgba(255,255,255,.88);
  }
}

/* =========================
   COOKIE CONSENT – CLEAN VERSION
========================= */

.cookie-consent {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 4000;
  width: min(720px, calc(100% - 32px));
}

.cookie-consent-panel {
  display: grid;
  gap: 14px;
  padding: 16px 18px;

  background: rgba(20, 28, 36, 0.96);
  color: #fff;

  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);
}

.cookie-consent-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #fff;
}

.cookie-consent-copy p {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.8);
}

.cookie-consent-copy a {
  color: #c6a570;
  text-decoration: none;
}

.cookie-consent-copy a:hover {
  text-decoration: underline;
}

.cookie-consent-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Buttons schöner */
.cookie-consent .btn-primary {
  background: #c6a570;
  color: #1c252f;
  border: none;
}

.cookie-consent .btn-secondary {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.25);
}

/* kleiner Manage Button */
.cookie-consent-manage {
  position: fixed;
  left: 16px;
  bottom: 16px;

  background: rgba(20,28,36,0.9);
  color: #fff;

  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;

  border: 1px solid rgba(255,255,255,0.2);
}

/* Mobile */
@media (max-width: 600px) {
  .cookie-consent-panel {
    padding: 14px;
  }

  .cookie-consent-actions {
    flex-direction: column;
  }
}


/* =========================
   REFERENZEN – KOMPAKTE LOGO-DARSTELLUNG
   Mehr Logos gleichzeitig sichtbar
========================= */

.references-marquee {
  gap: 14px;
}

.references-track {
  gap: 12px;
}

.logo-chip {
  width: 124px;
  min-width: 124px;
  height: 58px;
  padding: 4px 8px;
}

.logo-chip img {
  max-width: 104px;
  max-height: 30px;
}

.logo-badge {
  font-size: 20px;
  top: -4px;
  right: -2px;
}

@media (max-width: 820px) {
  .references-marquee {
    gap: 10px;
  }

  .references-track {
    gap: 10px;
  }

  .logo-chip {
    width: 110px;
    min-width: 110px;
    height: 52px;
    padding: 4px 7px;
  }

  .logo-chip img {
    max-width: 92px;
    max-height: 28px;
  }

  .logo-badge {
    font-size: 18px;
    top: -3px;
    right: -1px;
  }
}

@media (max-width: 540px) {
  .references-marquee {
    gap: 9px;
  }

  .references-track {
    gap: 9px;
  }

  .logo-chip {
    width: 96px;
    min-width: 96px;
    height: 48px;
    padding: 4px 6px;
  }

  .logo-chip img {
    max-width: 80px;
    max-height: 25px;
  }

  .logo-badge {
    font-size: 16px;
  }
}

/* =========================
   SCROLL-TOP-BUTTON
   Kleiner Button zum Zurückscrollen nach oben
========================= */

.scroll-top-btn {
  position: fixed;
  right: 18px;
  bottom: 22px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(11, 44, 65, 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: #0b2c41;
  box-shadow: 0 12px 30px rgba(11, 44, 65, 0.18);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: #f8f6f1;
  box-shadow: 0 16px 36px rgba(11, 44, 65, 0.22);
}

.scroll-top-btn:focus-visible {
  outline: 3px solid rgba(198, 165, 112, 0.55);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .scroll-top-btn {
    right: 14px;
    bottom: 16px;
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
}


/* =========================
   SEITENMODUS: KONTAKT / BUCHUNG
   Standard: Kontaktseite. Mit ?booking=1 wird die Buchung sichtbar.
========================= */

.booking-only {
  display: none !important;
}

body.mode-booking .contact-only {
  display: none !important;
}

body.mode-booking .booking-only {
  display: block !important;
}

body.mode-booking a.booking-only,
body.mode-booking .btn.booking-only,
body.mode-booking button.booking-only {
  display: inline-flex !important;
}

body.mode-booking .main-nav a.booking-only {
  display: inline-block !important;
}

body.mode-booking .header-actions .booking-only {
  display: inline-flex !important;
}

.contact-cta-section {
  background: var(--color-bg);
}

.contact-cta-box {
  display: grid;
  gap: 16px;
  justify-items: center;
  max-width: 920px;
  margin-inline: auto;
  padding: clamp(28px, 4vw, 42px);
}

.contact-cta-box p {
  max-width: 760px;
}

.hero-content .btn + .btn,
.competence-action .btn + .btn {
  margin-left: 10px;
}

@media (max-width: 820px) {
  body.mode-booking .main-nav a.booking-only {
    display: block !important;
  }

  .hero-content .btn + .btn,
  .competence-action .btn + .btn {
    margin-left: 0;
    margin-top: 10px;
  }
}
