/* =========================================================
   main.css – moderne, bereinigte Version
   Inhalte bleiben gleich, nur das Design wird „peppiger“
   ----------------------------------------------------- */

/* -------------------------
   Font-Face
-------------------------- */

@font-face {
  font-family: 'Lexend';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lexend-v19-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Lexend';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/lexend-v19-latin-700.woff2') format('woff2');
}

/* -------------------------
   Design-Variablen
-------------------------- */

:root {
  --color-bg: #050509;
  --color-bg-alt: #101019;
  --color-section: #14141f;
  --color-section-soft: #191824;
  --color-text: #f7f7fb;
  --color-muted: #b3b3c4;
  --color-accent: #ff4b8b;
  --color-accent-soft: rgba(255, 75, 139, 0.15);
  --color-border: rgba(255, 255, 255, 0.08);
  --shadow-soft: 0 20px 45px rgba(0, 0, 0, 0.55);

  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-pill: 999px;

  --transition-fast: 0.18s ease-out;
  --transition-med: 0.28s ease-out;

  --layout-width: 1120px;
}

/* -------------------------
   Global Reset & Base
-------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Lexend', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background:
    radial-gradient(circle at top left, rgba(255, 75, 139, 0.18), transparent 55%),
    radial-gradient(circle at bottom right, rgba(156, 110, 255, 0.22), transparent 60%),
    var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  display: block;
}

/* Links */

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

a:hover,
a:focus-visible {
  color: #ff629b;
  opacity: 0.9;
}

/* Wrapper / Layout */

.wrapper {
  width: min(var(--layout-width), 100% - 2.5rem);
  margin-inline: auto;
}

/* -------------------------
   Typografie
-------------------------- */

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
  margin: 0 0 1rem 0;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1,
.h1 {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
}

h2,
.h2 {
  font-size: clamp(1.8rem, 2.4vw, 2.2rem);
}

h3,
.h3 {
  font-size: 1.6rem;
}

h4,
.h4 {
  font-size: 1.3rem;
}

h5,
.h5 {
  font-size: 1.1rem;
}

h6,
.h6 {
  font-size: 1rem;
}

p {
  margin: 0 0 0.9rem 0;
  color: var(--color-muted);
}

/* Standard-Text in Content-Bereichen */

.flexrow-text {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

/* -------------------------
   Header & Navigation
-------------------------- */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.86));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  padding-bottom: 1.5rem;
}

/* Logo-Zeile */

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.75rem;
  padding-bottom: 0.5rem;
}

.header-inner h1 {
  /* Wir blenden es im Design ein, statt zu verstecken */
  margin-top: 0.75rem;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* Logo */

.logo {
  height: auto;
  max-width: 260px;
  margin-inline: auto;
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.65));
  transition: transform var(--transition-med), filter var(--transition-med), opacity var(--transition-fast);
}

.logo:hover {
  transform: translateY(-4px) scale(1.02);
  opacity: 0.98;
}

/* Desktop-Navigation */

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#desktop {
  display: none;
}

#desktop ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.4rem;
  padding-top: 1.1rem;
  padding-bottom: 0.2rem;
  font-size: 0.88rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

#desktop ul li {
  position: relative;
}

#desktop ul li a {
  color: var(--color-muted);
  padding-bottom: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

#desktop ul li.current > a {
  color: var(--color-accent);
}

#desktop ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.1rem;
  margin-inline: auto;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff4b8b, #ff9a62);
  transition: width var(--transition-med);
}

#desktop ul li:hover a::after,
#desktop ul li.current a::after {
  width: 100%;
}

/* Mobile Menü-Button */

/* Mobiler Menübutton oben links */

.menu-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.8rem 1rem 0 1rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(220, 220, 220, 0.7);
  background: rgba(0, 0, 0, 0.45);
  color: #f5f5f5;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}

.menu-button::before {
  content: "";
  width: 15px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor;
}

/* Hover-Effekt */
.menu-button:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Auf Desktop ausgeblendet */
@media (min-width: 768px) {
  .menu-button {
    display: none;
  }
}

/* Mobile-Navigation als Overlay */
@media (max-width: 767px) {
  #mobile {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: radial-gradient(circle at top, rgba(255, 75, 139, 0.12), transparent 55%),
                rgba(0, 0, 0, 0.96);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.22s ease-out, transform 0.22s ease-out;
  }

  body.menu-open #mobile {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  #mobile > img {
    display: none;
  }

  #mobile ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    align-items: center;
  }

  #mobile ul li a {
    color: #ffffff;
    font-size: 1rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
  }

  #mobile ul li.current a {
    color: var(--color-accent);
  }
}

