/*
 Theme Name: Bilinbo Divi Child
 Theme URI: https://www.bilinbo.com/divi/
 Description: Divi Child Theme for Bilinbo UG
 Author: Andreas Hildebrandt UG
 Author URI: https://www.andreas-hildebrandt.com
 Template: Divi
 Version: 0.0.40
*/
/* ------------------------------------------------------- */

/* ============================================================
   GOOGLE FONTS IMPORT
   Fraunces (Display/Headlines) · Inter (Body)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,600;0,9..144,700;1,9..144,300;1,9..144,600&family=Inter:wght@300;400;500;600&display=swap');

/* ============================================================
   DESIGN TOKENS – KOMOREBI FARBPALETTE
   ============================================================ */
:root {
  /* Neutrale Töne */
  --ink:         #0f1923;   /* Headlines – tiefstes Dunkel */
  --ink-mid:     #2d3f50;   /* Sekundäre Headlines */
  --text:        #4a5568;   /* Fließtext */
  --text-muted:  #5f6e7d;   /* Muted / Metainfo – WCAG AA 5.23:1 auf weiss */
  --border:      #dde3ea;   /* Borders & Trennlinien */
  --bg-alt:      #f4f6f8;   /* Heller Alternativ-Hintergrund */
  --bg:          #ffffff;   /* Haupt-Hintergrund */

  /* Akzentfarben */
  --accent:       #1a6b5a;  /* Primär – Smaragdgrün */
  --accent-mid:   #145248;  /* Primär Hover/Dunkel */
  --accent-light: #eaf3f0;  /* Primär Hell – für Backgrounds */
  --gold:         #8e6a1e;  /* Sekundär – Gold als Text, WCAG AA 4.96:1 auf weiss */
  --gold-deco:    #c4922a;  /* Gold nur für Deko (Balken, Borders) – kein Text */
  --gold-light:   #fdf4e7;  /* Hintergrund gold-light */
  --gold-safe:    #7d5d1b;  /* Gold auf gold-light bg, WCAG AA 6.08:1 */

  /* Animierbare bg-color für Karten/Sections */
  --bg-color: #1a6b5a;

  /* Weiss */
  --white: #ffffff;

  /* ============================================================
     TYPOGRAFIE
     ============================================================ */

  /* Font Families */
  --header-font-family: "Fraunces", serif;
  --body-font-family:   "Inter", sans-serif;
  --logo-font-family:   "Fraunces", serif;

  /* Type Scale – Fluid mit clamp() */
  --display-lg-size:           clamp(2.5rem,   calc(2rem   + 2.5vw),  4rem);
  --display-lg-weight:         700;
  --display-lg-line-height:    1.1;
  --display-lg-letter-spacing: -0.02em;

  --display-md-size:           clamp(2rem,     calc(1.7rem + 1.5vw),  3.2rem);
  --display-md-weight:         700;
  --display-md-line-height:    1.15;
  --display-md-letter-spacing: -0.015em;

  --h1-size:           clamp(2.5rem,  calc(2rem   + 2vw),    3.8rem);
  --h1-weight:         700;
  --h1-line-height:    1.1;
  --h1-letter-spacing: -0.02em;

  --h2-size:           clamp(1.875rem, calc(1.6rem + 1.4vw), 2.75rem);
  --h2-weight:         600;
  --h2-line-height:    1.2;
  --h2-letter-spacing: -0.015em;

  --h3-size:           clamp(1.5rem,  calc(1.3rem + 1vw),    2.1rem);
  --h3-weight:         600;
  --h3-line-height:    1.3;
  --h3-letter-spacing: -0.01em;

  --h4-size:           clamp(1.25rem, calc(1.1rem + 0.75vw), 1.7rem);
  --h4-weight:         500;
  --h4-line-height:    1.4;
  --h4-letter-spacing: -0.005em;

  --h5-size:           clamp(1.1rem,  calc(1rem   + 0.5vw),  1.4rem);
  --h5-weight:         500;
  --h5-line-height:    1.5;
  --h5-letter-spacing: 0em;

  --h6-size:           clamp(1rem,    calc(0.95rem + 0.25vw), 1.2rem);
  --h6-weight:         500;
  --h6-line-height:    1.5;
  --h6-letter-spacing: 0em;

  --body-xl-size:           clamp(1.05rem, calc(1rem + 0.25vw), 1.15rem);
  --body-xl-weight:         400;
  --body-xl-line-height:    1.75;
  --body-xl-letter-spacing: 0.01em;

  --body-size:           clamp(0.9rem,  calc(0.875rem + 0.2vw), 1rem);
  --body-weight:         400;
  --body-line-height:    1.7;
  --body-letter-spacing: 0.01em;

  --body-sm-size:           clamp(0.8rem, calc(0.78rem + 0.1vw), 0.875rem);
  --body-sm-weight:         400;
  --body-sm-line-height:    1.65;
  --body-sm-letter-spacing: 0.01em;

  --caption-xl-size:           clamp(0.72rem, calc(0.7rem + 0.1vw), 0.8rem);
  --caption-xl-weight:         400;
  --caption-xl-line-height:    1.6;
  --caption-xl-letter-spacing: 0.02em;

  --caption-size:           clamp(0.65rem, calc(0.63rem + 0.1vw), 0.72rem);
  --caption-weight:         400;
  --caption-line-height:    1.6;
  --caption-letter-spacing: 0.02em;

  --caption-sm-size:           clamp(0.6rem, calc(0.58rem + 0.1vw), 0.65rem);
  --caption-sm-weight:         300;
  --caption-sm-line-height:    1.6;
  --caption-sm-letter-spacing: 0.02em;

  --overline-size:           clamp(0.65rem, calc(0.63rem + 0.1vw), 0.72rem);
  --overline-weight:         500;
  --overline-line-height:    1.6;
  --overline-letter-spacing: 0.12em;

  /* Schatten */
  --shadow-sm: rgba(15, 25, 35, 0.08) 0px 1px 3px, rgba(15, 25, 35, 0.12) 0px 1px 2px;
  --shadow-md: rgba(15, 25, 35, 0.10) 0px 4px 12px, rgba(15, 25, 35, 0.08) 0px 2px 4px;
  --shadow-lg: rgba(15, 25, 35, 0.12) 0px 12px 32px, rgba(15, 25, 35, 0.08) 0px 4px 8px;
}

