:root {
  --purple: #4b1fa6;
  --purple2: #6a2bd6;
  --bg: #ffffff;
  --text: #111;
  --muted: #666;
  --card: rgba(255, 255, 255, 0.72);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  --header-height: 52px;
  --deals-bg: url("/images/younique-sale-deals.jpg");
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
html {
  margin: 0;
  padding: 0;
  background: transparent;
}
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: transparent;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}
a { color: inherit; }
.container { max-width: 980px; margin: 0 auto; padding: 0 20px; }

/* Scroll-Ziel Abstand bei Sticky-Header (Anker-Links) */
section[id] { scroll-margin-top: 90px; }

/* Topbar */
.topbar {
  height: var(--header-height);
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  z-index: 10;
  border-bottom: none;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}
.topbar .container { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; }
.topbar .brand {
  text-decoration: none;
  text-align: center;
  line-height: 1.25;
  display: inline-block;
}
.brand-logo {
  height: auto;
  width: 120px;
  max-width: 100%;
  display: block;
}
.brand-main {
  display: block;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--purple);
}
.brand-sub {
  display: block;
  font-size: 0.7rem;
  font-style: italic;
  font-weight: 400;
  color: var(--purple);
  opacity: 0.9;
}
.lang { position: absolute; right: 16px; }
.topbar .lang select {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.topbar .lang select:focus {
  background: #fff;
  outline: 2px solid var(--purple2);
  outline-offset: 2px;
}

/* Main: one-screen wrapper (takes remaining height, centers content on tall screens) */
main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  margin-top: 0;
  padding-top: 0;
  margin: 0;
  padding: 0;
  background: transparent;
}

/* Hero: background images (Mascara/Pinsel) + light overlay (Bild klar erkennbar) */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("/images/hero_bg_desktop_1920x1080.png") center top / cover no-repeat;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  background-attachment: scroll;
  background-position: center top;
  background-origin: border-box;
  top: 0;
  margin-left: 0;
  margin-right: 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.18));
  z-index: 0;
}
.hero .inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: calc(var(--header-height) + 48px) 20px 100px;
  text-align: center;
  color: #fff;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h1 { margin: 0 auto 12px; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.15; text-align: center; }
.hero p { margin: 0 auto 18px; font-size: clamp(15px, 1.7vw, 18px); opacity: 0.95; text-align: center; }

/* Button: purple gradient + shadow */
.btn,
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  background: linear-gradient(180deg, var(--purple2), var(--purple));
  color: #fff;
  box-shadow: 0 14px 26px rgba(75, 31, 166, 0.35),
              0 0 20px rgba(106, 43, 214, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  position: relative;
  animation: buttonPulse 2s ease-in-out infinite;
}
@keyframes buttonPulse {
  0%, 100% {
    box-shadow: 0 14px 26px rgba(75, 31, 166, 0.35),
                0 0 20px rgba(106, 43, 214, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 0 14px 26px rgba(75, 31, 166, 0.45),
                0 0 30px rgba(106, 43, 214, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
}
.btn:hover,
.cta-button:hover { 
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 32px rgba(75, 31, 166, 0.45),
              0 0 35px rgba(106, 43, 214, 0.7),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn:focus,
.cta-button:focus { outline: 2px solid var(--purple2); outline-offset: 2px; }
.btn:active,
.cta-button:active { transform: translateY(0) scale(0.98); }
.btn.secondary {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: none;
  color: #fff;
}
.deals .btn,
.deals .cta-button { font-size: 0.95rem; padding: 12px 22px; }

/* Glass Card Trust */
.trustCard {
  margin-top: -70px;
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(75, 31, 166, 0.03));
  padding-bottom: 20px;
}
.card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px 18px;
}
.trustGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.trustItem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 6px;
  text-align: center;
  color: #2b2b2b;
}
.trustItem img { width: 34px; height: 34px; object-fit: contain; }
.trustItem span { font-size: 14px; font-weight: 600; }

/* Deals: Hintergrundbild mit Makeup-Brush und Lila-Puder – Overlay leicht, Lila sichtbar */
.deals {
  margin-top: 0;
  position: relative;
  color: #fff;
  text-align: center;
  background: var(--deals-bg) center/cover no-repeat;
  padding: 48px 20px;
  background-color: rgba(75, 31, 166, 0.1);
}
.deals::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.08), transparent 50%),
              linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.18));
}
.deals .inner { position: relative; z-index: 1; }
.deals h2 { margin: 0 0 14px; font-size: clamp(22px, 2.5vw, 34px); }
.deals h2 strong { font-weight: 700; }

