/* ==========================================================================
   Doc Büscher Biohacking – Theme-Stylesheet
   Repliziert das Design der React-Landingpage als Block-Theme.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Basis & Cross-Browser-Reset (gleicher Top-Abstand in Firefox und Chrome)
   -------------------------------------------------------------------------- */
html,
body {
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Manrope', -apple-system, 'Segoe UI', sans-serif;
  background: #f9f7f6;
  color: #111011;
  scroll-behavior: smooth;
}

html {
  scroll-behavior: smooth;
}

/* WordPress Block-Gap entfernen: Global Styles setzen standardmäßig
   `:where(.wp-site-blocks) > * { margin-block-start: 24px }`,
   was einen weißen Streifen über dem Hero erzeugt. */
.wp-site-blocks > * {
  margin-block-start: 0;
  margin-block-end: 0;
}

em {
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   Buttons (Pill-Form)
   -------------------------------------------------------------------------- */
.db-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #111011 !important;
  background: #4ec270;
  border-radius: 255px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.db-btn:hover {
  transform: scale(1.03);
}

.db-btn:active {
  transform: scale(0.97);
}

.db-btn--small {
  padding: 0.75rem 1.75rem;
}

.db-btn--dark {
  background: #111011;
  color: #fff !important;
  font-size: 0.75rem;
  padding: 0.75rem 1.5rem;
}

.db-btn--outline {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #fff !important;
  font-weight: 500;
  padding: 1rem 2.5rem;
}

.db-btn--outline:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: none;
}

.db-btn .db-arrow::after {
  content: '\2197';
  font-size: 0.875rem;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Eyebrow-Labels (Fragment Mono)
   -------------------------------------------------------------------------- */
.db-eyebrow {
  font-family: 'Fragment Mono', monospace;
  font-size: 0.75rem;
  color: #4ec270;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  display: block;
}

/* --------------------------------------------------------------------------
   Header (fixed, transparent -> hell beim Scrollen)
   -------------------------------------------------------------------------- */
.db-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  transition: all 0.5s ease;
}

.db-header.is-scrolled {
  background: rgba(249, 247, 246, 0.92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.db-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.05rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.db-header .header-logo {
  width: 180px;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Mobile: Header-Höhe halbieren, Logo kleiner, mehr Randabstand */
@media (max-width: 767px) {
  .db-header__inner {
    padding: 0.625rem 1.25rem;
  }

  .db-header .header-logo {
    width: 120px;
  }

  .db-header .db-btn--small {
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
  }
}

.db-header .db-logo-dark {
  display: none;
}

.db-header.is-scrolled .db-logo-light {
  display: none;
}

.db-header.is-scrolled .db-logo-dark {
  display: block;
}

/* Unterseiten (heller Hintergrund, kein Hero): immer dunkles Logo und dunkle Nav-Links */
body:not(.home) .db-header .db-logo-light {
  display: none;
}

body:not(.home) .db-header .db-logo-dark {
  display: block;
}

body:not(.home) .db-header .db-header__nav a {
  color: #111011;
}

.db-header__nav {
  display: none;
  align-items: center;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .db-header__nav {
    display: flex;
  }
}

.db-header__nav a {
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.db-header.is-scrolled .db-header__nav a {
  color: #111011;
}

/* --------------------------------------------------------------------------
   Hero (Vollbild mit Glassbox unten)
   -------------------------------------------------------------------------- */
.db-hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
}

.db-hero__bg {
  position: absolute;
  inset: 0;
}

.db-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.db-hero__panel-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.db-hero__panel {
  max-width: 1200px;
  margin: 0 auto 4.0rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.57);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-radius: 36px;
}

@media (min-width: 768px) {
  .db-hero__panel {
    padding: 3rem;
  }
}

.db-hero__panel h1 {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: #111011;
  margin: 0;
}

.db-hero__panel p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: rgba(17, 16, 17, 0.7);
  margin: 1rem 0 0;
  max-width: 40rem;
}

.db-hero__panel .db-btn {
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   Sektionen allgemein
   -------------------------------------------------------------------------- */
.db-section {
  padding: 5rem 1.5rem;
}

@media (min-width: 768px) {
  .db-section {
    padding: 7rem 1.5rem;
  }
}

.db-section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.db-section h2 {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}

.db-bg-dark {
  background: #111011;
  color: #fff;
}

.db-bg-light {
  background: #f9f7f6;
}

.db-bg-white {
  background: #fff;
}

/* --------------------------------------------------------------------------
   Stats / Knappheits-Sektion mit Zählern
   -------------------------------------------------------------------------- */
.db-stats {
  padding: 4rem 1.5rem;
  text-align: center;
}

.db-stats h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  margin-bottom: 0.75rem;
}

.db-stats__sub {
  color: rgba(17, 16, 17, 0.6);
  max-width: 32rem;
  margin: 0 auto 2rem;
}

.db-stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 56rem;
  margin: 3rem auto 0;
}

