/* www.ra-diekmann.com – Facelift 2026 nach dem bisherigen Theme: Logo und Menü auf Bild bzw. blauem Band,
   Serifenschrift, Fließtext grau auf Weiß, dunkler Fuß; responsiv, ohne JavaScript */
:root {
  --blau: #152e67; --blau-dunkel: #0e2250; --text: #4a4a4a; --dunkel: #222; --grau: #777; --hell: #f4f5f7;
  --linie: #e1e4ea; --fuss: #151515; --breite: 1200px; --rund: 10px; --rund-klein: 6px;
  --serif: Georgia, "Times New Roman", Times, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 18px/1.65 var(--serif); color: var(--text); background: #fff; }
a { color: var(--blau); }
a:hover { color: var(--blau-dunkel); }
img { max-width: 100%; height: auto; }
a[href^="tel:"] { white-space: nowrap; }
.sprung { position: absolute; left: -999px; }
.sprung:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 10; }

/* Kopf: liegt auf dem Bild (Startseite) bzw. dem blauen Band (Unterseiten) */
.kopf { position: relative; z-index: 2; }
.kopf-innen { max-width: var(--breite); margin: 0 auto; padding: 2.2rem 1.5rem .4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.marke img { display: block; width: 440px; max-width: 100%; filter: drop-shadow(0 1px 3px rgba(0,0,0,.35)); }
.kopf-rechts { font-size: .85rem; }
.metanav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.metanav > a { color: #fff; text-decoration: none; opacity: .85; }
.metanav > a + a::before, .metanav .tel::before { content: "|"; margin: 0 .5rem; opacity: .6; }
.metanav > a:hover { opacity: 1; }
.metanav .tel { color: #fff; }
.metanav .tel a { color: #fff; font-weight: 700; text-decoration: none; }
.hauptmenue ul { max-width: var(--breite); margin: 0 auto; padding: .4rem 1.5rem 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 .4rem; }
.hauptmenue a { display: block; padding: .6rem .8rem; color: #fff; text-decoration: none; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  text-shadow: 0 1px 4px rgba(0,0,0,.55); border-bottom: 3px solid transparent; }
.hauptmenue a:hover { border-bottom-color: rgba(255,255,255,.6); color: #fff; }
.hauptmenue a[aria-current] { border-bottom-color: #fff; }

/* Startseite: Bildwechsel wie früher der Slider (nur CSS) */
.buehne { position: relative; height: clamp(420px, 52vw, 720px); overflow: hidden; background: var(--blau); }
.buehne::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 220px; z-index: 1; background: linear-gradient(to bottom, rgba(10,20,45,.55), rgba(10,20,45,0)); }
.buehne > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: wechsel 24s infinite; }
.buehne > img:nth-of-type(1) { animation-delay: 0s; }
.buehne > img:nth-of-type(2) { animation-delay: 6s; }
.buehne > img:nth-of-type(3) { animation-delay: 12s; }
.buehne > img:nth-of-type(4) { animation-delay: 18s; }
@keyframes wechsel { 0% { opacity: 0; } 4% { opacity: 1; } 25% { opacity: 1; } 29% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .buehne > img { animation: none; } .buehne > img:first-of-type { opacity: 1; } }
.buehne-text { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 5rem 1.25rem 2.5rem; text-align: center; color: #fff;
  background: linear-gradient(to top, rgba(10,20,45,.65), rgba(10,20,45,0)); }
.buehne-klein { margin: 0; font-size: clamp(1.1rem, 2.2vw, 1.6rem); letter-spacing: .04em; }
.buehne-gross { margin: 0; padding: 0; border: 0; color: #fff; font-size: clamp(2.2rem, 6vw, 4.4rem); line-height: 1.1; font-weight: 400; }

/* Unterseiten: blaues Band mit Logo, Menü und Seitentitel wie früher */
.titelband { background: var(--blau) url(/bilder/kopf/titelband.jpg) center / cover no-repeat; color: #fff; }
.titelband-innen { max-width: var(--breite); margin: 0 auto; padding: 2.2rem 1.5rem 3rem; text-align: center; }
.titelband h1 { margin: 0; padding: 0; border: 0; color: #fff; font-weight: 400; font-size: clamp(1.7rem, 3.2vw, 2.3rem); }

/* Inhalt: grau auf Weiß wie früher */
.spalten { max-width: var(--breite); margin: 2.5rem auto 3rem; padding: 0 1.5rem; display: grid; gap: 2.5rem; }
.spalten.mit-rechts { grid-template-columns: minmax(0, 1fr) 290px; }
.inhalt { min-width: 0; }
.inhalt > :first-child { margin-top: 0; }
.inhalt > :last-child { margin-bottom: 0; }
.inhalt::after { content: ""; display: block; clear: both; }
h1 { color: var(--dunkel); font-weight: 400; }
h2 { font-size: 1.55rem; line-height: 1.3; font-weight: 400; margin: 1.8rem 0 .6rem; color: var(--dunkel); clear: both; }
h3 { font-size: 1.2rem; font-weight: 700; margin: 1.4rem 0 .4rem; color: var(--dunkel); }
h4 { font-size: 1.05rem; font-weight: 700; margin: 1.1rem 0 .3rem; color: var(--dunkel); }
.inhalt table { border-collapse: collapse; margin: 1rem 0; max-width: 100%; display: block; overflow-x: auto; }
.inhalt td, .inhalt th { border: 1px solid var(--linie); padding: .35rem .6rem; vertical-align: top; text-align: left; }
.bild { display: block; border-radius: var(--rund-klein); }
.bild.rechts { float: right; margin: .3rem 0 1rem 1.5rem; max-width: 45%; }
.bild.links { float: left; margin: .3rem 1.5rem 1rem 0; max-width: 45%; }
.bild.mitte { margin: 1rem 0; }
.bild.breit { width: 100%; margin: 1.5rem 0 0; }
.block { clear: both; padding: 1.2rem 0; }
.block::after { content: ""; display: block; clear: both; }
.block h2 { margin-top: 0; }
.block h2 a { text-decoration: none; color: var(--dunkel); }
.mehr { text-decoration: none; font-weight: 700; }
.mehr::after { content: " »"; }
a.pdf::after { content: " (PDF)"; color: var(--grau); font-size: .85em; }
.inhalt blockquote { margin: 1.5rem 0; padding: .9rem 1.4rem; border-left: 4px solid var(--blau); background: var(--hell); border-radius: 0 var(--rund-klein) var(--rund-klein) 0; }
.inhalt blockquote p { margin: .3rem 0; }

/* Rechtsgebiete */
.sprungmarken { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .5rem 1rem; }
.sprungmarken a { display: block; padding: .5rem .9rem; border: 1px solid var(--linie); border-radius: var(--rund-klein); text-decoration: none; background: #fff; }
.sprungmarken a:hover { border-color: var(--blau); background: var(--hell); }
.inhalt h2[id] { scroll-margin-top: 1rem; padding-top: 1.2rem; border-top: 1px solid var(--linie); font-size: 1.3rem; font-weight: 700; }

/* Team */
.person { clear: both; padding: 1.5rem 0; border-top: 1px solid var(--linie); }
.person:first-of-type { border-top: 0; padding-top: 0; }
.person::after { content: ""; display: block; clear: both; }
.person h2 { margin-top: 0; clear: none; }
.person .funktion { color: var(--grau); font-style: italic; margin-top: -.3rem; }
.bild.portrait { max-width: 220px; }
.teamkarten { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.2rem; }
.teamkarten a { display: block; height: 100%; text-decoration: none; color: var(--text); border: 1px solid var(--linie); border-radius: var(--rund); overflow: hidden; background: #fff; }
.teamkarten a:hover { border-color: var(--blau); box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.teamkarten img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.teamkarten .name { display: block; padding: .7rem .9rem 0; font-weight: 700; color: var(--dunkel); }
.teamkarten .funktion { display: block; padding: .15rem .9rem .9rem; font-size: .88rem; color: var(--grau); }

/* rechte Spalte */
.infospalte { display: grid; gap: 1.25rem; align-self: start; min-width: 0; }
.kasten { background: var(--hell); border-radius: var(--rund); padding: 1.1rem 1.25rem; font-size: .92rem; overflow-wrap: anywhere; border-top: 4px solid var(--blau); }
.kasten h2 { margin: 0 0 .5rem; font-size: 1.15rem; }
.kasten p { margin: .5rem 0; }
.untermenue h2 a { color: var(--dunkel); text-decoration: none; }
.untermenue ul { list-style: none; margin: 0; padding: 0; }
.untermenue li a { display: block; padding: .35rem 0; border-bottom: 1px solid var(--linie); text-decoration: none; }
.untermenue a[aria-current] { font-weight: 700; }

/* Fuß: dunkel wie früher */
.fuss { background: var(--fuss); color: #bbb; font-size: .92rem; }
.fuss-innen { max-width: var(--breite); margin: 0 auto; padding: 2rem 1.5rem 1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem 2.5rem; }
.fuss h2 { color: #fff; font-size: 1.05rem; margin: 0 0 .6rem; }
.fuss-logo { display: block; width: 320px; max-width: 100%; margin-bottom: .5rem; }
.fuss p { margin: 0 0 .75rem; }
.fuss a { color: #ddd; text-decoration: none; }
.fuss a:hover { color: #fff; text-decoration: underline; }
.fuss a.gross { font-size: 1.15rem; font-weight: 700; color: #fff; }
.fuss-unten { max-width: var(--breite); margin: 0 auto; padding: .8rem 1.5rem 1.4rem; text-align: right; }
.fuss-unten a { color: #bbb; margin-left: 1.1rem; }

@media (max-width: 900px) {
  .spalten.mit-rechts { grid-template-columns: 1fr; }
  .hauptmenue ul { justify-content: flex-start; }
  .kopf-rechts { width: 100%; }
  .metanav { justify-content: flex-start; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .kopf-innen { padding-top: 1.2rem; }
  .marke img { width: 280px; }
  .metanav > a { display: none; }
  .metanav .tel::before { content: ""; margin: 0; }
  .hauptmenue a { padding: .45rem .5rem; font-size: .85rem; }
  .bild.rechts, .bild.links, .bild.portrait { float: none; max-width: 100%; margin: .5rem 0 1rem; }
  .fuss-unten { text-align: left; }
  .fuss-unten a { margin: 0 1.1rem 0 0; }
}
@media print {
  .hauptmenue, .infospalte, .sprung, .metanav, .buehne > img { display: none; }
  .titelband, .buehne { background: none; color: #000; height: auto; }
}
