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

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

:root {
  --tinte: #343537;
  --tinte-hell: #5c5e61;
  --akzent: #99c5c8;
  --akzent-tief: #3f7376;
  --linie: #dfe4e4;
  --grund: #ffffff;
  --grund-gedaempft: #f5f7f7;

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

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

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

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

body {
  margin: 0;
  overflow-wrap: break-word;
  background: var(--grund);
  color: var(--tinte);
  font-family: "Montserrat", "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;
}
.kopf__innen {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: baseline;
  justify-content: space-between;
  padding-block: 1.1rem;
}
.marke {
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.marke__name {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
}
.marke__rolle {
  color: var(--akzent);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  font-size: 0.9rem;
}
.navigation a {
  color: #d9dddd;
  text-decoration: none;
  padding-block: 0.45rem;
  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;
  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: 600;
}

.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: 600;
}

/* --- 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: 600;
  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: 600;
  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;
}

/* --- 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 ------------------------------------------------- */

@media (max-width: 46rem) {
  .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;
  }
  .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;
  }
}
