/* RIBEWA Versicherungsmakler – Stylesheet
   Keine externen Schriften, keine externen Skripte: nichts davon überträgt Besucherdaten an Dritte. */

:root {
  --beton: #E9EBEC;        /* Seitenhintergrund, wie die Wand auf den Fotos */
  --hemd: #FAFAFA;         /* helle Flächen, wie die Hemden */
  --tinte: #1B2A36;        /* Text und Fußzeile */
  --denim: #31546F;        /* Links, Buttons, Fokus */
  --denim-dunkel: #234058; /* Hover */
  --moertel: #56606A;      /* Nebentext */
  --rand: #C5CBD0;
  --gruen: #C4D600;        /* Logo-Grün: nur als Fläche oder Linie, nie als Textfarbe auf Hell */

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --seite: clamp(1.25rem, 4vw, 3rem);
  --max: 78rem;
}

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

html { font-size: 100%; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--beton);
  color: var(--tinte);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--denim); text-underline-offset: 0.18em; }
a:hover { color: var(--denim-dunkel); }

:focus-visible { outline: 3px solid var(--denim); outline-offset: 3px; }

.zum-inhalt {
  position: absolute; left: -999px; top: 0;
  background: var(--tinte); color: #fff; padding: 0.75rem 1rem; z-index: 10;
}
.zum-inhalt:focus { left: 0; }

/* Kopfzeile */
.kopf {
  max-width: var(--max); margin: 0 auto;
  padding: 1.25rem var(--seite);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 2rem;
}
.marke {
  display: block; text-decoration: none; color: var(--tinte); line-height: 1.1;
}
.marke img { height: 4.5rem; width: auto; }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1.5rem; }
.nav a { color: var(--tinte); text-decoration: none; font-weight: 500; font-size: 0.97rem; padding: 0.3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--rand); }
.nav a[aria-current="page"] { border-bottom-color: var(--gruen); }
.nav a.nav-portal {
  background: var(--denim); color: #fff; padding: 0.5rem 1rem; border: 0; border-radius: 2px;
}
.nav a.nav-portal:hover { background: var(--denim-dunkel); }
.nav a.nav-portal[aria-current="page"] { outline: 2px solid var(--denim); outline-offset: 2px; }

/* Startbild */
.startbild { margin: 0; }
.startbild img { width: 100%; }
@media (min-width: 900px) {
  .startbild img { aspect-ratio: 2 / 1; object-fit: cover; object-position: 50% 50%; }
}

/* Inhalt */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--seite); padding-right: var(--seite); }

.band { padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(3rem, 7vw, 6rem); }
.band-hell { background: var(--hemd); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em; margin: 0; }
h1 { font-size: clamp(2.15rem, 4.6vw, 3.75rem); line-height: 1.08; max-width: 20ch; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); line-height: 1.15; }
h3 { font-size: 1.5rem; line-height: 1.2; }

p { margin: 0 0 1.1em; max-width: 62ch; }
.lead { font-size: 1.25rem; line-height: 1.5; max-width: 40ch; }

.einstieg { display: grid; gap: 2rem; }
@media (min-width: 900px) {
  .einstieg { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; align-items: end; }
}

