/* ===============================
   FONT
================================ */
@font-face {
  font-family: "Roboto";
  src: url("/assets/fonts/Roboto-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ===============================
   TOKENS (LIGHT DEFAULT)
================================ */
:root {
  --font-sans: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --accent-yellow: #f9c526;
  --accent-blue1: #8ec4d6;
  --accent-blue2: #acdfea;
  --accent-teal1: #48a5a4;
  --accent-teal2: #54b8ac;

  --bg-top: #fff;
  --bg-bottom: #eef2f7;
  --text: #1b1f24;
  --muted: #5d6670;

  --card: #fff;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.08);

  --header-bg: rgba(255, 255, 255, 0.7);
  --mobile-nav-bg: rgba(255, 255, 255, 0.9);
  --hover-bg: rgba(0, 0, 0, 0.05);
  --hover-bg-strong: rgba(0, 0, 0, 0.06);

  --btn-secondary-bg: rgba(255, 255, 255, 0.55);
  --btn-secondary-border: var(--border);

  --slider-btn-bg: rgba(255, 255, 255, 0.72);
  --slider-dot-bg: rgba(0, 0, 0, 0.18);

  --container: 1200px;
  --header-h: 72px;
  --footer-h: 52px;

  --r-card: 14px;

  --s-1: 8px;
  --s-2: 12px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 32px;
  --s-6: 48px;

  --brand-logo-h: 40px;
  --brand-flag-h: 12px;
}

/* Theme toggle hooks */
html[data-theme="dark"] {
  color-scheme: dark;
}

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

/* Manual dark mode (data-theme beats OS) */
html[data-theme="dark"] {
  --bg-top: #162238;
  --bg-bottom: #0a0f18;
  --text: #e6edf6;
  --muted: #a9b6c6;

  --card: rgba(22, 32, 45, 0.72);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.55);

  --header-bg: rgba(22, 34, 56, 0.78);
  --mobile-nav-bg: rgba(16, 24, 38, 0.92);
  --hover-bg: rgba(255, 255, 255, 0.06);
  --hover-bg-strong: rgba(255, 255, 255, 0.08);

  --btn-secondary-bg: rgba(255, 255, 255, 0.08);
  --btn-secondary-border: rgba(255, 255, 255, 0.14);

  --slider-btn-bg: rgba(0, 0, 0, 0.3);
  --slider-dot-bg: rgba(255, 255, 255, 0.18);
}

/* OS dark mode fallback (only if no manual theme set) */
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    --bg-top: #162238;
    --bg-bottom: #0a0f18;
    --text: #e6edf6;
    --muted: #a9b6c6;

    --card: rgba(22, 32, 45, 0.72);
    --border: rgba(255, 255, 255, 0.12);
    --shadow: 0 20px 70px rgba(0, 0, 0, 0.55);

    --header-bg: rgba(22, 34, 56, 0.78);
    --mobile-nav-bg: rgba(16, 24, 38, 0.92);
    --hover-bg: rgba(255, 255, 255, 0.06);
    --hover-bg-strong: rgba(255, 255, 255, 0.08);

    --btn-secondary-bg: rgba(255, 255, 255, 0.08);
    --btn-secondary-border: rgba(255, 255, 255, 0.14);

    --slider-btn-bg: rgba(0, 0, 0, 0.3);
    --slider-dot-bg: rgba(255, 255, 255, 0.18);
  }
}

/* ===============================
   BASE / LAYOUT
================================ */
* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--font-sans);
  color: var(--text);

  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;

  scroll-padding-top: var(--header-h);
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: transparent !important;

  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
  padding-top: var(--header-h);
  padding-bottom: calc(var(--footer-h) + var(--s-3));
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-4);
}

/* ===============================
   HEADER
================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);

  backdrop-filter: blur(10px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}

/* header content row */
.header-row {
  position: relative;
  /* anchor for absolute mobile dropdown */
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* brand left, burger right */
  width: 100%;
  min-width: 0;  /* <<< wichtig bei Flex */
  gap: var(--s-4);
}

/* subtle depth only in dark (visual) */
@media (prefers-color-scheme: dark) {
  .site-header {
    box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
  }
}

