/* ==========================================================================
   Der Weinbinder – Web-Visitenkarte
   Design Tokens & Typography
   ========================================================================== */

/* Lokale Webfonts (Oxygen) – DSGVO-konform ohne externe Google-Verbindung */
@font-face {
  font-family: 'Oxygen';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/oxygen-v16-latin-300.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;
}

@font-face {
  font-family: 'Oxygen';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/oxygen-v16-latin-400.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;
}

@font-face {
  font-family: 'Oxygen';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/oxygen-v16-latin-700.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;
}

:root {
  /* Farbpalette aus Figma-Entwurf */
  --color-primary: #ffffff;    /* Weiß / Hintergrund */
  --color-text: #000000;       /* Schwarz / Text */
  --color-secondary: #85aada;  /* Hellblau / Welle & Akzent */
  --color-accent: #c39114;     /* Gold / Rahmen & Trennlinien */
  --color-text-muted: #333333; /* Abgedunkelter Text für Fließtexte */
  --color-white: #ffffff;      /* Reines Weiß */

  /* Typografie */
  --font-family-base: 'Oxygen', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Layout */
  --container-max-width: 1440px;
  --page-padding-desktop-x: 170px;
  --page-padding-mobile-x: 24px;
}

/* ==========================================================================
   Reset & Basis-Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background-color: var(--color-primary);
  color: var(--color-text);
  font-family: var(--font-family-base);
  font-weight: 300;
  font-size: 1.6rem;
  line-height: 1.4;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Hintergrund-Grafik (Organische Welle) */
.bg-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image: url('../images/bg-wave-desktop.svg');
  background-repeat: no-repeat;
  background-position: left center;
  background-size: auto 100%;
  opacity: 1;
}

/* Container & Wrapper */
.site-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ==========================================================================
   Header (Logo – Desktop rechtsbündig, Mobile zentriert)
   ========================================================================== */
.site-header {
  width: 100%;
  padding-top: 24px;
  padding-bottom: 24px;
  padding-left: var(--page-padding-desktop-x);
  padding-right: var(--page-padding-desktop-x);
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.logo-link:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.logo-img {
  width: auto;
  height: 130px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* ==========================================================================
   Hauptinhalt (Main / Hero Content)
   ========================================================================== */
.site-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 20px var(--page-padding-desktop-x) 40px;
}

.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 120px;
  align-items: center;
}

