/*
 * Website stammtisch3d.de (Phase 10) – reines CSS, kein Build.
 * Farben wie in der App (P0.15, apps/app/src/global.css): Papier #FAF7F0, Tinte #1A1714,
 * Bernstein #A3620F (Knopf); dunkel Nacht #14110E mit Gold #E0A93B.
 * Hell oder dunkel richtet sich nach der Einstellung des Geräts.
 */

/* Oswald SemiBold (SIL Open Font License, fonts/OFL.txt), nur lateinische Zeichen mit Umlauten */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/oswald-600.woff2') format('woff2');
}

:root {
  color-scheme: light dark;
  --grund: #faf7f0; /* Papier */
  --text: #1a1714; /* Tinte */
  --leise: #635c55;
  --akzent: #a3620f; /* Bernstein */
  --knopf: #a3620f;
  --knopf-hover: #8a530d;
  --knopf-text: #ffffff;
  --schrift: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --titel: 'Oswald', 'Arial Narrow', 'Roboto Condensed', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --grund: #14110e; /* Nacht */
    --text: #f3eee4;
    --leise: #b1aba0;
    --akzent: #e0a93b; /* Gold */
    --knopf: #e0a93b;
    --knopf-hover: #eab95c;
    --knopf-text: #1d1207;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--grund);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: var(--akzent);
  text-underline-offset: 0.15em;
}

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

/* Startseite: Logo mittig, darunter „Zur App“ */
.start {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* auf niedrigen Bildschirmen (Handy quer) enger, damit nichts scrollt */
  gap: clamp(1.5rem, 5vh, 2.5rem);
  padding: clamp(1.5rem, 6vh, 3rem) 1.5rem;
  text-align: center;
}

.logo {
  margin: 0;
  line-height: 0;
}

.logo img {
  display: block;
  width: min(72vw, 48vh, 22rem);
  width: min(72vw, 48svh, 22rem);
  height: auto;
}

.knopf {
  display: inline-block;
  padding: 0.7em 2.2em;
  border-radius: 0.75rem;
  background: var(--knopf);
  color: var(--knopf-text);
  font-family: var(--titel);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.knopf:hover {
  background: var(--knopf-hover);
}

@media (prefers-reduced-motion: no-preference) {
  .knopf {
    transition: background-color 0.15s ease;
  }
}

/* Fehlerseite (404.html) */
.start h1 {
  margin: 0;
  font-family: var(--titel);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.2;
}

.start p {
  margin: 0;
  max-width: 28rem;
  color: var(--leise);
}

.logo-klein img {
  display: block;
  width: 7rem;
  height: auto;
}

/* Impressum und Datenschutz (P10.4): kleines Logo oben, führt zur Startseite */
.kopf {
  display: flex;
  justify-content: center;
  padding: 1.5rem 1rem 0;
}

.kopf img {
  display: block;
  width: 4.5rem;
  height: auto;
}

.seite {
  flex: 1;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: 1rem 1.25rem 2.5rem;
}

.seite h1,
.seite h2 {
  font-family: var(--titel);
  font-weight: 600;
  line-height: 1.2;
}

.seite h1 {
  margin: 0.5rem 0 1.5rem;
  font-size: 2.25rem;
}

.seite h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.375rem;
}

.seite p {
  margin: 0 0 1rem;
}

/* lange Adressen dürfen auf dem Handy umbrechen */
.seite a {
  overflow-wrap: anywhere;
}

.einleitung {
  font-size: 1.125rem;
}

.stand {
  margin-top: 2.5rem;
  color: var(--leise);
  font-size: 0.875rem;
}

/* Persönliche Angaben, die Pascal noch eintragen muss – solange eine da ist, veröffentlicht die
   CI die Website nicht (Job Deployment Website) */
.platzhalter {
  padding: 0 0.25em;
  border-radius: 0.25em;
  outline: 1px dashed #a3620f;
  background: #fde68a;
  color: #1a1714;
}

/* Fußzeile auf jeder Seite */
.fuss {
  padding: clamp(0.5rem, 2vh, 1rem) 1rem;
  padding-bottom: calc(clamp(0.5rem, 2vh, 1rem) + env(safe-area-inset-bottom));
  font-size: 0.875rem;
}

.fuss nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

/* mindestens 24 px hoch zum Antippen */
.fuss a {
  display: inline-block;
  padding: 0.25rem 0;
  color: var(--leise);
  text-decoration: none;
}

.fuss a:hover,
.fuss a[aria-current='page'] {
  color: var(--text);
  text-decoration: underline;
}