/* BRAND */
.brand{
  position: relative;
  min-width: 0;            /* <<< statt 260px */
  flex: 1 1 auto;          /* darf schrumpfen */
}


.brand-link {
  display: grid;
  grid-template-columns: 56px auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;

  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;  
  max-width: 100%;
  overflow: hidden; /* verhindert, dass Grid-Inhalt rausläuft */
}


.brand-link:hover {
  background: var(--hover-bg);
}

.brand-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(84, 184, 172, .35);
}

/* Flagge unter Logo – zentriert */
.brand-mark {
  display: grid;
  grid-template-rows: auto auto;
  justify-items: center;
  /* <<< horizontal mittig */
  row-gap: 6px;
}

.brand-mark img,
.brand-mark svg {
  display: block;
}

.brand-mark> :not(.brand-logo-img) {
  height: var(--brand-flag-h);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-img {
  width: 40px;
  height: 40px;
  display: block;
}

.brand-mark .lang-flag-img,
.brand-mark svg,
.brand-mark img {
  display: block;
  justify-self: center;
}

/* Flag unter dem Logo IMMER mittig */
.brand-mark .lang-flag-img,
.brand-mark svg,
.brand-mark img.lang-flag-img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  justify-self: center;
}

.brand-text {
  display: grid;
  grid-template-rows: auto auto;
  row-gap: 6px;  
  min-width: 0;
}

.brand-text strong {
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;

  /* Punkt 3: Text darf nicht den Header sprengen */
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-lang-label {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;

  /* Punkt 3: Text darf nicht den Header sprengen */
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lang-flag-img {
  width: 18px;
  height: var(--brand-flag-h);
  display: block;
  object-fit: contain;
}

/* LANGUAGE DROPDOWN */
.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;

  list-style: none;
  margin: 0;
  padding: 6px;
  min-width: 180px;

  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: none;
}

.lang-dropdown.open {
  display: block;
}

.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
}

.lang-dropdown a:hover {
  background: var(--hover-bg-strong);
}

/* DESKTOP NAV */
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
}

.nav a:hover {
  color: var(--text);
  background: var(--hover-bg);
}

/* MOBILE BUTTON */
.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  flex: 0 0 auto;          /* nicht schrumpfen, nicht wachsen */
  margin-left: auto;       /* bleibt rechts */
}

.menu-btn svg {
  width: 22px;
  height: 22px;
}

/* MOBILE NAV (dropdown under burger, right-aligned) */
.mobile-nav {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;

  width: min(320px, calc(100vw - 2 * var(--s-4)));
  background: var(--mobile-nav-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }

  .menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .brand {
    min-width: 0;
  }
}

/* ===============================
   HERO
================================ */
.hero {
  padding: calc(var(--s-6) + 12px) 0;
}

.hero__layout {
  display: grid;
  gap: var(--s-5);
}

.hero__head {
  display: flex;
}

.hero__title {
  margin: 0;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.4px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: var(--s-6);
  align-items: start;
}

@media (max-width: 860px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }
}

.hero__lead {
  margin: 0 0 var(--s-4);
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.7;
}

.hero__highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-5);
  display: grid;
  gap: 10px;
}

.hero__highlights li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
}

.hero__highlights li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--accent-teal2), var(--accent-blue2));
  box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__media {
  display: grid;
  justify-items: center;
  gap: var(--s-4);
}

.hero__store img {
  height: 72px;
  width: auto;
  display: block;
}

/* ===============================
   BUTTONS
================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
  user-select: none;

  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-teal2), var(--accent-blue2));
  color: #071018;
  border-color: rgba(0, 0, 0, .05);
}

.btn--secondary {
  background: var(--btn-secondary-bg);
  color: var(--text);
  border-color: var(--btn-secondary-border);
}

/* ===============================
   SLIDER
================================ */
.bd-slider {
  position: relative;
  width: min(520px, 100%);
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.bd-slider__viewport {
  overflow: hidden;
  width: 100%;
}

.bd-slider__track {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 60px;
  transition: transform 420ms ease;
  will-change: transform;
}

.bd-slide {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bd-slide img {
  height: 360px;
  width: auto;
  max-width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .18);
  display: block;
  cursor: zoom-in;
}

@media (max-width: 860px) {
  .bd-slide img {
    height: 300px;
  }
}

.bd-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 12px;

  border: 1px solid var(--border);
  background: var(--slider-btn-bg);
  color: var(--text);

  font-size: 28px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  user-select: none;
  z-index: 2;
  backdrop-filter: blur(10px);
}

