/* =========================================================
   Briefmarkensammlerverein – Design
   Farben nach dem Ettlinger Wappen: Blau, Gold, Rot, Silber/Cremeweiß
   Keine externen Schriften, keine externen Dateien.
   ========================================================= */

:root {
  --navy: #173a7a;
  --navy-d: #0d2050;
  --navy-l: #2a58a8;
  --bord: #b81f2d;
  --bord-d: #8e1520;
  --bord-l: #d63a48;
  --gold: #e0ae2a;
  --gold-d: #a8780a;
  --gold-l: #f4d577;
  --cream: #fbf3d9;
  --cream-2: #f3e4b4;
  --paper: #fffcee;
  --ink: #1c2335;
  --muted: #5a6377;
  --line: rgba(20, 38, 74, .14);
  --radius: 14px;
  --shadow: 0 8px 28px rgba(12, 26, 53, .10);
  --shadow-lg: 0 18px 44px rgba(12, 26, 53, .18);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 100% 0, rgba(224, 174, 42, .16), transparent 60%),
    radial-gradient(900px 600px at 0 100%, rgba(23, 58, 122, .08), transparent 60%),
    var(--cream);
  background-attachment: fixed;
}
img { max-width: 100%; display: block; }
a { color: var(--bord); text-underline-offset: 3px; }
a:hover { color: var(--bord-d); }
:focus-visible { outline: 3px solid var(--bord-l); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; color: var(--navy); margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
ul { padding-left: 1.2em; }

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--bord); color: #fff; padding: .7rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Textplatzhalter ---------- */
.ph {
  background: rgba(184, 31, 45, .07);
  border-bottom: 1.5px dashed rgba(184, 31, 45, .55);
  border-radius: 3px;
  padding: 0 .2em;
}
.dark .ph, .on-dark .ph {
  background: rgba(255, 255, 255, .10);
  border-bottom-color: rgba(248, 242, 228, .6);
}

