/* ==========================================================================
   eckardtfritz.de — Gestaltung
   Motiv: Tabelle. Strenge Spalten, Haarlinien, gemeinsame linke Kante.
   ========================================================================== */

@font-face {
  font-family: "Poppins";
  src: url("/assets/schriften/Poppins-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/schriften/Poppins-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/schriften/Poppins-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --tinte: #1f4e79;
  --tinte-hell: #4a4a4a;
  --akzent: #b9cfe3;
  --akzent-tief: #064b82;
  --linie: #dde4ec;
  --grund: #ffffff;
  --grund-gedaempft: #f3f6fa;

  --bahn: 68rem;
  --spalte-beschriftung: 11rem;
  --rand: 1.5rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  font-size: 100%;
  scroll-padding-top: 6rem;
}

@media (min-width: 100rem) {
  html {
    font-size: 106.25%;
  }
}

body {
  margin: 0;
  overflow-wrap: break-word;
  background: var(--grund);
  color: var(--tinte);
  font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
}

.bahn {
  max-width: var(--bahn);
  margin-inline: auto;
  padding-inline: var(--rand);
}

.sprungmarke {
  position: absolute;
  left: -9999px;
}
.sprungmarke:focus {
  left: var(--rand);
  top: 0.5rem;
  z-index: 10;
  background: var(--tinte);
  color: #fff;
  padding: 0.5rem 0.9rem;
}

a {
  color: var(--akzent-tief);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--tinte);
}
:focus-visible {
  outline: 2px solid var(--akzent-tief);
  outline-offset: 2px;
}

/* --- Kopf ---------------------------------------------------------------- */

.kopf {
  background: var(--tinte);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}
.kopf__innen {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-block: 0.9rem 0.7rem;
}

.kopf__zeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.marke {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  line-height: 1.25;
}
.marke__zeichen {
  width: auto;
  height: 2.1rem;
  flex: none;
  background: #fff;
  padding: 0.3rem 0.5rem;
}
.marke__text {
  display: flex;
  flex-direction: column;
}
.marke__name {
  position: absolute;
  left: -9999px;
}
.marke__rolle {
  color: var(--akzent);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

/* Schalter und Knopf steuern das Menü auf schmalen Geräten ohne Skript.
   Auf breiten Bildschirmen ist der Schalter vollständig entfernt, damit er
   weder in der Tabulatorreihenfolge noch für Screenreader auftaucht. */
.menue__schalter {
  display: none;
}
.menue__knopf {
  display: none;
  align-items: center;
  gap: 0.5rem;
  color: #d9dddd;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.5rem 0.2rem;
}
.menue__striche,
.menue__striche::before,
.menue__striche::after {
  display: block;
  width: 1.3rem;
  height: 2px;
  background: var(--akzent);
  content: "";
}
.menue__striche::before {
  transform: translateY(-6px);
}
.menue__striche::after {
  transform: translateY(4px);
}

.navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.4rem;
  font-size: 0.9rem;
}
.navigation a {
  color: #d9dddd;
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
}
.navigation a:hover {
  color: #fff;
  border-bottom-color: var(--akzent);
}
.navigation a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--akzent);
}
.navigation__sprache {
  color: var(--akzent) !important;
}

/* --- Einstieg ------------------------------------------------------------ */

.held {
  background: var(--tinte);
  color: #fff;
}
.held__innen {
  display: flex;
  gap: 3rem;
  align-items: flex-end;
  justify-content: space-between;
  padding-block: 3.5rem 4rem;
}
.held__spalte {
  max-width: 40rem;
}
.held__schlagzeile {
  margin: 0;
  hyphens: auto;
  overflow-wrap: break-word;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.held__text {
  margin: 1.4rem 0 0;
  color: #cdd4d4;
  font-size: 1.05rem;
  max-width: 32rem;
}
.held__portrait {
  width: 11rem;
  height: 11rem;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--akzent);
  flex: none;
}

/* --- Inhalt: Beschriftungsspalte links, Text rechts ---------------------- */

.inhalt {
  padding-block: 3rem 4rem;
}

