/* Schriften: selbst gehostet, Lizenz (SIL OFL 1.1) in /fonts/ */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1c2541;          /* Marineblau: Text */
  --muted: #5b6377;
  --paper: #f7f5f0;        /* gebrochenes Weiß, wie Baumwolle */
  --card: #ffffff;
  --accent: #8b1e3f;       /* Bordeaux: Kontrastfarbe */
  --gold: #c9a227;         /* nur für die Aura am Porträt */
  --line: rgba(28, 37, 65, 0.14);
  /* Fischgrat-Kachel: links steigen die Linien, rechts fallen sie */
  --herringbone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cdefs%3E%3CclipPath id='l'%3E%3Crect width='12' height='24'/%3E%3C/clipPath%3E%3CclipPath id='r'%3E%3Crect x='12' width='12' height='24'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg fill='none' stroke='%231c2541' stroke-opacity='.09' stroke-width='1.1'%3E%3Cpath clip-path='url(%23l)' d='M0 6 12-6M0 12 12 0M0 18 12 6M0 24 12 12M0 30 12 18M0 36 12 24'/%3E%3Cpath clip-path='url(%23r)' d='M12-6 24 6M12 0 24 12M12 6 24 18M12 12 24 24M12 18 24 30M12 24 24 36'/%3E%3C/g%3E%3C/svg%3E");
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: 1rem;
  color-scheme: light;
}

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

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

/* Hintergrund: dezentes Fischgratmuster wie bei einem Hemdenstoff,
   zur Mitte hin aufgehellt, damit der Text ruhig steht. */
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 70% 60% at 50% 45%, var(--paper) 25%, rgba(247, 245, 240, 0) 100%),
    var(--herringbone);
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

main {
  flex: 1;
  width: 100%;
  padding: 0 var(--gutter);
}

/* Fußbereich: auf allen Seiten gleich */
.site-footer {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.75rem;
  padding: 1.5rem var(--gutter);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a[aria-current="page"] {
  color: var(--accent);
}

/* Startseite */
.home main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding-block: 3rem 1rem;
  text-align: center;
}

/* Porträt mit Rahmen; beim Überfahren: magische Aura und Lichtschein
   wie bei einer glänzenden Sammelkarte */
.portrait {
  position: relative;
  display: block;
  width: clamp(10rem, 42vw, 14rem);
  aspect-ratio: 1;
  border-radius: 50%;
  transition: transform 0.4s ease;
}

.portrait img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 0.4rem solid var(--card);
  box-shadow:
    0 0 0 1px var(--line),
    0 4px 10px rgba(28, 37, 65, 0.10),
    0 22px 44px -14px rgba(28, 37, 65, 0.40);
}

.portrait::before {
  content: "";
  position: absolute;
  inset: -0.6rem;
  border-radius: 50%;
  background: conic-gradient(var(--accent), var(--gold), var(--ink), var(--gold), var(--accent));
  filter: blur(12px);
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: aura 4s linear infinite paused;
}

.portrait::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0.4rem;
  border-radius: 50%;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.55) 50%, transparent 60%) no-repeat;
  background-size: 250% 100%;
  background-position: 100% 0;
  pointer-events: none;
}

.portrait:hover {
  transform: scale(1.03);
}

.portrait:hover::before {
  opacity: 0.8;
  animation-play-state: running;
}

.portrait:hover::after {
  background-position: 0 0;
  transition: background-position 0.9s ease;
}

@keyframes aura {
  to {
    transform: rotate(1turn);
  }
}

.home h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.75rem, 9vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.05;
}

/* feine Linie in der Kontrastfarbe unter dem Namen */
.home h1::after {
  content: "";
  display: block;
  width: 3rem;
  height: 2px;
  margin: 1.1rem auto 0;
  background: var(--accent);
}

.facts {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.75rem;
  font-size: clamp(0.95rem, 2.6vw, 1.05rem);
  color: var(--muted);
}

.facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.facts svg {
  flex: none;
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* W20 rollt beim Überfahren */
.facts .d20 {
  transition: transform 0.6s cubic-bezier(0.3, 1.4, 0.5, 1);
}

.facts li:hover .d20 {
  transform: rotate(360deg) scale(1.25);
}

/* E-Mail-Schutz: Köder-Text für Bots, für Menschen unsichtbar */
.mail-trap {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 6px 16px -8px rgba(28, 37, 65, 0.6);
  transition: background-color 0.2s;
}

.social svg {
  width: 1.15rem;
  height: 1.15rem;
}

.social:hover {
  background: var(--accent);
}

/* Textseiten (Impressum, Datenschutz): Inhalt auf einem hellen Blatt */
.site-header {
  padding: 1.5rem var(--gutter) 0;
  max-width: 46rem;
  width: 100%;
  margin: 0 auto;
}

.site-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
}

.site-name:hover {
  color: var(--accent);
}

main.text {
  flex: none;
  width: calc(100% - 2 * var(--gutter));
  max-width: 44rem;
  margin: 1.25rem auto 1rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 18px 40px -24px rgba(28, 37, 65, 0.35);
}

.text h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 6vw, 2.9rem);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 1.75rem;
}

.text h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 2.25rem 0 0.5rem;
}

.text h3 {
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 1.25rem 0 0.4rem;
}

.text p,
.text ul {
  margin: 0 0 0.75rem;
}

.text ul {
  padding-left: 1.25rem;
}

.text a {
  color: var(--accent);
}

address {
  font-style: normal;
}

/* Fehlerseite */
.nat1 {
  display: block;
  width: 6rem;
  height: 6rem;
  margin: 0 0 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .social,
  .facts .d20,
  .portrait {
    transition: none;
  }

  .facts li:hover .d20,
  .portrait:hover {
    transform: none;
  }

  .portrait::before {
    animation: none;
  }

  .portrait::after {
    display: none;
  }
}