/* ---------- Bildplatzhalter ---------- */
.img-slot {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  background:
    repeating-linear-gradient(135deg, rgba(20, 38, 74, .035) 0 12px, transparent 12px 24px),
    var(--cream-2);
  border: 2px dashed rgba(20, 38, 74, .35);
  border-radius: 10px;
  color: var(--muted);
  text-align: center;
  overflow: hidden;
}
.img-slot img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; background: var(--cream);
}
.img-slot:has(img) { border-color: transparent; }
.img-slot__label {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  padding: 1rem; font-weight: 600; font-size: .98rem;
}
.img-slot__label::before {
  content: ""; width: 38px; height: 38px; background: currentColor; opacity: .55;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 19V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2zM8.5 13.5l2.5 3 3.5-4.5 4.5 6H5l3.5-4.5z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 19V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2zM8.5 13.5l2.5 3 3.5-4.5 4.5 6H5l3.5-4.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.img-slot__label small { font-weight: 400; font-size: .82rem; opacity: .85; }
.r-16-9 { aspect-ratio: 16 / 9; }
.r-3-2 { aspect-ratio: 3 / 2; }
.r-4-3 { aspect-ratio: 4 / 3; }
.r-4-5 { aspect-ratio: 4 / 5; }
.r-1-1 { aspect-ratio: 1 / 1; }

/* Briefmarken-Rahmen mit Zähnung */
.stamp {
  --hole: var(--cream);
  position: relative; padding: 20px; background: var(--paper);
  box-shadow: var(--shadow-lg);
}
.stamp::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 7px 0, var(--hole) 4.5px, #0000 5px) 0 0 / 14px 9px repeat-x,
    radial-gradient(circle at 7px 100%, var(--hole) 4.5px, #0000 5px) 0 100% / 14px 9px repeat-x,
    radial-gradient(circle at 0 7px, var(--hole) 4.5px, #0000 5px) 0 0 / 9px 14px repeat-y,
    radial-gradient(circle at 100% 7px, var(--hole) 4.5px, #0000 5px) 100% 0 / 9px 14px repeat-y;
}
.hero .stamp { --hole: var(--navy); }
.band-navy .stamp { --hole: var(--navy); }
.band-paper .stamp { --hole: var(--paper); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform .2s, background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--bord); color: #fff; box-shadow: 0 6px 16px rgba(184, 31, 45, .3); }
.btn-primary:hover { background: var(--bord-d); color: #fff; }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(248, 242, 228, .6); }
.btn-ghost:hover { background: var(--cream); color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--cream); }
.btn-light { background: var(--cream); color: var(--bord); }
.btn-light:hover { background: #fff; color: var(--bord-d); }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy); color: var(--cream);
  border-bottom: 4px solid var(--gold);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .8rem; color: var(--cream); text-decoration: none; min-width: 0; }
.brand:hover { color: #fff; }
.brand-logo {
  flex: none; display: grid; place-items: center;
  min-width: 52px; height: 52px; border-radius: 8px;
  background: rgba(248, 242, 228, .08); border: 1.5px dashed rgba(248, 242, 228, .5);
  font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: rgba(248, 242, 228, .85);
}
.brand-logo img { height: 52px; width: auto; max-width: 160px; object-fit: contain; }
.brand-logo.has-logo { background: none; border: 0; }
.brand-logo.has-logo span { display: none; }
.brand-name { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; line-height: 1.2; max-width: 22ch; }

.main-nav ul { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: .5rem .7rem; color: var(--cream); text-decoration: none;
  font-size: .97rem; font-weight: 600; border-radius: 8px; position: relative; white-space: nowrap;
  transition: background .2s, color .2s;
}
.main-nav a:hover { background: rgba(248, 242, 228, .1); color: #fff; }
.main-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .15rem; height: 3px; border-radius: 2px; background: var(--gold);
}
.main-nav li.cta { margin-inline: .5rem; }
.main-nav li.cta a { background: var(--bord); color: #fff; padding-inline: 1.1rem; box-shadow: 0 0 0 2px rgba(224, 174, 42, .55) inset; }
.main-nav li.cta a:hover { background: var(--bord-l); }
.main-nav li.cta a[aria-current="page"]::after { display: none; }

.nav-toggle {
  display: none; background: transparent; border: 1.5px solid rgba(248, 242, 228, .5);
  border-radius: 8px; width: 46px; height: 46px; cursor: pointer; color: var(--cream);
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .25s, opacity .25s; position: relative;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1150px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--navy-d); border-bottom: 4px solid var(--gold);
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .35s ease, visibility .35s;
  }
  .main-nav.open { max-height: 90vh; visibility: visible; overflow-y: auto; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: .8rem 1.25rem 1.2rem; gap: .1rem; }
  .main-nav a { padding: .8rem .9rem; font-size: 1.05rem; }
  .main-nav a[aria-current="page"] { background: rgba(248, 242, 228, .12); }
  .main-nav a[aria-current="page"]::after { display: none; }
  .main-nav li.cta a { margin: .5rem 0 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(118deg, transparent 0 62%, rgba(184, 31, 45, .45) 62% 67%, rgba(224, 174, 42, .22) 67% 68.2%, transparent 68.2%),
    radial-gradient(900px 520px at 92% 0, rgba(224, 174, 42, .28), transparent 60%),
    linear-gradient(160deg, var(--navy-d), var(--navy) 60%, var(--navy-l));
  color: var(--cream); padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 8vw, 6.5rem);
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: radial-gradient(circle at 7px 10px, var(--cream) 5px, #0000 5.5px) 0 0 / 14px 10px repeat-x;
}
/* Vereinswappen als dezentes Hintergrundbild (nur wenn hochgeladen) */
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: no-repeat 56% center / auto 88%;
  opacity: .10;
}
.page-hero::before { background-position: 88% center; background-size: auto 150%; }
.hero > .container, .page-hero > .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero h1 { color: var(--cream); }
.hero .lead { font-size: 1.2rem; max-width: 36rem; color: rgba(248, 242, 228, .92); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--bord); margin-bottom: .8rem;
}
.dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold-l); }
.hero-visual { max-width: 420px; justify-self: center; width: 100%; transform: rotate(2deg); }

.page-hero {
  background:
    linear-gradient(118deg, transparent 0 70%, rgba(184, 31, 45, .4) 70% 74%, rgba(224, 174, 42, .2) 74% 75%, transparent 75%),
    linear-gradient(160deg, var(--navy-d), var(--navy)); color: var(--cream);
  padding: clamp(2.6rem, 6vw, 4.2rem) 0; position: relative;
}
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: radial-gradient(circle at 7px 10px, var(--cream) 5px, #0000 5.5px) 0 0 / 14px 10px repeat-x;
}
.page-hero h1 { color: var(--cream); margin-bottom: .4em; }
.page-hero p { max-width: 42rem; color: rgba(248, 242, 228, .9); font-size: 1.15rem; margin: 0; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 320px; order: -1; transform: rotate(0); }
}