/* Disclosure + footer: compact */
.small {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding: 14px 20px 8px;
  background: linear-gradient(180deg, rgba(75, 31, 166, 0.08), rgba(106, 43, 214, 0.12), rgba(250, 245, 255, 0.4));
}
.small p { margin: 0 0 4px; }
.small p:last-child { margin-bottom: 0; }
.footer {
  padding: 12px 0 20px;
  text-align: center;
  border-top: 1px solid rgba(75, 31, 166, 0.15);
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(250, 245, 255, 0.4), rgba(106, 43, 214, 0.1), rgba(75, 31, 166, 0.08));
}
.footer-links-sep { margin: 0 6px; color: var(--purple); opacity: 0.6; font-weight: 300; }
.footer a { color: var(--purple); text-decoration: none; margin: 0 2px; }
.footer a:hover { text-decoration: underline; }
.footer a:focus { outline: 2px solid var(--purple2); outline-offset: 2px; }
.footer p { margin: 8px 0 0; font-size: 12px; color: #888; }

/* ========== DESKTOP: One-screen layout (min-width: 901px) – KEIN Scrollen ========== */
@media (min-width: 901px) {
  main {
    justify-content: center;
    min-height: calc(100vh - var(--header-height));
  }

  .hero {
    min-height: 64vh;
    max-height: 64vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("/images/hero_bg_desktop_1920x1080.png") center top / cover no-repeat;
    padding-top: 0;
    margin-top: 0;
    background-position: center top;
    top: 0;
  }
  .hero .inner {
    padding-top: calc(var(--header-height) + clamp(22px, 3.5vh, 54px));
    padding-bottom: clamp(16px, 3vh, 40px);
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
    align-items: center;
  }
  .hero h1 { font-size: clamp(28px, 3.4vw, 44px); margin-bottom: clamp(8px, 1.2vh, 12px); }
  .hero p { margin-bottom: clamp(12px, 2vh, 18px); }

  .trustCard {
    margin-top: clamp(-58px, -6vh, -78px);
    background: linear-gradient(180deg, transparent, rgba(75, 31, 166, 0.04));
    padding-bottom: 24px;
  }
  .card { padding: 20px 24px; border-radius: 16px; }
  .trustGrid { gap: 32px; }
  .trustItem { padding: 12px 10px; }
  .trustItem img { width: 48px; height: 48px; }
  .trustItem span { font-size: 15px; line-height: 1.3; }
  .brand-logo {
    width: 187px;
  }

  .deals {
    margin-top: 0;
    padding: clamp(26px, 4.5vh, 48px) 0;
    background-color: rgba(75, 31, 166, 0.1);
  }
  .deals h2 { margin-bottom: clamp(10px, 2vh, 14px); }

  .small {
    padding: 14px 0 6px;
    font-size: 12px;
    line-height: 1.35;
  }
  .footer {
    padding: 10px 0 16px;
  }
  .footer p { margin-top: clamp(4px, 0.8vh, 8px); }
}

/* Short viewport (height < 780px, desktop only): alles passt ohne Scrollen */
@media (min-width: 901px) {
  .is-short .hero {
    min-height: 50vh;
    max-height: 54vh;
    margin-top: 0;
    padding-top: 0;
    top: 0;
  }
  .is-short .hero h1 {
    font-size: clamp(24px, 2.6vw, 38px);
  }
  .is-short .hero p {
    font-size: 14px;
    margin-bottom: 16px;
  }
  .is-short .trustCard {
    margin-top: -56px;
  }
  .is-short .deals {
    padding: 22px 0;
  }
  .is-short .btn,
  .is-short .cta-button {
    padding: 11px 20px;
  }
}

/* Mobile: Mascara/Pinsel Bild, center top, scroll erlaubt */
@media (max-width: 900px) {
  .hero {
    min-height: 50vh;
    max-height: 50vh;
    background: url("/images/hero_bg_mobile_1080x1350.png") center 30% / cover no-repeat;
    padding-top: 0;
    margin-top: 0;
    top: 0;
  }
  .hero .inner { 
    padding: calc(var(--header-height) + 20px) 20px 30px;
    text-align: center;
    align-items: center;
  }
  .hero h1 { 
    font-size: clamp(20px, 4vw, 28px); 
    margin-bottom: 8px; 
  }
  .hero p { 
    font-size: 14px; 
    margin-bottom: 12px; 
  }
  .hero .btn, .hero .cta-button {
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 800;
  }
  .trustGrid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .trustItem { padding: 4px 2px; }
  .trustItem img { width: 24px; height: 24px; }
  .trustItem span { font-size: 11px; line-height: 1.2; }
  .trustCard { 
    margin-top: 20px; 
    background: linear-gradient(180deg, transparent, rgba(75, 31, 166, 0.03));
    padding-bottom: 16px;
  }
  .card { padding: 10px 12px; }
  .deals {
    margin-top: 0;
    padding: 24px 20px;
    background: var(--deals-bg) center/cover no-repeat;
    background-color: rgba(75, 31, 166, 0.1);
  }
  .deals h2 { font-size: clamp(18px, 3vw, 24px); margin-bottom: 10px; }
  .deals .btn, .deals .cta-button {
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 800;
  }
  .small { padding: 30px 20px 4px; font-size: 9px; line-height: 1.4; }
  .footer { padding: 8px 0 12px; }
  .footer p { font-size: 11px; margin-top: 4px; }
  main { justify-content: flex-start; }
}

/* Mobile Landscape (Querformat): Anpassungen für gequetschte Darstellung */
@media (max-width: 900px) and (orientation: landscape) {
  .hero {
    min-height: 70vh;
    max-height: 70vh;
    padding-top: 0;
    margin-top: 0;
    top: 0;
  }
  .hero .inner { 
    padding: calc(var(--header-height) + 15px) 20px 20px;
    text-align: center;
    align-items: center;
  }
  .hero h1 { 
    font-size: clamp(18px, 3vw, 22px); 
    margin-bottom: 6px; 
  }
  .hero p { 
    font-size: 12px; 
    margin-bottom: 10px; 
  }
  .hero .btn, .hero .cta-button {
    padding: 12px 20px;
    font-size: 0.85rem;
    font-weight: 800;
  }
  .trustGrid { gap: 4px; }
  .trustItem { padding: 3px 1px; }
  .trustItem img { width: 20px; height: 20px; }
  .trustItem span { font-size: 9px; line-height: 1.1; }
  .trustCard { margin-top: 20px; }
  .card { padding: 8px 10px; }
  .deals {
    margin-top: 0;
    padding: 16px 20px;
    background-color: rgba(75, 31, 166, 0.1);
  }
  .deals h2 { font-size: clamp(16px, 2.5vw, 20px); margin-bottom: 8px; }
  .deals .btn, .deals .cta-button {
    padding: 12px 20px;
    font-size: 0.85rem;
    font-weight: 800;
  }
  .small { padding: 25px 20px 3px; font-size: 8px; line-height: 1.4; }
  .footer { padding: 6px 0 10px; }
  .footer p { font-size: 10px; margin-top: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .cta-button { 
    transition: none;
    animation: none;
  }
}

/* Legal Pages (unchanged layout) */
.legal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 20px;
}
.legal-page h1 { font-size: 2rem; margin-bottom: 2rem; color: var(--text); }
.legal-page h2 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 1rem; color: var(--text); }
.legal-page h3 { font-size: 1.25rem; margin-top: 1.5rem; margin-bottom: 0.75rem; color: var(--text); }
.legal-page p { margin-bottom: 1rem; line-height: 1.8; }
.legal-page ul { margin-left: 2rem; margin-bottom: 1rem; }
.legal-page li { margin-bottom: 0.5rem; }
.legal-page .placeholder {
  background: #f9f9f9;
  border-left: 3px solid var(--purple);
  padding: 1rem;
  margin: 1rem 0;
  font-style: italic;
  color: var(--muted);
}
.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--purple);
  text-decoration: none;
}
.back-link:hover,
.back-link:focus { text-decoration: underline; outline: 2px solid var(--purple2); outline-offset: 2px; }

