/* ===============================
   Font: TheSerif (lokal)
   =============================== */
@font-face {
  font-family: "TheSerif";
  src:
    url("/fonts/TheSerif-Regular.woff2") format("woff2"),
    url("/fonts/TheSerif-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TheSerif";
  src: url("/fonts/TheSerif-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "TheSerif";
  src: url("/fonts/TheSerif-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Farben / Designbasis */
:root {
  --bg: #0b1220;
  --card: rgba(255,255,255,0.06);
  --card-border: rgba(255,255,255,0.12);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.72);
  --accent: #6ea8ff;
  --shadow: 0 18px 60px rgba(0,0,0,0.35);
}

/* Basis */
* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  color: var(--text);
  font-family: "TheSerif", Georgia, "Times New Roman", serif;
  background:
    radial-gradient(1200px 600px at 15% 20%, rgba(110,168,255,0.22), transparent 60%),
    radial-gradient(900px 500px at 85% 25%, rgba(120,220,180,0.12), transparent 55%),
    radial-gradient(1000px 700px at 50% 90%, rgba(255,255,255,0.06), transparent 60%),
    var(--bg);
}

/* ===== Links ===== */
a,
a:visited {
  color: #7ea6e8; /* etwas dunkler als vorher */
  text-decoration-color: rgba(126, 166, 232, 0.45);
  text-underline-offset: 3px;
}

a:hover,
a:focus {
  color: #a9c4f5;
  text-decoration-color: rgba(169, 196, 245, 0.8);
}

a:active {
  color: #6b93d6;
}



/* Layout */
.wrap {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.card {
  position: relative;
  width: min(860px, 100%);
  min-height: 420px;

  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);

  padding: 72px 30px 28px;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  display: flex;
  flex-direction: column;
}

.wordmark {
  position: absolute;
  top: -18px;
  left: 28px;
  display: inline-block;
  padding: 10px 16px 11px;
  border-radius: 14px;
  background: rgba(8, 14, 26, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  color: var(--text);
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.footer-bar {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-nav {
  font-size: 14.5px;
}

.footer-nav a {
  text-decoration: none;
  color: rgba(255,255,255,0.7);
}

.footer-nav a:hover {
  color: rgba(255,255,255,0.95);
  text-decoration: underline;
}

.footer-nav .active {
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-nav span.separator {
  margin: 0 6px;
  opacity: 0.5;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: 0.4px;
  line-height: 1.15;
}

h2 {
  margin: 22px 0 8px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.subtitle,
.lead {
  margin-top: 4px;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 65ch;
}

.card.compact {
  min-height: 420px;
}

.card.tall {
  min-height: 500px;
}

.footer-row {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
}

footer {
  margin-top: 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 640px) {
  .card {
    min-height: auto;
    padding: 68px 22px 28px;
  }

  .wordmark {
    left: 20px;
    top: -16px;
    padding: 9px 14px 10px;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}