/* ==========================================================================
   Oliver Maurus – Rechtspsychologie (statische HTML-Version)
   Reines CSS, keine Frameworks, keine externen Ressourcen.
   ========================================================================== */

@font-face {
  font-family: "Roboto Condensed";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/roboto-condensed-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto Condensed";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/roboto-condensed-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Palette taken from the screen design – all text pairs ≥ 4.5:1 */
  --ink: #1c3149;          /* navy text            – 12.9:1 on white, 10.0:1 on --surface */
  --ink-soft: #34495d;     /* secondary text       –  9.2:1 on white,  7.1:1 on --surface */
  --accent: #2b4a60;       /* phone pill / icons   –  9.4:1 with white */
  --accent-hover: #1c3149;
  --surface: #d4e4ea;      /* light steel-blue boxes */
  --surface-2: #e9f1f4;
  --line: #9fb9c4;
  --link: #145a7a;         /*  7.1:1 on white,  5.5:1 on --surface */
  --focus: #c2410c;        /* clearly visible focus ring */
  --bg: #ffffff;

  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgb(28 49 73 / .08), 0 4px 14px rgb(28 49 73 / .08);
  --shadow-pill: 0 2px 4px rgb(28 49 73 / .18), 0 6px 16px rgb(28 49 73 / .18);

  --font: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1rem, 3vw, 2rem);
  --maxw: 76rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: var(--link); text-underline-offset: .18em; }
button { font: inherit; color: inherit; }
img, svg { display: block; }
[hidden]:not([hidden="until-found"]) { display: none !important; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
main:focus { outline: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem;
  border-radius: var(--radius); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Icons ---------- */
.icon { width: 1.75rem; height: 1.75rem; flex: none; }
.icon--sm { width: 1.2rem; height: 1.2rem; }
.icon--xs { width: 1rem; height: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 2.75rem; padding: .55rem 1.4rem;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 500; font-size: 1.15rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, box-shadow .15s, transform .15s;
}
.btn--pill { background: var(--accent); color: #fff; box-shadow: var(--shadow-pill); }
.btn--pill:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { padding-block: clamp(1rem, 3vw, 2.75rem) clamp(1rem, 2.5vw, 2rem); }
.site-header__inner {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
}
.brand {
  display: block;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius);
  padding: .9rem 1.25rem 1rem;
  box-shadow: var(--shadow);
  max-width: 46rem;
}
.brand:hover .brand__name strong { text-decoration: underline; text-decoration-thickness: 2px; }
.brand__name {
  display: block;
  font-size: clamp(1.35rem, 1rem + 1.6vw, 2rem);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -.005em;
}
.brand__name strong { font-weight: 700; }
.brand__tagline {
  display: block; margin-top: .35rem;
  font-size: clamp(.9rem, .85rem + .2vw, 1.05rem);
  color: var(--ink-soft);
}

.header-contact { text-align: right; flex: none; }
.header-contact .btn { font-size: 1.3rem; padding-inline: 1.6rem; }
.header-contact__hours { margin-top: .6rem; font-size: .9rem; line-height: 1.35; color: var(--ink-soft); }

/* Mobile quick-contact bar – sticky at the top */
.quickbar { display: none; }

@media (max-width: 47.99rem) {
  .header-contact { display: none; }
  .brand { width: 100%; }
  .quickbar {
    display: block;
    position: sticky; top: 0; z-index: 50;
    background: var(--ink);
    box-shadow: 0 2px 10px rgb(0 0 0 / .2);
    margin-bottom: 1.25rem;
  }
  .quickbar__list { display: grid; grid-template-columns: repeat(3, 1fr); }
  .quickbar a {
    display: flex; align-items: center; justify-content: center; gap: .45rem;
    min-height: 3.25rem; padding: .5rem;
    color: #fff; text-decoration: none; font-weight: 600; font-size: 1.05rem;
  }
  .quickbar li + li a { border-left: 1px solid rgb(255 255 255 / .18); }
  .quickbar a:focus-visible { outline-color: #fff; outline-offset: -4px; }
}


/* ==========================================================================
   Rechtsseiten
   ========================================================================== */
.article__title {
  font-size: clamp(1.65rem, 1.2rem + 1.8vw, 2.5rem);
  line-height: 1.12; font-weight: 700; letter-spacing: -.01em; margin-bottom: 1rem;
}

.prose { max-width: 68ch; }
.prose > * + * { margin-top: .9em; }
.prose h2 { font-size: 1.45rem; line-height: 1.2; margin-top: 1.6em; }
.prose h3 { font-size: 1.2rem; line-height: 1.25; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .3em; }
.prose blockquote { margin: 0; padding: .75rem 1rem; border-left: 4px solid var(--line); background: var(--surface-2); }

.legal { margin-block: 1rem 3rem; }

/* ==========================================================================
   Footer – business-card band with 3-column location register
   ========================================================================== */
.site-footer { margin-top: 2rem; padding-bottom: clamp(1rem, 3vw, 2rem); }
.site-footer__card {
  background: var(--surface);
  border-radius: var(--radius) var(--radius) clamp(1.5rem, 4vw, 3rem) var(--radius);
  padding-block: clamp(1.5rem, 3vw, 2rem) 1rem;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
}
.site-footer__grid {
  display: grid; gap: 1.75rem 2.5rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 48rem) {
  .site-footer__grid { grid-template-columns: minmax(14rem, auto) minmax(0, 1fr); }
  .footer-contact { grid-column: 1 / -1; }
}
@media (min-width: 72rem) {
  .site-footer__grid { grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; }
  .footer-contact { grid-column: auto; }
}

.footer-brand__name { font-size: 1.25rem; line-height: 1.2; }
.footer-brand__name strong { font-size: 1.45rem; }
.footer-brand__role { margin-top: .4rem; color: var(--ink-soft); }
.footer-brand__focus { font-weight: 600; }

.register {
  display: grid; grid-template-columns: repeat(3, minmax(0, max-content));
  justify-content: center; gap: 1rem clamp(1.25rem, 4vw, 3.5rem);
}
@media (max-width: 30rem) { .register { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: start; } }
.register__label { font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .25rem; }
.register ul { list-style: none; padding: 0; }
.register a {
  display: inline-block; padding-block: .2rem; min-height: 1.5rem;
  color: var(--ink); font-size: 1.1rem; text-decoration: none; line-height: 1.25;
}
.register a:hover { text-decoration: underline; }
.register a[aria-current] { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; }

.footer-contact { display: grid; gap: .5rem; align-content: start; }
@media (min-width: 48rem) and (max-width: 71.99rem) {
  .footer-contact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.tile {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .8rem; border-radius: var(--radius);
  background: rgb(255 255 255 / .55);
  color: var(--ink); text-decoration: none; font-size: 1.05rem; line-height: 1.25;
  overflow-wrap: anywhere;
  transition: background-color .15s;
}
.tile .icon { color: var(--accent); }
.tile:hover { background: #fff; }

.site-footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem;
  margin-top: 1.5rem; padding-top: .9rem; border-top: 1px solid var(--line);
  font-size: .95rem; color: var(--ink-soft);
}
.site-footer__legal ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; list-style: none; padding: 0; }
.site-footer__legal a { color: var(--link); }


/* ==========================================================================
   Motion, Print, lange Komposita
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .quickbar, .skip-link { display: none !important; }
  body { font-size: 11pt; }
}
h1, h2, h3, .tile span { min-width: 0; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }

/* Footer bleibt auch bei wenig Inhalt unten */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
.register li { font-size: 1.1rem; line-height: 1.25; padding-block: .2rem; }