.seitentitel {
  margin: 0 0 2.2rem;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.inhalt > h2 {
  margin: 3.2rem 0 0;
  padding-top: 1rem;
  border-top: 2px solid var(--akzent);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.inhalt > h2:first-child {
  margin-top: 0;
}

.inhalt > h3 {
  margin: 2.2rem 0 0.3rem;
  font-size: 1.05rem;
  font-weight: 500;
}

.inhalt > p,
.inhalt > ul,
.inhalt > ol {
  max-width: 42rem;
}
.inhalt > p {
  margin: 0.9rem 0;
}

.inhalt ul {
  padding-left: 1.1rem;
}
.inhalt li {
  margin-block: 0.35rem;
}
.inhalt li::marker {
  color: var(--akzent-tief);
}

.inhalt strong {
  font-weight: 500;
}

/* --- Tabellen tragen das Motiv ------------------------------------------ */

.inhalt table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 1.4rem 0 0.5rem;
  font-size: 0.95rem;
}
.inhalt th:empty {
  padding: 0;
  border: 0;
}
.inhalt th {
  text-align: left;
  font-weight: 500;
  color: var(--tinte-hell);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 0 0.9rem 0.5rem 0;
  border-bottom: 1px solid var(--linie);
}
.inhalt td {
  padding: 0.75rem 0.9rem 0.75rem 0;
  border-bottom: 1px solid var(--linie);
  vertical-align: top;
}
.inhalt tbody tr td:first-child {
  font-weight: 500;
  width: var(--spalte-beschriftung);
}

/* --- Hervorgehobene Aussage --------------------------------------------- */

.inhalt blockquote {
  margin: 1.6rem 0;
  padding: 0 0 0 1.2rem;
  border-left: 3px solid var(--akzent);
  max-width: 40rem;
  font-size: 1.1rem;
  color: var(--tinte);
}
.inhalt blockquote p {
  margin: 0.4rem 0;
}

/* --- Codeblöcke ---------------------------------------------------------- */

.inhalt pre {
  position: relative;
  max-width: 42rem;
  margin: 1.4rem 0;
  padding: 1rem 1.1rem;
  background: var(--tinte);
  border-left: 3px solid var(--akzent);
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.6;
}
.inhalt pre code {
  color: #e6eaea;
  font-family: "Consolas", "SFMono-Regular", "Menlo", monospace;
  background: none;
  padding: 0;
}
.inhalt :not(pre) > code {
  background: var(--grund-gedaempft);
  padding: 0.1em 0.35em;
  font-size: 0.9em;
}
.kopierknopf {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: #cdd4d4;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font: inherit;
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
}
.kopierknopf:hover {
  background: var(--akzent);
  color: var(--tinte);
}

/* --- Anschriften --------------------------------------------------------- */

.inhalt .anschrift {
  font-style: normal;
  margin: 0.9rem 0 1.4rem;
  padding-left: 1rem;
  border-left: 3px solid var(--akzent);
  line-height: 1.8;
}

/* --- Externe Verweise: Hinweis auf das Verlassen der Seite ---------------- */

.inhalt a[rel="me"]::after {
  content: " \2197";
  font-size: 0.8em;
  color: var(--tinte-hell);
}

/* --- Beiträge ------------------------------------------------------------ */

.beitrag {
  padding-top: 1.4rem;
  margin-top: 1.8rem;
  border-top: 1px solid var(--linie);
  max-width: 42rem;
}
.beitrag:first-of-type {
  border-top: 2px solid var(--akzent);
}
.beitrag__datum {
  margin: 0;
  color: var(--tinte-hell);
  font-size: 0.8rem;
}
.beitrag__titel {
  margin: 0.2rem 0 0.4rem;
  font-size: 1.25rem;
  font-weight: 700;
}
.beitrag__titel a {
  color: var(--tinte);
  text-decoration: none;
}
.beitrag__titel a:hover {
  color: var(--akzent-tief);
  text-decoration: underline;
}
.beitrag__text {
  margin: 0;
  color: var(--tinte-hell);
}
.zurueck {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--linie);
}

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

.fuss {
  background: var(--grund-gedaempft);
  border-top: 1px solid var(--linie);
  margin-top: 3rem;
}
.fuss__innen {
  display: grid;
  gap: 1.2rem 3rem;
  grid-template-columns: minmax(12rem, auto) 1fr;
  padding-block: 2.2rem 2.6rem;
  font-size: 0.9rem;
}
.fuss__kontakt {
  margin: 0;
}
.fuss__navigation {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: flex-start;
}
.fuss__hinweis {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--tinte-hell);
  font-size: 0.8rem;
}
.mail {
  cursor: pointer;
}

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

/* Schmale Geräte: Menü hinter einem Knopf, damit nichts abgeschnitten wird */
@media (max-width: 60rem) {
  .menue__schalter {
    display: block;
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
  }
  .menue__knopf {
    display: flex;
  }
  .navigation {
    display: none;
    flex-direction: column;
    gap: 0;
    padding-bottom: 0.4rem;
  }
  .menue__schalter:checked ~ .navigation {
    display: flex;
  }
  .navigation a {
    padding-block: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .navigation a[aria-current="page"] {
    border-bottom-color: var(--akzent);
  }
  .menue__schalter:focus-visible ~ .kopf__zeile .menue__knopf {
    outline: 2px solid var(--akzent);
    outline-offset: 2px;
  }
}

@media (max-width: 46rem) {
  .marke__rolle {
    display: none;
  }
  .marke__zeichen {
    width: 1.8rem;
    height: 1.8rem;
  }
  .held__innen {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 1.8rem;
    padding-block: 2.5rem 3rem;
  }
  .held__portrait {
    width: 7.5rem;
    height: 7.5rem;
  }
  .inhalt tbody tr td:first-child {
    width: auto;
  }
  .fuss__innen {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 26rem) {
  :root {
    --rand: 1.1rem;
  }
  .held__schlagzeile {
    font-size: 1.55rem;
  }
  .inhalt table,
  .inhalt tbody,
  .inhalt tr,
  .inhalt td {
    display: block;
    width: 100%;
  }
  .inhalt thead {
    display: none;
  }
  .inhalt tr {
    padding-block: 0.7rem;
    border-bottom: 1px solid var(--linie);
  }
  .inhalt td {
    border: 0;
    padding: 0.1rem 0;
  }
  .inhalt tbody tr td:first-child {
    color: var(--tinte-hell);
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
