/* noto-sans-300 - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 300;
  src: url('fonts/noto-sans-v42-latin_latin-ext-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* noto-sans-300italic - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Noto Sans';
  font-style: italic;
  font-weight: 300;
  src: url('fonts/noto-sans-v42-latin_latin-ext-300italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* noto-sans-regular - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/noto-sans-v42-latin_latin-ext-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* noto-sans-italic - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Noto Sans';
  font-style: italic;
  font-weight: 400;
  src: url('fonts/noto-sans-v42-latin_latin-ext-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* noto-sans-700 - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/noto-sans-v42-latin_latin-ext-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* noto-sans-700italic - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Noto Sans';
  font-style: italic;
  font-weight: 700;
  src: url('fonts/noto-sans-v42-latin_latin-ext-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* mitr-200 - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Mitr';
  font-style: normal;
  font-weight: 200;
  src: url('fonts/mitr-v13-latin_latin-ext-200.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* mitr-300 - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Mitr';
  font-style: normal;
  font-weight: 300;
  src: url('fonts/mitr-v13-latin_latin-ext-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* mitr-regular - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Mitr';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/mitr-v13-latin_latin-ext-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* mitr-500 - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Mitr';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/mitr-v13-latin_latin-ext-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
  /* Farbpalette Light */
  --c1: #3EDFD1;
  --c2: #5CB2EB;
  --c3: #5972E6;
  --c4: #A86AE6;
  --c5: #E768A3;
  --c6: #F48B63;
  --c7: #F9CC5A;
  --darkblue: #1A365D;

  --bg: #fff;
  --fg: var(--darkblue);
  --font-col: #fff;
  --font-col-inverted: #0B1A2A;
  --muted: #555;
  --primary: var(--c2);
  --primary-contrast: #fff;
  --surface: #fff;
  --border: #ccc;

  --radius: 12px;
  --maxw: 90rem;
  --space: clamp(1rem, 1.2vw + 0.6rem, 2rem);
  --logo: clamp(20rem, 40vw + 10rem, 35rem);
  --headline: clamp(1rem, 2vw + 0.5rem, 1.75rem);;
  /*--subline: clamp(1.125rem, 1.2vw + 1rem, 1.5rem);*/
  --subline: clamp(2rem, 4vw + 1rem, 3.5rem);
  --nav-h: 64px;
  --focus: var(--c3);
  /* Basis für Card-Grids */
  --grid-gap: 1rem;
  --card-base: 280px; /* ~Breite einer Standard-Card */
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Farbpalette Dark */
    --c1: #2AB3A7;
    --c2: #3C90C8;
    --c3: #4658B8;
    --c4: #8749C2;
    --c5: #C14682;
    --c6: #D76D42;
    --c7: #D6A43D;

    --bg: #111;
    --fg: #eee;
    --muted: #aaa;
    --primary: var(--c2);
    --primary-contrast: #fff;
    --surface: #1a1a1a;
    --border: #333;
    --focus: var(--c3);
  }
}

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

html, body { height: 100%; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    var(--c1) 0%,
    var(--c2) 15%,
    var(--c3) 35%,
    var(--c4) 55%,
    var(--c5) 70%,
    var(--c6) 85%,
    var(--c7) 100%
  );
}
@media (prefers-color-scheme: dark) {
  body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: rgba(0,0,0,.25); /* 25% Abdunkelung */
    pointer-events: none;
  }
}

body {
  margin: 0;
  font: 16px/1.6 'Noto Sans', sans-serif;
  color: var(--font-col);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

:target { scroll-margin-top: 1rem; }

a {
  transition: all .2s;
}

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--space);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skiplink */
.skiplink {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  background: var(--primary);
  color: var(--primary-contrast);
  padding: .6rem .8rem;
  border-radius: .4rem;
}
.skiplink:focus { transform: none; }

