/* Jonas Eiche (B. Sc.) - jonas-eiche.com
   Farben, Schriften und Masse stammen aus der bisherigen Baukastenseite.
   Eine Datei, keine Abhaengigkeiten nach aussen. */

/* --- Schriften -------------------------------------------------------
   Selbst ausgeliefert, auf Latin gekuerzt. Kein Aufruf zu Google, damit
   die Seite ohne Einwilligungsbanner auskommt. font-display:swap zeigt
   den Text sofort in der Ersatzschrift, statt ihn zu verstecken. */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("fonts/roboto-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("fonts/roboto-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --akzent: #0073b9;
  --akzent-dunkel: #0063a0;
  --akzent-hell: #4096cb;
  --dunkel: #002135;
  --dunkel-2: #023351;
  --hell: #ffffff;
  --grau: #f2f2f2;
  --grau-text: #bac8d1;
  --blau-hell: #d5e5ef;

  --schrift-text: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --schrift-titel: "Archivo", "Helvetica Neue", Arial, sans-serif;

  /* Fliessende Groessen wie in der Vorlage: waechst mit dem Fenster,
     bleibt aber innerhalb fester Grenzen. */
  --gr-h1: clamp(1.71rem, 2.362vw + 1.238rem, 3.156rem);
  --gr-h2: clamp(1.487rem, 1.537vw + 1.18rem, 2.428rem);
  --gr-h3: clamp(1.293rem, 0.938vw + 1.105rem, 1.867rem);

  --breite: 1200px;
  --gasse: clamp(1.25rem, 4vw, 3rem);
}

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

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

body {
  margin: 0;
  background: var(--hell);
  color: var(--dunkel);
  font-family: var(--schrift-text);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--schrift-titel);
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
}
h1 { font-size: var(--gr-h1); }
h2 { font-size: var(--gr-h2); }
h3 { font-size: var(--gr-h3); }

p { margin: 0; }

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

a { color: inherit; }

/* Sichtbarer Fokus fuer alle, die mit der Tastatur navigieren. Die
   Vorlage hatte keinen - das ist der einzige Punkt, an dem das neue
   Aussehen bewusst vom alten abweicht. */
:focus-visible {
  outline: 3px solid var(--akzent);
  outline-offset: 3px;
  border-radius: 2px;
}
.dunkel :focus-visible, .kopf :focus-visible {
  outline-color: var(--hell);
}

/* Sprungmarke zum Inhalt, nur mit der Tastatur erreichbar. */
.sprung {
  position: absolute; left: -9999px; top: 0; z-index: 10;
  background: var(--dunkel); color: var(--hell);
  padding: 0.75rem 1.25rem; text-decoration: none;
}
.sprung:focus { left: 0; }

.bahn { width: 100%; }
.mitte {
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: var(--gasse);
}

/* --- Kopf ------------------------------------------------------------ */
.kopf {
  background: linear-gradient(180deg, var(--akzent) 15%, var(--akzent-hell) 100%);
  color: var(--hell);
}
.kopf .mitte {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: clamp(1.25rem, 3vw, 2.25rem);
}
.marke {
  font-family: var(--schrift-titel);
  font-size: calc(var(--gr-h3) / 1.1);
  font-weight: 400;
  line-height: 1.1;
}
.marke a {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  text-decoration: none;
}
.marke a:hover span { text-decoration: underline; text-underline-offset: 0.2em; }

/* Das Signet im Kopf: dasselbe Zeichen wie im Browsertab, auf
   Zeilenhoehe des Namens. Leeres alt - es sagt nichts, was der Name
   nicht schon sagt, und soll vorgelesen uebersprungen werden. */
.marke .signet {
  width: 1.55em;
  height: 1.55em;
  flex: none;
}

