/* Kopf und Fuss des Onepagers fuer die Unterseiten, erzeugt von bauen-gesamt.py */
@font-face { font-family: "Manrope"; src: url("/schrift/manrope-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/schrift/manrope-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }


.r-kopf, .r-fuss, .r-leiste {
  --petrol: #0F6B7E;
  --petrol-hell: #1590A2;
  --tuerkis: #4FDCE2;
  --navy: #0B2E36;
  --nacht: #061A1F;
  --bernstein: #E9A23B;
  --bernstein-hell: #F2B95E;
  --papier: #F4F7F6;
  --ton: #E6F1F1;
  --linie: #C7D9DA;
  --text: #0B2E36;
  --text-still: #4F6166;
  --weiss: #fff;
  --rand: clamp(16px, 5vw, 40px);
  --breite: 1360px;
  --radius: 18px;
  --titel: "Manrope", system-ui, sans-serif;
  --schrift: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --schatten: 0 1px 2px rgba(11,46,54,.06), 0 12px 32px -12px rgba(11,46,54,.18);
}

.r-kopf, .r-fuss { font-family: var(--schrift); font-weight: 500; line-height: 1.6; }
.r-kopf p, .r-fuss p { margin: 0; }
.r-kopf img, .r-fuss img { max-width: 100%; height: auto; display: block; }

.r-innen { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }
.r-knopf { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 0; background: var(--petrol); color: #fff; font: 700 16px/1.2 var(--schrift); text-decoration: none; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; }
.r-knopf:hover { background: var(--navy); }
.r-knopf:active { transform: translateY(1px); }
.r-knopf-klein { min-height: 44px; padding: 10px 18px; font-size: 15px; }

/* Kopf */
.r-kopf { position: sticky; top: 0; z-index: 40; background: rgba(244,247,246,.92); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
@supports (backdrop-filter: blur(8px)) { .r-kopf { background: rgba(244,247,246,.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); } }
.r-kopf.r-ist-gescrollt { border-bottom-color: var(--linie); }
.r-kopf-innen { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 68px; }
.r-marke { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--navy); text-decoration: none; font: 700 20px/1 var(--titel); letter-spacing: -.01em; white-space: nowrap; }
.r-marke img { width: 26px; }
.r-marke b { color: var(--petrol); font-weight: 700; }
.r-kopf-nav { display: flex; align-items: center; gap: 4px; }
.r-kopf-links { display: flex; align-items: center; gap: 4px; }
@media (min-width: 761px) {
  .r-kopf-innen { display: grid; grid-template-columns: 1fr auto 1fr; }
  .r-kopf-nav { display: contents; }
  .r-kopf-links { grid-column: 2; gap: 12px; }
  .r-kopf-nav .r-knopf { grid-column: 3; justify-self: end; margin-left: 0; }
}
.r-kopf-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: var(--navy); font: 700 15px/1 var(--schrift); text-decoration: none; cursor: pointer; }
.r-kopf-link:hover { background: var(--ton); }
.r-kopf-nav .r-knopf { margin-left: 6px; }
@media (max-width: 760px) {
  .r-nur-breit { display: none; }
  .r-marke span, .r-kopf-nav .r-knopf { display: none; }
  .r-marke img { width: 30px; }
}


/* Fuss */
.r-fuss { background: var(--nacht); color: #A9C9CC; font-size: 15px; padding: 28px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.r-fuss-innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; }
.r-fuss-marke { display: inline-flex; align-items: center; gap: 10px; color: #fff; font: 700 17px/1 var(--titel); }
.r-fuss-marke img { width: 22px; }
.r-fuss a { color: #D3E7E9; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.r-fuss a:hover { color: #fff; text-decoration: underline; }
.r-fuss-kontakt, .r-fuss-recht { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; }


/* Feste Leiste unten, nur schmal und erst nach dem Hero */
.r-leiste { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; padding: 10px var(--rand) calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.95); border-top: 1px solid var(--linie); box-shadow: 0 -10px 30px -12px rgba(11,46,54,.25); transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
.r-leiste.r-ist-sichtbar { transform: none; visibility: visible; transition: transform .25s ease, visibility 0s; }
.r-leiste .r-knopf { flex: 1; }
/* Links bleibt Platz fuer das Cookie-Symbol (14px Abstand + 44px Knopf + Luft) */
.r-leiste { padding-left: 72px; }
@media (min-width: 900px) { .r-leiste { display: none; } }
@media (max-width: 899px) { body.r-hat-leiste .r-fuss { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }

