/*
  feesche.de – Stylesheet 1.0.0
  Einzige CSS-Datei der Website. Kein JavaScript, keine externen Ressourcen.
  Schriften: Source Serif 4 (Überschriften, Einleitungen), IBM Plex Sans (Fließtext),
  beide selbst gehostet unter /assets/fonts/ (SIL Open Font License 1.1).
*/

/* ---------- Schriften ---------- */

/* Unicode-Bereiche wie bei Fontsource: latin enthält ä, ö, ü, ß, –, „“; latin-ext lädt nur bei Bedarf. */

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-latin-400-normal.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: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-latin-ext-400-normal.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-latin-400-italic.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: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-latin-ext-400-italic.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-latin-600-normal.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: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-latin-ext-600-normal.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.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: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-ext-400-normal.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-500-normal.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: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-ext-500-normal.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.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: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-ext-600-normal.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Farben und Maße ---------- */

:root {
  color-scheme: light dark;

  --papier:  #F5F2EC;
  --flaeche: #ECE7DE;
  --tinte:   #1B1E21;
  --tinte-2: #4A4F55;
  --linie:   #D6CFC3;
  --akzent:  #9A3B26;

  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans:  "IBM Plex Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --breite: 72rem;
  --spalte: 38rem;
  --rand: clamp(1rem, 5vw, 3rem);
  --abstand: clamp(3rem, 8vw, 6rem);
  --rinne: clamp(1.5rem, 4vw, 4rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --papier:  #16181A;
    --flaeche: #1E2124;
    --tinte:   #E8E4DC;
    --tinte-2: #A9AEB3;
    --linie:   #33383D;
    --akzent:  #E08A6F;
  }
}

/* ---------- Grundlagen ---------- */

*,
*::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(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

p,
li,
dd {
  hyphens: auto;
  -webkit-hyphens: auto;
  text-wrap: pretty;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: manual;
}

h1,
h2 {
  font-family: var(--serif);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

h3 {
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
}

p,
ul,
ol,
dl {
  margin: 0;
}

strong {
  font-weight: 600;
}

/* ---------- Links und Fokus ---------- */

a {
  color: var(--akzent);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 120ms ease, text-decoration-color 120ms ease, border-color 120ms ease;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--akzent);
  outline-offset: 3px;
}

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

/* Ziel der Sprungmarke: Fokus ja, Rahmen um den ganzen Inhalt nein */
main:focus {
  outline: none;
}

/* Zum Inhalt springen – nur bei Fokus sichtbar */
.sprungmarke {
  position: absolute;
  top: 0.75rem;
  left: var(--rand);
  z-index: 10;
  padding: 0.5rem 0.875rem;
  background: var(--papier);
  color: var(--tinte);
  border: 1px solid var(--tinte);
  border-radius: 2px;
  transform: translateY(-200%);
}

.sprungmarke:focus {
  transform: none;
}

/* Zusammengehöriges nicht umbrechen (z. B. „E-Mail:“) */
.ohne-umbruch {
  white-space: nowrap;
}

/* ---------- Seitenrahmen ---------- */

.rahmen {
  max-width: calc(var(--breite) + 2 * var(--rand));
  margin-inline: auto;
  padding-inline: var(--rand);
}

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

.kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2.5rem;
  padding-block: 1.75rem 1.5rem;
  border-bottom: 1px solid var(--linie);
}

.marke {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.marke-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--tinte);
  text-decoration: none;
}

.marke-name:hover {
  color: var(--akzent);
}

.marke-zusatz {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--tinte-2);
}

.navigation ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  padding: 0;
  list-style: none;
}

.navigation a {
  font-weight: 500;
  color: var(--tinte);
  text-decoration-color: transparent;
}

.navigation a:hover {
  color: var(--akzent);
  text-decoration-color: currentColor;
}

.navigation a[aria-current="page"] {
  color: var(--akzent);
  text-decoration-color: currentColor;
}

/* ---------- Kopfbereich Startseite und Seitentitel ---------- */

.auftakt {
  display: grid;
  gap: 2.5rem var(--rinne);
  padding-block: var(--abstand);
}

.auftakt-text {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: 46rem;
}

.einleitung {
  max-width: var(--spalte);
  padding-left: 1.25rem;
  border-left: 2px solid var(--akzent);
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.5;
}

.aktionen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 0.5rem;
}

/* Einziger Rahmen-Link der Website */
.rahmen-link {
  display: inline-block;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--tinte);
  border-radius: 2px;
  color: var(--tinte);
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}

.rahmen-link:hover {
  border-color: var(--akzent);
  color: var(--akzent);
}

