/* ==========================================================================
   BRAWone – Logo & Icon in reinem CSS
   --------------------------------------------------------------------------
   Grösse:  über font-size steuern (z. B. .bw-logo { font-size: 48px; })
   Farben:  über die Custom Properties unten
   Varianten:
     .bw-logo                 BRAWone, für helle Hintergründe
     .bw-logo--caps           BRAWONE (Grossbuchstaben)
     .bw-logo--white          für dunkle Hintergründe
     .bw-logo--no-icon        nur Schriftzug
     .bw-icon                 Icon allein (font-size = Kantenlänge)
   ========================================================================== */

/* Schrift Inter wird auf brawone.ch selbst gehostet (siehe @font-face in index.html). */

:root {
  --bw-ink: #141414;      /* Schrift */
  --bw-icon-bg: #141414;  /* Icon-Fläche */
  --bw-icon-fg: #ffffff;  /* «b» im Icon */
  --bw-gold: #f2a900;     /* Akzentpunkt */
}

/* ---------- Icon ---------- */
.bw-icon {
  position: relative;
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  border-radius: 0.22em;
  background: var(--bw-icon-bg);
}
.bw-icon::before,
.bw-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}
/* Stamm des «b», oben gerundet */
.bw-icon::before {
  left: 0.24em;
  top: 0.16em;
  width: 0.13em;
  height: 0.685em;
  border-radius: 0.065em 0.065em 0 0;
  background: var(--bw-icon-fg);
}
/* Bauch des «b» mit Goldpunkt */
.bw-icon::after {
  left: 0.245em;
  top: 0.315em;
  width: 0.53em;
  height: 0.53em;
  border: 0.13em solid var(--bw-icon-fg);
  border-radius: 50%;
  background: radial-gradient(circle closest-side, var(--bw-gold) 43.9%, transparent 45.4%);
}

/* ---------- Logo (Icon + Schriftzug) ---------- */
.bw-logo {
  display: inline-block;
  font-family: "Inter", "Inter Display", system-ui, sans-serif;
  font-variation-settings: "opsz" 32; /* immer Display-Schnitt, auch klein */
  font-kerning: none;
  font-size: 48px;
  line-height: 1;
  color: var(--bw-ink);
  white-space: nowrap;
}
.bw-logo .bw-icon {
  font-size: 1.1277em;       /* 1.55 × Versalhöhe */
  vertical-align: -0.1775em; /* auf die Versalhöhe zentriert */
  margin-right: 0.32em;
}
.bw-braw {
  font-weight: 800;
}
.bw-ne {
  font-weight: 500;
}

/* «o» als Ring mit Goldpunkt – Kleinbuchstaben-Variante */
.bw-o {
  display: inline-block;
  box-sizing: border-box;
  width: 0.5311em;
  height: 0.5311em;
  margin: 0 0.045em -0.0077em 0.01em;
  border: 0.103em solid currentColor;
  border-radius: 50%;
  background: radial-gradient(circle closest-side, var(--bw-gold) 49.3%, transparent 50.7%);
}

/* ---------- Varianten ---------- */
.bw-logo--caps .bw-ne {
  text-transform: uppercase;
}
.bw-logo--caps .bw-o {
  width: 0.7494em;
  height: 0.7494em;
  margin: 0 0.075em -0.0109em 0.065em;
  border-width: 0.1084em;
  background: radial-gradient(circle closest-side, var(--bw-gold) 45%, transparent 46.4%);
}

.bw-logo--white {
  --bw-ink: #ffffff;
  --bw-icon-bg: #ffffff;
  --bw-icon-fg: #141414;
}

.bw-logo--no-icon .bw-icon {
  display: none;
}