/* Header */
header[role="banner"] {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}
nav a {
  padding: .4rem .6rem;
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
}
nav a:hover {
  background: color-mix(in srgb, var(--primary) 12%, transparent);
}

/* Aktiven Menüpunkt hervorheben – CSS-only */
@supports selector(:has(:target)) {
  body:has(#features:target) nav a[href="#features"],
  body:has(#preise:target)  nav a[href="#preise"],
  body:has(#kontakt:target) nav a[href="#kontakt"] {
    background: color-mix(in srgb, var(--primary) 18%, transparent);
    outline: 2px solid color-mix(in srgb, var(--primary) 45%, transparent);
    text-decoration: none;
  }
  /* Standardzustand ohne Hash */
  body:not(:has(:target)) nav a[href="#features"] {
    background: color-mix(in srgb, var(--primary) 12%, transparent);
  }
}

.h1, .h2, .h3, .h4 {
  font-family: Mitr, sans-serif;
}

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

/* Hero */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center; /* optional: vertikal zentrieren */
  padding-block: 3rem;
}
.hero .h1 {
  font-size: var(--headline);
  font-weight: 200;
  margin: 0 0 .5rem;
}
.hero .logo {
  height: auto;
  margin-top: calc(var(--headline) * 2);
  width: var(--logo);
}
.hero p {
  font-family: Mitr, sans-serif;
  font-size: var(--subline);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: var(--subline) 0;
  text-transform: uppercase;
}
.cta {
  display: inline-block;
  background: var(--c3);
  color: var(--primary-contrast);
  padding: .7rem 1rem;
  border-radius: 999px;
  text-decoration: none;
}
.cta:hover {
  background: var(--fg); }

/* Sections */
section[role="region"] {
  padding-block: 3rem;
}
section .h2 {
  font-size: 1.8rem;
  margin-bottom: .5rem;
}


/* Basis: gemeinsame Defaults */
.grid,
.grid-medium,
.grid-wide {
  --grid-gap: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: var(--grid-gap);
  justify-content: center;   /* zentriert die Karten, wenn eine Reihe nicht voll ist */
  align-content: flex-start; /* mehrere Zeilen starten oben */
  margin-inline: auto;
}

/* Karten: mobil 1 pro Zeile (volle Breite) */
.grid > .card,
.grid-medium > .card,
.grid-wide > .card {
  flex: 0 1 100%;
  max-width: 100%;
}

/* Tablet klein: ab 768px → 2 Karten */
@media (min-width: 768px) and (max-width: 1023px) {
  .grid > .card {
    flex-basis: calc((100% - var(--grid-gap)) / 2);
    max-width: calc((100% - var(--grid-gap)) / 2);
  }
}

/* Tablet quer: 3 Karten zwischen 1024px und 1279px */
@media (min-width: 1024px) and (max-width: 1279px) {
  .grid > .card {
    flex-basis: calc((100% - 2 * var(--grid-gap)) / 3);
    max-width: calc((100% - 2 * var(--grid-gap)) / 3);
  }
}

/* Desktop: ab 1280px → 4 Karten */
@media (min-width: 1280px) {
  .grid > .card {
    flex-basis: calc((100% - 3 * var(--grid-gap)) / 4);
    max-width: calc((100% - 3 * var(--grid-gap)) / 4);
  }
}



/* Tablet klein: ab 768px → 2 Karten */
@media (min-width: 768px) and (max-width: 1023px) {
  .grid-medium > .card {
    flex-basis: calc((100% - var(--grid-gap)) / 2);
    max-width: calc((100% - var(--grid-gap)) / 2);
  }
}

/* alles größer: 3 Karten  */
@media (min-width: 1024px) {
  .grid-medium > .card {
    flex-basis: calc((100% - 2 * var(--grid-gap)) / 3);
    max-width: calc((100% - 2 * var(--grid-gap)) / 3);
  }
}

/* DESKTOP: .grid-wide → 2 Spalten (doppelt so breit wie .grid-Card) */
@media (min-width: 1024px) {
  .grid-wide > .card {
    /* 2 Spalten: (100% - 1*gap) / 2 */
    flex-basis: calc((100% - var(--grid-gap)) / 2);
    max-width: calc((100% - var(--grid-gap)) / 2);
  }
}

.card {
  background: var(--surface);
  padding: 1rem;
  border-radius: var(--radius);
  color: var(--font-col-inverted);
}

/* Footer */
footer {
  padding-block: 2rem;
  font-size: .9rem;
}

/* a11y */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; /* verhindert Zeilenumbruch */
  border: 0;
}