/* Desktop: Mobile-Menü ausblenden, Desktop-Menü anzeigen, Logo größer */
@media (min-width: 768px) {
  #mobile {
    display: none;
  }

  #desktop {
    display: block;
  }

  .logo {
    max-width: 340px;
  }
}

@media (min-width: 1024px) {
  .logo {
    max-width: 420px;
  }
}


/* -------------------------
   Haupt-Content / Sections
-------------------------- */

main {
  padding-block: 3rem 5rem;
}

/* Flex-Row Layout für Text/Bild-Paare */

.flexrow {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: stretch;
  margin-bottom: 3.5rem;
  padding: 2.2rem 1.8rem;
  background: radial-gradient(circle at top left, var(--color-accent-soft), transparent 60%),
              var(--color-section);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
}

.flexrow:nth-of-type(even) {
  background: radial-gradient(circle at top right, rgba(156, 110, 255, 0.22), transparent 60%),
              var(--color-section-soft);
}

.flexrow-text {
  flex: 1.2;
}

.flexrow-text h2 {
  margin-bottom: 0.6rem;
}

.flexrow-text ul {
  margin: 0.6rem 0 0.6rem 1.2rem;
  padding: 0;
  color: var(--color-muted);
}

.flexrow-text li + li {
  margin-top: 0.3rem;
}

.flexrow-img {
  flex: 0.9;
  max-width: 360px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flexrow-img img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.7);
  transform: translateY(0);
  transition: transform var(--transition-med), box-shadow var(--transition-med), filter var(--transition-med);
}

.flexrow:hover .flexrow-img img {
  transform: translateY(-6px);
  filter: saturate(1.05);
  box-shadow: 0 30px 55px rgba(0, 0, 0, 0.85);
}

/* Abwechselnde Ausrichtung ab Tablet */

@media (min-width: 768px) {
  .flexrow {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
    padding: 2.6rem 2.8rem;
  }

  .flexrow-text {
    width: 60%;
  }

  .flexrow-img {
    max-width: 420px;
  }

  .flexreverse {
    flex-direction: row-reverse;
  }
}

/* -------------------------
   Teaser-Blöcke
-------------------------- */

.teaser {
  margin: 4rem 0;
}

.teaser-inner {
  padding: 2.1rem 1.6rem;
  border-radius: var(--radius-xl);
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  font-style: italic;
  color: #f9f9ff;
  background:
    radial-gradient(circle at top, rgba(255, 75, 139, 0.2), transparent 60%),
    linear-gradient(135deg, #181824, #17151f);
  border: 1px solid var(--color-border);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.65);
}

/* -------------------------
   Video – responsiv
-------------------------- */

.responsive-video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #24242e;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

.responsive-video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

/* -------------------------
   Tabellen (z.B. Preise)
-------------------------- */

table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 16px;
  overflow: hidden;
  margin-block: 1rem 2rem;
  background: rgba(12, 12, 18, 0.95);
}

th,
td {
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: top;
}

th {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.03);
}

/* -------------------------
   Partner / Referenzen
-------------------------- */

.partner-flex {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-top: 1rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.partner-bild {
  max-width: 260px;
}

.partner-bild img {
  border-radius: 18px;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.75);
}

.partner-text {
  max-width: 650px;
  padding: 0.4rem 0;
}

@media (min-width: 768px) {
  .partner-flex {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-bottom: none;
    padding-bottom: 0;
  }

  .partner-flex:nth-child(even) {
    flex-direction: row-reverse;
  }
}

/* -------------------------
   Blockquote / Zitate
-------------------------- */

blockquote {
  position: relative;
  width: 100%;
  max-width: 850px;
  margin: 3rem auto;
  border-radius: 20px;
  padding: 0;
  z-index: 1;
}

blockquote::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at top left, rgba(255, 75, 139, 0.38), transparent 60%),
    radial-gradient(circle at bottom right, rgba(156, 110, 255, 0.4), transparent 65%);
  opacity: 0.18;
  z-index: -1;
}

blockquote::after {
  content: "”";
  position: absolute;
  bottom: -0.4em;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  z-index: -1;
}

