/* Rechtsanwalt Christopher Eichweber – Stylesheet
   Farben und Schrift wie in den Word-Vorlagen (British Racing Green, Times New Roman).
   Grün nur als Schriftfarbe. Keine externen Schriften oder Dienste. */

:root {
  color-scheme: light;
  --gruen: #004225;        /* British Racing Green – Briefbogen */
  --gruen-tief: #00331c;
  --tinte: #1b2420;
  --stein: #67706c;
  --linie: #dde4df;
  --papier: #ffffff;
  --schrift: "Times New Roman", Times, "Liberation Serif", "Nimbus Roman", serif;
  --breite: 68rem;
  --rand: clamp(1.25rem, 5vw, 3rem);
}

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

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

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--schrift);
  font-size: 1.1875rem;
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--gruen); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--gruen-tief); text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 1px; }

.rahmen {
  width: 100%;
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 var(--rand);
}

/* ---------- Kopfzeile wie im ersten Entwurf (Briefbogen) ---------- */

.kopf {
  text-align: center;
  padding: 4.5rem 0 0;
  --abstand: 2.75rem;
  --linienbreite: 60rem;   /* so breit wie der Inhalt darunter */
}

/* Trennlinie nur so breit wie der Inhalt */
.kopf::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--linie);
  width: calc(100% - 2 * var(--rand));
  max-width: calc(var(--linienbreite) - 2 * var(--rand));
  margin: var(--abstand) auto 0;
}

.kopf .rahmen { max-width: 62rem; }

.kopf__name {
  margin: 0;
  font-weight: normal;
  font-size: clamp(1.5rem, 4.6vw, 1.95rem);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gruen);
}

.kopf__name a { color: inherit; text-decoration: none; }

.kopf__beruf {
  margin: 0.5rem 0 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 1.15rem;
  color: var(--gruen);
}

.kopf__gebiete {
  margin: 1.6rem 0 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  line-height: 1.9;
  color: var(--gruen);
}

.kopf__gebiete span, .nw { white-space: nowrap; }

.kopf--klein { padding: 2.5rem 0 0; --abstand: 1.6rem; --linienbreite: 68rem; }
.kopf--klein .kopf__name { font-size: clamp(1.3rem, 4vw, 1.6rem); }
.kopf--klein .kopf__beruf { font-size: 1rem; }

/* ---------- Startseite: Porträt links, Inhalt rechts ---------- */

.seite {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  column-gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
  max-width: 60rem;
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
}

.portraet {
  margin: 0;
  position: sticky;
  top: 3rem;
}

.portraet img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #eef0ef;
}

.abschnitt + .abschnitt { margin-top: 3rem; }

.abschnitt h2 {
  margin: 0 0 1.25rem;
  font-weight: normal;
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--gruen);
}

/* Tätigkeitsschwerpunkte */

.register { margin: 0; }

.register div {
  padding: 1.1rem 0 1.2rem;
  border-top: 1px solid var(--linie);
}

.register div:last-child { border-bottom: 1px solid var(--linie); }

.register dt {
  font-size: 1.45rem;
  line-height: 1.3;
  color: var(--gruen);
}

.register dd {
  margin: 0.3rem 0 0;
  max-width: 34rem;
  font-size: 1.06rem;
  line-height: 1.6;
  color: var(--stein);
}

/* Kontakt: schlicht wie die Fußzeile des Briefbogens */

.kontakt p, .kontakt address { font-size: 1.06rem; margin: 0 0 1rem; max-width: 34rem; }
.kontakt address { font-style: normal; }

/* ---------- Unterseiten ---------- */

.rechtstext {
  max-width: 44rem;
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.rechtstext h1 {
  margin: 0 0 2rem;
  font-weight: normal;
  font-size: clamp(2.1rem, 4.6vw, 2.8rem);
  line-height: 1.1;
  color: var(--gruen);
}

.rechtstext h2 {
  margin: 2.4rem 0 0.6rem;
  font-size: 1.15rem;
  font-weight: bold;
  line-height: 1.35;
  color: var(--tinte);
}

.rechtstext p, .rechtstext li, .rechtstext address { font-size: 1.06rem; }
.rechtstext p { margin: 0 0 1rem; }
.rechtstext ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.rechtstext li { margin-bottom: 0.3rem; }
.rechtstext address { font-style: normal; margin: 0 0 1rem; }
.rechtstext .stand { margin-top: 2.75rem; color: var(--stein); font-size: 0.98rem; }

/* ---------- Fuß ---------- */

.fuss {
  border-top: 1px solid var(--linie);
  padding: 1.5rem 0 2.2rem;
  font-size: 0.95rem;
  color: var(--stein);
}

.fuss .rahmen {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 2rem;
}

.fuss p { margin: 0; }
.fuss nav { display: flex; gap: 1.5rem; }
.fuss nav a { color: var(--stein); }
.fuss nav a[aria-current="page"] { color: var(--gruen); }

/* ---------- Schmale Bildschirme ---------- */

@media (max-width: 48rem) {
  body { font-size: 1.1rem; }
  .kopf { padding-top: 3rem; --abstand: 2rem; }
  .kopf--klein { padding-top: 2.25rem; --abstand: 1.4rem; }
  .seite { grid-template-columns: 1fr; padding-top: 2.25rem; }
  .portraet { position: static; max-width: 10.5rem; margin-bottom: 2.25rem; }
}

@media print {
  .portraet { position: static; }
  .fuss nav { display: none; }
}
