/* moonquito.de – Nacht-Modus. Reines CSS, keine Scripts. */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-display.woff2") format("woff2");
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette laut Brand-Guide */
  --moon-night: #141A2E;
  --dusk-indigo: #2B3160;
  --mist-slate: #6B7A99;
  --lantern-amber: #F2B66D;
  --wing-cream: #F4EDE0;
  --reed-sage: #8FA88A;
  --heather-mauve: #B79BC7;
  --ember-rose: #D98C7A;

  --bg: var(--moon-night);
  --text: var(--wing-cream);
  --text-2: rgba(244, 237, 224, 0.72);
  --line: rgba(244, 237, 224, 0.14);
  --card: rgba(43, 49, 96, 0.38);

  --font-text: "Manrope", "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;

  --max: 66rem;
  --pad: clamp(1.25rem, 5vw, 3rem);
  --space: clamp(3.5rem, 9vw, 6.5rem);
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 100%;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

::selection { background: var(--lantern-amber); color: var(--moon-night); }

a { color: var(--lantern-amber); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--wing-cream); }
a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--wing-cream);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 350;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0 0 1rem;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 5vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 3vw, 1.6rem); }
p { margin: 0 0 1rem; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(100% - 2 * var(--pad), var(--max)); margin-inline: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--bg); }
.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 55% 50%;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to bottom, rgba(20, 26, 46, 0) 0%, rgba(20, 26, 46, 0.82) 70%, var(--moon-night) 100%);
  pointer-events: none;
}
.hero__text {
  position: relative;
  margin-top: -3.5rem;
  padding: 0 var(--pad) 1.5rem;
}
.wm-accent { color: var(--lantern-amber); }
.wordmark {
  font-family: var(--font-display);
  font-weight: 340;
  font-size: clamp(3.4rem, 15vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  margin: 0 0 0.85rem;
  text-shadow: 0 2px 28px rgba(20, 26, 46, 0.75);
}
.claim, .claim-en { text-shadow: 0 1px 14px rgba(20, 26, 46, 0.85); }
.claim {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 500;
  line-height: 1.35;
  max-width: 24ch;
  margin: 0 0 0.5rem;
}
.claim-en {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: var(--text-2);
  letter-spacing: 0.01em;
  margin: 0;
}

@media (min-width: 48rem) {
  .hero__media img {
    aspect-ratio: 16 / 9;
    max-height: 88vh;
    object-position: 62% 45%;
  }
  .hero__media::after { height: 28%; }
  .hero__text {
    position: absolute;
    top: clamp(2.5rem, 9vh, 7rem);
    left: max(var(--pad), calc((100vw - var(--max)) / 2));
    margin: 0;
    padding: 0;
    width: min(100% - 2 * var(--pad), 44rem);
  }
  .wordmark { font-size: clamp(4rem, 8vw, 7rem); }
}

/* ---------- Abschnitte ---------- */
.section { padding: var(--space) 0; }
.section--tight { padding-top: calc(var(--space) * 0.5); }
.section + .section { border-top: 1px solid var(--line); }
.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--text-2); }

/* Buttons zu den Profilen */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding: 0;
  list-style: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.45rem;
  border-radius: 999px;
  background: var(--lantern-amber);
  color: var(--moon-night);
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 10px 26px -14px rgba(242, 182, 109, 0.75);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover, .btn:focus-visible {
  color: var(--moon-night);
  background: #F6C687;
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(242, 182, 109, 0.16), 0 12px 30px -12px rgba(242, 182, 109, 0.8);
}
.btn:active { transform: translateY(0); }

/* Mygge */
.mygge {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.mygge__img {
  width: min(56vw, 220px);
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(244, 237, 224, 0.1), 0 24px 60px -30px rgba(242, 182, 109, 0.5);
}
@media (min-width: 40rem) {
  .mygge { grid-template-columns: auto 1fr; gap: 3rem; }
}
.mygge__btn {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  display: block;
  width: min(56vw, 220px);
  color: inherit;
  font: inherit;
}
.mygge__btn:focus-visible { outline: 3px solid var(--wing-cream); outline-offset: 5px; }
.mygge__btn .mygge__img { width: 100%; transition: opacity 0.35s ease, transform 0.35s ease; }
.mygge__btn:hover .mygge__img { transform: translateY(-3px); }
.mygge__btn.is-away .mygge__img { opacity: 0; transform: scale(0.88); }
.mygge__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(242, 182, 109, 0.55);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.mygge__btn.is-away::after { opacity: 1; }
.mygge__nest {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  color: var(--mist-slate);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.mygge__btn.is-away .mygge__nest { opacity: 1; }
.mygge__hint { font-size: 0.9rem; color: var(--mist-slate); margin-top: 0.85rem; }

/* fliegende Mygge */
.mygge-fly {
  position: fixed;
  left: 0;
  top: 0;
  width: clamp(96px, 12vw, 150px);
  z-index: 50;
  pointer-events: none;
  will-change: transform;
  filter: drop-shadow(0 14px 22px rgba(20, 26, 46, 0.6));
}
.mygge-fly[hidden] { display: none; }
.mygge-fly img { width: 100%; height: auto; display: block; }
.mygge-fly::after {
  content: "";
  position: absolute;
  left: -8%;
  bottom: -2%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 182, 109, 0.5) 0%, rgba(242, 182, 109, 0) 68%);
  animation: mq-flicker 1.4s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes mq-flicker {
  from { opacity: 0.55; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .mygge-fly::after { animation: none; }
  .mygge__btn:hover .mygge__img { transform: none; }
}

/* Karten */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  max-width: 40rem;
}
.card--placeholder { border-style: dashed; }
.tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--heather-mauve);
  margin-bottom: 0.5rem;
}

