/* ============================================
   SELF-HOSTED FONTS
   ============================================ */

/* Inter — Variable Font, latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter — Variable Font, latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Playfair Display — Normal, latin-ext */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/playfair-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Playfair Display — Normal, latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/playfair-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Playfair Display — Italic, latin-ext */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/playfair-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Playfair Display — Italic, latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/playfair-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  /* CTA-Farbe — hier zentral anpassen */
  --color-accent:       #4284C8;
  --color-accent-hover: #0E59A7;
  --color-accent-text:  #ffffff;

  /* Text */
  --color-text:           #1a1a1a;
  --color-text-secondary: #555555;
  --color-text-muted:     #888888;

  /* Hintergründe */
  --color-bg:        #ffffff;
  --color-bg-subtle: #fafafa;

  /* Rahmen */
  --color-border:      #e8e8e8;
  --color-border-card: #ebebeb;

  /* Schriften */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Schriftgrößen */
  --text-xs:   0.75rem;
  --text-sm:   1.5rem;
  --text-base: 1.4rem;
  --text-lg:   1.4rem;
  --text-xl:   1.5rem;
  --text-2xl:  clamp(1.375rem, 2.5vw, 2.25rem);
  --text-3xl:  clamp(1.75rem,  3.5vw, 2.5rem);
  --text-4xl:  clamp(2.125rem, 4.5vw, 3vw);
  --text-hero: clamp(2.375rem, 5.5vw, 3vw);

  /* Zeilenhöhen */
  --leading-tight:   1.4;
  --leading-snug:    1.3;
  --leading-normal:  1.6;
  --leading-relaxed: 1.75;

  /* Spacing */
  --s-1:  0.25rem;
  --s-2:  0.5rem;
  --s-3:  1.5rem;
  --s-4:  1rem;
  --s-5:  1.25rem;
  --s-6:  1.5rem;
  --s-8:  2rem;
  --s-10: 2.5rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-section: clamp(4rem, 8vw, 7rem);

  /* Layout */
  --container-max:     max(1200px, 90vw);  /* wächst auf breiten Screens */
  --container-narrow:  840px;
  --container-padding: clamp(1.25rem, 5vw, 3rem);

  /* Radien */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Schatten */
  --shadow-card:       0 1px 2px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-card-hover: 0 4px 16px rgba(0,0,0,0.10), 0 8px 32px rgba(0,0,0,0.06);

  /* Transitions */
  --t-fast: 160ms ease;
  --t-base: 220ms ease;
  --t-slow: 360ms ease;
}


/* ============================================
   RESET & BASIS
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-display);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

ul, ol {
  list-style: none;
}


/* ============================================
   TYPOGRAFIE
   ============================================ */
h1 {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 500;
  line-height: var(--leading-tight);
  letter-spacing: -0.025em;
}

h2 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 500;
  line-height: var(--leading-snug);
  letter-spacing: -0.02em;
}

h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  line-height: var(--leading-snug);
  letter-spacing: -0.01em;
}