.bd-slider__btn:hover {
  box-shadow: var(--shadow);
}

.bd-slider__btn--prev {
  left: 10px;
}

.bd-slider__btn--next {
  right: 10px;
}

.bd-slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

.bd-slider__dot {
  pointer-events: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--slider-dot-bg);
  cursor: pointer;
}

.bd-slider__dot.is-active {
  background: linear-gradient(135deg, var(--accent-teal2), var(--accent-blue2));
  border-color: rgba(0, 0, 0, .05);
}

/* ===============================
   SECTIONS + TITLES
================================ */
.section {
  padding: var(--s-6) 0;
}

.section-title {
  text-align: center;
  margin: 0 0 var(--s-5);
}

.section-title h2 {
  margin: 0 0 14px;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.2px;
}

.section-title__line {
  width: 72px;
  height: 3px;
  margin: 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-teal2), var(--accent-blue2));
  box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
}

.section-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--s-6);
  align-items: start;
}

.section-text p {
  margin: 0 0 var(--s-3);
  max-width: 70ch;
  color: var(--muted);
  line-height: 1.7;
}

.section-text p:last-child {
  margin-bottom: 0;
}

.section-actions {
  display: grid;
  justify-items: end;
  gap: var(--s-3);
}

/* Buttons in einer Reihe (Store Buttons) */
.section-actions--row {
  display: flex;
  justify-content: flex-end;
  /* rechtsbündig wie vorher */
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  /* falls’s auf kleineren Screens nicht passt */
}

/* Store Buttons nebeneinander, linksbündig */
.store-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* <<< links statt rechts */
  gap: var(--s-3);
  flex-wrap: wrap;
}

/* Optional: der Google-Badge ist ein <img>, braucht block für saubere Baseline */
.store-row .section-store img {
  display: block;
}

.section-store img {
  height: 72px;
  width: auto;
  display: block;
}

@media (max-width: 860px) {
  .section-layout {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }

  .section-actions {
    justify-items: start;
  }
}

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

.section-layout--single .section-text p {
  max-width: 85ch;
}

.section--wide-text .section-text p {
  max-width: none;
}

/* doc-top */
.doc-top {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--s-6);
  align-items: start;
  margin-bottom: var(--s-5);
}

@media (max-width: 860px) {
  .doc-top {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }
}

.doc-top__media {
  display: grid;
  gap: var(--s-3);
}

.doc-top__download {
  width: 100%;
  justify-content: center;
}

.doc-top__text p {
  margin-top: 0;
}

/* slider + short text + long text */
.section-layout--slider-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
  align-items: start;
  margin-bottom: var(--s-5);
}

.section-summary p {
  margin: 0;
  max-width: 55ch;
  color: var(--muted);
  line-height: 1.7;
}

.section-textwide p {
  margin: 0 0 var(--s-4);
  max-width: 85ch;
  line-height: 1.75;
  color: var(--muted);
}

.section-textwide p:last-child {
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .section-layout--slider-text {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }

  .section-summary p,
  .section-textwide p {
    max-width: none;
  }
}

/* ===============================
   VIDEO EMBED
================================ */
.video-embed {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;

  height: clamp(380px, 36vw, 560px);
  padding: 18px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.video-frame {
  width: 100%;
  flex: 0 0 100%;
  max-width: none !important;
  display: block;
}

.youtube-placeholder {
  width: 100%;
  flex: 0 0 100%;
  max-width: none !important;

  aspect-ratio: 16 / 9;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, .03);
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: var(--s-4);
  text-align: center;
}

.youtube-placeholder p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 52ch;
}

.youtube-placeholder.is-loaded {
  padding: 0;
}

.youtube-placeholder iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 860px) {
  .video-embed {
    height: clamp(280px, 62vw, 420px);
    padding: 12px;
  }

  .youtube-placeholder {
    padding: var(--s-3);
  }
}