/* Neu: Zwei-Klick-Einbettungen */
.news {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
@media (min-width: 52rem) {
  .news { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; }
}
.embed {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  background: var(--card);
  aspect-ratio: 16 / 9;
}
.embed--portrait { aspect-ratio: 4 / 5; }
.embed__bg { position: absolute; inset: 0; margin: 0; }
.embed__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.62; }
.embed__panel {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.55rem;
  padding: clamp(1rem, 3vw, 1.6rem);
  background: linear-gradient(to top, rgba(20, 26, 46, 0.94) 32%, rgba(20, 26, 46, 0.12) 100%);
}
.embed__panel h3 { margin: 0; }
.embed__note { font-size: 0.85rem; line-height: 1.5; color: var(--text-2); max-width: 48ch; margin: 0; }
.embed__note a { color: var(--lantern-amber); }
.embed__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.1rem; margin-top: 0.2rem; }
.embed__alt { font-size: 0.9rem; }
.embed__load { min-height: 2.6rem; padding: 0.55rem 1.2rem; font-size: 0.95rem; cursor: pointer; border: 0; font-family: inherit; }
/* solange noch nichts da ist (data-ready="false"): nur Hinweis und Link, kein Lade-Button */
.embed[data-ready="false"] .embed__load,
.embed[data-ready="false"] .embed__note--consent { display: none; }
.embed:not([data-ready="false"]) .embed__note--soon { display: none; }
.embed.is-loaded { aspect-ratio: auto; background: #000; }
.embed.is-loaded iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.embed--portrait.is-loaded iframe { aspect-ratio: auto; height: 640px; background: #fff; }

/* Kontakt */
.contact {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.5vw, 2.4rem);
  font-weight: 350;
  letter-spacing: -0.01em;
  word-break: break-word;
}
.contact a { text-decoration-thickness: 2px; }

/* FAQ */
.faq { max-width: 44rem; border-bottom: 1px solid var(--line); margin-top: 1.5rem; }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  font-weight: 600;
  font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(242, 182, 109, 0.5);
  color: var(--lantern-amber);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 1.4rem; color: var(--text-2); }
.faq .answer p { max-width: 60ch; }

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.25rem 0 3rem;
  font-size: 0.92rem;
  color: var(--text-2);
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.footer a { color: inherit; }
.footer a:hover { color: var(--wing-cream); }

/* ---------- Unterseiten ---------- */
.topbar { padding: 1.25rem 0; }
.topbar a {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 350;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.topbar a:hover { color: var(--lantern-amber); }
.topbar a:hover .wm-accent { color: var(--wing-cream); }
.prose { max-width: 44rem; padding-bottom: var(--space); }
.prose h1 { font-size: clamp(2.4rem, 6vw, 3.5rem); margin: 1rem 0 1.5rem; }
.prose h2 { font-size: clamp(1.5rem, 3.5vw, 1.9rem); margin-top: 2.5rem; }
.prose p, .prose li { color: var(--text-2); }
.prose ul { padding-left: 1.2rem; }
.prose address { font-style: normal; color: var(--text); line-height: 1.7; }
.placeholder {
  display: inline-block;
  padding: 0.05em 0.45em;
  border: 1px dashed var(--ember-rose);
  border-radius: 0.4em;
  background: rgba(217, 140, 122, 0.12);
  color: var(--wing-cream);
  font-weight: 600;
}
.note {
  border-left: 3px solid var(--reed-sage);
  padding: 0.25rem 0 0.25rem 1rem;
  color: var(--text-2);
  margin: 1.5rem 0;
}
.stand { font-size: 0.9rem; color: var(--mist-slate); }

/* 404 */
.oops { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.oops h1 { font-size: clamp(2.5rem, 8vw, 5rem); }
