/* ============================================================
   Beratungsring Oldenburg e.V. – Gestaltung für WordPress
   Version 1.0.2
   Wird vom Zusatzpaket geladen, im Frontend und im Editor.
   ============================================================ */

:root {
  --br-navy: #01072b;
  --br-gruen: #00885a;
  --br-hell: #eef5f1;
  --br-blau: #005a86;
  --br-linie: #dde5e0;
}

/* --- Grundtypografie ------------------------------------- */
.br-abschnitt,
.br-hero {
  font-size: 1.125rem;
  line-height: 1.65;
}

.br-lede {
  font-size: 1.2rem;
  max-width: 68ch;
}

/* --- Horizontlinie unter jeder Abschnittsüberschrift ------ */
.br-abschnitt h2.wp-block-heading {
  margin-bottom: .35em;
}
.br-abschnitt h2.wp-block-heading::after {
  content: "";
  display: block;
  width: 68px;
  height: 6px;
  margin-top: .55em;
  background: linear-gradient(to bottom, var(--br-gruen) 0 3px, var(--br-navy) 3px 6px);
  border-radius: 1px;
}
.br-abschnitt h2.wp-block-heading.has-text-align-center::after {
  margin-inline: auto;
}

/* --- Startbanner ----------------------------------------- */
.br-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
}
.br-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    104deg,
    transparent 0 44px,
    rgba(255, 255, 255, .045) 44px 46px
  );
  pointer-events: none;
}
.br-hero > * { position: relative; z-index: 1; }

.br-hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.5rem);
  max-width: 17ch;
  margin-inline: auto;
  line-height: 1.15;
}
.br-hero p {
  font-size: clamp(1.15rem, 1.9vw, 1.35rem);
  max-width: 60ch;
  margin-inline: auto;
  color: #e6efea;
}
.br-hero-logo img {
  height: clamp(64px, 8vw, 96px);
  width: auto;
}
.br-hero .wp-block-button__link {
  padding: 15px 32px;
  font-weight: 700;
  border-radius: 6px;
}

/* --- Kacheln „Ganzheitlich / Unabhängig / Persönlich“ ----- */
.br-karten { gap: 26px; }
.br-karte {
  height: 100%;
  background: #fff;
  border: 1px solid var(--br-linie);
  border-top: 4px solid var(--br-gruen);
  border-radius: 10px;
  padding: 30px 28px;
}
.br-karte h3 {
  color: var(--br-navy);
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: .4em;
}
.br-karte p { margin-bottom: 0; }

/* --- Teamfoto -------------------------------------------- */
.br-teamfoto { margin: 44px 0 52px; }
.br-teamfoto img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 38%;
  border-radius: 10px;
}
@media (max-width: 640px) {
  .br-teamfoto img { aspect-ratio: 4 / 3; }
}

/* --- Leistungen: Raster statt Spalten --------------------
   Ein Spalten-Block stapelt auf schmalen Bildschirmen erst die
   ganze linke, dann die ganze rechte Spalte. Die Reihenfolge
   würde dabei kippen. Ein Raster behält sie bei. ---------- */
.br-leistungen {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 40px;
  margin-top: 40px;
}
.br-leistung {
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--br-linie);
  margin: 0;
}
.br-leistung .br-icon { margin: 0; }
.br-leistung .br-icon img {
  width: 27px;
  height: 27px;
  display: block;
}
.br-leistung p {
  margin: 0;
  font-weight: 600;
}

@media (max-width: 800px) {
  .br-leistungen { grid-template-columns: 1fr; }
}

/* --- Team: ebenfalls Raster ------------------------------ */
.br-team {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 44px;
}

.br-person {
  background: #fff;
  border: 1px solid var(--br-linie);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(1, 7, 43, .05), 0 8px 24px rgba(1, 7, 43, .07);
  margin: 0;
}
.br-person .wp-block-media-text__media { height: 100%; }
.br-person .wp-block-media-text__media img {
  width: 100%;
  height: 100%;
  min-height: 215px;
  object-fit: cover;
  object-position: center 22%;
}
.br-person .wp-block-media-text__content { padding: 24px 26px; }
.br-person h3 {
  color: var(--br-navy);
  font-size: 1.28rem;
  margin-top: 0;
  margin-bottom: .5em;
}

/* Kontaktzeilen: E-Mail-Adressen dürfen nicht mitten im Wort
   umbrechen. Statt eines harten Umbruchs wird die Zeile bei
   Bedarf leicht verkleinert und die Kachel früher einspaltig. */
.br-person-kontakt {
  font-size: 1rem;
  line-height: 1.55;
  color: #58627c;
  margin-bottom: 0;
  hyphens: none;
}
.br-person-kontakt a {
  color: var(--br-blau);
  text-decoration: none;
  overflow-wrap: normal;
  word-break: normal;
}
.br-person-kontakt a:hover { text-decoration: underline; }

/* Unterhalb dieser Breite wird die Kachel sonst so schmal,
   dass die E-Mail-Adresse nicht mehr in eine Zeile passt. */
@media (max-width: 1080px) {
  .br-team { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .br-person-kontakt { font-size: .95rem; }
}

/* --- Kontaktbereich -------------------------------------- */
.br-kontakt { gap: 42px; align-items: flex-start; }
.br-kontaktkarte {
  border-radius: 10px;
  color: #fff;
}
.br-kontaktkarte h3 {
  margin-top: 0;
  font-size: 1.25rem;
}
.br-kontaktkarte a {
  color: #fff;
  overflow-wrap: normal;
  word-break: normal;
}

.br-formularplatz {
  border: 2px dashed #b9c8c0;
  border-radius: 10px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, .55);
}

/* --- Formularfelder, unabhängig vom verwendeten Zusatz ---- */
.br-kontakt input[type="text"],
.br-kontakt input[type="email"],
.br-kontakt input[type="tel"],
.br-kontakt textarea {
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  padding: 12px 14px;
  border: 1px solid #c3cfc8;
  border-radius: 6px;
  background: #fff;
}
.br-kontakt textarea { min-height: 165px; }
.br-kontakt input:focus,
.br-kontakt textarea:focus {
  border-color: var(--br-gruen);
  outline: 2px solid rgba(0, 136, 90, .25);
}
.br-kontakt label { font-weight: 600; }
.br-kontakt input[type="submit"],
.br-kontakt button[type="submit"] {
  background: var(--br-gruen);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 15px 32px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.br-kontakt input[type="submit"]:hover,
.br-kontakt button[type="submit"]:hover { background: #006b47; }

/* --- Kopf- und Fußzeile ---------------------------------- */
.br-kopf-oben { font-size: .95rem; }
.br-kopf-oben p { margin: 0; }
.br-kopf-oben a { color: #cfd8e8; text-decoration: none; }
.br-kopf-oben a:hover { color: #fff; text-decoration: underline; }

/* Das Logo im Kopf war auf großen Bildschirmen zu zurückhaltend. */
.br-kopf-logo img {
  height: clamp(52px, 5vw, 72px);
  width: auto;
}

.br-fuss { font-size: 1rem; }
.br-fuss p { margin: 0; }
.br-fuss a { color: #8fd3b6; text-decoration: none; }
.br-fuss a:hover { text-decoration: underline; }

/* --- Bedienbarkeit --------------------------------------- */
:where(.br-abschnitt, .br-hero) a:focus-visible {
  outline: 3px solid var(--br-gruen);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; }
}

/* --- Im Editor ------------------------------------------- */
.editor-styles-wrapper .br-formularplatz { opacity: .85; }
