/* TE-Azubi.PRO – Startseite (mobile-first) */

:root {
  --color-white: #ffffff;
  --color-jade: #00d084;
  --color-mandarin: #ff6900;
  --color-azure: #0693e3;
  --color-text: #ffffff;
  --color-navy: #082e49;
  --color-header-bg: rgba(0, 0, 0, 0.28);

  --text-body-line: 1.58;

  --font-headline: "Nunito", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --space-section-x: 20px;
  --header-height: 52px;
  --header-nav-width: 72px;
  --shell-max: 700px;
  --text-body-size: clamp(1.125rem, 4.5vw, 1.25rem);

  --radius-kicker: 4px;
  --radius-btn: 999px;

  --snap-panel-height: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}

html.reduced-motion {
  scroll-behavior: auto;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
  background: #eaeaea;
  height: 100dvh;
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: var(--color-white);
  color: #111;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

/* Header in App-Shell: opak, weiß + Navy (Referenz idee/ + sec01) */
.site-header {
  position: relative;
  z-index: 200;
  flex-shrink: 0;
  width: 100%;
  padding-top: env(safe-area-inset-top, 0);
  background: var(--color-navy);
}

.site-header__bar {
  display: flex;
  width: 100%;
  height: var(--header-height);
  box-shadow: 0 2px 10px rgba(8, 46, 73, 0.2);
}

.site-header__brand {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 14px;
  background: var(--color-white);
  text-decoration: none;
}

.site-header__logo {
  width: min(136px, 40vw);
  height: auto;
}

.site-header__nav {
  position: relative;
  z-index: 2;
  flex: 0 0 var(--header-nav-width);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-navy);
}

.menu-toggle {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--color-white);
}

.menu-toggle__line {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  color: var(--color-mandarin);
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--color-mandarin);
  outline-offset: 2px;
  border-radius: 4px;
}

.site-nav[hidden] {
  display: none;
}

.site-nav:not([hidden]) {
  display: block;
}

.site-nav {
  position: fixed;
  z-index: 199;
  top: calc(env(safe-area-inset-top, 0px) + var(--header-height));
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--shell-max), 100%);
  margin: 0;
  padding: 8px var(--space-section-x) 16px;
  background: var(--color-navy);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  border-radius: 0 0 10px 10px;
}

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

.site-nav__item + .site-nav__item {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-nav__link {
  display: block;
  padding: 14px 12px;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-white);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--color-jade);
  background: rgba(255, 255, 255, 0.08);
}

.site-nav__link:focus-visible {
  outline: 2px solid var(--color-jade);
  outline-offset: 2px;
}

.site-nav__link[aria-current="page"] {
  color: var(--color-jade);
}

.site-nav__item--group {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-nav__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 14px 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-white);
  text-align: left;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-nav__toggle:hover,
.site-nav__toggle:focus-visible {
  color: var(--color-jade);
  background: rgba(255, 255, 255, 0.08);
}

.site-nav__toggle:focus-visible {
  outline: 2px solid var(--color-jade);
  outline-offset: 2px;
}

.site-nav__toggle[aria-expanded="true"] {
  color: var(--color-jade);
}

.site-nav__toggle::after {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease, margin 0.2s ease;
}

.site-nav__toggle[aria-expanded="true"]::after {
  margin-top: 2px;
  transform: rotate(-135deg);
}

.site-nav__sublist {
  list-style: none;
  margin: 0;
  padding: 0 0 6px;
  background: rgba(0, 0, 0, 0.18);
}

.site-nav__sublist[hidden] {
  display: none;
}

