/* ═══════════════════════════════════════════════════════════════
   croomel – Shared Styles
   Styleguide v3.1 · Mai 2026
   Tokens: --bb-* (keine Legacy-Aliases)
   ═══════════════════════════════════════════════════════════════ */

/* ── LOCAL FONTS ── */
@font-face {
  font-family: 'DM Sans';
  src: url('/wp-content/themes/hello-elementor/fonts/dm-sans-v17-latin-300.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/wp-content/themes/hello-elementor/fonts/dm-sans-v17-latin-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/wp-content/themes/hello-elementor/fonts/dm-sans-v17-latin-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/wp-content/themes/hello-elementor/fonts/fraunces-v38-latin-300.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/wp-content/themes/hello-elementor/fonts/fraunces-v38-latin-300italic.woff2') format('woff2');
  font-weight: 300; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/wp-content/themes/hello-elementor/fonts/fraunces-v38-latin-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/wp-content/themes/hello-elementor/fonts/fraunces-v38-latin-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── DESIGN TOKENS ── */
:root {
  /* Primär: Brombeer (70% Blau · 30% Purple) */
  --bb-950: #0E0E2A;
  --bb-900: #1D1F5A;
  --bb-800: #2F3085;
  --bb-700: #3A3EA8;
  --bb-400: #7A7FCC;
  --bb-200: #C2C5EE;
  --bb-100: #E0E2F5;
  --bb-50:  #F0F1FB;
  --white:  #FFFFFF;

  /* Signal: Zitronengelb — nur Conversion-CTAs */
  --lemon:       #E8E03A;
  --lemon-hover: #C8C020;
  --lemon-light: #EDE84A;

  /* Akzentfarben */
  --accent-green:    #3D7A4A;
  --accent-green-l:  #D6EDDA;
  --accent-orange:   #C45C1A;
  --accent-orange-l: #FDEBD8;
  --accent-red:      #A32D2D;
  --accent-red-l:    #FDECEC;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--bb-950);
  font-size: 16px;
  line-height: 1.6;
}

/* ── PROGRESS BAR ── */
.progress-bar {
  position: fixed; left: 0; top: 0;
  width: 4px; height: 0;
  background: var(--bb-400); /* Styleguide v3.2: nie Lemon auf Progress Bar */
  z-index: 200;
  transition: height 0.1s;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--bb-800);
  display: flex;
  align-items: center;        /* vertikale Zentrierung aller Elemente */
  justify-content: space-between;
  padding: 0 48px;
  height: 88px;
}

.nav-links {
  display: flex;
  align-items: center;        /* Button und Links auf gleicher Linie */
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s;
  line-height: 1;             /* verhindert ungewollten vertikalen Versatz */
}

.nav-links a:hover { color: #FFFFFF; }

/* Nav-CTA — Outline im Ruhezustand, Hover wird gelb (Styleguide v3.1) */
/* Spezifität bewusst hoch gesetzt um globales nav a { color } zu schlagen */
nav ul.nav-links li a.nav-cta,
nav ul.nav-links li .nav-cta {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 100px;
  padding: 7px 18px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  outline-offset: 3px;
  line-height: 1;
}

nav ul.nav-links li a.nav-cta:hover,
nav ul.nav-links li .nav-cta:hover {
  background: var(--lemon);
  border-color: var(--lemon);
  color: var(--bb-950);
}

nav ul.nav-links li a.nav-cta:focus-visible,
nav ul.nav-links li .nav-cta:focus-visible {
  outline: 3px solid var(--lemon);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #FFFFFF;
  border-radius: 2px;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--lemon);
  color: var(--bb-950);
  padding: 13px 26px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.25s, transform 0.2s;
  outline-offset: 3px;
}
.btn-primary:hover {
  background: var(--lemon-hover);
  transform: translateY(-2px);
}
.btn-primary:focus-visible { outline: 3px solid var(--bb-700); }
.btn-primary:disabled, .btn-primary[disabled] {
  background: var(--bb-100);
  color: var(--bb-400);
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--bb-800);
  padding: 11px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--bb-400);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  outline-offset: 3px;
}
.btn-secondary:hover {
  background: var(--bb-50);
  border-color: var(--bb-800);
  transform: translateY(-1px);
}
.btn-secondary:focus-visible { outline: 3px solid var(--bb-700); }
.btn-secondary:disabled, .btn-secondary[disabled] {
  border-color: var(--bb-200);
  color: var(--bb-400);
  cursor: not-allowed;
  transform: none;
}

