/* =====================================================================
   HADIRO.de – Strophurus ciliaris ciliaris
   Zentrales Stylesheet für alle Seiten.
   Design: dunkel & mystisch, lila/türkise Auren, Quintessential-Font.
   ===================================================================== */

:root {
  --text: #e8e9f3;
  --text-dim: #8b90ad;
  --text-mute: #757a96;
  --aura: 130, 90, 230;      /* Lila-Akzent als RGB-Tripel */
  --accent: #b9a4ff;         /* helles Lila für Links/Akzente */
  --accent-2: #4fd6c9;       /* Türkis als Zweitakzent */
  --purple: #5a3cc0;
  --teal: #178a86;
  --line: rgba(180, 170, 230, .14);
  --card: rgba(22, 20, 42, .55);
  --card-solid: #12101f;
  --serif: "Quintessential", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1080px;
  --readw: 72ch;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: #010103;
  background:
    radial-gradient(70% 55% at 50% 10%, rgba(55,34,100,.28) 0%, transparent 70%),
    radial-gradient(circle at 12% 88%, rgba(14,70,70,.16) 0%, transparent 55%),
    radial-gradient(circle at 88% 22%, rgba(65,22,95,.18) 0%, transparent 55%),
    linear-gradient(165deg, #010103 0%, #04040c 55%, #010103 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.68;
  position: relative;
  overflow-x: hidden;
}

/* Langsam driftende Lichtschleier im Hintergrund */
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .20;
  z-index: -1;
  pointer-events: none;
}
body::before {
  width: 460px; height: 460px;
  background: var(--purple);
  top: -170px; left: -150px;
  animation: drift 24s ease-in-out infinite;
}
body::after {
  width: 400px; height: 400px;
  background: var(--teal);
  bottom: -160px; right: -140px;
  animation: drift 30s ease-in-out infinite reverse;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(60px, 40px) scale(1.12); }
}

/* ---------------------------------------------------------------------
   Kopfzeile / Navigation
   --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(4, 4, 12, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 1.2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: .04em;
  color: var(--text);
  white-space: nowrap;
}
.brand img { height: 1.5em; width: auto; filter: drop-shadow(0 0 8px rgba(var(--aura), .5)); }
.brand .brand-txt {
  background: linear-gradient(180deg, #ffffff 0%, #cdbcff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Kopf-Logo als Schriftzug mit Gecko-„I" (statt Symbol + Text) */