.site-nav__subitem + .site-nav__subitem {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-nav__link--sub {
  padding: 12px 12px 12px 28px;
  font-size: 1rem;
  font-weight: 500;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Abdunklung nur unterhalb des Headers – Hamburger bleibt klickbar */
.app-shell.is-nav-open::before {
  content: "";
  position: fixed;
  z-index: 150;
  top: calc(env(safe-area-inset-top, 0px) + var(--header-height));
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(8, 46, 73, 0.45);
  pointer-events: auto;
}

.app-shell.is-nav-open .snap-scroll {
  pointer-events: none;
}

/* App-Shell: Header + Snap-Scroll (exakte Panel-Höhe, kein Vorschau-Swipe) */
.app-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--shell-max);
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: #111;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.snap-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: scroll;
  overscroll-behavior-y: contain;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
}

html.reduced-motion .snap-scroll {
  scroll-snap-type: none;
}

/* Während programmiertem Sektions-Scroll: Snap aus, sonst springt es sofort */
.snap-scroll.is-snap-scrolling {
  scroll-snap-type: none;
}

.snap-scroll.is-snap-scrolling .snap-section {
  scroll-snap-align: none;
  scroll-snap-stop: normal;
}

/* Sections: exakt eine Viewport-Höhe im Scroll-Bereich */
.snap-section {
  position: relative;
  --snap-panel-fallback: calc(100dvh - env(safe-area-inset-top, 0px) - var(--header-height));
  height: var(--snap-panel-height, var(--snap-panel-fallback));
  min-height: var(--snap-panel-height, var(--snap-panel-fallback));
  max-height: var(--snap-panel-height, var(--snap-panel-fallback));
  flex-shrink: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

html.reduced-motion .snap-section {
  scroll-snap-align: none;
  scroll-snap-stop: normal;
}

.section-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Pfade relativ zu css/style.css → ../images/ (nicht per --section-bg, sonst 404) */
.section-media--01 {
  background-image: url("../images/hg-section_01.webp");
}

.section-media--02 {
  background-image: url("../images/hg-section_02.webp");
}

.section-media--03 {
  background-image: url("../images/hg-section_03.webp");
}

.section-media--04 {
  background-image: url("../images/hg-section_04.webp");
}

.section-media--05 {
  background-image: url("../images/hg-section_05.webp");
}

.section-media--ausbilder-01 {
  background-image: url("../images/ausbilder-hg-sektion_01.webp");
}

.section-media--ausbilder-02 {
  background-image: url("../images/ausbilder-hg-sektion_02.webp");
}

.section-media--ausbilder-03 {
  background-image: url("../images/ausbilder-hg-sektion_03.webp");
}

.section-media--ausbilder-04 {
  background-image: url("../images/ausbilder-hg-sektion_04.webp");
}

.section-media--ausbilder-05 {
  background-image: url("../images/ausbilder-hg-sektion_05.webp");
}

.section-media--azubi-01 {
  background-image: url("../images/azubi-hg-sektion_01.webp");
}

.section-media--azubi-02 {
  background-image: url("../images/azubi-hg-sektion_02.webp");
}

.section-media--azubi-03 {
  background-image: url("../images/azubi-hg-sektion_03.webp");
}

.section-media--azubi-04 {
  background-image: url("../images/azubi-hg-sektion_04.webp");
}

.section-media--azubi-05 {
  background-image: url("../images/azubi-hg-sektion_05.webp");
}

.section-media--azubi-06 {
  background-image: url("../images/azubi-hg-sektion_06.webp");
}

.section-media--azubi-07 {
  background-image: url("../images/azubi-hg-sektion_07.webp");
}

.section-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Farb-Kapitel: S.1–2 Blau, S.3–4 Grün, S.5 Orange (Referenz: screen/sec01–05) */
.theme-azure {
  --section-accent: var(--color-azure);
  --section-kicker-bg: var(--color-navy);
}

.theme-jade {
  --section-accent: var(--color-jade);
  --section-kicker-bg: var(--color-jade);
}

.theme-mandarin {
  --section-accent: var(--color-mandarin);
  --section-kicker-bg: var(--color-mandarin);
}

/* Bild oben frei, Lesbarkeit unten über Dock – kein Vollflächen-Grau */
.theme-azure .section-overlay {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12) 0%,
    transparent 38%,
    rgba(8, 46, 73, 0.2) 62%,
    rgba(8, 46, 73, 0.45) 100%
  );
}