/* ===============================
   LIGHTBOX
================================ */
.bd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.bd-lightbox.is-open {
  display: flex;
}

.bd-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(6px);
}

.bd-lightbox__figure {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  text-align: center;
  animation: bd-lightbox-in 220ms ease-out;
}

.bd-lightbox__figure img {
  max-width: 92vw;
  max-height: 82vh;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  cursor: zoom-in;
  transition: transform 220ms ease;
}

.bd-lightbox__figure img.is-zoomed {
  transform: scale(1.6);
  cursor: zoom-out;
}

.bd-lightbox__figure figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: #e5e5e5;
  opacity: .9;
}

.bd-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 12px;

  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(0, 0, 0, .45);
  color: #fff;

  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}

.bd-lightbox__nav.prev {
  left: 20px;
}

.bd-lightbox__nav.next {
  right: 20px;
}

.bd-lightbox__nav:hover {
  background: rgba(0, 0, 0, .65);
}

@media (max-width: 860px) {
  .bd-lightbox__nav {
    width: 40px;
    height: 40px;
    font-size: 26px;
  }
}

@keyframes bd-lightbox-in {
  from {
    opacity: 0;
    transform: scale(.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===============================
   CARDS
================================ */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}

@media (max-width: 860px) {
  .card-grid {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }
}

.card {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card--media {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: stretch;
}

@media (max-width: 860px) {
  .card--media {
    grid-template-columns: 1fr;
  }
}

.card__img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  background: rgba(0, 0, 0, .03);
  cursor: zoom-in;
  display: block;
  border-right: 1px solid var(--border);
}

@media (max-width: 860px) {
  .card__img {
    height: 300px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

@media (prefers-color-scheme: dark) {
  .card__img {
    background: rgba(255, 255, 255, .04);
  }
}

.card__body {
  padding: var(--s-4);
}

.card__body h3 {
  margin: 0 0 var(--s-2);
  font-size: 18px;
  line-height: 1.2;
}

.card__body p {
  margin: 0 0 var(--s-3);
  color: var(--muted);
  line-height: 1.7;
}

.card__body p:last-child {
  margin-bottom: 0;
}

.media-card {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card);
  /* gleicher Schatten wie Video-Cards */
  box-shadow: var(--shadow);
  /* wichtig: Schatten nicht abschneiden */
  overflow: visible;
}


.media-card__img {
  width: 100%;
  object-fit: contain;
  background: rgba(0, 0, 0, .03);
  display: block;
  cursor: zoom-in;
  border-radius: 18px;

}

/* ===============================
   LEGAL
================================ */
.legal {
  background: transparent;
}

.legal h3 {
  margin: var(--s-5) 0 var(--s-2);
  font-size: 18px;
  line-height: 1.25;
}

.legal p {
  margin: 0 0 var(--s-3);
  line-height: 1.75;
  color: var(--muted);
  max-width: 95ch;
}

.legal ul {
  margin: 0 0 var(--s-4);
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.legal li {
  margin: 6px 0;
}

.legal a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal a:hover {
  color: var(--text);
}

.legal-imprint {
  margin: var(--s-3) 0 var(--s-4);
  padding: var(--s-4);
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, .08);
  background: #fff;
  box-shadow: 0 16px 50px rgba(0, 0, 0, .10);
}

@media (prefers-color-scheme: dark) {
  .legal-imprint {
    border: 1px solid rgba(0, 0, 0, .10);
    background: #fff;
  }
}

.legal-imprint__link {
  display: block;
}

.legal-imprint__img {
  height: auto;
  display: block;
  object-fit: contain;
  cursor: zoom-in;
}

@media (max-width: 860px) {
  .legal p {
    max-width: none;
  }
}

/* ===============================
   CONTACT
================================ */
.contact {
  display: flex;
  justify-content: center;
}

.contact-form {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: var(--s-5);
  box-shadow: var(--shadow);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.field label {
  font-size: 14px;
  color: var(--muted);
}

.field input,
.field textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.015);
  color: var(--text);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

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

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-teal2);
  box-shadow: 0 0 0 2px rgba(84, 184, 172, .25);
}

.field.hp {
  display: none;
}

.contact-actions {
  margin-top: var(--s-4);
  display: flex;
  justify-content: flex-start;
}

/* Dark mode tweaks – nur wenn dark wirklich aktiv ist */

/* Manuell dark (Switch setzt data-theme="dark") */
html[data-theme="dark"] .contact-form {
  background: rgba(22, 32, 45, .65);
}

html[data-theme="dark"] .field input,
html[data-theme="dark"] .field textarea {
  background: rgba(255, 255, 255, 0.04);
}

/* OS dark – aber NICHT wenn du manuell light erzwingst (data-theme="light") */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .contact-form {
    background: rgba(22, 32, 45, .65);
  }

  html:not([data-theme="light"]) .field input,
  html:not([data-theme="light"]) .field textarea {
    background: rgba(255, 255, 255, 0.04);
  }
}

