/* ==========================================================================
   PURPOSE IN PROGRESS - Platzhalterseite
   Minimalistisch, monochrom, Open Sans (lokal gehostet).
   Keine externen Requests, keine Cookies, kein Tracking.
   ========================================================================== */

@import url('fonts.css');

/* --- Design-Tokens ------------------------------------------------------ */
:root {
  --bg:            #ffffff;
  --bg-subtle:     #f5f5f4;
  --fg:            #111111;
  --fg-muted:      #6b6b6b;
  --fg-faint:      #9a9a9a;
  --rule:          #e4e4e2;
  --rule-strong:   #111111;
  --dot:           #a0a0a0;

  --step--1: clamp(0.8125rem, 0.79rem + 0.11vw, 0.875rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1:  clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  --step-3:  clamp(1.75rem, 1.35rem + 1.9vw, 2.75rem);

  --measure: 34rem;
  --gutter:  clamp(1.5rem, 6vw, 5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #0d0d0d;
    --bg-subtle:   #171717;
    --fg:          #f2f2f0;
    --fg-muted:    #9c9c9a;
    --fg-faint:    #6e6e6c;
    --rule:        #262625;
    --rule-strong: #f2f2f0;
    --dot:         #7a7a78;
  }
}

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

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

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 7vh, 4.5rem) var(--gutter);
  background: var(--bg);
  color: var(--fg);
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Wortmarke / Logo --------------------------------------------------- */
.masthead {
  /* Kein 'margin-bottom: auto': das schob den Inhalt in die Fenstermitte und
     riss ihn auf hohen Bildschirmen von der Wortmarke los. */
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

/* --- Sprachumschalter ---------------------------------------------------- */
.lang {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-top: 0.2rem;
}

.lang a {
  color: var(--fg-faint);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.lang a:hover,
.lang a:focus-visible {
  color: var(--fg);
  border-bottom-color: var(--rule-strong);
}

/* Die aktive Sprache ist Zustandsanzeige, kein Link. */
.lang [aria-current="true"] {
  color: var(--fg);
  cursor: default;
}

.lang .sep {
  color: var(--rule);
}

/* Auf Rechtstextseiten nicht vom Fliesstext-Linkstil erfassen lassen. */
.legal .lang a { border-bottom-color: transparent; }
.legal .lang a:hover { border-bottom-color: var(--rule-strong); opacity: 1; }

.wordmark {
  display: inline-block;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  line-height: 1.4;
}

/* Sobald die Logodatei vorliegt: <img class="logo"> im HTML einkommentieren. */
.logo {
  display: block;
  width: auto;
  height: clamp(1.9rem, 5vw, 2.6rem);
}

@media (prefers-color-scheme: dark) {
  .logo { filter: invert(1); }  /* schwarzes Logo auf dunklem Grund */
}

/* --- Hauptbereich ------------------------------------------------------- */
main {
  max-width: var(--measure);
  padding: clamp(2.5rem, 7vh, 4rem) 0 clamp(2rem, 5vh, 3rem);
}

.status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.75rem;
  font-size: var(--step--1);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dot);
  flex: none;
}

h1 {
  margin: 0 0 1.75rem;
  font-size: var(--step-3);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

p {
  margin: 0 0 1.25rem;
  color: var(--fg-muted);
  text-wrap: pretty;
}

p.lead {
  font-size: var(--step-1);
  font-weight: 300;
  line-height: 1.55;
  color: var(--fg);
}

/* --- Kontaktwege -------------------------------------------------------- */
.channels {
  list-style: none;
  /* Dicht genug am ankuendigenden Satz, damit der Bezug erhalten bleibt. */
  margin: 2.25rem 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.channels li { border-bottom: 1px solid var(--rule); }

.channels a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.05rem 0;
  color: var(--fg);
  text-decoration: none;
  transition: opacity 0.2s ease, padding-left 0.2s ease;
}

.channels a:hover,
.channels a:focus-visible { padding-left: 0.5rem; }

.channels .label {
  flex: 1;
  font-weight: 400;
}

.channels .meta {
  font-size: var(--step--1);
  color: var(--fg-faint);
}

.channels .arrow {
  font-size: var(--step--1);
  color: var(--fg-faint);
  transition: transform 0.2s ease, color 0.2s ease;
}

.channels a:hover .arrow,
.channels a:focus-visible .arrow {
  transform: translateX(3px);
  color: var(--fg);
}

/* --- Footer ------------------------------------------------------------- */
footer {
  margin-top: auto;
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  font-size: var(--step--1);
  color: var(--fg-faint);
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

footer a {
  color: var(--fg-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

footer a:hover,
footer a:focus-visible {
  color: var(--fg);
  border-bottom-color: var(--rule-strong);
}

footer .spacer { flex: 1; }

/* --- Rechtstexte (Impressum / Datenschutz) ------------------------------ */
.legal {
  max-width: 42rem;
  padding: clamp(2.5rem, 8vh, 4.5rem) 0 clamp(3rem, 8vh, 5rem);
}

.legal h1 {
  margin-top: 0;
  margin-bottom: 2.5rem;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
}

.legal h2 {
  margin: 2.75rem 0 0.85rem;
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--fg);
}

.legal h3 {
  margin: 1.75rem 0 0.6rem;
  font-size: var(--step-0);
  font-weight: 600;
  color: var(--fg);
}

.legal p, .legal li { color: var(--fg-muted); }

.legal ul { margin: 0 0 1.25rem; padding-left: 1.1rem; }
.legal li { margin-bottom: 0.4rem; }

.legal a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
}

.legal a:hover { opacity: 0.6; }

/* Hinweis auf die Massgeblichkeit der deutschen Fassung */
.legal .note {
  margin: 0 0 2.5rem;
  padding: 0.9rem 0 0.9rem 1.1rem;
  border-left: 2px solid var(--rule);
  font-size: var(--step--1);
  line-height: 1.6;
  color: var(--fg-faint);
}

.legal .note a { border-bottom-color: var(--rule); }

.legal .updated {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: var(--step--1);
  color: var(--fg-faint);
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  font-size: var(--step--1);
  color: var(--fg-muted);
  text-decoration: none;
}

/* Der Zurueck-Link ist Navigation, kein Fliesstext-Link: keine Unterlaengen-Linie. */
.legal a.back { border-bottom: none; }

.back:hover { color: var(--fg); opacity: 1; }

/* --- A11y & Motion ------------------------------------------------------ */
:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  border-radius: 2px;
}

.fade {
  animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.fade:nth-child(1) { animation-delay: 0.05s; }
.fade:nth-child(2) { animation-delay: 0.12s; }
.fade:nth-child(3) { animation-delay: 0.19s; }
.fade:nth-child(4) { animation-delay: 0.26s; }
.fade:nth-child(5) { animation-delay: 0.33s; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body { padding: 0; color: #000; background: #fff; }
  .channels a { padding-left: 0; }
}
