/* SELMAN – dunkles, ruhiges Design mit Lichtschlieren-Animation */

:root {
  --bg: #05060a;
  --text: #e8e6e1;
  --muted: #8b8a94;
  --line: rgba(255, 255, 255, 0.10);
  --accent: #ffb36b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ---------- Startseite ---------- */

/* Vollbild-Canvas; das CSS darunter ist zugleich der Fallback ohne WebGL */
#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background:
    radial-gradient(90rem 40rem at 15% 20%, rgba(64, 110, 255, 0.10), transparent 60%),
    radial-gradient(80rem 36rem at 85% 75%, rgba(255, 60, 45, 0.09), transparent 60%),
    var(--bg);
}

/* Wortmarke exakt in der Mitte des Fensters – waagerecht wie senkrecht */
.brand-head {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
  pointer-events: none;
}

.brand-head .brand { pointer-events: auto; }

/* Wortmarke „selman“ in Sekuya (Google Fonts, SIL Open Font License).
   Selbst gehostet – es gehen keine Anfragen an Google-Server. */
@font-face {
  font-family: "Sekuya";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/sekuya-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Sekuya";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/sekuya-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

.brand {
  font-family: "Sekuya", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(1.5rem, 5.6vw, 4.6rem);
  font-weight: 400;
  letter-spacing: 0.28em;
  /* Der Sperrsatz hängt hinter dem letzten Buchstaben einen
     Leerraum an – dieser Ausgleich hält die Marke optisch mittig. */
  margin-right: -0.28em;
  /* Sekuya ist eine Unicase-Schrift: nur Versalformen vorhanden */
  text-transform: uppercase;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
}

/* Starker Schatten nur auf der Startseite – dort steht die Marke vor der
   hellen Animation. Auf den Unterseiten wäre er als dunkler Fleck sichtbar. */
.brand-head .brand {
  display: inline-block;
  animation: brand-float 34s ease-in-out infinite;
  text-shadow:
    0 26px 60px rgba(0, 0, 0, 0.95),
    0 12px 30px rgba(0, 0, 0, 0.85),
    0 4px 12px rgba(0, 0, 0, 0.7);
}

@keyframes brand-float {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(6px, -5px); }
  50%  { transform: translate(0, 4px); }
  75%  { transform: translate(-6px, -3px); }
  100% { transform: translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .brand-head .brand { animation: none; }
}

.home footer { margin-top: auto; }

/* ---------- Footer (alle Seiten) ---------- */

footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: rgba(5, 6, 10, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.85rem;
}

footer .inner {
  max-width: 68rem;
  margin: 0 auto;
  padding: 1rem clamp(1.4rem, 4vw, 3rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
}

footer a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.1rem;
  transition: color 0.2s ease;
}

footer a:first-child { margin-left: 0; }
footer a:hover { color: var(--text); }

/* Auf schmalen Displays untereinander statt abgeschnitten */
@media (max-width: 34rem) {
  footer .inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    text-align: left;
  }
  footer .inner span:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.1rem;
  }
  footer a { margin-left: 0; }
}

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

.page-head {
  border-bottom: 1px solid var(--line);
}

.page-head .inner {
  max-width: 68rem;
  margin: 0 auto;
  padding: clamp(1.2rem, 3vw, 1.8rem) clamp(1.4rem, 4vw, 3rem);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.page-head .brand { font-size: 1.6rem; }

.page-head .back {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.page-head .back:hover { color: var(--text); }

.legal {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.4rem, 4vw, 3rem) 4rem;
  line-height: 1.7;
  flex: 1;
}

.legal h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 0.4rem;
}

.legal .stand {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2.2rem;
}

.legal h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 2rem 0 0.6rem;
  color: var(--text);
}

.legal p, .legal address {
  color: #c6c4be;
  font-style: normal;
  margin-bottom: 0.8rem;
}

.legal a { color: var(--accent); text-decoration: none; }
.legal a:hover { text-decoration: underline; }

.legal strong { color: var(--text); }