/* @property nur für animierte bg-color */
@property --bg-color {
  syntax: "<color>";
  inherits: false;
  initial-value: #1a6b5a;
}

/* ============================================================
   BASIS-ELEMENTE
   ============================================================ */
body a, body .et_pb_text a,
body .et_pb_module a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-position: under;
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
}
body a:hover, body .et_pb_text a:hover,
body .et_pb_module a:hover {
  color: var(--accent-mid);
  text-decoration-color: var(--accent);
}

body h1, body .et_pb_module h1, .fs-h1,
body h2, body .et_pb_module h2, .fs-h2,
body h3, body .et_pb_module h3, .fs-h3,
body h4, body .et_pb_module h4, .fs-h4,
body h5, body .et_pb_module h5, .fs-h5,
body h6, body .et_pb_module h6, .fs-h6 {
  color: var(--ink);
  font-family: var(--header-font-family);
}

/* Fraunces Italic als Akzentelement */
body h1 em, body .et_pb_module h1 em,
body h2 em, body .et_pb_module h2 em,
body h3 em, body .et_pb_module h3 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

body p, body .et_pb_module p, .fs-body {
  color: var(--text);
  font-family: var(--body-font-family);
  font-size: var(--body-size);
  font-weight: var(--body-weight);
  letter-spacing: var(--body-letter-spacing);
  line-height: var(--body-line-height);
}

body h1, body .et_pb_module h1, .fs-h1 { font-size: var(--h1-size); font-weight: var(--h1-weight); line-height: var(--h1-line-height); letter-spacing: var(--h1-letter-spacing); }
body h2, body .et_pb_module h2, .fs-h2 { font-size: var(--h2-size); font-weight: var(--h2-weight); line-height: var(--h2-line-height); letter-spacing: var(--h2-letter-spacing); }
body h3, body .et_pb_module h3, .fs-h3 { font-size: var(--h3-size); font-weight: var(--h3-weight); line-height: var(--h3-line-height); letter-spacing: var(--h3-letter-spacing); }
body h4, body .et_pb_module h4, .fs-h4 { font-size: var(--h4-size); font-weight: var(--h4-weight); line-height: var(--h4-line-height); letter-spacing: var(--h4-letter-spacing); }
body h5, body .et_pb_module h5, .fs-h5 { font-size: var(--h5-size); font-weight: var(--h5-weight); line-height: var(--h5-line-height); letter-spacing: var(--h5-letter-spacing); }
body h6, body .et_pb_module h6, .fs-h6 { font-size: var(--h6-size); font-weight: var(--h6-weight); line-height: var(--h6-line-height); letter-spacing: var(--h6-letter-spacing); }