/* Player */
.media {
  --radius: var(--radius);
  margin-block: 1.25rem 0;
  aspect-ratio: 16 / 9;
  background: var(--darkblue); /* Letterbox-Hintergrund bei object-fit: contain */
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.media__player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain; /* UI bleibt vollständig sichtbar, kein Beschnitt */
}

.playlist {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: .5rem;
}
@media (min-width: 768px) { .playlist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px){ .playlist { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.playlist li { margin: 0; }
.playlist button {
  width: 100%;
  text-align: left;
  padding: .6rem .8rem;
  border: 0;
  border-radius: .6rem;
  background: rgba(0,0,0,.15);
  color: inherit;
  cursor: pointer;
  transition: .2s all;
}
.playlist button:hover { background: rgba(0,0,0,.25); }
.playlist button:focus-visible { outline: 3px solid rgba(255,255,255,.6); outline-offset: 2px; }
.playlist button[aria-current="true"] {
  background: var(--darkblue);
}

.video-more {
  padding-block: 2em;
  text-align: right;
}

.video-more a {
  opacity: .8;
}

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

.section.contact .h2 {
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Social Links */
.social {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-block: 1.5rem;
  justify-content: center;
}

.social__link {
  --size: 48px;
  width: var(--size);
  height: var(--size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(0,0,0,.15);              /* gut lesbar auf deinem Verlauf */
  color: #fff;                               /* Icons erben currentColor */
  text-decoration: none;
}

.social__link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;                        /* Icon nutzt Link-Farbe */
  transition: all .2s;
}

/* Hover/Focus-States + Markenfarben */
.social__link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.social__link:hover { background: var(--fg); }

.section.footer {
  background-color: var(--darkblue);
  padding: .1em 2em;
  text-align: right;
}

.section.footer p {
  opacity: .75;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Farbpalette Dark */
    --c1: #2AB3A7;
    --c2: #3C90C8;
    --c3: #4658B8;
    --c4: #8749C2;
    --c5: #C14682;
    --c6: #D76D42;
    --c7: #D6A43D;

    --bg: #111;
    --fg: #eee;
    --muted: #aaa;
    --primary: var(--c2);
    --primary-contrast: #fff;
    --surface: #1a1a1a;
    --border: #333;
    --focus: var(--c3);
  }

  body {
    background-color: var(--bg);
    color: var(--fg);
  }

  a {
    color: var(--fg);
  }
  a:hover {
    color: var(--primary-contrast);
  }

  .card {
    background: var(--darkblue);
    color: var(--fg);
  }

  .cta {
    background: var(--c3);
    color: var(--primary-contrast);
  }
  .cta:hover {
    background: var(--darkblue);
  }

  footer,
  .section.footer {
    background: var(--darkblue);
    color: var(--fg);
  }
  .section.footer p {
    opacity: .8;
  }

  .playlist button {
    background: rgba(255,255,255,.08);
    color: var(--fg);
  }
  .playlist button:hover {
    background: rgba(255,255,255,.18);
  }
  .playlist button[aria-current="true"] {
    background: var(--c3);
    color: #fff;
  }

  .social__link {
    background: rgba(255,255,255,.1);
  }
  .social__link:hover {
    background: var(--darkblue);
  }
}