.brand-logo { gap: 0; overflow: visible; line-height: 1; }
.brand-logo .txt {
  background: linear-gradient(180deg, #ffffff 0%, #cdbcff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Cartoon-Gecko-Auge als i-Punkt (Kopf-Logo und Namens-Schriftzug) */
.gecko-i .eye-dot {
  position: absolute;
  top: -.24em;
  left: 44%;
  width: .17em;
  height: .17em;
  transform: translateX(-50%) rotate(-6deg);
  filter: drop-shadow(0 0 2px rgba(var(--aura), .5));
  z-index: 3;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: .4rem .6rem;
  font-size: 1.1rem;
  cursor: pointer;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .2rem;
  list-style: none;
}
.nav-links a {
  display: inline-block;
  text-decoration: none;
  color: var(--text-dim);
  font-size: .95rem;
  letter-spacing: .02em;
  padding: .4rem .7rem;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(var(--aura), .12); }
.nav-links a[aria-current="page"] {
  color: #fff;
  background: rgba(var(--aura), .18);
}

/* ---------------------------------------------------------------------
   Layout-Grundgerüst
   --------------------------------------------------------------------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.2rem; }

main { display: block; }

section { padding: 3.2rem 0; }
section + section { border-top: 1px solid var(--line); }

.prose { max-width: var(--readw); }
.prose p, .prose ul, .prose ol { margin-bottom: 1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .35rem; }
.prose a { color: var(--accent); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5.5vw, 3.1rem); letter-spacing: .02em; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.05rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.15rem, 2.6vw, 1.4rem); margin: 1.4rem 0 .6rem; color: #efeaff; }

.eyebrow {
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: .8rem;
  color: var(--accent-2);
  margin-bottom: .6rem;
}
.lede { font-size: 1.12rem; color: #d7d9ee; }
em.sci { font-style: italic; }

/* ---------------------------------------------------------------------
   Seiten-Kopf (Titelblock je Unterseite)
   --------------------------------------------------------------------- */
.page-head { padding: 3rem 0 1rem; text-align: center; }
.page-head .aura-wrap { position: relative; display: inline-block; }
.page-head h1 { filter: drop-shadow(0 0 22px rgba(var(--aura), .35)); }
.page-head .subtitle { color: var(--text-dim); margin-top: .5rem; font-style: italic; }

/* ---------------------------------------------------------------------
   Artüberschrift (Startseiten-Hero)
   --------------------------------------------------------------------- */
.species-hero {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 5.2vw, 3rem);
  line-height: 1.15;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #eef0ff;
  text-shadow: 0 0 26px rgba(var(--aura), .55);
  filter: drop-shadow(0 0 20px rgba(var(--aura), .3));
  margin: 0;
}
.species-hero .species-sci {
  display: block;
  margin-top: .5em;
  font-size: .5em;
  letter-spacing: .06em;
  text-transform: none;
  color: #cdbcff;
}
/* ---------------------------------------------------------------------
   Hero-Bereich der Startseite
   --------------------------------------------------------------------- */
.hero {
  text-align: center;
  padding: clamp(3rem, 10vh, 6rem) 0 3rem;
  position: relative;
}
.hero .aura {
  position: absolute;
  left: 50%; top: 42%;
  width: 60vmin; height: 60vmin;
  max-width: 560px; max-height: 560px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--aura), .26) 0%, transparent 68%);
  filter: blur(34px);
  z-index: -1;
  animation: aura 7s ease-in-out infinite;
}
@keyframes aura {
  0%, 100% { opacity: .45; transform: translate(-50%, -50%) scale(.9); }
  50%      { opacity: .9;  transform: translate(-50%, -50%) scale(1.1); }
}
.wordmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 9vw, 5.2rem);
  line-height: 1;
  filter: drop-shadow(0 0 26px rgba(var(--aura), .45));
}
.wordmark .txt {
  background: linear-gradient(180deg, #ffffff 0%, #cdbcff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gecko-i {
  position: relative; display: inline-block; flex: none;
  width: .56em; height: 1em; margin: 0 -.02em; top: .12em; left: -.075em;
}
.gecko-i img {
  position: absolute; left: 41%; top: 50%; height: 1em; width: auto;
  transform: translate(-50%, -50%) rotate(62deg);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.3));
}
.idot {
  position: absolute; top: -.22em; left: 52%;
  width: .17em; height: .13em;
  border-radius: 62% 38% 55% 45% / 62% 55% 45% 38%;
  transform: translateX(-50%) rotate(-15deg);
  background: linear-gradient(180deg, #ffffff 0%, #cdbcff 100%);
  z-index: 2;
}
.hero .species {
  font-family: var(--serif);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: clamp(.9rem, 2.6vw, 1.15rem);
  color: #d7d9ee;
  text-shadow: 0 0 22px rgba(var(--aura), .55);
  margin-top: 1.1rem;
}
.hero .species em { text-transform: none; letter-spacing: .04em; }
.hero .hero-sub { color: var(--text-dim); margin-top: .8rem; max-width: 46ch; margin-inline: auto; }

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.6rem; }
.btn {
  display: inline-block;
  text-decoration: none;
  font-size: .98rem;
  letter-spacing: .03em;
  padding: .7rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--aura), .5);
  color: #fff;
  background: rgba(var(--aura), .16);
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn:hover { background: rgba(var(--aura), .3); box-shadow: 0 0 20px rgba(var(--aura), .35); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--text-dim); }
.btn.ghost:hover { color: #fff; border-color: rgba(var(--aura), .5); }

/* ---------------------------------------------------------------------
   Kachel-Navigation (Startseite)
   --------------------------------------------------------------------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.tile {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.3rem 1.3rem 1.4rem;
  transition: transform .18s, border-color .2s, background .2s;
}
.tile:hover { transform: translateY(-3px); border-color: rgba(var(--aura), .45); background: rgba(30, 26, 56, .6); }
.tile .tile-ico { font-size: 1.6rem; display: block; margin-bottom: .5rem; }
.tile h3 { font-family: var(--serif); margin: 0 0 .3rem; font-size: 1.25rem; color: #fff; }
.tile p { color: var(--text-dim); font-size: .92rem; margin: 0; line-height: 1.5; }

/* ---------------------------------------------------------------------
   Karten & Steckbrief
   --------------------------------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.4rem 1.5rem;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.card h3 { margin-top: 0; }

.factsheet {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: .5rem 1.5rem;
}
.factsheet dl { display: grid; grid-template-columns: max-content 1fr; gap: .1rem 1.4rem; }
.factsheet dt {
  font-family: var(--serif);
  color: var(--accent-2);
  padding: .7rem 0;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.factsheet dd { padding: .7rem 0; border-bottom: 1px solid var(--line); color: var(--text); }
.factsheet dl > dt:last-of-type, .factsheet dl > dd:last-of-type { border-bottom: none; }

/* Hinweis-/Warnbox */
.note {
  border-left: 3px solid var(--accent-2);
  background: rgba(79, 214, 201, .07);
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.2rem;
  margin: 1.4rem 0;
  color: #d7d9ee;
  font-size: .96rem;
}
.note.warn { border-left-color: #e0a955; background: rgba(224, 169, 85, .08); }
.note strong { color: #fff; }

/* ---------------------------------------------------------------------
   Bilder & Galerie
   --------------------------------------------------------------------- */
.figure { margin: 1.6rem 0; }
.figure img, .figure .ph { width: 100%; border-radius: 14px; display: block; }
.figure figcaption { color: var(--text-mute); font-size: .85rem; margin-top: .5rem; text-align: center; }

/* Masonry-Layout: jedes Foto wird vollständig gezeigt (kein Beschnitt) */
.gallery {
  column-width: 260px;
  column-gap: 1rem;
}
.gitem {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  break-inside: avoid;
  margin: 0 0 1rem;
  display: inline-block;
  width: 100%;
}
.frame {
  position: relative;
  background:
    radial-gradient(circle at 50% 40%, rgba(var(--aura), .16), transparent 70%),
    #0a0913;
  overflow: hidden;
}
.frame img { width: 100%; height: auto; display: block; }
/* Platzhalter, wenn (noch) kein Foto vorhanden ist */
.frame .placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .5rem; text-align: center; padding: 1rem; width: 100%; height: 100%;
}
.frame .placeholder img {
  width: 46%; height: auto; opacity: .38;
  filter: grayscale(.2) drop-shadow(0 0 10px rgba(var(--aura), .3));
}
.frame .placeholder span { font-size: .8rem; color: var(--text-mute); letter-spacing: .04em; }
.gitem figcaption { padding: .7rem .9rem; font-size: .9rem; color: var(--text-dim); }
.badge {
  display: inline-block; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .15rem .5rem; border-radius: 999px; border: 1px solid var(--line);
  color: var(--accent-2); margin-bottom: .4rem;
}

/* ---------------------------------------------------------------------
   Intro/Willkommen-Abschnitt: volle Breite + Namens-Schriftzug
   --------------------------------------------------------------------- */
.intro-wide { padding-top: 4rem; }        /* kleiner Extra-Abstand zu den Kacheln */
.intro-wide .prose { max-width: none; }   /* Text so breit wie die Kachelreihe */
.name-show { text-align: center; margin-top: 1.4rem; }
.name-show .name-mark { margin: .4rem auto .5rem; }
.name-caption { color: var(--text-mute); font-size: .85rem; font-style: italic; }

/* ---------------------------------------------------------------------
   Fußzeile
   --------------------------------------------------------------------- */
.site-footer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  border-top: 1px solid var(--line);
  padding: .7rem 0;
  background: rgba(4, 4, 12, .93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
/* Platz für den unten fixierten Footer, damit kein Inhalt verdeckt wird */
body { padding-bottom: 5rem; }
@media (max-width: 560px) { body { padding-bottom: 6.5rem; } }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 1.2rem;
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  align-items: center; justify-content: space-between;
}
.footer-inner nav { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
.footer-inner a { color: var(--text-dim); text-decoration: none; font-size: .9rem; }
.footer-inner a:hover { color: var(--text); }
.footer-copy { color: var(--text-mute); font-size: .85rem; letter-spacing: .06em; }

/* Dezent pulsierender „Startseite"-Link im Footer der Unterseiten */
@keyframes footerHomePulse {
  0%, 100% { opacity: .6; text-shadow: none; }
  50%      { opacity: 1; text-shadow: 0 0 8px rgba(var(--aura), .7); }
}
.footer-home { animation: footerHomePulse 2.4s ease-in-out infinite; }
.footer-home:hover { animation: none; color: var(--text); }
@media (prefers-reduced-motion: reduce) { .footer-home { animation: none; } }

/* Spam-geschützte Mail: wird per JS zusammengesetzt */
.mail { color: var(--accent); text-decoration: none; word-break: break-word; }
.mail:hover { text-decoration: underline; }

/* ---------------------------------------------------------------------
   Responsiv
   --------------------------------------------------------------------- */
@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(6, 6, 16, .97);
    border-bottom: 1px solid var(--line);
    padding: .5rem 1rem 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .7rem .6rem; border-radius: 10px; font-size: 1rem; }
  .nav { position: relative; }
}

/* ---------------------------------------------------------------------
   Bewegungsreduzierung
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before, body::after, .hero .aura { animation: none; }
}