.fs-body-xl    { font-size: var(--body-xl-size);    font-weight: var(--body-xl-weight);    letter-spacing: var(--body-xl-letter-spacing);    line-height: var(--body-xl-line-height); }
.fs-body-sm    { font-size: var(--body-sm-size);    font-weight: var(--body-sm-weight);    letter-spacing: var(--body-sm-letter-spacing);    line-height: var(--body-sm-line-height); }
.fs-caption    { font-size: var(--caption-size);    font-weight: var(--caption-weight);    letter-spacing: var(--caption-letter-spacing);    line-height: var(--caption-line-height); }
.fs-caption-sm { font-size: var(--caption-sm-size); font-weight: var(--caption-sm-weight); letter-spacing: var(--caption-sm-letter-spacing); line-height: var(--caption-sm-line-height); }
.fs-caption-xl { font-size: var(--caption-xl-size); font-weight: var(--caption-xl-weight); letter-spacing: var(--caption-xl-letter-spacing); line-height: var(--caption-xl-line-height); }
.fs-overline   { font-size: var(--overline-size);   font-weight: var(--overline-weight);   letter-spacing: var(--overline-letter-spacing);   line-height: var(--overline-line-height); text-transform: uppercase; }
.fs-white      { color: var(--white); }

/* ============================================================
   ICONS
   ============================================================ */
.icon img    { width: clamp(60px, 1.5vw, 100px) !important; }
.sm-icon img { width: clamp(40px, 1vw, 70px) !important; }

/* ============================================================
   KARTEN & SECTIONS MIT AKZENTFARBEN
   ============================================================ */