/* --- Hauptteil ------------------------------------------------------- */
.buehne .mitte {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
@media (min-width: 48rem) {
  .buehne .mitte { grid-template-columns: 1fr 1fr; }
}

/* Nur das Foto fuellt die Spalte - das Signet darueber nicht, sonst
   gewinnt diese Regel gegen .signet und blaest es auf Bildgroesse auf. */
.buehne__bild picture img { width: 100%; }

/* Das Foto ist als Pfeil beschnitten. Auf der alten Seite zeigte er nach
   links; hier nach rechts - voran.

   Die Kerbe links und die Spitze rechts sind gleich tief (32 %), damit die
   Form durchgehend gleich dick wirkt. clip-path beschneidet nur die
   Anzeige: die Datei bleibt ein Quadrat, es geht also nichts verloren,
   wenn die Form spaeter wieder weg soll. */
.buehne__bild picture {
  display: block;
  clip-path: polygon(0 0, 68% 0, 100% 50%, 68% 100%, 0 100%, 32% 50%);
}

.buehne__text > * + * { margin-top: 1.25rem; }
.buehne__zeilen { color: var(--dunkel); }

.knopfreihe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Die Vorlage hatte hier <button>-Elemente, deren Ziel nur im
   JavaScript des Baukastens stand. Als Verweise erfuellen sie denselben
   Zweck, funktionieren aber auch ohne Skript. */
.knopf {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 13px 18px;
  border: 2px solid transparent;
  text-decoration: none;
  font-size: 0.9375rem;
  line-height: 1;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.knopf--voll { background: var(--akzent); color: var(--hell); }
.knopf--voll:hover, .knopf--voll:focus-visible { background: var(--akzent-dunkel); }
.knopf--rand { color: var(--dunkel); border-color: var(--dunkel); }
.knopf--rand:hover, .knopf--rand:focus-visible { background: var(--dunkel); color: var(--hell); }
.knopf svg { width: 1.1em; height: 1.1em; fill: currentColor; }

/* Impressum und Fehlerseite */
.text .mitte { padding-block: clamp(2.5rem, 6vw, 5rem); }
/* Der Text bleibt schmal, faengt aber an derselben Kante an wie der
   Name im Kopf - sonst steht die Seite optisch schief. */
.text .mitte > * { max-width: 48rem; }
.text h1 { margin-bottom: 1.5rem; }
.text address { font-style: normal; }
.text a { color: var(--akzent); }

/* --- Fuss ------------------------------------------------------------ */
.dunkel {
  background: var(--dunkel-2);
  color: var(--hell);
}
.dunkel .mitte { padding-block: clamp(2.5rem, 5vw, 4rem); }

.spalten {
  display: grid;
  gap: 2rem clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.spalte h2 {
  font-size: clamp(1.025rem, 0.204vw + 0.984rem, 1.15rem);
  margin-bottom: 0.75rem;
}
.spalte p, .spalte a { color: var(--hell); }
.spalte a { text-decoration: none; }
.spalte a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.spalte--ueber p:last-child { color: var(--blau-hell); }

.symbole { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.symbole a {
  display: inline-flex;
  width: 2.5rem; height: 2.5rem;
  align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.symbole a:hover, .symbole a:focus-visible {
  background: var(--akzent);
  border-color: var(--akzent);
}
.symbole svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }

.abschluss {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: center;
  align-items: center;
  color: var(--grau-text);
  font-size: 0.9375rem;
}
.abschluss a { color: var(--grau-text); }

/* --- Drucken ---------------------------------------------------------
   Die Seite ist eine Visitenkarte; sie soll auf Papier lesbar sein. */
@media print {
  .kopf { background: none; color: var(--dunkel); }
  .dunkel { background: none; color: var(--dunkel); }
  .dunkel .spalte p, .dunkel .spalte a, .abschluss, .abschluss a { color: var(--dunkel); }
  .knopfreihe, .symbole { display: none; }
  body { font-size: 11pt; line-height: 1.5; }
}

/* Wer Bewegung im Betriebssystem abbestellt hat, bekommt hier keine. */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