/* Steckbrief-Kasten. Platz für ein späteres Porträt (4:5, max. 280 px) oben im Kasten. */
.steckbrief {
  align-self: start;
  max-width: 30rem;
  padding: 1.5rem 1.5rem 1.625rem;
  background: var(--flaeche);
  border-radius: 2px;
}

.steckbrief img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin-bottom: 1.25rem;
  border-radius: 2px;
}

.steckbrief h2 {
  margin-bottom: 1rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--tinte-2);
}

.steckbrief dl {
  display: grid;
  gap: 0.875rem;
}

.steckbrief dt {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--tinte-2);
}

.steckbrief dd {
  margin: 0.1rem 0 0;
  line-height: 1.5;
}

/* Seitentitel der Unterseiten */
.seitentitel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-block: var(--abstand) calc(var(--abstand) * 0.75);
}

.seitentitel h1 {
  max-width: 46rem;
}

/* ---------- Abschnitte ---------- */

.abschnitt {
  display: grid;
  gap: 1.5rem var(--rinne);
  padding-block: var(--abstand);
  border-top: 1px solid var(--linie);
}

.abschnitt-kopf {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.abschnitt-inhalt {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: var(--spalte);
}

.vorspann {
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.5;
}

.untertitel {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--tinte-2);
}

.nebentext {
  font-size: 0.9375rem;
  color: var(--tinte-2);
}

.nachsatz {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--tinte-2);
}

/* Aufzählungen mit Gedankenstrich */
.liste {
  display: grid;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}

.liste li {
  position: relative;
  padding-left: 1.4em;
}

.liste li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--akzent);
}

/* Leistungen: Zeilen mit Linie, links Bereich, rechts Beschreibung */
.leistungen {
  display: grid;
}

.leistung {
  display: grid;
  gap: 1rem var(--rinne);
  padding-block: 2rem;
  border-top: 1px solid var(--linie);
}

.leistung:last-child {
  padding-bottom: 0;
}

.leistung-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: var(--spalte);
}

/* Grundsätze */
.grundsaetze {
  display: grid;
  gap: 2rem var(--rinne);
}

.grundsatz {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.weiter {
  margin-top: 0.5rem;
}

/* Kontakt */
.adresse-gross {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.3;
}

.adresse-gross a {
  text-decoration-thickness: 1px;
}

.adresse-gross a:hover {
  text-decoration-thickness: 2px;
}

/* ---------- Arbeitsweise: Ablauf ---------- */

.ablauf {
  display: grid;
  gap: 1.25rem;
  padding: 0;
  list-style: none;
  counter-reset: schritt;
}

.ablauf li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  counter-increment: schritt;
}

.ablauf li::before {
  content: counter(schritt) ".";
  padding-top: 0.2em;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  color: var(--tinte-2);
}

/* ---------- Rechtstexte ---------- */

.rechtstext {
  display: grid;
  gap: 2.5rem;
  max-width: var(--spalte);
  padding-bottom: var(--abstand);
}

.rechtstext section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rechtstext h2 {
  font-size: 1.35rem;
  line-height: 1.25;
}

.rechtstext address {
  font-style: normal;
}

.stand {
  font-size: 0.9375rem;
  color: var(--tinte-2);
}

/* ---------- Fehlerseite ---------- */

.fehler {
  padding-bottom: calc(var(--abstand) * 1.5);
}

.verweise {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  max-width: var(--spalte);
}

.verweise .trenner {
  color: var(--tinte-2);
}

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

.fuss {
  margin-bottom: clamp(1rem, 3vw, 2rem);
  padding: 1.5rem clamp(1.25rem, 3vw, 2rem);
  background: var(--flaeche);
  border-radius: 2px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--tinte-2);
}

.fuss ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  padding: 0;
  list-style: none;
}

.fuss a {
  color: var(--akzent);
}

.fuss-recht {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

/* ---------- Breite Schirme: asymmetrisches Raster ---------- */

@media (min-width: 48rem) {
  .auftakt {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: start;
  }

  .steckbrief {
    margin-top: 0.5rem;
  }

  .abschnitt,
  .leistung {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }

  .abschnitt > .abschnitt-kopf {
    grid-column: 1;
  }

  .abschnitt > .abschnitt-inhalt,
  .leistung > .leistung-text {
    grid-column: 2;
  }

  .abschnitt > .leistungen {
    grid-column: 1 / -1;
    margin-top: 1rem;
  }

  .leistung {
    padding-block: 2.5rem;
  }

  .leistung h3 {
    padding-top: 0.1rem;
  }

  .abschnitt-inhalt.breit {
    max-width: none;
  }

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

/* Grundsätze erst ab 64 rem zweispaltig, darunter ist die rechte Spalte zu schmal */
@media (min-width: 64rem) {
  .grundsaetze {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(1.5rem, 3vw, 3rem);
  }
}