p {
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

.lead {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 64ch;
}

strong {
  font-weight: 600;
  color: var(--color-text);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}


/* ============================================
   LAYOUT-HILFSMITTEL
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.section {
  padding-block: var(--s-section);
}

.section--alt {
  background-color: var(--color-bg-subtle);
}

/* Abschnitt-Kopfzeile */
.section__header {
  width: 80%;
  margin-inline: auto;
  margin-bottom: var(--s-10);
  text-align: center;
}

.section__header h2 + .lead,
.section__header h2 + p {
  margin-top: var(--s-5);
}

.section__header .lead + p {
  margin-top: var(--s-4);
}

.section__header .lead {
  margin-inline: auto;
}


/* ============================================
   BUTTON
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.75em 2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color var(--t-fast),
    transform        var(--t-fast),
    box-shadow       var(--t-fast);
  text-transform: uppercase;
  height: 48px;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-accent-text);
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  /*! transform: translateY(-1px); */
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

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

.btn--lg {
  font-size: var(--text-lg);
  padding: 0.875em 2.25em;
  height: 56px;
}


/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transform: translateY(0);
  transition: transform 0.5s ease-in-out, border-color var(--t-slow);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header.scrolled {
  border-bottom-color: var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

/* Logo-Container: .logo-text durch <img src="logo.svg" alt="Discovery Desk"> ersetzen
   ohne Layout-Änderungen – der Container bleibt identisch. */
/* Nav-CTA: faded aus wenn Hero-CTA im Viewport sichtbar ist */
.nav .btn {
  transition: opacity 0.4s ease,
              background-color var(--t-fast),
              box-shadow var(--t-fast);
}

.nav .btn.hero-cta-active {
  opacity: 0;
  pointer-events: none;
}

.logo-container {
  display: inline-flex;
  align-items: center;
  height: 2rem;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: -0.01em;
  line-height: 1;
}


/* ============================================
   SECTION 1: HERO
   ============================================ */
.hero {
  position: relative;
  height: 75vh;
}

.hero .container {
  height: 100%;
}

/* 60/40-Split: Claim links, Carousel rechts */
.hero__stage {
  height: 100%;
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: var(--s-8);
  align-items: center;
  align-content: center;
}

.hero__content {
  padding-block: var(--s-8);
}

.hero__content h1 {
  margin-bottom: var(--s-6);
}

.hero__subtext {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  line-height: var(--leading-snug);
  margin-bottom: var(--s-8);
}

.hero__carousel {
  align-self: center;
  position: relative;
  aspect-ratio: 1;
  max-width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  /*! box-shadow: var(--shadow-card); */
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero__carousel.is-ready {
  opacity: 1;
}

.hero__carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.hero__carousel-slide.is-active {
  opacity: 1;
}

.hero__carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Discovery-Section */
.discovery-section {
  padding-block: var(--s-section);
}

/* Discovery-Kacheln: Abstand vom Erlebnis-Text */
.section--experience .discovery-cards {
  margin-top: var(--s-12);
}

/* Discovery-Kacheln: flex, zentriert, max 480px pro Kachel */
.discovery-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2vw;
}

.discovery-card {
  flex: 1 1 260px;
  max-width: 480px;
  background: var(--color-bg);
  border: 1px solid var(--color-border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--t-slow), transform var(--t-slow);
}

.discovery-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.discovery-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.discovery-card__body {
  padding: var(--s-4) 2vw var(--s-5);
}

.discovery-card__question {
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  color: var(--color-text-secondary);
}


/* ============================================
   SECTION 2: DAS ERLEBNIS
   ============================================ */

/* TODO: UI-Screenshots einsetzen — dann display:none entfernen */
.section__visual {
  display: none;
  margin-top: var(--s-10);
}

.section__visual img {
  margin-inline: auto;
  width: 100%;
  border-radius: var(--radius-lg);
}


/* ============================================
   SECTION 3: SERVICE (B2B-SCHWENK)
   ============================================ */

.process-visual {
  margin-top: var(--s-10);
}

.process-visual img {
  width: 100%;
  height: auto;
  display: block;
}


/* ============================================
   SECTION 4: ENTDECKEN · LERNEN · ERSCHLIESSEN
   ============================================ */
/* Individuelle Illustration über jedem Use-Case-Container */
/* TODO: UI-Screenshots einsetzen — dann display:none entfernen */
.use-case__visual {
  display: none;
  margin-bottom: var(--s-5);
}

.use-case__visual img {
  width: 100%;
  height: auto;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5vw;  /* viewport-proportional, leicht anpassbar */
}

.use-case__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--s-2);
  font-family: var(--font-body);
}

.use-case__for {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--s-4);
  display: none;
}

.use-case h3 {
  margin-bottom: var(--s-4);
}

.use-case p + p {
  margin-top: var(--s-3);
}

.use-case__setting {
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
  display: none;
}


/* ============================================
   SERVICE-LISTE (Section 3)
   ============================================ */

.service-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.service-list--centered {
  max-width: 420px;
  margin-inline: auto;
  margin-top: var(--s-10);
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  line-height: var(--leading-snug);
  color: var(--color-text-secondary);
}

.service-list li::before {
  content: '→';
  color: var(--color-accent);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 0.1em;
}


/* ============================================
   SECTION 6: REFERENZEN (Platzhalter)
   ============================================ */
.section--references .section__header {
  margin-bottom: var(--s-10);
}


/* ============================================
   SECTION 7: THEMENWELT
   ============================================ */
.theme-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);  /* 12 Cards → 2 Reihen à 6 */
  gap: var(--s-3);
  margin-top: 4rem;
}

.theme-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 4;
  box-shadow: var(--shadow-card);
}

.theme-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.theme-card__overlay {
  position: absolute;
  inset: 0;
  /*! background: rgba(255, 255, 255, 0.25); */
  /*! backdrop-filter: blur(3px); */
  /*! -webkit-backdrop-filter: blur(5px); */
  display: flex;
  align-items: end;
  justify-content: center;
  transition: opacity .5s ease-in-out;
  padding-bottom: .5rem;
}