/* Video / Image Teaser Container */
.video-teaser {
  position: relative;
  width: 310px;
  height: 551px;
  border: 1px solid var(--color-accent);
  border-radius: 15.503px 41.342px 41.342px 41.342px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.video-element,
.video-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.video-teaser:hover .video-thumbnail {
  transform: scale(1.03);
  filter: brightness(0.95);
}

.video-play-btn {
  position: relative;
  z-index: 2;
  width: 75px;
  height: 75px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, filter 0.2s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.video-play-btn.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.video-play-btn img {
  width: 100%;
  height: 100%;
}

.video-teaser:hover .video-play-btn {
  transform: scale(1.1);
  filter: drop-shadow(0 0 12px rgba(195, 145, 20, 0.6));
}

/* Text Content */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 660px;
}

.hero-title {
  font-size: 9.6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin: 0;
}

.hero-text {
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.4;
  color: var(--color-text);
}

.hero-text p + p {
  margin-top: 16px;
}

.hero-subtitle {
  font-size: 5.2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  margin-top: 10px;
  margin-bottom: 0;
}

.hero-text-highlight {
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.4;
  color: var(--color-text);
}

.hero-text-highlight a,
.hero-text a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.hero-text-highlight a:hover,
.hero-text a:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  width: 100%;
  border-top: 1px solid var(--color-accent);
  padding: 26px var(--page-padding-desktop-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  font-size: 1.6rem;
  line-height: 1.4;
}

.footer-col {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-icon {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-info {
  display: flex;
  flex-direction: column;
}

.footer-info .title {
  font-weight: 700;
  color: var(--color-text);
}

.footer-info .desc {
  font-weight: 300;
  color: var(--color-text);
  white-space: pre-line;
}

.footer-info a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-info a:hover {
  color: var(--color-accent);
}

.footer-insta-link {
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-insta-link:hover {
  color: var(--color-accent);
}

.footer-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.footer-legal-link,
.footer-legal-btn {
  background: none;
  border: none;
  color: var(--color-text);
  font-family: inherit;
  font-size: 1.6rem;
  font-weight: 300;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
  display: inline-block;
  transition: color 0.2s ease;
}

.footer-legal-link:hover,
.footer-legal-btn:hover {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Rechtliche Unterseiten (Impressum & Datenschutz)
   ========================================================================== */
.legal-page-main {
  align-items: flex-start;
  padding-top: 30px;
  padding-bottom: 60px;
}

.legal-content {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--color-accent);
  border-radius: 15.503px 41.342px 41.342px 41.342px;
  padding: 48px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
}

.legal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-accent);
  text-decoration: none;
  margin-bottom: 24px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.legal-back-link:hover {
  transform: translateX(-4px);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-title {
  font-size: 4.8rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(195, 145, 20, 0.35);
}

.legal-content h1 {
  font-size: 4.8rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(195, 145, 20, 0.35);
}

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

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

.legal-content h2,
.legal-section h2 {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-content h2:first-of-type,
.legal-section:first-child h2 {
  margin-top: 0;
}

.legal-content h3,
.legal-section h3 {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--color-text);
  margin-top: 22px;
  margin-bottom: 8px;
}

.legal-content h4,
.legal-section h4 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text);
  margin-top: 16px;
  margin-bottom: 6px;
}

.legal-content p,
.legal-section p {
  font-size: 1.6rem;
  line-height: 1.6;
  font-weight: 300;
  color: var(--color-text);
  margin-bottom: 12px;
}

.legal-content p:last-child,
.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-content ul,
.legal-section ul {
  list-style: disc inside;
  margin: 12px 0 16px 8px;
  font-size: 1.6rem;
  line-height: 1.6;
  font-weight: 300;
  color: var(--color-text);
}

.legal-content li,
.legal-section li {
  margin-bottom: 6px;
}

.legal-content a,
.legal-section a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.legal-content a:hover,
.legal-section a:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   Modaler Dialog (Impressum / Datenschutz / Video)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background-color: var(--color-primary);
  border: 1px solid var(--color-accent);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
  color: var(--color-text);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--color-accent);
  transform: scale(1.15);
}

.modal-body h2 {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-text);
  border-bottom: 1px solid rgba(195, 145, 20, 0.3);
  padding-bottom: 10px;
}

.modal-body h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--color-accent);
}

.modal-body p {
  font-size: 1.5rem;
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 14px;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Responsive Design & Breakpoints
   ========================================================================== */
@media (max-width: 1200px) {
  :root {
    --page-padding-desktop-x: 60px;
  }
  
  .hero-grid {
    gap: 60px;
  }
}

@media (max-width: 960px) {
  .site-header {
    justify-content: center;
    padding: 24px var(--page-padding-mobile-x);
  }

  .bg-wave {
    background-image: url('../images/bg-wave-mobile.svg');
    background-position: top left;
  }

  .site-main {
    padding: 30px var(--page-padding-mobile-x) 40px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 40px;
  }

  .video-teaser {
    width: 280px;
    height: 497px;
  }

  .hero-content {
    text-align: center;
    align-items: center;
  }

  .hero-title {
    font-size: 7.2rem;
  }

  .hero-subtitle {
    font-size: 4rem;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
    padding: 40px var(--page-padding-mobile-x);
    gap: 32px;
  }

  .footer-col {
    flex-direction: column;
    gap: 12px;
  }

  .footer-legal {
    align-items: center;
    gap: 12px;
  }

  .legal-content {
    padding: 36px 28px;
  }

  .legal-title {
    font-size: 3.8rem;
  }
}

@media (max-width: 480px) {
  .logo-img {
    height: 100px;
  }

  .hero-title {
    font-size: 5.6rem;
  }

  .hero-subtitle {
    font-size: 3.2rem;
  }

  .video-teaser {
    width: 240px;
    height: 426px;
  }

  .legal-content {
    padding: 28px 20px;
    border-radius: 12px 28px 28px 28px;
  }

  .legal-title {
    font-size: 3rem;
  }

  .modal-content {
    padding: 24px;
  }
}