@media (min-width: 768px) {
  .db-stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.db-stats__num {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(3rem, 5vw, 3.75rem);
  font-weight: 700;
  color: #111011;
}

.db-stats__label {
  font-size: 0.875rem;
  color: rgba(17, 16, 17, 0.5);
  margin-top: 0.5rem;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Therapie-Sektion (dunkel, 2-spaltig)
   -------------------------------------------------------------------------- */
.db-grid-2 {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .db-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.db-rounded-img {
  border-radius: 36px;
  overflow: hidden;
}

.db-rounded-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.db-img-3-4 img {
  aspect-ratio: 3 / 4;
}

.db-img-4-5 img {
  aspect-ratio: 4 / 5;
}

.db-stars {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.db-stars__icons {
  color: #4ec270;
  font-size: 1.125rem;
  letter-spacing: 0.1em;
}

.db-stars__text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.db-text-muted-dark {
  color: rgba(255, 255, 255, 0.7);
}

.db-text-muted-light {
  color: rgba(17, 16, 17, 0.5);
}

/* --------------------------------------------------------------------------
   Karten (Vergleich & Ablauf)
   -------------------------------------------------------------------------- */
.db-cards {
  display: grid;
  gap: 1.25rem;
  margin-top: 4rem;
}

@media (min-width: 768px) {
  .db-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .db-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

.db-card {
  padding: 1.75rem;
  border-radius: 36px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.db-card:hover {
  transform: scale(1.02);
}

.db-card--accent {
  background: #4ec270;
  border: none;
}

.db-card--flat {
  background: #f9f7f6;
  border: none;
}

.db-card--flat:hover {
  transform: translateY(-4px);
}

.db-card__subtitle {
  font-family: 'Fragment Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(17, 16, 17, 0.4);
  margin: 0 0 0.5rem;
}

.db-card--accent .db-card__subtitle {
  color: rgba(17, 16, 17, 0.6);
}

.db-card h3 {
  font-family: 'Source Serif 4', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111011;
  margin: 0 0 1.5rem;
}

.db-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  flex-grow: 1;
}

.db-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: rgba(17, 16, 17, 0.5);
}

.db-card--accent li {
  color: rgba(17, 16, 17, 0.8);
}

.db-card li::before {
  content: '\2715';
  color: #c4002e;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.db-card--accent li::before {
  content: '\2713';
  color: #111011;
  font-weight: 700;
}

.db-card__footer {
  margin-top: 2rem;
}

.db-badge-dashed {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1.5px dashed rgba(0, 0, 0, 0.25);
  border-radius: 255px;
  color: rgba(0, 0, 0, 0.4);
}

/* Ablauf-Karten */
.db-step__time {
  font-family: 'Fragment Mono', monospace;
  font-size: 0.75rem;
  color: #4ec270;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 1rem;
}

.db-step__num {
  font-family: 'Source Serif 4', serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: rgba(17, 16, 17, 0.1);
  margin-bottom: 0.75rem;
}

.db-step p {
  font-size: 0.875rem;
  color: rgba(17, 16, 17, 0.5);
  line-height: 1.6;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Über mich – Checkliste
   -------------------------------------------------------------------------- */
.db-checklist {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.db-checklist li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(17, 16, 17, 0.7);
}

.db-checklist li::before {
  content: '\2713';
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #4ec270;
  color: #111011;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Instagram-Grid
   -------------------------------------------------------------------------- */
.db-ig-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .db-ig-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.db-ig-grid a {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
}

.db-ig-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.db-ig-grid a:hover img {
  transform: scale(1.1);
}

.db-ig-grid a::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
}

.db-ig-grid a:hover::after {
  background: rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------------------------------
   FAQ (Akkordeon mit details/summary)
   -------------------------------------------------------------------------- */
.db-faq {
  max-width: 48rem;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}

.db-faq details {
  border-radius: 16px;
  background: #f9f7f6;
  overflow: hidden;
}

.db-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: #111011;
  list-style: none;
}

.db-faq summary::-webkit-details-marker {
  display: none;
}

.db-faq summary::after {
  content: '\2304';
  color: #4ec270;
  font-size: 1.25rem;
  line-height: 0.5;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.db-faq details[open] summary::after {
  transform: rotate(180deg);
}

.db-faq details p {
  margin: 0;
  padding: 0 1.5rem 1.5rem;
  font-size: 0.9375rem;
  color: rgba(17, 16, 17, 0.6);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   CTA-Sektion
   -------------------------------------------------------------------------- */
.db-cta {
  padding: 6rem 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .db-cta {
    padding: 8rem 1.5rem;
  }
}

.db-cta h2 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  color: #fff;
  margin-bottom: 1.5rem;
}

.db-cta__sub {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 32rem;
  margin: 0 auto 2.5rem;
}

.db-cta__buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .db-cta__buttons {
    flex-direction: row;
  }
}

.db-cta__note {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.875rem;
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.db-footer {
  background: #111011;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 1.5rem;
}

.db-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.db-footer__claim {
  text-align: center;
  margin-bottom: 3rem;
}

.db-footer__claim-title {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(1.875rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.db-footer__claim-sub {
  color: rgba(255, 255, 255, 0.4);
  margin: 0.75rem 0 0;
}

.db-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
  .db-footer__bottom {
    flex-direction: row;
  }
}

.db-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.db-footer__brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.db-footer__brand span {
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
}

.db-footer__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.75rem;
}

.db-footer__links a,
.db-footer__social a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.3s ease;
}

.db-footer__links a:hover,
.db-footer__social a:hover {
  color: #4ec270;
}

.db-footer__social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.db-footer__social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   Hilfsklassen
   -------------------------------------------------------------------------- */
.db-text-center {
  text-align: center;
}

.db-mb-16 {
  margin-bottom: 4rem;
}