/* ---------- Sektionen ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.band-paper { background: var(--paper); }
.band-navy { background: var(--navy); color: var(--cream); }
.band-navy h2, .band-navy h3 { color: var(--cream); }
.band-navy .eyebrow { color: var(--gold-l); }
.band-bord { background: linear-gradient(135deg, var(--bord-d), var(--bord)); border-top: 4px solid var(--gold); color: var(--cream); text-align: center; }
.band-bord h2 { color: #fff; }
.section-head { max-width: 46rem; margin-bottom: 2.4rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2::after {
  content: ""; display: block; width: 64px; height: 4px; background: linear-gradient(90deg, var(--gold) 0 50%, var(--bord) 50%); margin-top: .7rem; border-radius: 2px;
}
.section-head.center h2::after { margin-inline: auto; }
.band-navy .section-head h2::after, .band-bord .section-head h2::after { background: var(--cream); }

.grid { display: grid; gap: 1.6rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.top { align-items: start; }
.split.wide-left { grid-template-columns: 1.2fr .8fr; }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .split.wide-left { grid-template-columns: 1fr; }
}
@media (max-width: 620px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- Karten ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.band-paper .card { background: var(--cream); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { margin-top: 1rem; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: inline-block; margin-top: .5rem; font-weight: 600; }
.icon-badge {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--bord); color: #fff; font-family: var(--serif); font-size: 1.4rem; font-weight: 700;
}

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.6rem; }
.fact { border-left: 3px solid var(--bord); padding-left: .9rem; }
.fact b { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Termine ---------- */
.event-list { display: grid; gap: 1.1rem; }
.event {
  display: grid; grid-template-columns: 84px 1fr; gap: 1.3rem; align-items: start;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.band-paper .event { background: var(--cream); }
.event:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.event-date {
  background: var(--bord); color: #fff; border-radius: 10px; text-align: center;
  padding: .7rem .3rem; font-family: var(--serif); line-height: 1.1;
}
.event-date .d { display: block; font-size: 1.9rem; font-weight: 700; }
.event-date .m { display: block; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-top: .2rem; }
.event h3 { margin: 0 0 .25rem; }
.event-meta { color: var(--muted); font-size: .95rem; margin-bottom: .5rem; }
.event p:last-child { margin-bottom: 0; }
.empty-note {
  background: var(--paper); border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 1.6rem; text-align: center; color: var(--muted);
}
@media (max-width: 520px) { .event { grid-template-columns: 1fr; } .event-date { width: 84px; } }

/* ---------- Tabellen / Listen ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; min-width: 420px; }
th, td { padding: .95rem 1.2rem; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--navy); color: var(--cream); font-weight: 600; font-size: .95rem; }
tr:last-child td { border-bottom: 0; }
.spec { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .1rem 1.4rem; }
.spec dt { font-weight: 700; color: var(--navy); padding: .6rem 0; border-bottom: 1px solid var(--line); }
.spec dd { margin: 0; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--bord); }
.timeline li { position: relative; padding: 0 0 1.6rem 1.6rem; }
.timeline li::before {
  content: ""; position: absolute; left: -9px; top: .45rem; width: 15px; height: 15px;
  background: var(--cream); border: 3px solid var(--bord); border-radius: 50%;
}
.timeline b { font-family: var(--serif); font-size: 1.15rem; color: var(--navy); display: block; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: .45rem 0 .45rem 2rem; position: relative; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: .4rem; width: 1.4rem; height: 1.4rem;
  background: var(--bord); color: #fff; border-radius: 50%; font-size: .8rem;
  display: grid; place-items: center;
}

/* ---------- Formulare ---------- */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field label, .legend { font-weight: 600; font-size: .95rem; color: var(--navy); }
.req { color: var(--bord); }
input, select, textarea {
  font: inherit; color: var(--ink); width: 100%;
  background: #fff; border: 1.5px solid rgba(20, 38, 74, .28); border-radius: 10px; padding: .75rem .9rem;
  transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--bord); box-shadow: 0 0 0 4px rgba(184, 31, 45, .15); }
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: #b3261e; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; }
.check input { width: 1.3rem; height: 1.3rem; margin-top: .2rem; flex: none; accent-color: var(--bord); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 10px; font-weight: 500; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #e4f1e6; color: #1d4a28; border: 1px solid #a9d3b1; }
.form-status.err { background: #fbe7e5; color: #7a1a14; border: 1px solid #e8b0ab; }
.form-note { font-size: .88rem; color: var(--muted); margin-top: .8rem; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: .9rem; align-items: start; }
.contact-list .ci {
  width: 44px; height: 44px; border-radius: 10px; background: var(--navy); color: var(--cream);
  display: grid; place-items: center; font-size: 1.1rem;
}
.contact-list b { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 52rem; }
.legal h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.legal h3 { font-size: 1.15rem; margin-top: 1.4rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-d); color: rgba(248, 242, 228, .85); border-top: 4px solid var(--gold); font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.2rem; padding: 3.2rem 0 2.4rem; }
.site-footer h4 { color: var(--cream); font-size: 1.05rem; margin-bottom: .9rem; }
.site-footer a { color: rgba(248, 242, 228, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-bottom { border-top: 1px solid rgba(248, 242, 228, .15); padding: 1.1rem 0; font-size: .88rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; }
.site-footer .ph { background: rgba(255, 255, 255, .08); border-bottom-color: rgba(248, 242, 228, .5); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Animationen ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .1s; }
.js .reveal.d2 { transition-delay: .2s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.noscript-note { background: var(--bord); color: #fff; padding: .8rem 1rem; text-align: center; }
@media print {
  .site-header, .site-footer, .btn-row, .nav-toggle { display: none !important; }
  body { background: #fff; }
}

/* Steckbrief auf dunklem Grund (Objekt des Monats) */
.band-navy .spec dt { color: var(--gold-l); border-bottom-color: rgba(248, 242, 228, .18); }
.band-navy .spec dd { border-bottom-color: rgba(248, 242, 228, .18); }
.band-navy .form-note { color: rgba(248, 242, 228, .75); }

/* Bild ganz anzeigen (nicht zuschneiden), z. B. Wappen und Logos */
.img-slot.fit-contain { aspect-ratio: auto; border: 0; background: none; overflow: visible; }
.img-slot.fit-contain img { position: static; inset: auto; height: auto; max-height: 560px; width: auto; max-width: 100%; margin-inline: auto; object-fit: contain; background: none; }

/* ---------- Leere Platzhalter ausblenden (Schalter im Admin) ---------- */
.x-empty, .x-empty-img { display: none; }
html.hide-empty :is(h1, h2, h3, h4, p, li, dd, td, th, .eyebrow, .form-note, .lead):has(> .x-empty:only-child) { display: none; }
html.hide-empty dt:has(+ dd > .x-empty:only-child) { display: none; }
html.hide-empty .fact:has(> .x-empty),
html.hide-empty li:has(> b > .x-empty:only-child),
html.hide-empty p:has(> b > .x-empty:only-child),
html.hide-empty tr:has(> td > .x-empty:only-child),
html.hide-empty .card:has(h3 > .x-empty:only-child):not(:has(img)),
html.hide-empty .stamp:has(> .x-empty-img),
html.hide-empty .reveal:has(> .x-empty-img:only-child) { display: none; }
html.hide-empty .split:has(.x-empty-img) { grid-template-columns: 1fr; }
html.hide-empty .split:has(.x-empty-img) > * { max-width: 46rem; }

/* Sponsoren */
.sponsors { background: var(--cream, #fffbea); border-top: 1px solid rgba(20, 38, 74, .12); padding: 2rem 0; text-align: center; }
.sponsors-title { margin: 0 0 1.2rem; font-weight: 700; color: var(--navy, #14264a); }
.sponsors-title small { font-weight: 400; opacity: .6; margin-left: .5rem; font-size: .8rem; }
.sponsors-row { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; justify-content: center; align-items: center; }
.sponsors-row img { display: block; max-height: 90px; max-width: min(100%, 320px); width: auto; height: auto; }

/* Objekt des Monats: Bilder immer ganz zeigen (Briefmarke hoch, Brief quer) */
.stamp .img-slot.fit-contain img { max-height: 620px; border-radius: 6px; }
.card .img-slot.fit-contain { display: grid; place-items: center; }
.card .img-slot.fit-contain img { max-height: 300px; }
/* Briefmarkenrahmen passt sich dem Bild an (keine leeren Seitenränder) */
.stamp:has(.img-slot.fit-contain) { width: fit-content; max-width: 100%; }
.stamp .img-slot.fit-contain img { display: block; }