.knoepfe { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin-top: 1.75rem; }
.knopf {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: 0.8rem 1.4rem; border-radius: 2px; border: 2px solid var(--denim);
  background: var(--denim); color: #fff;
}
.knopf:hover { background: var(--denim-dunkel); border-color: var(--denim-dunkel); color: #fff; }
.knopf-leise { background: transparent; color: var(--denim); }
.knopf-leise:hover { background: var(--denim); color: #fff; }

/* Zweispaltig: Foto + Text */
.zweispaltig { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) {
  .zweispaltig { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 5rem; }
  .zweispaltig-foto-rechts { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .zweispaltig-foto-rechts .foto { order: 2; }
  .foto-fest { position: sticky; top: 2rem; }
}
.foto { margin: 0; }
.foto img { width: 100%; }

.text > h2 { margin-bottom: 1.1rem; }
.text > h2:not(:first-child) { margin-top: 2.75rem; }

/* Team */
.team-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.25rem; }
.team-liste h3 { margin-bottom: 0.15rem; }
.team-liste .rolle { margin: 0 0 0.4rem; color: var(--moertel); }
.team-liste .beschreibung { margin: 0 0 0.4rem; }
.team-liste .kontakt { margin: 0; font-size: 0.97rem; }
.team-liste .kontakt a { margin-right: 1.25rem; white-space: nowrap; }

.team-raster { margin-top: 3rem; gap: 3rem 1.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (min-width: 900px) { .team-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .team-raster { grid-template-columns: minmax(0, 1fr); } }
.team-raster figure { margin: 0 0 1rem; }
.team-raster img { width: 100%; height: auto; }
.team-raster .kontakt a { display: inline-block; }

/* Fachliches */
.fach-liste { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; gap: 2.5rem; }
@media (min-width: 800px) { .fach-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; } }
.fach-liste li { border-top: 3px solid var(--gruen); padding-top: 1.25rem; }
.fach-liste h2 { margin-bottom: 0.6rem; }
.fach-liste h2 a { color: var(--tinte); text-decoration: none; }
.fach-liste h2 a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
.zurueck { margin: 0 0 1.5rem; font-size: 0.97rem; }
.zurueck a::before { content: "\2039\00a0"; }

/* Inhaber */
.inhaber-liste { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; gap: 2.5rem 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .inhaber-liste { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.inhaber-liste figure { margin: 0 0 1rem; }
.inhaber-liste img { width: 100%; height: auto; }
.inhaber-liste h3 { font-size: 1.35rem; margin-bottom: 0.2rem; }
.inhaber-liste .rolle { margin: 0; color: var(--moertel); font-size: 0.97rem; }

/* Kundenportal */
.portal-login { display: inline-block; max-width: 20rem; }
.portal-login img { width: 100%; height: auto; }
.apps { display: grid; gap: 2.5rem; margin-top: 1rem; }
@media (min-width: 700px) { .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.app h3 { font-size: 1.25rem; margin-bottom: 0.9rem; }
.app-zeile { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.app-zeile img { height: auto; }
.app-qr { font-size: 0.875rem; color: var(--moertel); margin: 0.4rem 0 0; }

/* Kontakt */
.kontakt-daten { font-style: normal; font-size: 1.2rem; line-height: 1.7; }
.kontakt-daten a { font-weight: 600; }

/* Rechtstexte */
.recht h2 { font-size: 1.4rem; margin: 2.25rem 0 0.6rem; }
.recht h3 { font-size: 1.15rem; margin: 1.5rem 0 0.4rem; }
.recht p, .recht li { max-width: 70ch; }
.recht ul { padding-left: 1.25rem; }
.entwurf {
  background: #FFF4C2; color: #3D3200; padding: 1rem 1.25rem; border-left: 4px solid #B38F00;
  margin-bottom: 2rem; max-width: 70ch;
}

/* Fußzeile */
.fuss { border-top: 6px solid var(--gruen); background: var(--tinte); color: #D9DEE3; padding: 3rem 0 2.5rem; font-size: 0.97rem; }
.fuss a { color: #fff; }
.fuss-raster { display: grid; gap: 2rem; }
@media (min-width: 800px) { .fuss-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fuss p { margin: 0 0 0.3rem; }
.fuss-name { font-weight: 700; letter-spacing: 0.04em; color: #fff; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: 0.3rem; }
.fuss .klein { margin-top: 2rem; font-size: 0.875rem; color: #AEB7C0; max-width: none; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

mark.offen { background: #fff3b0; color: var(--tinte, #1B2A36); padding: 0 .2em; }

.schritte { padding-left: 1.4rem; margin: 1rem 0; }
.schritte li { margin-bottom: .6rem; }
.hinweis { font-size: .95rem; color: var(--moertel, #56606A); margin-top: 1.25rem; }

.startbild figcaption { font-size: .8rem; color: var(--moertel, #56606A); text-align: right; padding: .4rem var(--seite, 1rem) 0; }

.recht { overflow-wrap: anywhere; }

.kernsatz { font-family: var(--serif, Georgia, 'Times New Roman', serif); font-size: clamp(1.5rem, 3.2vw, 2.2rem); line-height: 1.2; color: var(--denim, #31546F); margin: 1.5rem 0 .75rem; }
.kernband { padding-block: 2.5rem; }
.kernband .kernsatz { margin-top: 0; }
