/* Stilblatt fuer andreameisner.com und thomasmeisner.com.
   Beide Auftritte teilen sich das Layout, nur --akzent unterscheidet sich.
   Werte am Ist-Stand gemessen (26.08.2026), nicht geschaetzt. */

:root {
  --akzent: #7890a8;
  --kopfbild: url("/assets/img/hintergrund-kopf.jpg");
  --kopf: #a4a4a4;
  --fuss: #ebebeb;
  --text: #000000;
  --leise: #666666;
  --flaeche: #ffffff;
  --linie: #cccccc;
  --breite: 1100px;
  --schrift: "Montserrat", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* Montserrat liegt lokal - kein Aufruf bei Google beim Seitenbesuch. */
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/montserrat-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/montserrat-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/montserrat-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/montserrat-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/montserrat-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+2C60-2C7F, U+A720-A7FF;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--flaeche);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 16px;
  line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--akzent); }

.huelle {
  width: 100%;
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 24px;
}

/* Tastaturbedienung: Sprungmarke sichtbar machen, sobald sie den Fokus hat */
.sprung {
  position: absolute;
  left: -9999px;
  background: var(--akzent);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.sprung:focus { left: 8px; top: 8px; }

/* Die H1 der Startseite. Sie steht als Text da, was das Logo als Bild zeigt -
   sichtbar waere sie doppelt. Bildschirmleser und Suchmaschinen lesen sie. */
.nur-vorlesen {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* ---------- Kopf ----------
   Die New Yorker Skyline liegt als Hintergrund unter Logo und Navigation und
   blendet nach unten in Weiss aus, so wie im Ist-Stand. Das Bild ist im Original
   stark aufgehellt - der Farbverlauf darf es deshalb nicht weiter aufhellen,
   sonst bleibt gar nichts davon uebrig. */

/* Masse am Original abgenommen (26.08.2026, 1440er Fenster):
   Kopf 713 hoch, Logo 480x250 mit 205 Abstand oben, Navigationsbalken 960 breit,
   63 hoch, Flaeche rgba(255,255,255,.9). Das Bild deckt den Kopf ganz aus. */
.kopf__bild {
  background-image: var(--kopfbild);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 713px;
  /* 60px unten: im Original endet die Navigation bei 653, der Kopf bei 713. */
  padding: 205px 24px 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.kopf__logo img {
  margin: 0 auto;
  width: min(480px, 84vw);
  height: auto;
}

.kopf__nav {
  margin-top: auto;
  width: min(960px, 100%);
  background: rgba(255, 255, 255, .9);
}

.kopf__navinhalt {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 34px;
  min-height: 63px;
  padding: 8px 20px;
}

.kopf__nav a {
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 0.06em;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
}

.kopf__nav a:hover,
.kopf__nav a:focus-visible { color: var(--akzent); }

.kopf__nav a[aria-current="page"] {
  color: var(--akzent);
  border-bottom-color: var(--akzent);
}

/* ---------- Abschnitte ---------- */

.abschnitt { padding: 46px 0 58px; }

.abschnitt__titel {
  margin: 0 auto 6px;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.08em;
  color: var(--leise);
}

/* Die Trennlinie traegt im Ist-Stand die Markenfarbe, nicht Grau. */
.abschnitt__linie {
  border: 0;
  border-top: 2px solid var(--akzent);
  margin: 18px auto 44px;
  max-width: var(--breite);
  opacity: .75;
}

/* ---------- Karten ---------- */

.karten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 46px 40px;
}

/* Bei genau vier Karten sonst ein haesslicher 3+1-Umbruch */
.karten--zwei { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); max-width: 760px; margin: 0 auto; }

.karte { display: flex; flex-direction: column; }

.karte__bild {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
  margin-bottom: 16px;
}

.karte__titel {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.karte__text {
  margin: 0 0 20px;
  text-align: justify;
  hyphens: auto;
  flex: 1;
}

.karte__knopf { align-self: center; }

/* ---------- Knopf ---------- */

.knopf {
  display: inline-block;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.07em;
  padding: 11px 20px;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.knopf:hover,
.knopf:focus-visible {
  background: var(--akzent);
  border-color: var(--akzent);
  color: #fff;
}

/* ---------- Über mich ---------- */

.person {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 40px;
  align-items: start;
}

/* Andreas Auftritt stellt das Bild breit ueber den Text statt daneben. */
.person--breit { grid-template-columns: 1fr; gap: 30px; }
.person--breit img { width: 100%; aspect-ratio: 950 / 420; object-fit: cover; }
.person--breit .person__text { max-width: 820px; margin: 0 auto; }

.person__text { text-align: justify; hyphens: auto; }
/* Unterschrift unter dem Grusswort - bleibt klein, sonst wirkt sie wie ein Bild. */
.person__signatur { display: block; width: auto; max-width: 260px; height: auto;
  margin: 8px 0 0; }
.person__text > p:first-child { margin-top: 0; }

/* ---------- Kontakt ---------- */

.formular {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.feld { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: start; }
.feld label { padding-top: 9px; font-size: 15px; }

.feld input,
.feld textarea {
  font: inherit;
  font-size: 15px;
  padding: 9px 11px;
  border: 1px solid var(--linie);
  background: #fff;
  width: 100%;
}

.feld textarea { min-height: 150px; resize: vertical; }

.feld input:focus-visible,
.feld textarea:focus-visible { outline: 2px solid var(--akzent); outline-offset: 1px; }

.formular__hinweis { font-size: 14px; color: var(--leise); margin: 0; }
.formular__aktion { display: flex; justify-content: flex-start; }
.formular button.knopf { font-family: inherit; }

/* Köderfeld gegen automatische Einträge - nur für Maschinen sichtbar. */
.koeder { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.formular__melden { margin: 0; font-size: 15px; min-height: 1.4em; }
.formular__melden.gut { color: #1c6b35; font-weight: 600; }
.formular__melden.schlecht { color: #a32020; font-weight: 600; }

/* ---------- Rechtstexte ---------- */

.rechtstext { max-width: 820px; margin: 0 auto; }
.rechtstext h1 { font-size: 22px; }
.rechtstext h2 { font-size: 18px; margin-top: 32px; }
.rechtstext p { margin: 0 0 14px; }

/* ---------- Beiträge ---------- */

.beitrag { max-width: 820px; margin: 0 auto; }
.beitrag__datum { color: var(--leise); font-size: 14px; }
.beitragsliste { list-style: none; padding: 0; max-width: 820px; margin: 0 auto; }
.beitragsliste li { padding: 14px 0; border-bottom: 1px solid var(--linie); }

/* ---------- Fuss ---------- */

/* Der Fuss traegt dasselbe Bild wie der Kopf (Wunsch Nina, 26.08.2026). Darueber
   ein heller Schleier: das Bild bleibt erkennbar, der Text lesbar. */
.fuss {
  background-image:
    linear-gradient(rgba(255, 255, 255, .78), rgba(255, 255, 255, .78)),
    var(--kopfbild);
  background-size: cover, cover;
  background-position: center center, center bottom;
  background-repeat: no-repeat, no-repeat;
  margin-top: 40px;
  padding: 44px 0 34px;
  text-align: center;
  font-size: 14px;
  color: #4a4a4a;
}

.fuss p { margin: 4px 0; }
.fuss__nav { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.fuss__nav a { color: var(--leise); }
.fuss a:hover { color: var(--akzent); }
.fuss__recht { margin-top: 12px; font-size: 13px; }


/* ---------- Bewegung, zurückhaltend ---------- */

/* Der Unsichtbar-Zustand haengt an der js-Klasse. Ohne JavaScript steht der
   Inhalt sofort da - sonst waere die Seite leer, wenn das Skript nicht laedt. */
.js .einblenden {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.js .einblenden.sichtbar { opacity: 1; transform: none; }

/* Wer im Betriebssystem weniger Bewegung eingestellt hat, bekommt die Seite ruhig. */
@media (prefers-reduced-motion: reduce) {
  .js .einblenden { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Schmale Bildschirme ---------- */

@media (max-width: 720px) {
  /* Auf dem Handy waeren 713px Kopf fast der ganze Bildschirm, bevor der erste
     Satz kommt - die Hoehe schrumpft mit, das Bild bleibt. */
  .kopf__bild { min-height: 62vh; padding-top: 54px; }
  .kopf__logo img { width: min(340px, 80vw); }
  .person { grid-template-columns: 1fr; gap: 24px; }
  .feld { grid-template-columns: 1fr; gap: 6px; }
  .feld label { padding-top: 0; }
  .karte__text, .person__text { text-align: left; }
  .kopf__nav { gap: 6px 18px; }
  .kopf__nav a { font-size: 14px; }
}