.theme-card__label {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: -0.01em;
  text-align: center;
  padding-inline: var(--s-4);
}

.theme-card--violet .theme-card__label  { color: #7A5EA7; }
.theme-card--orange .theme-card__label  { color: #C96B2C; }
.theme-card--orange2 .theme-card__label { color: #E07B39; }
.theme-card--blue .theme-card__label    { color: #4284C8; }
.theme-card--blue2 .theme-card__label   { color: #3B6EC4; }
.theme-card--blue3 .theme-card__label   { color: #4A7CC4; }
.theme-card--teal .theme-card__label    { color: #2BBFB3; }
.theme-card--mint .theme-card__label    { color: #3AAD8A; }
.theme-card--green .theme-card__label   { color: #3AAD7A; }

.theme-card:hover .theme-card__overlay {
  opacity: 1;
  pointer-events: none;
}


/* ============================================
   VIDEO-TRENNER
   ============================================ */
.video-divider {
  position: relative;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  line-height: 0;
}

.video-divider video {
  width: 100%;
  height: 100%;
  max-height: 80vh;
  object-fit: cover;
  display: block;
}

.video-features {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.video-feature {
  position: absolute;
  bottom: clamp(1.5rem, 5vw, 4rem);
  left: clamp(1.5rem, 5vw, 4rem);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.video-feature.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.video-feature__num {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.4em;
  line-height: 1;
}

.video-feature__text {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
  line-height: 1.3;
}


/* ============================================
   SECTION 8: FINALER CTA
   ============================================ */
.section--cta {
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.section--cta h2 {
  max-width: 22ch;
  margin-inline: auto;
  margin-bottom: var(--s-6);
}

.section--cta .lead {
  margin-inline: auto;
  margin-bottom: var(--s-10);
}


/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding-block: var(--s-8);
}

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

.footer__logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.footer__links {
  display: flex;
  gap: var(--s-6);
}

.footer__links a {
  font-size: 1rem;
  color: var(--color-text-muted);
  transition: color var(--t-fast);
}

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

.footer__copy {
  font-size: 1rem;
  color: var(--color-text-muted);
}


/* ============================================
   SCROLL-ANIMATIONEN
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staffelung für Grid-Kinder */
.fade-up:nth-child(2) { transition-delay:  80ms; }
.fade-up:nth-child(3) { transition-delay: 160ms; }
.fade-up:nth-child(4) { transition-delay: 240ms; }
.fade-up:nth-child(5) { transition-delay: 280ms; }
.fade-up:nth-child(6) { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ============================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================ */
@media (max-width: 900px) {

  .use-cases-grid {
    grid-template-columns: 1fr;
    gap: var(--s-10);
  }

  /* Theme-Cards: 4 Spalten auf Tablet */
  .theme-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }

}


/* ============================================
   RESPONSIVE — MOBILE (≤ 640px)
   ============================================ */
@media (max-width: 640px) {

  :root {
    --s-section: 3.5rem;
    --text-hero: clamp(1.75rem, 5.5vw, 2.5rem);
    --text-base: 1.1rem;
    --text-lg:   1.15rem;
  }

  /* Nav kompakt */
  .nav {
    height: 64px;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .nav .btn {
    font-size: 0.8rem;
    padding: 0.6em 1rem;
    height: 40px;
  }

  .section__header {
    width: 100%;
  }

  /* Hero: Carousel oben, Content darunter */
  .hero {
    height: auto;
    min-height: 100svh;
  }

  .hero .container {
    height: auto;
  }

  .hero__stage {
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: calc(64px + 1rem);
    padding-bottom: 0;
    gap: 0;
  }

  /* Carousel auf Mobile nach oben vor den Content */
  .hero__carousel {
    order: -1;
    max-height: none;
    width: 100%;
  }

  .hero__content {
    padding-block: 0;
    transform: translateY(-32px);
    z-index: 9999;
  }

  .hero__subtext {
    margin-top: 0;
  }

  .discovery-cards {
    gap: var(--s-5);
  }

  /* Theme-Cards: 2 Spalten auf Mobile */
  .theme-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-2);
  }

  /* CTA-Button volle Breite */
  .section--cta .btn--lg {
    width: 100%;
    justify-content: center;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__links {
    justify-content: center;
  }
}