.theme-jade .section-overlay {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 35%,
    rgba(0, 80, 50, 0.18) 60%,
    rgba(0, 40, 28, 0.42) 100%
  );
}

.theme-mandarin .section-overlay {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06) 0%,
    transparent 32%,
    rgba(120, 50, 0, 0.15) 58%,
    rgba(60, 25, 0, 0.4) 100%
  );
}

/* Story-Layout: Kicker/Headline auf Bild, Fließtext in prose-bar unten (idee/) */
.section-content--story {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  height: 100%;
  padding: 14px max(var(--space-section-x), env(safe-area-inset-right)) 0
    max(var(--space-section-x), env(safe-area-inset-left));
}

.section-top {
  flex: 0 1 auto;
  padding-bottom: 12px;
}

/* Test: Headline direkt über prose-bar, noch auf dem Bild (Kicker bleibt oben) */
.section-headline-dock .section-content--story {
  justify-content: flex-start;
}

.section-headline-dock .section-top {
  flex: 0 0 auto;
  padding-bottom: 0;
}

.section-headline-dock .section-story-lower {
  margin-top: auto;
  flex-shrink: 0;
  width: 100%;
}

.section-headline-dock .section-story-lower .headline {
  margin: 0 0 14px;
  padding: 0 2px;
}

.section-headline-dock .section-story-lower .prose-bar {
  margin-top: 0;
}