/* ===============================
   LINK LIST
================================ */
.section-title--left {
  text-align: left;
  align-items: flex-start;
}

.section-title--left .section-title__line {
  margin-left: 0;
}

.link-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--s-3);
  max-width: 520px;
}

.link-list a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 15px;
  color: var(--text);
}

.link-list a span {
  color: var(--muted);
  font-size: 14px;
}

.link-list a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (prefers-color-scheme: dark) {
  .link-list a span {
    color: rgba(255, 255, 255, .55);
  }
}

/* ===============================
   COOKIE MODAL
================================ */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
}

.cookie-modal.is-open {
  display: flex;
}

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(6px);
}

.cookie-modal__card {
  position: relative;
  max-width: 520px;
  width: calc(100% - 2 * var(--s-4));
  padding: var(--s-5);
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  z-index: 1;
  animation: cookie-modal-in 220ms ease-out;
}

.cookie-modal__card h2 {
  margin: 0 0 var(--s-3);
  font-size: 22px;
  line-height: 1.2;
}

.cookie-modal__card p {
  margin: 0 0 var(--s-3);
  color: var(--muted);
  line-height: 1.6;
}

.cookie-modal__card a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-modal__actions {
  margin-top: var(--s-4);
  display: flex;
  justify-content: flex-end;
  gap: var(--s-3);
}

@media (max-width: 480px) {
  .cookie-modal__card {
    padding: var(--s-4);
  }

  .cookie-modal__actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .cookie-modal__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-color-scheme: dark) {
  .cookie-modal__card {
    background: rgba(22, 32, 45, .85);
  }
}

@keyframes cookie-modal-in {
  from {
    opacity: 0;
    transform: scale(.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===============================
   FOOTER (fixed)
================================ */
.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  border-top: 1px solid var(--border);
  backdrop-filter: blur(10px);
  background: var(--header-bg);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--muted);
}

.footer-brand strong {
  color: var(--text);
  font-weight: 500;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--muted);
  font-size: 14px;
}

.footer-nav a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 680px) {
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===============================
   THEME SWITCH
================================ */
.theme-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.theme-switch__btn {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--btn-secondary-bg);
  position: relative;
  cursor: pointer;
  padding: 0;
}

.theme-switch__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-teal2), var(--accent-blue2));
  transition: transform 160ms ease;
}

html[data-theme="dark"] .theme-switch__knob {
  transform: translateX(18px);
}

