:root {
  --bg: #2F3855;
  --bg2: #252B44;
  --card: #3B445F;
  --card2: #323A54;
  --text: #F6F1E9;
  --muted: #C8CDDC;
  --line: rgba(255, 255, 255, .14);
  --accent: #4D8DFF;
  --accent2: #FF4B4B;
  --shadow: 0 18px 50px rgba(0, 0, 0, .35);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 20% 5%, rgba(77, 141, 255, .20), transparent 55%),
    radial-gradient(900px 500px at 80% 25%, rgba(255, 75, 75, .14), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

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

a:hover {
  opacity: .92;
}

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

.container {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(37, 43, 68, .55);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .5px;
}

.brand__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.brand__name {
  font-size: 18px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  color: var(--muted);
}

.menu a {
  padding: 10px 8px;
  border-radius: 10px;
}

.menu a:hover {
  background: rgba(255, 255, 255, .06);
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  font-weight: 800;
  letter-spacing: .2px;
  box-shadow: none;
}

.btn--small {
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
}

.btn--primary {
  background: linear-gradient(180deg, rgba(77, 141, 255, 1), rgba(77, 141, 255, .82));
  border-color: rgba(255, 255, 255, .0);
  color: #0b1020;
}

.btn--ghost {
  background: rgba(255, 255, 255, .06);
  color: var(--text);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, .10);
}

.hero {
  padding: 54px 0 30px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items: start;
}

.pill {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05);
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 12px;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.6px;
}

.lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.5;
  max-width: 52ch;
}

.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

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

.trust__item {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 650;
}

.hero__visual {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.glass {
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  box-shadow: var(--shadow);
}

.glass__title {
  font-weight: 900;
  margin-bottom: 8px;
}

.glass__list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.phone {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  padding: 14px;
  box-shadow: var(--shadow);
}

.phone__frame {
  border-radius: 26px;
  padding: 10px;
  background: rgba(0, 0, 0, .25);
  border: 1px solid rgba(255, 255, 255, .10);
}

.phone__img {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .08);
}

.phone__caption {
  margin: 10px 4px 0;
  color: var(--muted);
  font-size: 13.5px;
}

.section {
  padding: 52px 0;
}

.section--muted {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, .10);
}

.section h2 {
  margin: 0 0 10px;
  font-size: 28px;
  letter-spacing: -0.4px;
}

.section__lead {
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 70ch;
  line-height: 1.5;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.shots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.shot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}

.shot img {
  width: 100%;
  height: 310px;
  object-fit: cover;
}

.shot figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 650;
  font-size: 13.5px;
}

.cta {
  padding-top: 44px;
}

.cta__box {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .04));
  padding: 22px;
  box-shadow: var(--shadow);
}

.cta__box p {
  color: var(--muted);
  line-height: 1.5;
  margin: 8px 0 14px;
}

.cta__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer {
  padding: 26px 0 38px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, .18);
}

.footer__grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.footer__brand {
  font-weight: 900;
  margin-bottom: 4px;
}

.footer__muted {
  color: var(--muted);
}

.footer__links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 650;
}

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

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

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

  .menu {
    display: none;
  }

  /* bewusst simpel, ohne Mobile-Menü */
}

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

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

/* =========================
   Screens Carousel (tile-like, no cropping)
   ========================= */

.screens {
  isolation: isolate;
}

/* verhindert Overlay-Probleme */
.section {
  position: relative;
  z-index: 1;
}

/* Content immer vorne */

.screens .section-head {
  margin: 0 0 18px;
}

.screens .section-head h2 {
  margin: 0 0 10px;
  font-size: 28px;
  letter-spacing: -0.4px;
}

.screens .section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  max-width: 70ch;
}

.screens .carousel {
  position: relative;
  margin-top: 18px;
}

/* Scroll-Viewport */
.carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  border-radius: 18px;
  outline: none;
  padding: 6px;
  /* bisschen Luft wie bei Cards */
  scroll-padding-left: 10px;
  scroll-padding-right: 10px;
  touch-action: pan-y;
  scroll-behavior: smooth;

}

/* Horizontale Reihe */
.carousel-track {
  display: flex;
  flex-wrap: nowrap;
  /* wichtig: nie umbrechen */
  gap: 12px;
  padding: 4px;
}

/* Slide = Kachelbreite wie vorher (4er Grid ~260px) */
.carousel-slide {
  flex: 0 0 auto;
  width: 260px;
  /* “kachel-like” Breite */
  margin: 0;
  scroll-snap-align: start;
}

/* Kacheloptik */
.carousel-slide img {
  width: 100%;
  height: auto;

  /* KEIN Abschneiden: Box wird 9:16, Bild wird komplett eingepasst */
  aspect-ratio: 9 / 16;
  object-fit: contain;

  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* Buttons (Desktop) */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 18, 28, 0.55);
  color: rgba(255, 255, 255, 0.92);
  font-size: 28px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-btn:hover {
  background: rgba(15, 18, 28, 0.70);
}

/* Dots */
.carousel-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;

  /* button reset */
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.25);

  display: inline-block;
  cursor: pointer;
}

/* größere Touch-Zone ohne optisch größer zu wirken */
.carousel-dots .dot::before {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  transform: translate(-9px, -9px);
}

.carousel-dots .dot.is-active {
  background: rgba(255, 255, 255, 0.75);
}

.carousel-dots .dot:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .55);
  outline-offset: 3px;
}


/* Mobile: breiter wischbar, Buttons ausblenden */
@media (max-width: 720px) {
  .carousel-btn {
    display: none;
  }

  .carousel-slide {
    width: 78vw;
  }

  /* aber nicht 100% — bleibt “card-like” */
}

/* Optional: Scrollbar verstecken */
.carousel-viewport::-webkit-scrollbar {
  height: 0;
}

/* =========================
   Robustness: decorative backgrounds always behind content
   ========================= */
body {
  position: relative;
}

/* Falls du irgendwo ::before/::after als Deko nutzt: immer hinter Inhalt */
body::before,
body::after {
  pointer-events: none;
  z-index: -1;
  /* wichtig: nicht 0, sondern wirklich hinter alles */
}

/* Haupt-Content darüber */
main,
header,
footer {
  position: relative;
  z-index: 1;
}

/* =========================
   Legal pages (Privacy / Imprint)
   ========================= */

.legal{
  max-width: 920px;
}

.legal-summary{
  margin-bottom: 28px;
}


.legal .legal-meta{
  margin: 10px 0 0;
  color: var(--muted);
}

.legal .legal-note{
  margin: 10px 0 0;
  color: var(--muted);
  opacity: .9;
}

.legal .prose{
  margin-top: 18px;
}

.legal .prose p{
  color: rgba(246, 241, 233, .92);
  line-height: 1.65;
  margin: 0 0 12px;
}

.legal .prose li{
  color: rgba(246, 241, 233, .92);
  line-height: 1.6;
  margin: 4px 0;
}

.legal .prose ul{
  margin: 10px 0 14px;
  padding-left: 18px;
}

.legal code{
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 10px;
}

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