/* Legal pages: header/footer */
header {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
  border-bottom: 1px solid #eee;
}
header .container { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; }
header .logo, header .brand { text-decoration: none; text-align: center; line-height: 1.25; display: inline-block; }
header .brand-logo {
  height: auto;
  width: 120px;
  max-width: 100%;
  display: block;
}
header .brand-main { display: block; font-size: 1.35rem; font-weight: 600; letter-spacing: 0.02em; color: var(--purple); }
header .brand-sub { display: block; font-size: 0.7rem; font-style: italic; font-weight: 400; color: var(--purple); opacity: 0.9; }
@media (min-width: 901px) {
  header .brand-logo {
    width: 187px;
  }
}
header .lang-switcher, header .lang { position: absolute; right: 16px; }
header .lang-switcher select, header .lang select {
  padding: 6px 28px 6px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
header .lang-switcher select:focus, header .lang select:focus { outline: 2px solid var(--purple2); outline-offset: 2px; }
footer:not(.footer) { padding: 18px 0 26px; text-align: center; border-top: 1px solid #eee; }
footer:not(.footer) a { color: var(--purple); text-decoration: none; margin: 0 10px; }
footer:not(.footer) a:hover { text-decoration: underline; }
footer:not(.footer) .copyright { margin: 12px 0 0; font-size: 12px; color: #888; }
footer:not(.footer) .footer-links { display: block; margin-bottom: 8px; }
footer:not(.footer) .footer-links-sep { margin: 0 6px; color: var(--purple); opacity: 0.6; font-weight: 300; }
footer:not(.footer) .footer-links a { color: var(--purple); text-decoration: none; margin: 0 2px; }
footer:not(.footer) .footer-links a:hover { text-decoration: underline; }

/* Versteckte Anker-Links für Google Ads Sitelinks */
.sitelinks-anchors {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.sitelinks-anchors a {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
