:root {
  --rb-navy: #071f36;
  --rb-navy-2: #0b2d49;
  --rb-teal: #064a55;
  --rb-teal-dark: #033d47;
  --rb-gold: #d5a34f;
  --rb-gold-soft: #edc980;
  --rb-ink: #0b253d;
  --rb-muted: #526474;
  --rb-paper: #ffffff;
  --rb-mist: #f4f6f6;
  --rb-line: #dfe6e8;
  --rb-shadow: 0 16px 38px rgb(7 31 54 / 10%);
  --rb-radius: 14px;
  --rb-pill: 999px;
  --rb-wrap: 1380px;
}

.rb-header { position: sticky; top: 0; z-index: 1000; background: rgb(255 255 255 / 96%); border-bottom: 1px solid var(--rb-line); }
.rb-header__inner { width: min(calc(100% - 64px), var(--rb-wrap)); min-height: 94px; margin-inline: auto; display: flex; align-items: center; gap: 32px; }
.rb-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--rb-navy); text-decoration: none; }
.rb-brand__mark { width: 54px; height: 54px; object-fit: contain; }
.rb-brand__wordmark { width: 184px; height: auto; }
.rb-nav { margin-left: auto; }
.rb-nav ul { display: flex; align-items: center; gap: clamp(20px, 2.2vw, 38px); list-style: none; margin: 0; padding: 0; }
.rb-nav a { color: var(--rb-ink); font-weight: 600; text-decoration: none; }
.rb-button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 24px; border: 1px solid transparent; border-radius: 12px; font-weight: 700; text-decoration: none; }
.rb-button--primary { color: #fff; background: var(--rb-teal); box-shadow: 0 10px 24px rgb(6 74 85 / 22%); }
.rb-button--secondary { color: var(--rb-navy); background: #fff; border-color: var(--rb-line); }
/* Bestehende Inhaltsaktionen oeffentlicher Seiten tragen dieselbe Marke.
   Der gemeinsame Header begrenzt den Scope; Formularfelder bleiben separat. */
.rb-header ~ main a.btn:not(form a) { border-radius: 12px; }
.rb-header ~ main a.btn--primary:not(form a) { background: var(--rb-teal); color: var(--rb-paper); border-color: var(--rb-teal); box-shadow: 0 10px 24px rgb(6 74 85 / 22%); }
.rb-header ~ main a.btn--secondary:not(form a) { background: var(--rb-paper); color: var(--rb-navy); border-color: var(--rb-line); }
.rb-header ~ main a.btn--onink:not(form a) { background: transparent; color: var(--rb-paper); border-color: var(--rb-paper); }
.rb-header ~ main a.btn--primary:not(form a):hover { background: var(--rb-teal-dark); border-color: var(--rb-teal-dark); }
.rb-header ~ main a.btn--secondary:not(form a):hover { background: var(--rb-mist); color: var(--rb-navy); border-color: var(--rb-teal); }
.rb-header ~ main a.btn--onink:not(form a):hover { background: var(--rb-paper); color: var(--rb-navy); border-color: var(--rb-paper); }
.rb-icon { width: 1.5em; height: 1.5em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.rb-burger { display: none; width: 46px; height: 46px; margin-left: auto; border: 0; background: transparent; }
.rb-burger span { display: block; width: 24px; height: 2px; margin: 5px auto; background: var(--rb-navy); }
.rb-footer { background: #fff; color: var(--rb-ink); border-top: 1px solid var(--rb-line); }
.rb-footer__grid { width: min(calc(100% - 64px), var(--rb-wrap)); margin-inline: auto; padding: 44px 0 34px; display: grid; grid-template-columns: 1.25fr .85fr .85fr 1fr; gap: 42px; }
.rb-footer__bar { padding: 13px max(24px, calc((100vw - var(--rb-wrap)) / 2)); background: var(--rb-teal-dark); color: #fff; display: flex; justify-content: space-between; gap: 24px; }

@media (max-width: 900px) {
  .rb-header__inner { width: min(calc(100% - 32px), var(--rb-wrap)); min-height: 76px; }
  .rb-brand__mark { width: 42px; height: 42px; }
  .rb-brand__wordmark { width: 146px; }
  .rb-nav { position: fixed; inset: 76px 0 auto; display: none; padding: 24px; background: #fff; box-shadow: var(--rb-shadow); }
  .rb-nav.is-open { display: block; }
  .rb-nav ul { align-items: stretch; flex-direction: column; gap: 4px; }
  .rb-nav a { display: block; padding: 13px 8px; }
  .rb-header__cta { display: none; }
  .rb-burger { display: block; }
  .rb-footer__grid { width: min(calc(100% - 32px), var(--rb-wrap)); grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .rb-footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .rb-footer__bar { align-items: flex-start; flex-direction: column; }
}

/* Tastaturfokus bleibt auf allen Flaechen deutlich sichtbar. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  outline: 3px solid var(--rb-gold);
  outline-offset: 3px;
}

.rb-brand { flex-shrink: 0; }
.rb-brand img { display: block; mix-blend-mode: multiply; }
.rb-nav a { white-space: nowrap; }
.rb-button { font-family: inherit; line-height: 1.3; white-space: nowrap; }
.rb-burger { cursor: pointer; flex-shrink: 0; }
.rb-footer { --text: var(--rb-ink); --text-soft: var(--rb-muted); }
.rb-footer__grid > * { min-width: 0; }
.rb-footer__brand { margin-bottom: 18px; }
.rb-footer__grid h2 { margin: 0 0 18px; color: var(--rb-navy); font-family: var(--font-body); font-size: 1rem; font-weight: 700; line-height: 1.4; text-transform: none; }
.rb-footer__grid p { margin: 0 0 12px; }
.rb-footer__grid address { margin-bottom: 14px; color: var(--rb-muted); font-style: normal; line-height: 1.7; }
.rb-footer__grid ul { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.rb-footer a { text-decoration: none; }
.rb-footer__grid a { overflow-wrap: anywhere; }
.rb-footer .rb-button { max-width: 100%; padding-inline: 16px; white-space: normal; text-align: center; }
.rb-footer__bar p { margin: 0; font-size: .875rem; }
.rb-footer__legal { display: flex; flex-wrap: wrap; gap: 10px 22px; }

@media (hover: hover) and (pointer: fine) {
  .rb-nav a:hover,
  .rb-footer__grid a:not(.rb-button):hover { color: var(--rb-teal); text-decoration: underline; text-underline-offset: 4px; }
  .rb-button--primary:hover { background: var(--rb-teal-dark); }
  .rb-button--secondary:hover { background: var(--rb-mist); border-color: var(--rb-teal); }
  .rb-burger:hover { background: var(--rb-mist); border-radius: var(--rb-radius); }
  .rb-footer__bar a:hover { color: var(--rb-gold-soft); text-decoration: underline; text-underline-offset: 4px; }
}

/* Der komplette Desktop-Kopf bleibt auch kurz oberhalb des Menuewechsels passend. */
@media (min-width: 901px) and (max-width: 1120px) {
  .rb-header__inner { gap: 18px; }
  .rb-nav ul { gap: 16px; }
  .rb-nav a { font-size: .875rem; }
  .rb-brand__mark { width: 44px; height: 44px; }
  .rb-brand__wordmark { width: 150px; }
  .rb-header__cta { padding-inline: 16px; font-size: .875rem; }
}

@media (max-width: 900px) {
  .rb-nav { max-height: calc(100dvh - 76px); overflow-y: auto; }
  .rb-header .rb-brand,
  .rb-footer a:not(.rb-button) { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
  .rb-footer__grid ul { gap: 2px; }
  .rb-footer__grid p { margin-bottom: 4px; }
  .rb-footer__legal { gap: 2px 22px; }
}

/* ==========================================================================
   KOPFZEILE nach Vorlage "Home-Banner" (08.10.)
   1 u = 1 Pixel der Vorlage (Rahmen 1356 px breit). Ab 1280 px Bildschirm
   stimmen alle Masse mit der Vorlage, darunter wird verhaeltnisgleich
   kleiner; ueber 1600 px bleibt der Inhalt mittig stehen.
   ========================================================================== */
:root { --u: calc(min(100vw, 1600px) / 1356); }
.rb-header__phone { display: none; align-items: center; color: var(--rb-ink); text-decoration: none; }
.rb-header__phone span { display: grid; line-height: 1.25; }
.rb-header__phone strong { font-weight: 700; color: var(--rb-navy); white-space: nowrap; }
.rb-header__phone small { color: var(--rb-muted); white-space: nowrap; }

@media (min-width: 1280px) {
  .rb-header { background: #fff; }
  .rb-header__inner {
    width: min(100%, 1600px); min-height: calc(82 * var(--u)); gap: 0;
    padding-inline: calc(59 * var(--u)) calc(55 * var(--u));
  }
  .rb-brand { gap: calc(8 * var(--u)); margin-right: calc(66 * var(--u)); }
  .rb-brand__mark { width: calc(58 * var(--u)); height: calc(52 * var(--u)); }
  .rb-brand__wordmark { width: calc(150 * var(--u)); }
  .rb-nav { margin-left: 0; }
  .rb-nav ul { gap: calc(22 * var(--u)); }
  .rb-nav a { font-size: max(12.5px, calc(13.2 * var(--u))); font-weight: 500; color: var(--rb-ink); }
  .rb-header__phone { display: inline-flex; margin-left: auto; gap: calc(9 * var(--u)); }
  .rb-header__phone svg { width: calc(20 * var(--u)); height: calc(20 * var(--u)); flex: none; }
  .rb-header__phone strong { font-size: max(13px, calc(14.5 * var(--u))); }
  .rb-header__phone small { font-size: max(10.5px, calc(11 * var(--u))); }
  .rb-header__cta {
    margin-left: calc(30 * var(--u)); min-height: calc(44 * var(--u)); padding-inline: calc(22 * var(--u));
    border-radius: calc(8 * var(--u)); font-size: max(13px, calc(14.5 * var(--u))); font-weight: 600; gap: calc(8 * var(--u));
  }
}

/* Sieben Menuepunkte brauchen mehr Platz: Burger-Menue unter 1280 px. */
@media (min-width: 901px) and (max-width: 1279px) {
  .rb-header__inner { width: min(calc(100% - 32px), var(--rb-wrap)); min-height: 76px; }
  .rb-brand__mark { width: 42px; height: 42px; }
  .rb-brand__wordmark { width: 146px; }
  .rb-nav { position: fixed; inset: 76px 0 auto; display: none; padding: 24px; background: #fff; box-shadow: var(--rb-shadow); max-height: calc(100dvh - 76px); overflow-y: auto; margin-left: 0; }
  .rb-nav.is-open { display: block; }
  .rb-nav ul { align-items: stretch; flex-direction: column; gap: 4px; }
  .rb-nav a { display: block; padding: 13px 8px; font-size: 1rem; }
  .rb-header__cta { display: inline-flex; margin-left: auto; }
  .rb-burger { display: block; margin-left: 12px; }
}

/* Ortsliste auf den Leistungsseiten */
.rb-place-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px 28px; }
.rb-place-list a { display: inline-block; padding: 8px 0; color: var(--brand-navy); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--brand-border); width: 100%; }
.rb-place-list a:hover { color: #8A6118; border-bottom-color: #C08A3A; }

/* Neues Logo (19.10.2026): eine Bildmarke statt Zeichen + Schriftzug */
.rb-brand__logo { display: block; width: auto; height: 46px; max-width: none; }
.rb-footer__brand .rb-brand__logo { height: 52px; }
@media (max-width: 900px) { .rb-brand__logo { height: 38px; } }
@media (min-width: 1280px) { .rb-brand__logo { height: calc(50 * var(--u)); min-height: 40px; } }