.card-accent,   .section-accent   { --bg-color: #1a6b5a; }
.card-gold,     .section-gold     { --bg-color: #c4922a; }
.card-ink,      .section-ink      { --bg-color: #0f1923; }

.card-accent, .card-gold, .card-ink,
.card-violet, .card-blue, .card-cyan, .card-green {
  background-color: rgb(from var(--bg-color) r g b / 8%);
  padding: clamp(12px, calc(12px + 1vw), 28px);
}

.card-accent, .card-gold, .card-ink,
.card-violet, .card-blue, .card-cyan, .card-green,
.card-shadow {
  box-shadow: var(--shadow-sm);
}

.section-accent, .section-gold, .section-ink,
.section-violet, .section-blue, .section-cyan, .section-green {
  background-color: rgb(from var(--bg-color) r g b / 6%);
}

/* ============================================================
   BUTTONS
   ============================================================ */
/* Divi Button-Modul mit custom Klasse + direkte Buttons */
body .et_pb_button.cta-booking,
body .et_pb_button.cta-info,
body .cta-booking,
body .cta-info,
body .wpcf7-submit {
  align-items: center;
  align-content: center;
  border-radius: 100px 8px 100px 8px !important; /* !important gegen Divi inline style */
  box-shadow: var(--shadow-sm);
  color: var(--accent-light) !important;
  display: inline-flex;
  font-family: var(--body-font-family) !important;
  font-size: var(--body-sm-size) !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em;
  height: clamp(40px, 5vh, 56px);
  justify-content: center;
  min-width: min(260px, 40vw);
  max-width: 320px;
  text-decoration: none;
  padding: 0 1.75rem !important;
  transition: background-color 0.25s ease, border-radius 0.3s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

body .et_pb_button.cta-info,
body .cta-info {
  background-color: var(--accent) !important;
  border: 1px solid var(--accent) !important;
}
body .et_pb_button.cta-booking,
body .cta-booking,
body .wpcf7-submit {
  background-color: var(--ink) !important;
  border: 1px solid var(--ink) !important;
}

body .et_pb_button.cta-booking:hover,
body .et_pb_button.cta-info:hover,
body .cta-booking:hover,
body .cta-info:hover,
body .wpcf7-submit:hover {
  border-radius: 12px 80px 12px 80px !important;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
body .et_pb_button.cta-info:hover,
body .cta-info:hover {
  background-color: var(--accent-mid) !important;
  border-color: var(--accent-mid) !important;
  color: var(--white) !important;
}
body .et_pb_button.cta-booking:hover,
body .cta-booking:hover,
body .wpcf7-submit:hover {
  background-color: var(--ink-mid) !important;
  border-color: var(--ink-mid) !important;
  color: var(--white) !important;
}

/* ============================================================
   WPCF7 FORMULARE
   ============================================================ */
body .wpcf7-text,
body .wpcf7-textarea {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0.8vw;
  box-sizing: border-box;
  color: var(--ink);
  font-family: var(--body-font-family);
  font-size: var(--body-sm-size);
  min-height: min(2.5rem, 10vh);
  padding: 0 0.8rem;
  transition: border-color 0.2s ease;
  width: 100%;
}
body .wpcf7-textarea {
  padding: 0.8rem;
}
body .wpcf7-text:focus,
body .wpcf7-textarea:focus {
  border-color: var(--accent);
  outline: none;
}

body .wpcf7-mail-sent-ok    { color: var(--accent); }
body .wpcf7-not-valid-tip   { color: #c0392b; font-size: var(--caption-size); }
body .wpcf7-response-output {
  background: var(--bg-alt);
  border-color: var(--border);
  color: var(--text);
  font-size: var(--body-sm-size);
  padding: 0 0.8rem;
  border-radius: 0.8vw;
}

/* ============================================================
   SONSTIGES
   ============================================================ */
.grecaptcha-badge { visibility: hidden; }

/* ============================================================
   BARRIEREFREIHEIT: REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   DARK MODE
   Dunkles, klares Theme – kein Solarized Dark,
   passend zur neuen Palette.
   ============================================================ */
@media (prefers-color-scheme: dark) {
  :root {
    --ink:         #f0f4f8;
    --ink-mid:     #cbd5e0;
    --text:        #a0aec0;
    --text-muted:  #8896a4;
    --border:      #2d3748;
    --bg-alt:      #1a202c;
    --bg:          #0f1923;
    --accent:       #2aa98c;
    --accent-mid:   #1a6b5a;
    --accent-light: #0d2b23;
    --gold:         #d4a843;
    --gold-deco:    #d4a843;
    --gold-light:   #2d2008;
    --gold-safe:    #c4922a;
  }

  /* Formularfelder: Hintergrund explizit auf Dark setzen */
  body .wpcf7-text,
  body .wpcf7-textarea {
    background: var(--bg-alt) !important;
    color: var(--ink) !important;
    border-color: var(--border) !important;
  }

  body .wpcf7-text::placeholder,
  body .wpcf7-textarea::placeholder {
    color: var(--text-muted);
  }

  body .wpcf7-text:focus,
  body .wpcf7-textarea:focus {
    border-color: var(--accent) !important;
    background: var(--bg-alt) !important;
  }

  body .wpcf7-response-output {
    background: var(--bg-alt) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
  }

  /* Divi überschreibt Textfarben mit rgb(42,42,42) !important
     auch im Dark Mode. Override für alle Textelemente. */
  body h1, body .et_pb_module h1,
  body h2, body .et_pb_module h2,
  body h3, body .et_pb_module h3,
  body h4, body .et_pb_module h4,
  body h5, body .et_pb_module h5,
  body h6, body .et_pb_module h6 {
    color: var(--ink) !important;
  }

  body p, body .et_pb_text p,
  body .et_pb_module p {
    color: var(--text) !important;
  }

  body .et_pb_text,
  body .et_pb_blurb_description {
    color: var(--text) !important;
  }

  /* cta-booking: im Dark Mode --ink ist hell (#f0f4f8) →
     Button würde weiß werden. Auf ink-mid (#cbd5e0) oder
     einen festen dunklen Wert wechseln. */
  /* cta-info: im Dark Mode --accent wird #2aa98c (hell) →
     weißer Text hat nur 2.94:1. Auf --accent-mid (#1a6b5a) wechseln. */
  body .et_pb_button.cta-info,
  body .cta-info {
    background-color: var(--accent-mid) !important;
    border-color: var(--accent-mid) !important;
    color: #ffffff !important;
  }

  body .et_pb_button.cta-booking,
  body .cta-booking,
  body .wpcf7-submit {
    background-color: var(--bg-alt) !important;
    border-color: var(--border) !important;
    color: var(--ink) !important;
  }

  body .et_pb_button.cta-booking:hover,
  body .cta-booking:hover,
  body .wpcf7-submit:hover {
    background-color: var(--border) !important;
    border-color: var(--text-muted) !important;
    color: var(--ink) !important;
  }
}

/* ============================================================
   BH COMPONENTS – About-Seite
   Namespace: bh = Bilinbo Hildebrandt
   ============================================================ */

/* --- INTRO -------------------------------------------------- */
.bh-intro {
  max-width: 680px;
}

.bh-eyebrow {
  font-family: var(--body-font-family);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.bh-h1 {
  font-family: var(--logo-font-family);
  font-size: var(--h1-size);
  font-weight: var(--h1-weight);
  color: var(--ink);
  line-height: var(--h1-line-height);
  letter-spacing: var(--h1-letter-spacing);
  margin-bottom: 1.2rem;
}

.bh-h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.bh-lead {
  font-family: var(--body-font-family);
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 0.9rem;
  max-width: 620px;
}

.bh-lead strong {
  color: var(--ink);
  font-weight: 600;
}

.bh-sub {
  font-family: var(--body-font-family);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 580px;
}

.bh-meta {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.bh-meta-item {
  font-family: var(--body-font-family);
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bh-meta-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-deco);
  flex-shrink: 0;
}

/* --- VISION · MISSION · WERTE ------------------------------ */
.bh-vmw-block {
  max-width: 680px;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.bh-vmw-block:first-child {
  border-top: none;
  padding-top: 0;
}

.bh-tag {
  font-family: var(--body-font-family);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}

.bh-h2 {
  font-family: var(--logo-font-family);
  font-size: var(--h2-size);
  font-weight: var(--h2-weight);
  color: var(--ink);
  line-height: var(--h2-line-height);
  letter-spacing: var(--h2-letter-spacing);
  margin-bottom: 1rem;
}

.bh-h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.bh-text {
  font-family: var(--body-font-family);
  font-size: var(--body-size);
  color: var(--text);
  line-height: 1.75;
}

/* --- WERTE TITEL ------------------------------------------- */
.bh-werte-title {
  font-family: var(--logo-font-family);
  font-size: var(--h2-size);
  font-weight: var(--h2-weight);
  color: var(--ink);
  line-height: var(--h2-line-height);
  letter-spacing: var(--h2-letter-spacing);
  margin-bottom: 0.5rem;
}

.bh-werte-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

/* --- WERTE AKKORDEON --------------------------------------- */
.bh-werte-accordion {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 1.5rem;
  max-width: 680px;
}

.bh-wert {
  border-bottom: 1px solid var(--border);
}

.bh-wert:last-child {
  border-bottom: none;
}

.bh-wert-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
  user-select: none;
}

.bh-wert-header:hover {
  background: var(--accent-light);
}

.bh-wert-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bh-wert-num {
  font-family: var(--body-font-family);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold);
  min-width: 18px;
}

.bh-wert-name {
  font-family: var(--logo-font-family);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.bh-wert-arrow {
  font-size: 0.65rem;
  color: var(--text-muted);
  transition: transform 0.25s ease;
  display: inline-block;
}

.bh-wert.open .bh-wert-arrow {
  transform: rotate(180deg);
}

.bh-wert-body {
  display: none;
  padding: 0 1.5rem 1.2rem 3.3rem;
  font-family: var(--body-font-family);
  font-size: var(--body-sm-size);
  color: var(--text);
  line-height: 1.65;
}

.bh-wert.open .bh-wert-body {
  display: block;
}

/* --- CTA BLOCK --------------------------------------------- */
.bh-cta-block {
  padding: 3rem 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- DARK MODE OVERRIDES ----------------------------------- */
@media (prefers-color-scheme: dark) {
  .bh-wert-header:hover {
    background: var(--accent-mid);
  }

  .bh-werte-accordion {
    border-color: var(--border);
  }

  .bh-vmw-block {
    border-top-color: var(--border);
  }

  .bh-cta-block {
    border-top-color: var(--border);
  }
}
