:root {
  --green: #1c6f47;
  --green-dark: #10482d;
  --gold: #d7b15b;
  --ink: #17211b;
  --muted: #637169;
  --shadow: 0 24px 70px rgba(23, 33, 27, 0.14);
  --radius-lg: 28px;
  --content: 1180px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body.majesties-redesign {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(
      circle at top left,
      rgba(215, 177, 91, 0.18),
      transparent 30rem
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.92),
      rgba(247, 243, 232, 0.96)
    );
  line-height: 1.6;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}

.redesign-header {
  min-height: 96px;
  display: grid;
  grid-template-columns: 120px 1fr 120px;
  align-items: center;
  gap: 20px;
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #16573a 0%, #1c6f47 50%, #16573a 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  z-index: 20;
}
.redesign-header__watermark {
  position: absolute;
  right: 42px;
  top: 50%;
  width: 190px;
  height: 190px;
  transform: translateY(-50%);
  background: url("bilder/SG_Wappen.jpg") center/contain no-repeat;
  opacity: 0.045;
  pointer-events: none;
}
.redesign-header__crest {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  padding: 5px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
  z-index: 2;
}
.redesign-header__crest img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.redesign-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}
.redesign-nav a {
  min-height: 42px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.9rem;
  font-weight: 800;
}
.redesign-nav a:hover,
.redesign-nav a[href="majestaeten-redesign.html"] {
  background: rgba(255, 255, 255, 0.14);
}
.redesign-social {
  justify-self: end;
  display: flex;
  gap: 10px;
  z-index: 2;
}
.redesign-social a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-dark);
  border: 1px solid rgba(255, 255, 255, 0.24);
}
.redesign-social img {
  width: 23px;
  height: 23px;
  object-fit: contain;
}
.redesign-social a:first-child img {
  width: 28px;
  height: 28px;
}
.redesign-nav-toggle,
.redesign-nav-toggle-label {
  display: none;
}

.majesties-hero {
  position: relative;
  min-height: clamp(420px, 58vh, 650px);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
}
.majesties-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.majesties-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.16));
}
.majesties-hero__content {
  position: relative;
  width: min(100% - 32px, 980px);
  padding: 60px 20px;
}
.kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 900;
}
.majesties-hero h1 {
  margin-top: 10px;
  font-size: clamp(2.9rem, 7vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}
.majesties-hero p:not(.kicker) {
  max-width: 780px;
  margin: 20px auto 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

main {
  width: min(100% - 32px, var(--content));
  margin: 0 auto;
  padding-bottom: 76px;
}

.current-list-mobile {
  display: none;
}

.intro-card,
.join-card {
  margin-top: -40px;
  position: relative;
  z-index: 4;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(28, 111, 71, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 48px);
  overflow: hidden;
}
.join-card {
  margin-top: 78px;
}
.intro-card h2,
.section-heading h2,
.band-copy h2,
.join-card h2 {
  margin-top: 8px;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.03;
  letter-spacing: -0.055em;
}
.intro-card p:not(.kicker),
.band-copy p,
.join-card p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 850px;
}

.current-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 26px;
}
.current-grid article {
  background: #edf6f0;
  border: 1px solid rgba(28, 111, 71, 0.08);
  border-radius: 22px;
  padding: 22px;
}
.current-grid span {
  font-size: 2rem;
}
.current-grid h3 {
  margin-top: 8px;
  font-size: 1.25rem;
}
.current-grid p {
  margin-top: 8px;
  color: var(--ink);
  font-weight: 800;
}
.current-grid small {
  color: var(--muted);
  font-weight: 700;
}

.history-strip,
.timeline-section {
  margin-top: 78px;
}
.section-heading {
  text-align: center;
  margin-bottom: 26px;
}
.history-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.history-grid article {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(28, 111, 71, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 26px;
}
.history-grid strong {
  display: block;
  color: var(--green);
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 900;
}
.history-grid span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 700;
}

