/* ============================================
   DrinkReminder Timer – Landingpage
   ============================================ */

:root {
  --color-primary: #0d6e8c;
  --color-primary-dark: #0a5670;
  --color-primary-light: #e6f2f6;
  --color-accent: #2e8b57;
  --color-text: #1b2733;
  --color-text-soft: #435361;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f9fb;
  --color-border: #dde6ea;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --shadow-card: 0 6px 24px rgba(15, 60, 80, 0.08);
  --shadow-card-hover: 0 10px 32px rgba(15, 60, 80, 0.14);
  --max-width: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

/* Verhindert das Layout-Springen beim Sprachwechsel: Seite bleibt unsichtbar,
   bis js/main.js die passende Übersetzung angewendet hat (verhindert einen
   kurzen Wechsel von den deutschen Platzhaltertexten zur erkannten Sprache
   samt dadurch verursachter Höhenänderungen in Nav/Hero). Falls JS aus
   irgendeinem Grund nicht rechtzeitig entfernt: automatische Freigabe nach
   1,5s als Sicherheitsnetz. */
html.i18n-loading body {
  visibility: hidden;
  animation: i18n-reveal-fallback 0s 1.5s forwards;
}
@keyframes i18n-reveal-fallback {
  to { visibility: visible; }
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 16px;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); text-align: center; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; }

.lead {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
  color: var(--color-text-soft);
  font-size: 1.15rem;
}

a { color: var(--color-primary); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(13, 110, 140, .3);
}
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border);
}
.btn-ghost:hover { border-color: var(--color-primary); background: var(--color-primary-light); }
.btn-large { padding: 16px 30px; font-size: 1.1rem; }
.btn-small { padding: 10px 18px; font-size: .95rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 500;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}
.main-nav {
  display: flex;
  gap: 28px;
  margin-left: 12px;
  flex: 1;
}
.main-nav a {
  text-decoration: none;
  color: var(--color-text-soft);
  font-weight: 600;
  font-size: 1rem;
}
.main-nav a:hover { color: var(--color-primary); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

/* Language switcher */
.lang-switch { position: relative; }
.lang-switch-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 9px 14px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
}
.lang-switch-btn:hover { border-color: var(--color-primary); }
.lang-switch-btn svg { color: var(--color-text-soft); }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-hover);
  list-style: none;
  margin: 0;
  padding: 8px;
  width: 220px;
  max-height: 360px;
  overflow-y: auto;
  z-index: 600;
}
.lang-menu li button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: .98rem;
  cursor: pointer;
  color: var(--color-text);
}
.lang-menu li button:hover { background: var(--color-bg-alt); }
.lang-menu li button[aria-selected="true"] { background: var(--color-primary-light); font-weight: 700; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--color-primary-light) 0%, #ffffff 100%);
  padding: 64px 0 40px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}
.hero-icon {
  width: 84px;
  height: auto;
  margin-bottom: 20px;
}
.eyebrow {
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .9rem;
  margin-bottom: 12px;
}
.hero-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-soft);
  max-width: 560px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 28px 0 14px;
}
.hero-note {
  color: var(--color-text-soft);
  font-size: .95rem;
  margin: 0;
}
.hero-media { display: flex; justify-content: center; }
.phone-frame {
  background: #10151a;
  border-radius: 40px;
  padding: 14px;
  box-shadow: var(--shadow-card-hover);
  width: 280px;
}
.phone-frame img { border-radius: 28px; width: 100%; height: auto; }

/* Hero fan (aufgefächerte Screenshots, alle 3 gleich groß) */
.hero-fan {
  position: relative;
  display: block;
  width: 320px;
  height: 380px;
  margin: 0 auto;
  text-decoration: none;
}
.hero-fan .phone-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.hero-fan .fan-front {
  z-index: 3;
  transform: translate(-50%, -50%);
}
.hero-fan .fan-back { opacity: .95; }
.hero-fan .fan-back-left {
  z-index: 1;
  transform: translate(-92%, -44%) rotate(-14deg);
}
.hero-fan .fan-back-right {
  z-index: 2;
  transform: translate(-8%, -44%) rotate(14deg);
}
.hero-fan:hover .fan-front,
.hero-fan:focus-visible .fan-front {
  transform: translate(-50%, -55%);
  box-shadow: 0 16px 40px rgba(15, 60, 80, .22);
}
.hero-fan:hover .fan-back-left,
.hero-fan:focus-visible .fan-back-left {
  transform: translate(-98%, -50%) rotate(-18deg);
}
.hero-fan:hover .fan-back-right,
.hero-fan:focus-visible .fan-back-right {
  transform: translate(-2%, -50%) rotate(18deg);
}
.hero-fan:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 8px; border-radius: 40px; }

/* Simplicity + Audience cards */
.simplicity, .audience { padding: 80px 0; }
.simplicity { background: var(--color-bg); }
.audience { background: var(--color-bg-alt); }
.simplicity h2, .audience h2 { max-width: 760px; margin-left: auto; margin-right: auto; }

.card-row {
  display: grid;
  gap: 24px;
}
.card-row.three { grid-template-columns: repeat(3, 1fr); }
.card-row.grid { grid-template-columns: repeat(3, 1fr); }
.card-row.four { grid-template-columns: repeat(4, 1fr); }