blockquote p {
  border-radius: 20px 20px 12px 12px;
  background-color: #191a1f;
  color: #ffffff;
  font-size: 1.4rem;
  text-align: center;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
  padding: 1.9rem 2rem 1.4rem 2rem;
}

@media (min-width: 600px) {
  blockquote p {
    font-size: 1.6rem;
  }
}

blockquote small {
  display: block;
  position: relative;
  background-color: #191a1f;
  color: var(--color-accent);
  text-transform: uppercase;
  font-size: 0.9rem;
  text-align: center;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.26em;
  margin: 0;
  padding: 1rem 1.8rem 1.4rem 1.8rem;
}

/* -------------------------
   Buttons / Call-To-Action
-------------------------- */

button,
.button,
input[type="submit"],
input[type="button"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.4rem 1.6rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #ff4b8b, #ff9a62);
  border: 0;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

button a,
.button a,
input[type="submit"] a {
  color: inherit;
  text-decoration: none;
}

button:hover,
.button:hover,
input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
  filter: brightness(1.05);
}

/* -------------------------
   Preise – Accordion
-------------------------- */

.collapsible-accordion {
  margin: 1.5rem 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 10, 16, 0.96);
}

.collapsible-item {
  background: rgba(255, 255, 255, 0.02);
}

.collapsible-item + .collapsible-item {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Versteckte Inputs nur im Accordion */

.collapsible-accordion input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.collapsible-item-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #f5f5f5;
}

.collapsible-item-label h4 {
  padding: 0;
  margin: 0;
}

.collapsible-item-label::after {
  content: "›";
  width: 1.6em;
  text-align: center;
  font-size: 1.15em;
  transition: transform var(--transition-med);
}

.collapsible-item-content {
  max-height: 0;
  padding: 0 1.1rem;
  background: rgba(2, 2, 8, 0.9);
  transition: max-height var(--transition-med), padding var(--transition-med);
  overflow: hidden;
}

.collapsible-item-content h5 {
  margin: 0.4rem 0 0.4rem 0;
}

/* Geöffneter Zustand über :checked */

.collapsible-accordion input:checked + .collapsible-item-label::after {
  transform: rotate(90deg);
}

.collapsible-accordion input:checked ~ .collapsible-item-content {
  max-height: 100vh;
  padding: 0.9rem 1.1rem 1.2rem 1.1rem;
}

/* -------------------------
   Footer
-------------------------- */

footer {
  background: #000000;
  color: #ffffff;
  padding-top: 1.8rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-inner {
  padding-block: 0.8rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--color-muted);
}

footer a {
  color: #d0d0ff;
}

footer a:hover {
  color: var(--color-accent);
}

/* -------------------------
   Kleine Helfer
-------------------------- */

strong {
  color: #ffffff;
}

ul {
  padding-left: 1.3rem;
}

/* Etwas mehr Luft auf sehr kleinen Screens */

@media (max-width: 480px) {
  .flexrow {
    padding: 1.8rem 1.4rem;
  }

  .teaser-inner {
    padding-inline: 1.2rem;
  }
}

/* =========================================
   Header dynamisch verkleinern beim Scrollen
   ========================================= */

/* sanfte Übergänge */
header {
  transition: padding var(--transition-med), background var(--transition-med), box-shadow var(--transition-med);
}

.header-inner,
.logo,
#desktop ul {
  transition: all var(--transition-med);
}

/* Zustand: gescrolled  */
header.header--scrolled {
  padding-bottom: 0.4rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.9);
  background: rgba(0, 0, 0, 0.98);
}

/* Desktop-Verhalten */
@media (min-width: 768px) {

  header.header--scrolled .header-inner {
    padding-top: 0.2rem;
  }

  /* Logo deutlich kleiner im Sticky-Header */
  header.header--scrolled .logo {
    max-width: 180px;
  }

  /* Untertitel ausblenden, damit der Header schön kompakt wird */
  header.header--scrolled .header-inner h1 {
    display: none;
  }

  /* Navigation etwas dichter an den oberen Rand */
  header.header--scrolled #desktop ul {
    padding-top: 0.5rem;
    padding-bottom: 0.1rem;
  }
}

/* Mobile-Verhalten */
@media (max-width: 767px) {

  /* Logo auch auf dem Handy etwas kleiner beim Scrollen */
  header.header--scrolled .logo {
    max-width: 150px;
  }

  header.header--scrolled {
    padding-bottom: 0.6rem;
  }
}