/* Fließtext-Leiste wie idee/vorschlag – volle Breite, halbtransparent */
.prose-bar {
  flex-shrink: 0;
  margin-top: auto;
  margin-left: calc(-1 * max(var(--space-section-x), env(safe-area-inset-left)));
  margin-right: calc(-1 * max(var(--space-section-x), env(safe-area-inset-right)));
  width: calc(100% + max(var(--space-section-x), env(safe-area-inset-left)) + max(var(--space-section-x), env(safe-area-inset-right)));
  padding: 20px max(var(--space-section-x), env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(var(--space-section-x), env(safe-area-inset-left));
  background: rgba(32, 38, 44, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.theme-azure .prose-bar {
  background: rgba(8, 46, 73, 0.8);
}

.theme-jade .prose-bar {
  background: rgba(0, 50, 35, 0.82);
}

.theme-mandarin .prose-bar {
  background: rgba(70, 32, 0, 0.8);
}

.prose-bar--tall {
  padding-top: 26px;
  padding-bottom: max(26px, env(safe-area-inset-bottom));
}

.prose-bar .subline + .bullet-list {
  margin-top: 18px;
}

.prose-bar .btn {
  margin-top: 18px;
  width: 100%;
  justify-content: center;
}

.btn--navy-outline {
  background: var(--color-navy);
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: none;
}

.btn--navy-outline:hover,
.btn--navy-outline:focus-visible {
  background: #0a3a5c;
}

.section-content--intro {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px max(var(--space-section-x), env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(var(--space-section-x), env(safe-area-inset-left));
}

/* Typography */
.kicker {
  display: inline-block;
  margin: 0 0 18px;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 3.2vw, 0.8125rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--color-white);
  background: var(--section-kicker-bg, var(--color-jade));
  border-radius: var(--radius-kicker);
  max-width: 100%;
}

.headline {
  margin: 0 0 12px;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: clamp(1.8rem, 7.2vw, 2.4rem);
  line-height: 1.15;
  color: var(--color-white);
  text-shadow: 0 2px 20px rgba(8, 46, 73, 0.55);
}

.theme-azure .headline--on-image {
  color: var(--color-navy);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85), 0 4px 24px rgba(255, 255, 255, 0.5);
}

.section-layout--spread .headline {
  font-size: clamp(2rem, 8vw, 2.65rem);
  margin-bottom: 0;
}

.subline {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-body-size);
  line-height: var(--text-body-line);
  color: rgba(255, 255, 255, 0.98);
}

/* Section 1 button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-white);
  background: var(--color-mandarin);
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  align-self: flex-start;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.btn:hover,
.btn:focus-visible {
  background: #e55e00;
}

.btn:focus-visible {
  outline: 3px solid var(--color-azure);
  outline-offset: 3px;
}

.btn--compact {
  margin-top: 12px;
  padding: 10px 18px;
  font-size: 0.875rem;
}

.bullet-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: var(--text-body-size);
  line-height: var(--text-body-line);
  color: var(--color-white);
}

.bullet-icon {
  flex-shrink: 0;
  position: relative;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  border-radius: 50%;
  background-color: var(--section-accent, var(--color-jade));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.bullet-icon::after {
  content: "";
  position: absolute;
  inset: 7px;
  background-color: var(--color-white);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

/* Section 6 – weißer Intro, farbige CTAs (Referenz: screen/sec06.png, keine 1:1-Vorlage) */
.section-6 {
  padding: 0;
  background: var(--color-white);
}

.section-6-layout {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.section-6-intro {
  flex: 1 1 50%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--color-white);
}

.section-6-layout--contact {
  align-items: center;
  justify-content: center;
  padding: 24px var(--space-section-x);
  text-align: center;
}

.section-6-layout--contact .section-content--intro {
  flex: 0 0 auto;
  justify-content: center;
}

.section-6-layout--contact .btn {
  margin-top: 20px;
}

.headline--dark {
  color: #082e49;
}

.subline--dark {
  color: #334155;
}

.subline--accent {
  margin-top: 12px;
  padding-left: 16px;
  border-left: 4px solid var(--color-mandarin);
  max-width: none;
}

.section-6-ctas {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.cta-panel {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
  min-height: 0;
  color: var(--color-white);
}

.cta-panel--azubi {
  background: linear-gradient(160deg, var(--color-jade) 0%, #00a86b 100%);
}

.cta-panel--betrieb {
  background: linear-gradient(160deg, var(--color-azure) 0%, #0570b5 100%);
}

.cta-panel__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 16px;
  gap: 4px;
}

.cta-panel__title {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: clamp(1rem, 4vw, 1.25rem);
  line-height: 1.25;
}

.cta-panel .btn {
  align-self: center;
  margin-top: 8px;
  pointer-events: none;
}

.cta-panel:focus-visible {
  outline: 3px solid #082e49;
  outline-offset: -4px;
}

/* Legal-Seiten (Impressum, Datenschutz) – Snap-Sektion, Inhalt scrollt im Panel */
.page-legal {
  color: var(--color-navy);
}

.legal-section-panel {
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f8fafc 55%,
    #eef3f7 100%
  );
}

.legal-page--long .headline--dark {
  margin-bottom: 20px;
}

.legal-section {
  margin: 0 0 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(8, 46, 73, 0.1);
}

.legal-section:last-child {
  margin-bottom: 8px;
  padding-bottom: 0;
  border-bottom: none;
}

.legal-section__title {
  margin: 0 0 12px;
  font-family: var(--font-headline);
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--color-navy);
}

.legal-section .subline--dark {
  margin: 0 0 12px;
  padding-left: 0;
  border-left: none;
  max-width: none;
  text-align: left;
  font-size: clamp(1rem, 3.6vw, 1.125rem);
  line-height: var(--text-body-line);
  color: #334155;
}

.legal-section .subline--dark:last-child {
  margin-bottom: 0;
}

.legal-list {
  margin: 0 0 12px;
  padding-left: 1.25rem;
  font-family: var(--font-body);
  font-size: clamp(1rem, 3.6vw, 1.125rem);
  line-height: var(--text-body-line);
  color: #334155;
}

.legal-list li {
  margin-bottom: 6px;
}

.legal-list li::marker {
  color: var(--color-azure);
}

.legal-page strong {
  font-weight: 600;
  color: var(--color-navy);
}

.section-6-layout--legal {
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  text-align: left;
}

.section-6-layout--legal .section-content--intro {
  flex: 0 0 auto;
  justify-content: flex-start;
  align-items: stretch;
  max-width: none;
  width: 100%;
}

.legal-page {
  color: var(--color-navy);
}

.legal-page .headline--dark,
.legal-page .subline--dark,
.legal-page .legal-block__name,
.legal-page .legal-block__label,
.legal-page .legal-address {
  color: var(--color-navy);
}

.legal-page__kicker {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 10px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-white);
  background: var(--color-navy);
  border-radius: var(--radius-kicker);
}