.simple-card, .feature-card, .price-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
  transition: box-shadow .15s ease, transform .15s ease;
}
.simple-card:hover, .feature-card:hover, .price-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.simple-icon, .feature-icon {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  border-radius: 16px;
  margin-bottom: 16px;
}
.simple-card p, .feature-card p { color: var(--color-text-soft); margin-bottom: 0; }

/* Features */
.features { padding: 80px 0; background: var(--color-bg); }

/* Screenshots */
.screenshots { padding: 80px 0; background: var(--color-bg-alt); }
.screens-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.screens-row figure {
  margin: 0;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 14px;
  box-shadow: var(--shadow-card);
}
.screens-row .screen-thumb {
  position: relative;
  display: block;
  width: 100%;
  border: none;
  background: none;
  padding: 0;
  margin: 0 0 12px;
  cursor: zoom-in;
  border-radius: 12px;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.screens-row .screen-thumb img { border-radius: 12px; margin: 0; width: 100%; height: auto; transition: transform .2s ease; }
.screens-row .screen-thumb:hover img,
.screens-row .screen-thumb:focus-visible img { transform: scale(1.04); }
.screens-row .screen-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(13, 110, 140, 0) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3Cpath d='M11 8v6M8 11h6'/%3E%3C/svg%3E") no-repeat 12px 12px / 20px 20px;
  opacity: 0;
  transition: opacity .2s ease, background-color .2s ease;
}
.screens-row .screen-thumb:hover::after,
.screens-row .screen-thumb:focus-visible::after {
  opacity: 1;
  background-color: rgba(13, 110, 140, .18);
}
.screens-row .screen-thumb:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 3px; }
.screens-row figcaption {
  font-size: .92rem;
  color: var(--color-text-soft);
  text-align: center;
  line-height: 1.45;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 26, .55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
}
.lightbox-overlay.is-open { opacity: 1; visibility: visible; }
.lightbox-content { max-width: 92vw; text-align: center; }
.lightbox-content img {
  display: block;
  width: auto;
  height: auto;
  max-width: 92vw;
  max-height: 78vh;
  margin: 0 auto 16px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.lightbox-caption { color: #fff; font-size: .98rem; max-width: 640px; margin: 0 auto; }
.lightbox-btn {
  position: absolute;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  cursor: pointer;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}
.lightbox-btn:hover, .lightbox-btn:focus-visible { background: rgba(255,255,255,.28); }
.lightbox-close { top: 20px; right: 20px; width: 44px; height: 44px; font-size: 1.6rem; line-height: 1; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 1.1rem; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

@media (max-width: 620px) {
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; }
  .lightbox-close { width: 38px; height: 38px; top: 12px; right: 12px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* Pricing */
.pricing { padding: 80px 0; background: var(--color-bg); }
.price-card { text-align: center; position: relative; }
.price-card.highlight {
  border-color: var(--color-primary);
  box-shadow: 0 8px 28px rgba(13,110,140,.18);
}
.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin: 0;
}
.price-amount {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.price-card p:not(.price-amount):not(.price-badge) { color: var(--color-text-soft); margin-bottom: 0; }
.pricing-note {
  text-align: center;
  color: var(--color-text-soft);
  font-size: .95rem;
  margin-top: 32px;
}

/* FAQ */
.faq { padding: 80px 0; background: var(--color-bg-alt); }
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-list details {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
  position: relative;
  padding-right: 30px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 1.4rem;
  color: var(--color-primary);
  font-weight: 400;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p {
  margin: 14px 0 0;
  color: var(--color-text-soft);
}

/* Final CTA */
.final-cta {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
}
.final-cta h2 { color: #fff; }
.final-cta p { color: rgba(255,255,255,.9); font-size: 1.1rem; margin-bottom: 28px; }
.final-cta .btn-primary { background: #fff; color: var(--color-primary-dark); box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.final-cta .btn-primary:hover { background: #f0f0f0; }

/* Footer */
.site-footer {
  background: #10222c;
  color: #cfe2e9;
  padding: 60px 0 24px;
}
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-col p, .footer-col address { color: #a9c3cc; font-style: normal; font-size: .95rem; line-height: 1.7; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #cfe2e9; text-decoration: none; font-size: .95rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .85rem;
  color: #7f9aa4;
}

/* Responsive */
@media (max-width: 980px) {
  .card-row.grid { grid-template-columns: repeat(2, 1fr); }
  .card-row.four { grid-template-columns: repeat(2, 1fr); }
  .screens-row { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .header-actions .btn-small { display: none; }
  .lang-switch-btn span:last-of-type { display: none; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-icon { margin-left: auto; margin-right: auto; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-media { order: -1; }
  .hero-fan { width: 260px; height: 309px; margin-bottom: 8px; }
  .card-row.three,
  .card-row.grid,
  .card-row.four { grid-template-columns: 1fr; }
  .screens-row { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .screens-row { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 1.9rem; }
  .hero-fan { width: 220px; height: 261px; }
}

/* When mobile nav is open */
body.nav-open .main-nav {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  flex-direction: column;
  padding: 16px 24px 24px;
  gap: 16px;
}