.btn-outline-light {
  display: inline-block;
  background: transparent;
  color: #fff;
  padding: 11px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.45);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  outline-offset: 3px;
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.85);
  transform: translateY(-1px);
}
.btn-outline-light:focus-visible { outline: 3px solid var(--lemon); }

/* ── LINKS ── */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--bb-700);
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(58,62,168,0.35);
  cursor: pointer;
  transition: color 0.2s, text-decoration-color 0.2s;
  outline-offset: 3px;
}
.link-arrow:hover {
  color: var(--bb-900);
  text-decoration-color: var(--bb-700);
}
.link-arrow:focus-visible { outline: 3px solid var(--bb-700); border-radius: 3px; }

.link-arrow-light {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: color 0.2s, text-decoration-color 0.2s;
  outline-offset: 3px;
}
.link-arrow-light:hover {
  color: #fff;
  text-decoration-color: rgba(255,255,255,0.75);
}
.link-arrow-light:focus-visible { outline: 3px solid var(--lemon); border-radius: 3px; }

/* ── SECTION LABEL ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--bb-400);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 22px; height: 1px;
  background: var(--bb-400);
}

/* ── FOOTER ── */
footer {
  background: var(--bb-900);
  padding: 64px 80px 0;
  color: rgba(255,255,255,0.7);
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  nav { padding: 0 20px !important; height: 72px !important; position: relative; }
  nav img { height: 44px !important; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bb-800);
    padding: 24px 20px;
    gap: 4px;
    z-index: 200;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  }
  .nav-links.open li { width: 100%; }
  .nav-links.open a { font-size: 16px; padding: 10px 12px; display: block; border-radius: 8px; }
  .nav-links.open a:hover { background: rgba(255,255,255,0.07); }

  /* Mobile Nav-CTA: volle Breite, gelb */
  .nav-links.open li:last-child a.nav-cta,
  .nav-links.open li:last-child .nav-cta {
    background: var(--lemon) !important;
    color: var(--bb-950) !important;
    border-color: var(--lemon) !important;
    width: 100%;
    text-align: center;
    justify-content: center;
    margin-top: 8px;
    padding: 12px 18px;
    font-size: 15px;
  }

  .hamburger { display: flex !important; }
  footer { padding: 40px 20px 0 !important; }
  footer > div > div:first-of-type { grid-template-columns: 1fr !important; gap: 36px !important; }
  footer > div > div:last-of-type { flex-direction: column !important; gap: 12px !important; padding: 20px 0 !important; text-align: center; }
}

/* ── BREVO FORMULAR — Schriftgrößen-Fix ─────────────────────────
   Verhindert dass das Theme Brevo's inline font-size überschreibt.
   Brevo-Code selbst bleibt unangetastet. */
#sib-form .sib-text-form-block p {
  font-size: 13px !important;
  line-height: 1.5 !important;
}
#sib-form .sib-form__declaration p {
  font-size: 11px !important;
  line-height: 1.5 !important;
}

/* ── BREVO — äußerer Hintergrund auf Homepage (BB-800) ──────────
   Der .sib-form div hat background-color:#EFF2F7 als inline style.
   Wir überschreiben nur auf der Newsletter-Sektion der Homepage. */
.newsletter .sib-form {
  background-color: var(--bb-800) !important;
}
.newsletter .sib-form-container {
  background-color: var(--bb-800) !important;
}

/* ── KOMMENTARE — Moderation-Hinweis ───────────────────────────── */
.blog-comments .comment-awaiting-moderation {
  font-size: 12px; color: var(--bb-400);
  font-style: italic; margin-top: 8px;
}

/* ── Link-Fokus-Ring unterdrücken auf mailto Links ─────────────── */
a[href^="mailto:"]:focus { outline: none !important; box-shadow: none !important; }
a[href^="mailto:"]:focus-visible { outline: none !important; box-shadow: none !important; }
.fbo-card-placeholder a:focus,
.fbo-card-placeholder a:focus-visible { outline: none !important; box-shadow: none !important; }
