/* ===================================================================
   Blickdoktor website — page styles
   Built on tokens from ../../colors_and_type.css
   =================================================================== */

* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: hidden; }
body {
  background: var(--bd-bg);
  color: var(--fg-1);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

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

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-bg-alt { background: var(--bd-bg-2); }
.section-bg-deep { background: var(--bd-blue-900); color: #F6F2EB; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-size: 15px; font-weight: 500;
  line-height: 1; letter-spacing: -0.005em;
  padding: 13px 22px; border-radius: var(--r-md);
  border: 1px solid transparent; background: none; color: inherit;
  transition: background var(--dur-base) var(--ease-standard),
              color var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard),
              transform var(--dur-fast) var(--ease-standard);
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn .lucide { width: 18px; height: 18px; }
.btn-sm  { padding: 9px 14px; font-size: 13.5px; }
.btn-lg  { padding: 16px 26px; font-size: 16px; }
.btn-primary    { background: var(--bd-blue-700); color: #F6F2EB; }
.btn-primary:hover    { background: var(--bd-blue-800); }
.btn-primary:disabled { background: var(--bd-blue-300); cursor: not-allowed; }
.btn-secondary  { background: var(--bd-surface); color: var(--bd-blue-800); border-color: var(--bd-line); }
.btn-secondary:hover  { background: var(--bd-blue-50); border-color: var(--bd-blue-100); }
.btn-ghost      { color: var(--bd-blue-800); }
.btn-ghost:hover{ background: var(--bd-blue-50); }
.btn-accent     { background: var(--bd-clay-600); color: #F6F2EB; }
.btn-accent:hover{ background: var(--bd-clay-700); }
.btn-on-dark    { background: #F6F2EB; color: var(--bd-blue-900); }
.btn-on-dark:hover { background: #fff; }

/* ---- Inputs ---- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: var(--fg-2); }
.input, .select, .textarea {
  background: var(--bd-surface); border: 1px solid var(--bd-line);
  border-radius: var(--r-md); padding: 12px 14px;
  font: inherit; font-size: 15px; color: var(--fg-1); width: 100%;
  transition: border-color var(--dur-base), box-shadow var(--dur-base);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--bd-blue-700); box-shadow: var(--shadow-focus);
}
.input::placeholder { color: var(--fg-4); }

/* ---- Badge ---- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 500; line-height: 1;
  padding: 6px 10px; border-radius: var(--r-pill);
  background: var(--bd-blue-50); color: var(--bd-blue-800);
}
.badge-sage  { background: var(--bd-sage-50);  color: var(--bd-sage-700); }
.badge-clay  { background: var(--bd-clay-50);  color: var(--bd-clay-700); }
.badge-line  { background: var(--bd-surface); color: var(--bd-ink-2); border: 1px solid var(--bd-line); }

/* ---- Card ---- */
.card {
  background: var(--bd-surface); border: 1px solid var(--bd-line);
  border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-1);
}
.card-quiet { background: var(--bd-bg-2); border-color: transparent; box-shadow: none; }
.card-interactive { cursor: pointer; transition: box-shadow var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard); }
.card-interactive:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }

/* ---- Eyebrow + section headers ---- */
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.section-head .eyebrow { color: var(--bd-sage-700); }
.section-head h2 { margin: 0; font-size: 40px; line-height: 1.08; letter-spacing: -0.02em; font-family: var(--font-serif); font-weight: 400; }
.section-head p  { margin: 0; color: var(--fg-2); font-size: 17px; line-height: 1.5; }

/* ---- Modal ---- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(22,52,76,0.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 50; padding: 24px;
  animation: fadeIn var(--dur-base) var(--ease-standard);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal {
  background: var(--bd-bg); border-radius: var(--r-xl);
  width: 100%; max-width: 520px; max-height: calc(100vh - 48px); overflow: auto;
  box-shadow: var(--shadow-3);
  animation: slideUp var(--dur-slow) var(--ease-standard);
}

/* ---- Drawer (booking variant B) ---- */
.drawer-overlay { position: fixed; inset: 0; background: rgba(22,52,76,0.35); z-index: 50; animation: fadeIn var(--dur-base); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 51;
  width: min(520px, 100vw); background: var(--bd-bg);
  box-shadow: -8px 0 24px rgba(22,52,76,0.12); overflow: auto;
  animation: slideInRight var(--dur-slow) var(--ease-standard);
}
@keyframes slideInRight { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---- Fullscreen (booking variant C) ---- */
.fullscreen-take {
  position: fixed; inset: 0; background: var(--bd-bg); z-index: 60;
  overflow: auto;
  animation: fadeIn var(--dur-base) var(--ease-standard);
}

/* ---- Utilities ---- */
.stack-2  { display: flex; flex-direction: column; gap: 8px; }
.stack-3  { display: flex; flex-direction: column; gap: 12px; }
.stack-4  { display: flex; flex-direction: column; gap: 16px; }
.stack-6  { display: flex; flex-direction: column; gap: 24px; }
.stack-8  { display: flex; flex-direction: column; gap: 32px; }
.stack-12 { display: flex; flex-direction: column; gap: 48px; }
.row { display: flex; gap: 16px; align-items: center; }
.row-tight { display: flex; gap: 8px; align-items: center; }
.row-wrap { display: flex; gap: 12px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.muted { color: var(--fg-3); }
.center { text-align: center; }

/* ---- Lucide icon sizing default ---- */
.icon-16 { width: 16px; height: 16px; }
.icon-20 { width: 20px; height: 20px; }
.icon-24 { width: 24px; height: 24px; }

/* ---- Typography helpers ---- */
.serif-italic { font-family: var(--font-serif); font-style: italic; }
.display-l    { font-family: var(--font-serif); font-weight: 350; letter-spacing: -0.02em; line-height: 1.05; }
.eyebrow      { font-size: 12px; font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase; color: var(--fg-3); }
.meta         { font-size: 13px; color: var(--fg-3); line-height: 1.45; }
.lead         { font-size: 18px; color: var(--fg-2); line-height: 1.55; }

/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */

/* Header: mobile hamburger */
@media (max-width: 768px) {
  .header-nav-desktop  { display: none !important; }
  .header-cta-desktop  { display: none !important; }
  .header-mobile-actions { display: flex !important; }

  .container { padding: 0 20px; }
  .section    { padding: 56px 0; }
  .section-tight { padding: 40px 0; }
}

/* Two-column section layout → single column on mobile */
@media (max-width: 768px) {
  .section-two-col {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .section-two-col .section-head {
    position: static !important;
  }
  /* Pricing card padding auf Mobile reduzieren */
  .section-two-col .card li {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* Conditions grid: 3 col → 1 col */
@media (max-width: 768px) {
  .conditions-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Doctors grid: already 2 col, stays 2 col on tablet, → 1 col on small */
@media (max-width: 500px) {
  .doctors-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Footer grids */
@media (max-width: 768px) {
  .footer-cta-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .footer-cta-grid h2 {
    font-size: 36px !important;
  }
  .footer-links-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .footer-legal {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

/* FAQ: Frage-Font auf Mobile verkleinern */
@media (max-width: 768px) {
  .faq-question-text {
    font-size: 17px !important;
  }
}

/* HowItWorks grid: 3 col → 1 col */
@media (max-width: 768px) {
  .how-it-works-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Hero split: stacks on mobile */
@media (max-width: 768px) {
  .hero-split-grid {
    grid-template-columns: 1fr !important;
  }
  .hero-split-grid .hero-illustration {
    display: none;
  }
}
/* ── Mobile Hero Fix ── */
@media (max-width: 768px) {
  .hero-split-grid {
    grid-template-columns: 1fr !important;
  }
  .hero-split-grid > *:last-child {
    display: none;
  }
  #top {
    padding-bottom: 32px !important;
  }
}

/* ── Mobile: Trust strip → stacked ── */
@media (max-width: 768px) {
  .trust-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* ── Mobile: Hero font sizes + button wrap ── */
@media (max-width: 768px) {
  .hero-title {
    font-size: 36px !important;
  }
  .hero-buttons {
    flex-wrap: wrap !important;
  }
  .hero-editorial-row {
    flex-direction: column !important;
    gap: 32px !important;
  }
  .hero-metric-strip {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
  }
  .hero-metric-strip > div {
    border-left: none !important;
  }
  .hero-centered-image {
    aspect-ratio: 16/10 !important;
  }
}