/* ============================================================
   PRINT STYLES – gezielte Druckausgabe für BoreDoc
   → ans ENDE der bestehenden CSS-Datei anhängen
============================================================ */
/* ============================================================
   PRINT – BoreDoc
============================================================ */
@media print {

  /* ---- Page setup: Platz für Header/Footer reservieren ---- */
  @page {
    margin: 18mm 12mm 18mm 12mm;
    /* default */
  }

  /* Wir reservieren zusätzlich Platz für fixed Header/Footer */
  body {
    margin-top: 20mm;
    /* Header-Platz */
    margin-bottom: 18mm;
    /* Footer-Platz */
  }

  /* ---- Nur Print-Target drucken, aber Header/Footer behalten ---- */
  body * {
    visibility: hidden !important;
  }

  .print-target,
  .print-target * {
    visibility: visible !important;
  }

  /* Header/Footer explizit sichtbar lassen */
  .site-header,
  .site-header *,
  .site-footer,
  .site-footer * {
    visibility: visible !important;
  }

  /* ---- Header/Footer in Print: fixed (Chrome/Edge können das pro Seite) ---- */
  .site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: var(--header-h);
    background: #fff !important;
    border-bottom: 1px solid #ccc !important;
    box-shadow: none !important;
  }

  .site-footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: var(--footer-h);
    background: #fff !important;
    border-top: 1px solid #ccc !important;
    box-shadow: none !important;
  }

  /* ---- Pagination FIX: keine absoluten Positionen im Print ---- */
  html,
  body {
    height: auto !important;
  }

  .print-target {
    position: static !important;
  }

  /* ------------------------------------------------------------
     PAGE BREAK: nach JEDEM </section> (innerhalb print-target)
     ------------------------------------------------------------ */
  /* Jede .print-target-Section wird eine Druckseite */
  section.print-target {
    break-after: page;
    page-break-after: always;
    /* fallback */
  }

  section.print-target:last-of-type {
    break-after: auto;
    page-break-after: auto;
  }

  /* Optional: innerhalb wichtiger Blöcke keine Umbrüche */
  .contact-form,
  .card,
  .legal-imprint,
  .bd-slider {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* ------------------------------------------------------------
     SLIDER → Print: max 4 Bilder, keine Controls
     ------------------------------------------------------------ */
  .bd-slider__btn,
  .bd-slider__dots {
    display: none !important;
  }

  .bd-slider__track {
    transform: none !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .bd-slide:nth-child(n+5) {
    display: none !important;
  }

  .bd-slide img {
    max-height: 45mm;
    width: auto !important;
    height: auto !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
  }

  /* ---- Print: keine fancy Hintergründe/Schatten ---- */
  * {
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
}

/* ===============================
   UTIL: Centered text block
================================ */
.u-center-text {
  max-width: 75ch;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   STORE-BADGE: BoreDoc-Web (secondary, store-like) – tuned to Play badge size
============================================================ */

.store-badge {
  display: inline-flex;
  align-items: center;

  /* wie Google-Badge: links klarer Rand, keine "zentrierte" Optik */
  padding: 10px 16px;
  gap: 12px;

  border-radius: 12px;

  min-height: 60px;
  min-width: 0;
  /* <<< wichtig: Button wird schmaler */
  width: fit-content;
  /* <<< passt sich dem Content an */
  text-decoration: none;
}


/* Icon links wie Logo-Block */
.store-badge__icon {
  /* NICHT zentrieren – wie "Logo links" */
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;

  width: 44px;
  height: 44px;
  flex: 0 0 44px;

  margin-left: 0;
  /* explizit */
}


.store-badge__text {
  display: grid;
  gap: 2px;
  line-height: 1.05;
}

.store-badge__title {
  font-weight: 700;
  font-size: 17px;
  /* etwas kompakter */
  letter-spacing: -0.2px;
}


.store-badge__sub {
  font-size: 13px;
  color: var(--muted);
}

/* --- Web Icon (quadratisch wie Logo) --- */
.web-icon {
  position: relative;
  width: 44px;
  /* quadratisch */
  height: 44px;
  /* quadratisch */
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, .03);
  overflow: hidden;
}

/* obere Browser-Leiste */
.web-icon__chrome {
  display: block;
  height: 11px;
  background: rgba(0, 0, 0, .06);
  border-bottom: 1px solid var(--border);
}

/* Logo mittig */
.web-icon__logo {
  position: absolute;
  inset: 11px 0 0 0;
  /* unter der Leiste */
  display: flex;
  align-items: center;
  justify-content: center;
}

.web-icon__logo img {
  width: 22px;
  /* etwas größer */
  height: 22px;
  display: block;
}

/* Hover minimal */
.store-badge--web:hover .web-icon {
  background: rgba(0, 0, 0, .04);
}

/* Dark tweak */
html[data-theme="dark"] .web-icon {
  background: rgba(255, 255, 255, .06);
}

html[data-theme="dark"] .web-icon__chrome {
  background: rgba(255, 255, 255, .10);
}