/* ============================================================
   rawendt.de – Design-System
   Markenfarben: Navy (#124F6E) als Primärfarbe, Gold (#C29941)
   als dezenter Akzent. Schrift: Libre Franklin (Display) +
   Systemschrift-Stack (Text) – keine externen Font-Ladevorgänge
   (kein Google-Fonts-Import, aus Datenschutzgründen).
   ============================================================ */

:root {
  --paper:    #F5F6FA;   /* Seitenhintergrund            */
  --surface:  #FFFFFF;   /* Karten, Panels               */
  --tint:     #EEF1F8;   /* zarte Flächen-Abstufung      */
  --ink:      #1A2233;   /* Text                          */
  --muted:    #5B6472;   /* Sekundärtext                  */
  --pine:     #124F6E;   /* Markenfarbe: Navy             */
  --pine-2:   #1F6E93;   /* hellere Navy-Stufe (Hover)    */
  --mint:     #C29941;   /* Akzent: Gold                  */
  --mint-ink: #8A6B23;   /* Akzent, lesbar auf hell        */
  --line:     #E2E6ED;   /* Hairlines                     */
  --radius:   14px;
  --font-display: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--mint-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 20px; }

/* ---------- Basis-Typografie für Fließtext ------------------ */
h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: 800; color: var(--pine);
  line-height: 1.2; margin: 1.4em 0 0.6em; letter-spacing: -0.01em;
}
h1:first-child, h2:first-child, h3:first-child { margin-top: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

/* ---------- Skip-Link (Barrierefreiheit) --------------------- */
.skip-link {
  position: absolute; left: -999px; top: auto;
  background: var(--pine); color: #fff; padding: 0.75em 1.25em; z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Utility-Leiste (nur Desktop) --------------------- */
.utility { display: none; background: var(--pine); color: #C9D6EE; font-size: 13.5px; }
.utility .wrap { display: flex; gap: 28px; align-items: center; min-height: 38px; }
.utility a { color: #EAF1FF; }
.utility .u-hours { color: #93A8D6; }

/* ---------- Kopfzeile ----------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-head.scrolled { box-shadow: 0 6px 24px rgba(18,79,110,.14); }
.head-bar { display: flex; align-items: center; gap: 16px; min-height: 66px; }

.brand { display: flex; flex-direction: column; line-height: 1.2; flex: none; white-space: nowrap; }
.brand-name {
  font-family: var(--font-display); font-weight: 800; font-size: 20px;
  color: var(--pine); letter-spacing: .01em;
}
.brand-role {
  font-size: 11px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--muted); margin-top: 2px;
}
.brand:hover { text-decoration: none; }

.nav-desktop { display: none; margin-left: 28px; gap: 2px; flex: none; }
.nav-desktop a {
  color: var(--ink); font-size: 14px; font-weight: 500; white-space: nowrap;
  padding: 8px 9px; border-radius: 8px;
}
.nav-desktop a:hover { background: var(--tint); text-decoration: none; }

.head-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.nav-desktop + .head-actions { margin-left: 8px; }

.call-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--pine); color: #fff; font-weight: 600; font-size: 14px;
  padding: 9px 14px; border-radius: 999px; white-space: nowrap;
}
.call-pill:hover { background: var(--pine-2); text-decoration: none; }
.call-pill svg { width: 15px; height: 15px; flex: none; }
.call-pill .call-label { display: none; }

/* ---------- Burger + Drawer (Mobil) ---------------------------- */
.burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px;
  background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.burger span {
  display: block; height: 2px; border-radius: 2px; background: var(--pine);
  transition: transform .25s ease, opacity .2s ease;
}
body.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 66px 0 0 0; z-index: 40;
  background: var(--pine); color: #fff;
  padding: 28px 24px 40px; overflow-y: auto;
  transform: translateX(100%); visibility: hidden;
  transition: transform .3s ease, visibility 0s .3s;
}
body.nav-open .drawer { transform: translateX(0); visibility: visible; transition: transform .3s ease; }
body.nav-open { overflow: hidden; }

.drawer nav { display: flex; flex-direction: column; }
.drawer nav a {
  color: #fff; font-family: var(--font-display); font-size: 24px; font-weight: 700;
  padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.drawer nav a:hover { color: var(--mint); text-decoration: none; }

.drawer-contact { margin-top: 26px; font-size: 14.5px; color: #C3D0EA; display: grid; gap: 6px; }
.drawer-contact strong {
  display: block; color: var(--mint); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em; margin: 14px 0 2px;
}
.drawer-contact a { color: #fff; font-weight: 600; }

/* ---------- Hero (Startseite): Name + Bild ---------------------- */
.hero { background: linear-gradient(165deg, var(--pine) 0%, #0C3348 70%, #082432 100%); color: #fff; overflow: hidden; }
.hero-inner { display: grid; gap: 40px; align-items: center; padding-block: 56px 60px; }
.hero-copy { max-width: 640px; }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--mint); display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--mint); }

.hero h1 {
  font-family: var(--font-display); font-weight: 800; color: #fff;
  font-size: clamp(38px, 6.4vw, 62px); line-height: 1.06; letter-spacing: -0.015em;
  margin-top: 18px;
}
.hero h1 .h1-role {
  display: block; font-size: clamp(20px, 3vw, 28px); font-weight: 600;
  color: #E3CE97; margin-top: 10px; letter-spacing: 0;
}
.hero p.lede { margin-top: 20px; max-width: 54ch; color: #D3DCEE; font-size: 17px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15.5px; border-radius: 999px;
  padding: 13px 24px; transition: transform .15s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--mint); color: var(--ink); }
.btn-primary:hover { background: #D4B46C; }
.btn-ghost { border: 1px solid rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { border-color: #fff; }

.hero-meta {
  margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15);
  font-size: 13.5px; color: #93A8D6; display: flex; flex-wrap: wrap; gap: 6px 22px;
}

/* ---------- Sub-Hero (Unterseiten) ------------------------------ */
.page-hero { background: linear-gradient(165deg, var(--pine) 0%, #0C3348 70%, #082432 100%); color: #fff; padding-block: 40px 44px; }
.page-hero h1 { color: #fff; font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 5vw, 46px); line-height: 1.1; margin-top: 12px; }
.page-hero p.lede { margin-top: 14px; max-width: 60ch; color: #D3DCEE; font-size: 16px; }
.page-hero .eyebrow { color: var(--mint); }
.page-hero .eyebrow::before { background: var(--mint); }

.breadcrumb { font-size: 13px; color: #93A8D6; margin-top: 6px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0; padding: 0; }
.breadcrumb a { color: #C3D0EA; }
.breadcrumb li + li::before { content: "›"; margin-right: 0.3rem; color: #6C82B8; }

/* ---------- Sektionen allgemein ---------------------------------- */
.section { padding-block: 72px; }
.section-tint { background: var(--tint); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(28px, 4vw, 38px); line-height: 1.15; color: var(--pine);
  margin-top: 14px;
}
.section-head p { margin-top: 12px; color: var(--muted); }
.section .eyebrow { color: var(--mint-ink); }
.section .eyebrow::before { background: var(--mint-ink); }

/* ---------- Rechtsgebiete: Kartenraster --------------------------- */
.fields { display: grid; gap: 18px; grid-template-columns: 1fr; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(18,79,110,.16); border-color: var(--mint); }
.card h3 { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--pine); margin: 0; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.card ul { list-style: none; display: grid; gap: 8px; font-size: 15px; margin: 0; padding: 0; }
.card li { padding-left: 20px; position: relative; margin: 0; }
.card li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 9px; height: 9px; border-radius: 50% 50% 2px 2px; background: var(--mint);
}
.card .more { margin-top: auto; font-weight: 600; font-size: 14.5px; }
.card .more::after { content: " →"; }
.card-feature { grid-column: 1 / -1; background: var(--pine); border-color: var(--pine); }
.card-feature h3, .card-feature .more { color: #fff; }
.card-feature p, .card-feature ul { color: #CFDCF2; }

/* ---------- Rechtsprechung-Hinweisband ---------------------------- */
.notice {
  display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--mint);
  border-radius: var(--radius); padding: 20px 24px;
}
.notice .tag {
  flex: none; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  background: var(--tint); color: var(--mint-ink); border-radius: 999px; padding: 6px 12px;
}
.notice p { flex: 1 1 320px; font-size: 15px; color: var(--muted); margin: 0; }

/* ---------- Über mich / Timeline ------------------------------------ */
.about { display: grid; gap: 40px; }
.timeline { list-style: none; display: grid; gap: 0; margin: 0; padding: 0; }
.timeline li {
  display: grid; grid-template-columns: 96px 1fr; gap: 18px;
  padding: 16px 0; border-bottom: 1px solid var(--line); margin: 0;
}
.timeline .year { font-family: var(--font-display); font-weight: 800; color: var(--mint-ink); font-size: 18px; }

/* ---------- Info-Karten (z. B. Kontakt-Details) ---------------------- */
.contact-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact-card h3 {
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--mint-ink); margin: 0 0 12px;
}
.contact-card p, .contact-card td { font-size: 15.5px; }
.contact-card table { border-collapse: collapse; width: 100%; }
.contact-card td { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.contact-card td:last-child { text-align: right; font-weight: 600; }
.contact-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.contact-cta .btn-primary { background: var(--pine); color: #fff; }
.contact-cta .btn-primary:hover { background: var(--pine-2); }
.contact-cta .btn-ghost { border-color: var(--pine); color: var(--pine); }
.legal-note { margin-top: 28px; font-size: 13px; color: var(--muted); max-width: 72ch; }

/* ---------- FAQ ---------------------------------------------------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq-item h3 { margin: 0 0 0.4em; font-family: var(--font-display); font-weight: 800; color: var(--pine); font-size: 1.05rem; }
.faq-item p { color: var(--muted); margin: 0; }

/* ---------- CTA-Banner (Unterseiten-Fuß) ---------------------------- */
.cta-banner {
  background: var(--pine); color: #fff; border-radius: var(--radius);
  padding: 2rem; margin: 2.5rem 0; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 1rem;
}
.cta-banner h2 { color: #fff; margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; }
.cta-banner .cta-row { margin-top: 0; }

/* ---------- Footer --------------------------------------------------- */
.footer { background: var(--pine); color: #BCC9E4; font-size: 14.5px; }
.footer .wrap { padding-block: 48px 28px; display: grid; gap: 32px; }
.footer h4 {
  color: var(--mint); font-size: 11px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px;
}
.footer ul { list-style: none; display: grid; gap: 7px; margin: 0; padding: 0; }
.footer a { color: #EAF1FF; }
.footer .foot-base {
  grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 20px; font-size: 13px; color: #8FA0C7;
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
}

/* ---------- Scroll-Reveal --------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .drawer, .burger span, .btn, .card { transition: none; }
}

/* ---------- Breakpoints ------------------------------------------------ */
@media (min-width: 640px) {
  .fields { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .call-pill .call-label { display: inline; }
}
@media (min-width: 900px) {
  .hero-inner { padding-block: 84px; }
  .fields { grid-template-columns: repeat(3, 1fr); }
  .card-feature { grid-column: span 2; }
  .about { grid-template-columns: .9fr 1.1fr; }
  .footer .wrap { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .utility { display: block; }
  .nav-desktop { display: flex; }
  .burger { display: none; }
  .drawer { display: none; }
  html { scroll-padding-top: 120px; }
}
