:root {
  color-scheme: dark;
  --bg-void: #070102;
  --bg-deep: #130204;
  --bg-panel: rgba(19, 3, 6, 0.78);
  --bg-panel-strong: rgba(10, 1, 3, 0.9);
  --border-soft: rgba(255, 112, 86, 0.22);
  --border-strong: rgba(255, 138, 98, 0.5);
  --accent-soft: #ff9275;
  --accent-main: #ff6542;
  --accent-strong: #c11a0f;
  --text-main: #f8e7df;
  --text-dim: #d1aba1;
  --text-muted: #a26a61;
  --shadow-glow: 0 0 32px rgba(255, 101, 66, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Lato", sans-serif;
  color: var(--text-main);
  background: var(--bg-void);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page-bg,
.page-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.page-bg {
  background:
    linear-gradient(180deg, rgba(5, 1, 2, 0.28), rgba(5, 1, 2, 0.58)),
    radial-gradient(circle at 50% 48%, rgba(255, 163, 122, 0.28), transparent 34%),
    url("/zirkel/bilder/Background%20NH%20V2_2.png") center center / cover no-repeat;
  transform: scale(1.04);
}

.page-vignette {
  background:
    radial-gradient(circle at top, transparent, rgba(6, 0, 1, 0.16) 54%, rgba(6, 0, 1, 0.6) 100%),
    linear-gradient(180deg, rgba(7, 1, 2, 0.14), rgba(7, 1, 2, 0.4));
}

.site-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background:
    linear-gradient(180deg, rgba(33, 3, 7, 0.78), rgba(14, 1, 3, 0.62));
  border-bottom: 1px solid rgba(255, 136, 98, 0.22);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.24),
    inset 0 -1px 0 rgba(255, 190, 166, 0.05);
}

.header-inner,
.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-icon {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(255, 107, 59, 0.28));
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-family: "Cinzel", serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffded1;
}

.brand-subtitle {
  font-family: "Cinzel", serif;
  font-size: 0.76rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link,
.menu-group > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  font-family: "Cinzel", serif;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.nav-link:hover,
.menu-group > summary:hover,
.menu-group[open] > summary,
.menu-group.is-current > summary {
  color: #ffe8df;
  background: rgba(255, 113, 77, 0.12);
}

.menu-group {
  position: relative;
}

.menu-group > summary {
  cursor: pointer;
  border: 1px solid transparent;
}

.menu-group > summary::-webkit-details-marker,
.mobile-group > summary::-webkit-details-marker {
  display: none;
}

.menu-group > summary::after,
.mobile-group > summary::after {
  content: "▾";
  margin-left: 8px;
  font-size: 0.76rem;
  color: var(--accent-soft);
}

.menu-group[open] > summary {
  border-color: rgba(255, 112, 86, 0.18);
}

.submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  padding: 12px;
  display: grid;
  gap: 6px;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(33, 4, 8, 0.92), rgba(11, 1, 3, 0.92));
  box-shadow:
    0 24px 36px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 180, 160, 0.06);
}

.submenu a,
.mobile-submenu a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text-dim);
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.submenu a:hover,
.mobile-submenu a:hover,
.submenu a.is-active,
.mobile-submenu a.is-active {
  color: #fff1ea;
  background: rgba(255, 98, 58, 0.11);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: rgba(22, 3, 6, 0.6);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-soft);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  background: rgba(26, 3, 7, 0.74);
  box-shadow: var(--shadow-glow);
}

.mobile-link,
.mobile-group > summary {
  display: block;
  width: 100%;
  padding: 14px 12px;
  border-radius: 14px;
  color: var(--text-main);
  font-family: "Cinzel", serif;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mobile-group {
  border-top: 1px solid rgba(255, 124, 93, 0.1);
}

.mobile-submenu {
  display: grid;
  gap: 4px;
  padding: 0 0 10px 14px;
}

.section-nav,
.content-shell,
.header-inner,
.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-nav {
  position: relative;
  z-index: 8;
  padding-top: 18px;
}

.section-nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  flex-wrap: wrap;
  padding: 14px;
  border: 1px solid rgba(255, 136, 98, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(29, 4, 8, 0.58), rgba(12, 1, 3, 0.44));
  box-shadow:
    0 18px 30px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 214, 200, 0.05);
  backdrop-filter: blur(10px);
}

.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: "Cinzel", serif;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.section-link:hover,
.section-link.is-active {
  color: #fff2eb;
  background: rgba(255, 103, 63, 0.16);
  border-color: rgba(255, 132, 94, 0.28);
}

.site-main {
  flex: 1;
  padding: 22px 0 22px;
}

.content-shell {
  width: min(1180px, calc(100% - 32px));
}

.route-panel[hidden] {
  display: none;
}

.route-panel {
  min-height: 0;
}

.route-empty {
  min-height: clamp(26rem, 68vh, 54rem);
}

.poem-card,
.story-card {
  margin: 0 auto;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(255, 140, 104, 0.18);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(28, 5, 8, 0.56), rgba(12, 1, 3, 0.42));
  box-shadow:
    0 26px 42px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 221, 208, 0.05);
  backdrop-filter: blur(10px);
}

.poem-card {
  width: min(100%, 760px);
}

.poem-lines {
  display: grid;
  gap: 10px;
  font-family: "Cinzel", serif;
  font-size: clamp(1rem, 2vw, 1.24rem);
  line-height: 1.8;
  letter-spacing: 0.04em;
  text-align: center;
  color: #f9e3da;
  text-shadow: 0 0 18px rgba(72, 10, 3, 0.18);
}

.poem-lines span {
  display: block;
}

.story-card {
  width: min(100%, 920px);
}

.story-copy {
  display: grid;
  gap: 18px;
  color: #f3dfd7;
  font-size: clamp(1rem, 1.4vw, 1.08rem);
  line-height: 1.86;
  letter-spacing: 0.01em;
}

.story-copy p {
  margin: 0;
}

.site-footer {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 28px 0 36px;
  border-top: 1px solid rgba(255, 136, 98, 0.22);
  background:
    linear-gradient(180deg, rgba(30, 4, 8, 0.46), rgba(11, 1, 3, 0.7));
  backdrop-filter: blur(10px);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 2px;
}

.footer-copy h2 {
  margin: 0 0 8px;
  font-family: "Cinzel", serif;
  font-size: 1rem;
  color: #ffe1d6;
}

.footer-copy p {
  margin: 4px 0;
  color: #bf8478;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  color: #d8aba0;
  transition: color 180ms ease;
}

.footer-links a:hover {
  color: #fff1ea;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-nav.is-open {
    display: block;
  }

  .header-inner {
    min-height: 82px;
  }
}

@media (max-width: 720px) {
  .header-inner,
  .section-nav,
  .content-shell,
  .footer-inner,
  .route-empty {
    width: min(100%, calc(100% - 20px));
  }

  .header-inner {
    gap: 16px;
  }

  .brand-icon {
    width: 46px;
    height: 46px;
  }

  .brand-title {
    font-size: 0.92rem;
    letter-spacing: 0.06em;
  }

  .brand-subtitle {
    font-size: 0.7rem;
    letter-spacing: 0.22em;
  }

  .section-nav-inner {
    width: 100%;
    gap: 10px;
    padding: 12px;
  }

  .section-link {
    width: 100%;
  }

  .poem-card,
  .story-card {
    width: 100%;
    border-radius: 24px;
  }

  .poem-lines {
    font-size: 0.96rem;
    line-height: 1.72;
  }

  .story-copy {
    gap: 16px;
    font-size: 0.98rem;
    line-height: 1.74;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