.legal-page .headline--dark {
  margin: 0 0 16px;
  text-align: left;
}

.legal-page__brand {
  margin: 0 0 4px;
  font-family: var(--font-headline);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-navy);
}

.legal-page__brand + .legal-page__brand {
  margin-top: 4px;
}

.legal-page__brand--muted {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(8, 46, 73, 0.72);
}

.legal-page__intro {
  margin: 16px 0;
  padding-left: 0;
  border-left: none;
  max-width: none;
  text-align: left;
  font-weight: 600;
}

.legal-page__and {
  margin: 4px 0 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(8, 46, 73, 0.5);
  text-align: center;
}

.legal-block {
  margin: 0 0 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  border-left: 4px solid var(--color-azure);
  box-shadow: 0 1px 3px rgba(8, 46, 73, 0.06);
}

.legal-block--address {
  margin-top: 24px;
  border-left-color: var(--color-jade);
}

.legal-block__name,
.legal-block__label {
  margin: 0 0 8px;
  font-family: var(--font-headline);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-navy);
}

.legal-block__line {
  margin: 0;
  font-size: clamp(1rem, 3.8vw, 1.125rem);
  line-height: var(--text-body-line);
  color: #334155;
}

.legal-address {
  margin: 0;
  font-style: normal;
  font-size: clamp(1rem, 3.8vw, 1.125rem);
  line-height: var(--text-body-line);
  color: #334155;
}

.legal-link {
  color: var(--color-azure);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-link:hover,
.legal-link:focus-visible {
  color: var(--color-jade);
}

.legal-link:focus-visible {
  outline: 2px solid var(--color-mandarin);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 10px;
  width: 100%;
  margin: 0;
  padding: 12px var(--space-section-x);
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: #082e49;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal__sep {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
  user-select: none;
}

.footer-legal__link {
  display: inline-block;
  padding: 8px 12px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.footer-legal__link:hover,
.footer-legal__link:focus-visible {
  color: var(--color-jade);
}

.footer-legal__link:focus-visible {
  outline: 2px solid var(--color-jade);
  outline-offset: 4px;
  border-radius: 4px;
}

.footer-legal__link[aria-current="page"] {
  color: var(--color-jade);
}

/* Footer (kein Snap) – Referenz: screen/^footer.png */
.site-footer {
  flex-shrink: 0;
  scroll-snap-align: none;
  background: #082e49;
}

.footer-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 20px var(--space-section-x);
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
}

.footer-bar__link,
.footer-bar__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--color-white);
  text-decoration: none;
}

.footer-bar__link:hover,
.footer-bar__link:focus-visible {
  color: var(--color-jade);
}

.footer-bar__link:focus-visible {
  outline: 2px solid var(--color-jade);
  outline-offset: 4px;
  border-radius: 4px;
}

.footer-bar__icon {
  flex-shrink: 0;
}

/* Breitere Phones (z. B. Nothing 2a ~412px): CTAs + Footer nebeneinander */
@media (min-width: 380px) {
  .section-6-ctas {
    flex-direction: row;
  }

  .cta-panel {
    flex: 1 1 50%;
  }

  .footer-bar {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px 12px;
  }

  .footer-bar__link,
  .footer-bar__item {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
  }
}

/* Desktop */
@media (min-width: 701px) {
  body {
    background: #eaeaea;
  }
}
