:root {
  --bg: #f4f0e7;
  --surface: #fbf8f2;
  --surface2: #f6efe4;
  --text: #261b14;
  --muted: #6f6257;
  --primary: #8b3f24;
  --secondary: #135b55;
  --border: rgba(71, 52, 37, 0.14);
  --shadow: 0 14px 40px rgba(41, 26, 14, 0.12);
  --radius: 18px;
  --content: min(1180px, calc(100% - 2rem));
  font-family: 'Manrope', sans-serif;
}

[data-theme='dark'] {
  --bg: #171310;
  --surface: #211b16;
  --surface2: #2a231d;
  --text: #f2e8d8;
  --muted: #c8b8a4;
  --primary: #d78761;
  --secondary: #7ec2ba;
  --border: rgba(242, 232, 216, 0.12);
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(207, 143, 47, 0.12), transparent 30%),
    var(--bg);
  color: var(--text);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
  line-height: 1.65;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 99;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 240, 231, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

[data-theme='dark'] .site-header {
  background: rgba(23, 19, 16, 0.82);
}

.header-inner,
.hero-grid,
.section-inner,
.footer-inner {
  width: var(--content);
  margin: 0 auto;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--surface);
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.brand-title {
  font-family: 'Marcellus', serif;
  font-size: 1.35rem;
}

.brand-sub {
  font-size: 0.82rem;
  color: var(--muted);
}

.header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.icon-btn,
.lang-toggle {
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-weight: 800;
  color: var(--text);
}

.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
}

.hero-copy,
.hero-banner,
.box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(1.4rem, 3vw, 3rem);
}

.eyebrow,
.section-kicker {
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.hero h1,
h2 {
  font-family: 'Marcellus', serif;
  line-height: 1.1;
  margin: 0.7rem 0 0;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  max-width: 12ch;
}

.hero p,
.lead {
  color: var(--muted);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.stat {
  padding: 1rem;
  border-radius: 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
}

.stat strong {
  display: block;
  font-size: 1.3rem;
}

.hero-banner {
  min-height: 420px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(
    160deg,
    rgba(139, 63, 36, 0.13),
    rgba(19, 91, 85, 0.08),
    var(--surface)
  );
}

.banner-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.banner-quote {
  font-size: clamp(1.5rem, 2.6vw, 2.5rem);
}

.banner-meta {
  color: var(--muted);
}

.banner-card {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 1rem;
}

.museum-nav {
  padding-bottom: 1rem;
}

.nav-pills{
  width: var(--content);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.65rem;
  padding: 0;
}

.nav-pills button{
  min-height: 58px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.95rem 1.15rem;
  cursor: pointer;
  white-space: nowrap;
  font-size: 1rem;
  box-shadow: var(--shadow);
  flex: 0 0 auto;
}

.nav-pills button.active,
.nav-pills button:hover {
  background: var(--primary);
  color: #fff;
}

.section {
  padding: 2.5rem 0;
}

.section-head {
  margin-bottom: 1rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.card {
  grid-column: span 6;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.card-media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(139, 63, 36, 0.18), rgba(19, 91, 85, 0.12));
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 1rem;
}

.card-media {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 18px;
  background: #f3ede2;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-media.no-image {
  background: linear-gradient(135deg, #f5efe4, #efe6d8);
}

.card-media img {
  cursor: zoom-in;
}

.hidden {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 12, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 9999;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-inner {
  width: min(92vw, 1100px);
  height: min(88vh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  background: #fff;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

@media (max-width: 700px) {
  .lightbox {
    padding: 1rem;
  }

  .lightbox-inner {
    width: 100%;
    height: 82vh;
  }

  .lightbox-close {
    top: 0.75rem;
    right: 0.75rem;
  }
}

.card-body {
  padding: 1.1rem;
  display: grid;
  gap: 0.9rem;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: start;
}

.card h3 {
  font-size: 1.15rem;
  margin: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(139, 63, 36, 0.09);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.meta {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.4rem 0.75rem;
  margin: 0;
}

.meta dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #998b7f;
}

.meta dd {
  margin: 0;
}

.explanation {
  padding-top: 0.85rem;
  border-top: 1px solid rgba(71, 52, 37, 0.1);
  color: var(--muted);
}

.utility-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.box {
  padding: 1.3rem;
}

.join-tr.hidden {
  display: none;
}

.join-note {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: var(--surface2);
}

.mail-link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.mail-link:hover {
  filter: brightness(1.05);
}

.upload-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.upload-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
}

.upload-form input,
.upload-form textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  padding: 0.9rem 1rem;
  font: inherit;
}

.form-btn {
  min-height: 46px;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.footer {
  padding: 2rem 0 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  flex-wrap: wrap;
  color: var(--muted);
}

.footer a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.rechtliches {
  display: none;
}

@media (max-width: 980px) {
  .hero-grid,
  .utility-grid {
    grid-template-columns: 1fr;
  }

  .card {
    grid-column: span 12;
  }
}

@media (max-width: 720px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .meta {
    grid-template-columns: 1fr;
  }

  .header-inner {
    align-items: flex-start;
  }
}