.band-feature {
  margin-top: 78px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(28, 111, 71, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.band-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 26px;
  background: #edf6f0;
}
.band-collage img {
  width: 100%;
  height: 210px;
  object-fit: contain;
  background: #fff;
  border-radius: 18px;
  padding: 12px;
}
.band-copy {
  padding: clamp(28px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.timeline {
  display: grid;
  gap: 22px;
}
.timeline-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(28, 111, 71, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.band-wrap {
  background: #edf6f0;
  padding: 22px;
  display: grid;
  place-items: center;
}
.band-wrap img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #fff;
  border-radius: 18px;
  padding: 12px;
}
.timeline-copy {
  padding: 28px;
}
.year {
  color: var(--green);
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.06em;
}
.timeline-copy h3 {
  margin-top: 8px;
  font-size: 1.45rem;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.timeline-copy dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.timeline-copy dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.timeline-copy dd {
  margin-top: 4px;
  font-weight: 800;
  color: var(--ink);
}

.join-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}
.button {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  white-space: nowrap;
  transition: 0.18s ease;
}
.button:hover {
  transform: translateY(-2px);
}
.button.green {
  background: var(--green);
  color: #fff;
  box-shadow: 0 14px 34px rgba(28, 111, 71, 0.2);
}

@media (max-width: 980px) {
  .redesign-header {
    min-height: 88px;
    grid-template-columns: 88px 1fr 56px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .redesign-header__crest {
    width: 72px;
    height: 72px;
  }
  .redesign-social {
    display: none;
  }
  .redesign-nav-toggle-label {
    justify-self: end;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-content: center;
    gap: 5px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.14);
    z-index: 30;
  }
  .redesign-nav-toggle-label span {
    width: 22px;
    height: 2px;
    background: #fff;
    display: block;
    border-radius: 2px;
  }
  .redesign-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    display: none;
    background: #fff;
    padding: 14px;
    border-radius: 22px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    z-index: 50;
  }
  .redesign-nav a {
    color: var(--green);
    justify-content: flex-start;
    padding: 0 14px;
  }
  .redesign-nav-toggle:checked ~ .redesign-nav {
    display: flex;
  }
  .current-grid,
  .history-grid,
  .band-feature,
  .timeline-card,
  .join-card {
    grid-template-columns: 1fr;
  }
  .band-wrap img {
    height: 180px;
  }
  .timeline-copy dl {
    grid-template-columns: 1fr;
  }
}

/* V3: Hero ist bewusst nur Bild */
.majesties-hero {
  min-height: clamp(480px, 68vh, 760px);
}

.majesties-hero__content {
  display: none;
}

.majesty-photo {
  margin-top: 22px;
  border-top: 1px solid rgba(28, 111, 71, 0.12);
  padding-top: 16px;
}

.majesty-photo summary {
  cursor: pointer;
  color: var(--green);
  font-weight: 900;
  list-style: none;
}

.majesty-photo summary::-webkit-details-marker {
  display: none;
}

.majesty-photo summary::before {
  content: "＋";
  display: inline-block;
  margin-right: 8px;
  color: var(--gold);
  font-weight: 900;
}

.majesty-photo[open] summary::before {
  content: "−";
}

.majesty-photo img {
  margin-top: 14px;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(23, 33, 27, 0.12);
}

.redesign-social .youtube-link {
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
}

.youtube-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  line-height: 1;
}

.majesty-photo-link {
  display: block;
  margin-top: 14px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

.majesty-photo-link::after {
  content: "Originalgröße öffnen";
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  opacity: 0;
  transform: translateY(4px);
  transition: 0.18s ease;
}

.majesty-photo-link:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.majesty-photo-link img {
  margin-top: 0;
  transition: transform 0.2s ease;
}

.majesty-photo-link:hover img {
  transform: scale(1.015);
}

/* Mobile: Zechenband-Bilder ausblenden, Text bleibt sichtbar */
@media (max-width: 768px) {
  .band-collage {
    display: none;
  }
}

/* Mobile: aktuelle Majestäten kompakter */
@media (max-width: 768px) {
  .current-grid {
    gap: 10px;
    margin-top: 18px;
  }

  .current-grid article {
    padding: 14px;
    border-radius: 16px;
  }

  .current-grid span {
    font-size: 1.4rem;
  }

  .current-grid h3 {
    margin-top: 4px;
    font-size: 1rem;
  }

  .current-grid p {
    margin-top: 4px;
    font-size: 0.92rem;
    line-height: 1.3;
  }

  .current-grid small {
    font-size: 0.8rem;
  }
}

@media (min-width: 769px) {
  .band-mobile-toggle {
    display: none;
  }
}

/* Mobile: Zechenband einklappbar, Desktop bleibt sichtbar */
.timeline-band-mobile {
  display: none;
}

@media (max-width: 768px) {
  .band-wrap--desktop {
    display: none;
  }

  .timeline-band-mobile {
    display: block;
    background: #edf6f0;
    border-bottom: 1px solid rgba(28, 111, 71, 0.1);
  }

  .timeline-band-mobile summary {
    cursor: pointer;
    padding: 14px 18px;
    color: var(--green);
    font-weight: 900;
    list-style: none;
  }

  .timeline-band-mobile summary::-webkit-details-marker {
    display: none;
  }

  .timeline-band-mobile summary::before {
    content: "＋";
    margin-right: 8px;
    color: var(--gold);
  }

  .timeline-band-mobile[open] summary::before {
    content: "−";
  }

  .timeline-band-mobile .band-wrap {
    padding: 0 18px 18px;
  }

  .timeline-band-mobile .band-wrap img {
    height: 160px;
  }
}

/* Mobile: Schützenfestgeschichte-Kacheln 2x2 */
@media (max-width: 768px) {
  .history-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .history-grid article {
    padding: 14px;
    border-radius: 16px;
  }

  .history-grid strong {
    font-size: 1.55rem;
  }

  .history-grid span {
    margin-top: 6px;
    font-size: 0.82rem;
    line-height: 1.3;
  }
}

/* Mobile: aktuelle Majestäten ohne Einzelkacheln */
@media (max-width: 768px) {
  .current-grid {
    display: none;
  }

  .current-list-mobile {
    display: grid;
    gap: 10px;
    margin-top: 18px;
  }

  .current-list-mobile div {
    padding: 10px 0;
    border-bottom: 1px solid rgba(28, 111, 71, 0.12);
  }

  .current-list-mobile dt {
    font-weight: 800;
    color: var(--green);
    margin-bottom: 4px;
  }

  .current-list-mobile dd {
    margin: 0;
  }
}
