/* Elmar Sander – Übergangsseite */

:root {
  --blau: #172F55;
  --gold: #C4A05F;
  --grau: #6E7380;
  --weiss: #ffffff;
  --rand: clamp(1.5rem, 5vw, 5rem);
}

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

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

body {
  margin: 0;
  background: var(--weiss);
  color: var(--blau);
  font-family: "filson-pro", system-ui, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

/* ---------- Grundgerüst ---------- */

.seite {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 100%;
  max-width: 82rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3.5rem) var(--rand);
}

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

.logo { display: block; line-height: 0; }
.logo img {
  display: block;
  width: clamp(170px, 20vw, 270px);
  height: auto;
}

/* ---------- Sprachumschalter ---------- */

.sprache {
  display: flex;
  align-items: center;
  gap: .25rem;
  font-size: .875rem;
  color: var(--grau);
}
.sprache button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: .5rem .4rem;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  letter-spacing: .06em;
}
.sprache button[aria-pressed="true"] { color: var(--blau); font-weight: 500; }
.sprache button:hover { color: var(--blau); }

/* ---------- Inhalt ---------- */

.inhalt {
  align-self: center;
  padding: clamp(3rem, 8vh, 6rem) 0;
  max-width: 54rem;
}

h1 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(1.75rem, 1rem + 4vw, 4.25rem);
  line-height: 1.12;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.subline {
  margin: clamp(.75rem, 1.5vw, 1.25rem) 0 0;
  font-size: clamp(1rem, .9rem + .6vw, 1.375rem);
}

.schlagworte {
  list-style: none;
  margin: clamp(2rem, 5vh, 3.5rem) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 0;
  margin-left: -1.8rem;
  clip-path: inset(-1rem -1rem -1rem 1.8rem);
  color: var(--gold);
  font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem);
  letter-spacing: .01em;
}
.schlagworte li { opacity: 0; transform: translateY(8px); transition: opacity 1s ease, transform 1s ease; }
.schlagworte li.sichtbar { opacity: 1; transform: none; }
.schlagworte li::before { content: "·"; display: inline-block; width: 1.8rem; text-align: center; }

.knoepfe {
  margin-top: clamp(2rem, 5vh, 3rem);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .75rem 1.5rem;
  border-radius: 8px;
  border: 1.5px solid var(--blau);
  font-size: 1rem;
  text-decoration: none;
  transition: background-color .25s ease, color .25s ease;
}
.knopf--voll { background: var(--blau); color: var(--weiss); }
.knopf--voll:hover { background: #22417a; border-color: #22417a; }
.knopf--rand { background: transparent; color: var(--blau); }
.knopf--rand:hover { background: var(--blau); color: var(--weiss); }

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

.fuss {
  display: flex;
  gap: 1.5rem;
  font-size: .875rem;
  color: var(--grau);
}
.fuss a { text-decoration: none; padding: .5rem 0; }
.fuss a:hover { color: var(--blau); text-decoration: underline; }

/* ---------- Wellen ---------- */

#wellen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */

.text {
  padding: clamp(3rem, 8vh, 5rem) 0;
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.65;
}
.text h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); margin-bottom: 2rem; }
.text h2 { font-size: 1.2rem; font-weight: 500; margin: 2.25rem 0 .5rem; }
.text h3 { font-size: 1rem; font-weight: 500; margin: 1.5rem 0 .25rem; }
.text p, .text ul { margin: 0 0 1rem; }
.text ul { padding-left: 1.25rem; }
.text .zurueck { display: inline-block; margin-top: 2.5rem; color: var(--blau); }
.platzhalter { background: #fff3cd; padding: 0 .2em; }

/* ---------- Kleine Bildschirme ---------- */

@media (max-width: 480px) {
  .knoepfe { flex-direction: column; align-items: stretch; }
  .knopf { width: 100%; }
}

/* ---------- Weniger Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
  .schlagworte li { opacity: 1; transform: none; transition: none; }
  #wellen { display: none; }
}
