
:root {
  --black: #050505;
  --white: #ffffff;
  --cream: #efe3c4; /* sanfter Gold-Ton (früher Cream); Variablenname beibehalten, damit band-cream weiter passt */
  --sand: #d8c5a8;
  --red: #8c1622; /* einheitliches Rot: gleich wie die Hintergrund-Bänder (Schrift, Buttons, Links …) */
  --red-dark: #6b1019; /* dunklere Variante für Hover */
  --wine: #8c1622; /* gleiches Rot für die großen Bänder */
  --ink: #111111;
  --muted: #66615b;
  --line: rgba(0,0,0,.12);
  --card: #ffffff;
}

/*=============================================================
/ Schriftart
/ ============================================================*/

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; /*Schriftart: Inter*/
}
a { color: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 82px;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: rgba(5,5,5,.96);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 950;
  line-height: .95;
}
.brand img {
  height: 62px;
  width: auto;
  object-fit: contain;
}
.brand small {
  display: block;
  margin-top: 4px;
  font-size: .68rem;
  letter-spacing: .08em;
  color: rgba(255,255,255,.68);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: .76rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.main-nav a {
  text-decoration: none;
  padding: 10px 5px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover {
  color: var(--sand);
  border-color: var(--red);
}
.menu-toggle {
  display: none;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 950;
  text-transform: uppercase;
}
.container {
  width: min(1760px, calc(100% - 64px));
  margin: 0 auto;
}
.hero {
  min-height: calc(100vh - 82px);
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #000;
  color: #fff;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.92), rgba(0,0,0,.45)),
    radial-gradient(circle at 74% 42%, rgba(179,33,45,.35), transparent 34%),
    url("bilder/ahnenstolz-logo.png");
  background-size: cover, cover, min(520px, 78vw);
  background-repeat: no-repeat;
  background-position: center, center, right 9% center;
  opacity: 1;
}
.hero-content {
  position: relative;
  width: min(1760px, calc(100% - 64px));
  margin: 0 auto;
  padding: 84px 0 72px;
}
.hero-logo {
  display: none;
}
.since-big {
  display: block;
  font-size: clamp(3rem, 10vw, 8.5rem);
  line-height: .86;
  font-weight: 950;
  letter-spacing: -.075em;
  color: rgba(255,255,255,.18);
  text-transform: uppercase;
  margin: 0 0 22px;
}
.kicker, .label, .date, .role {
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .76rem;
  font-weight: 950;
  margin: 0 0 12px;
}
.hero .kicker { color: var(--sand); }
h1, h2, h3 {
  margin: 0;
  letter-spacing: -.06em;
  line-height: .92;
}
h1 {
  max-width: 1120px;
  font-size: clamp(3.7rem, 12vw, 12rem);
  font-weight: 950;
  text-transform: uppercase;
}
h2 {
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 950;
  text-transform: uppercase;
}
h3 {
  font-size: clamp(1.35rem, 2.4vw, 2.2rem);
  font-weight: 950;
  line-height: 1.02;
}
.lead {
  max-width: 820px;
  margin: 24px 0 0;
  font-size: clamp(1.3rem, 3vw, 2.25rem);
  font-weight: 850;
  color: rgba(255,255,255,.82);
}
.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--red);
  background: var(--red);
  color: var(--white);
  border-radius: 999px;
  padding: 14px 22px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 950;
  letter-spacing: .05em;
  cursor: pointer;
}
.button:hover { background: var(--red-dark); border-color: var(--red-dark); }
.button-light {
  background: transparent;
  border-color: rgba(255,255,255,.58);
}
.section { padding: 95px 0; }
.section-heading {
  max-width: 900px;
  margin-bottom: 34px;
}
.section-heading p,
.page-hero p,
.blog-card p,
.card p,
.info-box p,
.contact-card p,
.hint,
.guestbook p,
.milestone p,
.stat p,
.contact-intro p,
.image-story p {
  color: var(--muted);
  line-height: 1.55;
}
.home-intro {
  background: var(--cream);
}
.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 70px;
  align-items: start;
}
.intro-grid p:last-child {
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  color: var(--muted);
  line-height: 1.48;
}
/* Platzhalter-Label: unsichtbar, nimmt aber die Höhe ein -> Text startet auf Höhe von "Tradition" */
.intro-copy .label { visibility: hidden; margin-bottom: 12px; }
@media (max-width: 900px) { .intro-copy .label { display: none; } }
.news-and-events {
  background: var(--wine);
}
.news-and-events .label {
  color: var(--sand);
}
.news-and-events .section-heading h2 {
  color: var(--white);
}
.news-layout {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 34px;
  align-items: start;
}
.featured-post {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.featured-post .post-image {
  min-height: 430px;
}
.post-content {
  padding: 26px;
  background: var(--card);
}
.news-list {
  display: grid;
  gap: 18px;
}
.mini-post {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  align-items: stretch;
  background: var(--card);
  border-radius: 24px;
  padding: 14px;
  border: 1px solid var(--line);
}
.mini-post .post-image {
  min-height: 140px;
  border-radius: 18px;
}
.events-heading {
  margin-top: 54px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}
.events-strip {
  display: grid;
  grid-template-columns: 1.2fr .85fr .85fr;
  gap: 18px;
  margin-top: 24px;
}
.events-strip .placeholder {
  min-height: 360px;
}
.events-strip .small {
  min-height: 270px;
  align-self: end;
}
.placeholder {
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.92);
  font-weight: 950;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
  background:
    linear-gradient(135deg, rgba(5,5,5,.45), rgba(5,5,5,.62)),
    url("bilder/hero-hintergrund.jpg");
  background-size: cover;
  background-position: center;
  border-radius: 26px;
}
.text-link {
  color: var(--red);
  font-weight: 950;
  text-decoration: none;
}
/* Mitmachen – editorial: Kopf + Bild oben, Angebote nebeneinander, Button darunter */
.join-section {
  background-color: var(--cream);
  color: var(--ink);
}
.join-top {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 54px;
  align-items: stretch;
  margin-bottom: 46px;
}
.join-head {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.join-section .label {
  color: var(--red);
  font-size: .78rem;
  margin-bottom: 22px;
}
.join-title {
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 1.03;
  margin: 0;
  max-width: 15ch;
}
.join-figure {
  position: relative;
  align-self: start;
  margin: 0;
}
.join-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 26px;
  box-shadow: 0 22px 55px rgba(0,0,0,.20);
}
.join-offers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 48px;
  margin: 0 0 40px;
}
.join-offer {
  border-top: 2px solid rgba(140,22,34,.22);
  padding-top: 18px;
}
.join-offer h3 {
  font-size: 1.22rem;
  margin: 0 0 9px;
  line-height: 1.2;
}
.join-offer p {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.6;
}
.button-lg {
  padding: 17px 34px;
  font-size: 1.02rem;
  display: flex;
  width: fit-content;
  margin: 0 auto;
}
@media (max-width: 860px) {
  .join-top { grid-template-columns: 1fr; gap: 26px; }
  .join-head { justify-content: flex-start; }
  .join-offers { grid-template-columns: 1fr; gap: 22px; }
}
.years-section {
  background: var(--white);
}
.years-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.milestone {
  background: var(--cream);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.milestone .placeholder {
  min-height: 280px;
  border-radius: 0;
}
.milestone div:last-child {
  padding: 24px;
}
.milestone strong {
  display: block;
  color: var(--red);
  font-size: 2.4rem;
  font-weight: 950;
  line-height: 1;
  margin-bottom: 12px;
}
.stats-section {
  background: var(--cream);
  color: var(--ink);
}
.stats-section .label { color: var(--red); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
}
.stat strong {
  display: block;
  font-size: clamp(4rem, 8vw, 7.6rem);
  font-weight: 950;
  line-height: .8;
  letter-spacing: -.08em;
}
.stat h3 {
  margin-top: 20px;
  font-size: 1.35rem;
  letter-spacing: -.03em;
  text-transform: none;
}
.stat p {
  color: var(--muted);
}
.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--black);
}
.quick-links a {
  min-height: 210px;
  padding: 26px;
  color: var(--white);
  text-decoration: none;
  border-right: 1px solid rgba(255,255,255,.14);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: clamp(1.35rem, 2.8vw, 2.2rem);
  font-weight: 950;
  letter-spacing: -.05em;
  text-transform: uppercase;
}
.quick-links span {
  color: var(--red);
  font-size: .9rem;
  font-weight: 950;
  letter-spacing: .08em;
}
.page-main { background: var(--cream); }
.page-hero {
  background:
    radial-gradient(circle at 20% 20%, rgba(179,33,45,.28), transparent 36%),
    linear-gradient(135deg, #060606, #221014);
  color: var(--white);
  padding: 98px 16px 78px;
  text-align: center;
}
.page-hero p {
  max-width: 780px;
  margin: 16px auto 0;
  color: rgba(255,255,255,.75);
  font-size: 1.22rem;
}
.page-hero .label { margin: 0 auto 12px; color: var(--sand); }
.season-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.season-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}
.agenda-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}
.agenda-controls label {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
  color: var(--muted);
}
.agenda-controls select {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 800;
  background: var(--card);
  cursor: pointer;
}
.timeline { display: grid; gap: 0; }
.timeline-month {
  margin: 46px 0 0;
  font-size: 1.05rem;
  color: var(--red);
  font-weight: 900;
  letter-spacing: .08em;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(140, 22, 34, .28);
}
.timeline-month:first-child { margin-top: 0; }
.timeline article {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  padding: 16px 2px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.timeline article > div { min-width: 0; }
.timeline article h3 { margin: 0; font-size: 1.15rem; font-weight: 800; }
.timeline strong { color: var(--red); text-transform: uppercase; letter-spacing: .02em; font-size: .95rem; }
.two-col, .contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 34px;
  align-items: start;
}
.info-box, .card, .contact-card, .contact-form, .download-list article, .guestbook article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 28px;
}
.info-box ul { margin: 0; padding-left: 20px; line-height: 1.8; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-grid .placeholder { min-height: 260px; }
.gallery-grid .tall { min-height: 390px; }
.download-list, .guestbook { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-form { display: grid; gap: 15px; }
.contact-form label { display: grid; gap: 7px; font-weight: 800; }
.contact-form input, .contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  font: inherit;
}
.link-list { display: grid; gap: 14px; }
.link-list a {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  text-decoration: none;
  font-weight: 950;
  color: var(--red-dark);
}
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.person-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.person-card .placeholder {
  min-height: 245px;
  margin-bottom: 20px;
}
.person-card { text-align: center; }
.person-photo {
  width: 100%; height: auto; aspect-ratio: 1 / 1; margin: 0 0 16px;
  border-radius: 18px; object-fit: cover; object-position: center 32%; display: block;
}
.person-card .role { margin: 12px 0 0; }
.person-email { margin: 12px 0 0; }
.person-email a { color: var(--red); font-weight: 700; text-decoration: none; word-break: break-word; }
.person-email a:hover { text-decoration: underline; }
/* WhatsApp-Kontakt: runder gruener Button, nur das WhatsApp-Emblem (keine Nummer
   sichtbar). Klick oeffnet den Chat (Nummer nur im wa.me-Linkziel). */
.person-whatsapp { margin: 14px 0 0; }
.person-whatsapp a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--red); text-decoration: none;
  box-shadow: 0 5px 14px rgba(140,22,34,.4);
  transition: transform .15s ease, filter .15s ease;
}
.person-whatsapp a::before {
  content: ""; width: 28px; height: 28px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='%23fff'%3E%3Cpath%20d='M17.472%2014.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94%201.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198%200-.52.074-.792.372-.272.297-1.04%201.016-1.04%202.479%200%201.462%201.065%202.875%201.213%203.074.149.198%202.096%203.2%205.077%204.487.71.306%201.263.489%201.694.625.712.227%201.36.195%201.872.118.571-.085%201.758-.719%202.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421%207.403h-.004a9.87%209.87%200%2001-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86%209.86%200%2001-1.51-5.26c.001-5.45%204.436-9.884%209.888-9.884%202.64%200%205.122%201.03%206.988%202.898a9.825%209.825%200%20012.893%206.994c-.003%205.45-4.437%209.885-9.885%209.885M20.52%203.449C18.24%201.245%2015.24%200%2012.045%200%205.463%200%20.104%205.334.101%2011.892c0%202.096.549%204.14%201.595%205.945L0%2024l6.335-1.652a12.062%2012.062%200%20005.71%201.447h.006c6.585%200%2011.946-5.335%2011.949-11.896%200-3.176-1.24-6.165-3.495-8.411'/%3E%3C/svg%3E") center / contain no-repeat;
}
.person-whatsapp a:hover { filter: brightness(1.06); transform: translateY(-2px); }
.footer {
  background: var(--black);
  color: var(--white);
  padding: 54px 24px 24px;
}
.footer-media { display: grid; align-self: center; }
.footer-image {
  width: 100%; min-height: 190px; height: 100%;
  background: url("bilder/text-ahnenstolz.webp") center center / contain no-repeat;
}
.footer-inner {
  width: min(1760px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2.6fr 1fr;
  align-items: start;
  gap: 36px;
  align-items: start;
}
.footer-brand h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.05;
  max-width: 360px;
}
.footer-brand p {
  color: rgba(255,255,255,.6);
  margin: 14px 0 0;
  font-weight: 700;
}
.footer-col h3 {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--sand);
  margin: 0 0 14px;
}
.footer a {
  display: block;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  margin: 9px 0;
  font-weight: 700;
}
.footer a:hover { color: #fff; }
.copyright {
  width: min(1760px, 100%);
  margin: 34px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.5);
}
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr; } }

/* Instagram-Link im Footer prominenter machen (ging als grauer 3. Link unter) –
   auf allen Bildschirmgroessen als markanter Instagram-Button.
   Ueber den href-Selektor gestylt, damit kein HTML/Partial angefasst werden muss. */
.footer-col a[href*="instagram"] {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 4px;
  padding: 13px 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, #833ab4 0%, #e1306c 55%, #f77737 100%);
  color: #fff !important;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  box-shadow: 0 8px 22px rgba(225,48,108,.38);
  transition: transform .15s ease, filter .15s ease;
}
.footer-col a[href*="instagram"]::before {
  content: "";
  width: 22px; height: 22px;
  flex: 0 0 auto;
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23fff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='2'%20y='2'%20width='20'%20height='20'%20rx='5'/%3E%3Ccircle%20cx='12'%20cy='12'%20r='4'/%3E%3Ccircle%20cx='17.3'%20cy='6.7'%20r='1'%20fill='%23fff'%20stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
}
.footer-col a[href*="instagram"]:hover { color: #fff !important; filter: brightness(1.08); transform: translateY(-2px); }
@media (max-width: 1050px) {
  .menu-toggle { display: block; }
  /* Fullscreen-Drawer: deckt den GANZEN Bildschirm, komplett deckend, scrollbar.
     Selektor .site-header .main-nav (Spezifitaet 0,2,0) ueberschreibt sicher das
     spaeter im Code stehende, unbedingte ".main-nav { position: relative }"
     (Desktop-Dropdown-Anker) — sonst bleibt der Drawer faelschlich "relative"
     und wird zu einem schmalen Block rechts statt Vollbild. */
  .site-header .main-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: #070707;
    border: 0;
    border-radius: 0;
    padding: 84px 24px 40px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .site-header .main-nav.open { display: flex; }

  /* Logo im Hintergrund ausblenden, solange das Menue offen ist (kein Durchscheinen) */
  .site-header:has(.main-nav.open) .brand { visibility: hidden; }

  /* Menue-Button schwebt bei offenem Drawer oben rechts (wird per JS zu ×) */
  .site-header:has(.main-nav.open) .menu-toggle {
    position: fixed; top: 16px; right: 16px; z-index: 210;
    font-size: 1.5rem; line-height: 1; padding: 2px 14px;
  }
  /* Groessere Tap-Flaechen im Handy-Menue (>= 44px) */
  .main-nav a { display: block; padding: 16px 8px; }
  .main-nav .dropdown a, .main-nav .subdropdown a { display: block; padding: 12px 10px; }
}
@media (max-width: 900px) {
  .intro-grid,
  .news-layout,
  .join-grid,
  .two-col,
  .contact-grid,
  .download-list,
  .guestbook {
    grid-template-columns: 1fr;
  }
  .events-strip,
  .years-grid,
  .stats-grid,
  .quick-links,
  .card-grid,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  /* Kontaktpersonen auf Mobile: 1-spaltig, Foto etwas hoeher (quadratisch) */
  .people-grid { grid-template-columns: 1fr; gap: 32px; }
  .person-photo { aspect-ratio: 1 / 1; object-position: center 22%; }
  .timeline article { grid-template-columns: 1fr; }
  .hero-overlay { background-size: cover, cover, 360px; background-position: center, center, center 32%; opacity: .95; }
}
@media (max-width: 620px) {
  .site-header { padding: 10px 14px; }
  .brand span { display: none; }
  .section { padding: 68px 0; }
  .events-strip,
  .years-grid,
  .stats-grid,
  .quick-links,
  .card-grid,
  .gallery-grid,
  .people-grid {
    grid-template-columns: 1fr;
  }
  .mini-post { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}


/* Neuer animierter Startbereich:
   1. Zuerst erscheint das Foto.
   2. Nach ca. 5 Sekunden dunkelt/verblasst es.
   3. Danach erscheint der Text-Layer mit Slogan, Logo und Buttons.
*/
.hero-animated {
  min-height: calc(100vh - 82px);
  position: relative;
  display: block;
  overflow: hidden;
  background: #000;
  color: #fff;
}

.hero-animated .hero-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform: scale(1.02);
  animation: heroKenBurns 30s ease-in-out 0s infinite alternate;
}
.hero-animated .hero-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.hero-animated .hero-darkener {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.92), rgba(0,0,0,.48), rgba(0,0,0,.78)),
    radial-gradient(circle at 78% 52%, rgba(179,33,45,.18), transparent 34%);
  opacity: 0;
  animation: heroDarken 1.1s ease 1.5s both;
}

.hero-animated .hero-layer {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 82px);
  width: min(1760px, calc(100% - 64px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 28px;
  padding: 70px 0;
  opacity: 0;
  transform: translateY(24px);
  animation: heroLayerIn 1s ease 1.5s both;
}

.hero-text-block {
  max-width: 820px;
  min-width: 0; /* verhindert, dass ein langes Einzelwort (z. B. "Mitglieder") die Grid-Spalte aufbläht und das Logo aus dem Bild drückt */
  position: relative;
  z-index: 2;
}

.hero-animated h1 {
  font-size: clamp(3.7rem, 10vw, 9.6rem);
  line-height: .84;
  letter-spacing: -.075em;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0,0,0,.85), 0 14px 45px rgba(0,0,0,.5);
  margin-top: .36em;
}

.hero-animated .lead {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(255,255,255,.92);
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  font-weight: 900;
  text-shadow: 0 2px 10px rgba(0,0,0,.8);
}

.hero-emblem {
  width: min(540px, 44vw);
  height: auto;
  justify-self: end;
  opacity: .43;
  filter: grayscale(1) contrast(1.08) drop-shadow(0 24px 45px rgba(0,0,0,.8));
}

.hero-animated .hero-buttons {
  justify-content: flex-start;
}

@keyframes heroPhotoFade {
  0% {
    opacity: 0;
    transform: scale(1.04);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes heroDarken {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes heroLayerIn {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero-emblem { display: none; }

  .hero-animated,
  .hero-animated .hero-layer {
    min-height: 78svh;
  }

  .hero-animated .hero-layer {
    grid-template-columns: 1fr;
    align-content: start;
    padding: 82px 0 40px;
  }

  .hero-animated h1 {
    font-size: clamp(3.2rem, 15vw, 6.5rem);
  }
}


/* Echte Bilder in News-/Blog-Karten */
.post-image {
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* Dropdown-Menü */
.main-nav {
  position: relative;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  display: block;
}

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  min-width: 210px;
  transform: translateX(-50%) translateY(8px);
  background: rgba(5, 5, 5, .98);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 18px 45px rgba(0,0,0,.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.dropdown a {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
  color: rgba(255,255,255,.82);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 0;
  font-size: .76rem;
  letter-spacing: .05em;
}

.dropdown a:hover {
  background: rgba(255,255,255,.09);
  color: var(--sand);
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-item:nth-last-child(-n+3) .dropdown {
  left: auto;
  right: 0;
  transform: translateY(8px);
}

.nav-item:nth-last-child(-n+3):hover .dropdown,
.nav-item:nth-last-child(-n+3):focus-within .dropdown {
  transform: translateY(0);
}

/* Erstes Menue (Start): linksbuendig direkt darunter oeffnen, nicht zentriert nach links versetzt */
.nav-item:first-child .dropdown {
  left: 0;
  right: auto;
  transform: translateX(0) translateY(8px);
}
.nav-item:first-child:hover .dropdown,
.nav-item:first-child:focus-within .dropdown {
  transform: translateX(0) translateY(0);
}

@media (max-width: 1050px) {
  .nav-item {
    width: 100%;
  }

  .nav-item > a {
    padding: 13px 10px;
  }

  /* Dropdowns oeffnen als Inline-Akkordeon direkt unter ihrem Menuepunkt.
     Alle Desktop-Positionierungen (absolute, translate, left/right aus den
     :first-child- und :nth-last-child-Regeln) werden hier hart zurueckgesetzt,
     damit "Start" nicht nach links versetzt wird und sauber darunter aufklappt. */
  .main-nav .dropdown {
    position: static !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    min-width: 0;
    width: 100%;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: 0;
    background: rgba(255,255,255,.06);
    margin: 4px 0 10px;
    padding: 6px;
    gap: 2px;
  }

  .dropdown::before {
    display: none;
  }

  .dropdown a {
    padding: 9px 14px;
    font-size: .72rem;
    color: rgba(255,255,255,.66);
  }
}


/* Verschachteltes Untermenü (z. B. Über uns: Kategorie -> Unterthema) */
.sub-item {
  position: relative;
}
.sub-item:has(.subdropdown) > a::after {
  content: "›";
  float: right;
  margin-left: 14px;
  opacity: .55;
}
.subdropdown {
  position: absolute;
  top: -10px;
  left: calc(100% + 8px);
  min-width: 220px;
  background: rgba(5, 5, 5, .98);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 18px 45px rgba(0,0,0,.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.subdropdown::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 0;
  bottom: 0;
  width: 12px;
}
.sub-item:hover .subdropdown,
.sub-item:focus-within .subdropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

/* Abschnitte sauber unter der fixen Menüleiste anspringen */
.page-main [id] { scroll-margin-top: 96px; }

/* Abwechselnde Themen-Bänder (cream / wine) */
.band-cream { background: var(--cream); }
.band-wine { background: var(--wine); color: var(--white); }
.band-wine .label { color: var(--sand); }
.band-wine p { color: rgba(255,255,255,.82); }
.band-wine .button { background: var(--white); border-color: var(--white); color: var(--red); }
.band-wine .button:hover { background: var(--cream); border-color: var(--cream); color: var(--red); }
.band-image { min-height: 300px; background-size: cover; background-position: center; border-radius: 26px; }

/* Mitglieder-/Funktionslisten (Funktion -> Name) */
.roster { list-style: none; margin: 24px 0 0; padding: 0; max-width: 860px; }
.roster li {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.roster .role { color: var(--muted); line-height: 1.4; }
.roster .name { font-weight: 800; }
.namelist {
  list-style: none; margin: 24px 0 0; padding: 0; max-width: 860px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px;
}
.namelist li { font-weight: 800; padding: 9px 0; border-bottom: 1px solid var(--line); }
.band-wine .roster li,
.band-wine .namelist li { border-color: rgba(255,255,255,.22); }
.band-wine .roster .role { color: rgba(255,255,255,.74); }
.band-wine .text-link { color: var(--sand); }
@media (max-width: 620px) {
  .roster li { grid-template-columns: 1fr; gap: 2px; }
  .namelist { grid-template-columns: 1fr; }
}
.roster-wide li { grid-template-columns: 120px 1fr; align-items: start; }
.roster-wide .role { color: var(--red); font-weight: 950; }
.roster-group { margin: 26px 0 4px; font-weight: 950; text-transform: uppercase; letter-spacing: .05em; font-size: .82rem; color: var(--red); }
.band-wine .roster-group { color: var(--sand); }
.prose { max-width: 820px; margin-top: 16px; }
.prose p { margin: 0 0 16px; line-height: 1.6; }
.chronik-bild { float: right; width: clamp(200px, 28%, 300px); min-height: 230px; margin: 4px 0 18px 30px; }
.band-cream::after, .band-wine::after { content: ""; display: table; clear: both; }
@media (max-width: 700px) { .chronik-bild { float: none; width: 100%; margin: 0 0 20px; } }
@media (max-width: 620px) { .roster-wide li { grid-template-columns: 1fr; } }

/* Mitglieder-Karten (Foto + Name) */
.member-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.member {
  display: block; text-align: center; padding: 0; cursor: pointer; font: inherit; color: inherit;
  background: transparent; border: 0; position: relative; transition: transform .2s ease;
}
.member-photo {
  display: block; width: 100%; aspect-ratio: 2 / 3;
  border-radius: 24px; overflow: hidden; background-color: var(--sand);
  transition: transform .22s ease, box-shadow .22s ease;
}
/* Vorschaubild als echtes <img>. WICHTIG: das Bild bekommt seine EIGENE Hoehe ueber
   aspect-ratio + height:auto (KEIN height:100% und KEINE absolute Positionierung).
   Damit gibt es keine Prozent-/Rahmen-abhaengige Hoehe, die iOS-Safari gegen die
   aspect-ratio-Hoehe zu 0 aufloesen kann – die Bilder werden zuverlaessig gezeichnet. */
.member-photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 2 / 3;
  object-fit: cover; object-position: center top;
}
/* Gruppenkachel (Plakattraeger, Querformat): eigenes Seitenverhaeltnis, mittig */
.member-large .member-photo img { aspect-ratio: 3 / 2; object-position: center; }
.member:hover .member-photo { transform: translateY(-6px); box-shadow: 0 18px 34px rgba(0,0,0,.28); }
.member-name { display: block; padding: 12px 4px 0; font-weight: 900; font-size: 1.02rem; }
.band-cream .member-name { color: var(--ink); }
.band-wine .member-name { color: #fff4dc; }
/* Gruppen-Kachel: je ein Name pro Person nebeneinander (ungefähr unter der Person) */
.member-names-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 10px; font-size: .9rem; }
.member-names-row span { display: block; }
@media (max-width: 620px) { .member-names-row { grid-template-columns: 1fr 1fr; } }
.members-photo { margin: 0 0 40px; }
.members-photo img { display: block; width: 100%; height: auto; border-radius: 26px; box-shadow: 0 18px 45px rgba(0,0,0,.14); }
.page-photo { margin: 0 0 40px; }
.page-photo img { display: block; width: 100%; height: auto; border-radius: 26px; box-shadow: 0 18px 45px rgba(0,0,0,.14); }
.page-photo.portrait { max-width: 470px; }
.member-rows { margin-top: 24px; display: grid; gap: 18px; }
.ausbildung-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 24px; max-width: 760px; }
.ausbildung-col h3 { color: var(--red); margin-bottom: 12px; }
.ausbildung-col ul { list-style: none; margin: 0; padding: 0; }
.ausbildung-col li { padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 800; }
.ausbildung-col li.frei { color: var(--muted); font-weight: 600; }
@media (max-width: 560px) { .ausbildung-cols { grid-template-columns: 1fr; } }
.member-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.member-row .member { flex: 1 1 150px; }
.member-row .member-large { flex: 2.2 1 340px; }
.member-large .member-photo { aspect-ratio: 3 / 2; background-position: center; }
/* Ehrengarde als Grid wie Pfeifer/Tambouren; Plakatträger-Kachel über 2 Spalten (Livia landet oben rechts) */
#ehrengarde .member-large { grid-column: span 2; }
.member-large:hover { transform: none; } /* Gruppen-Kachel: kein Zoom-Hover (ueberlappte sonst die Nachbarkachel) */
@media (max-width: 760px) { .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  /* Handy: alle Mitglieder sauber einspaltig untereinander – einheitliche
     Breite und Abstaende, keine versetzten Karten. */
  .member-grid { grid-template-columns: 1fr; }
  /* Ehrengarde: die Plakattraeger-Gruppenkachel darf in der 1-Spalten-Ansicht
     NICHT mehr 2 Spalten spannen – sonst erzwingt sie eine Phantom-Spalte und
     das Raster kippt in zwei ungleich breite Spalten (schmale zweite Spalte). */
  #ehrengarde .member-large { grid-column: auto; }
}

/* Mitglieder-Popup (Modal) */
.member-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.member-modal[hidden] { display: none; }
.member-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); }
.member-modal-card {
  position: relative; z-index: 1; width: min(760px, 100%); max-height: 90vh; overflow: hidden;
  background: var(--card); border-radius: 26px; box-shadow: 0 30px 80px rgba(0,0,0,.5);
  display: flex; align-items: stretch;
}
.member-modal-photo { flex: 0 0 42%; aspect-ratio: 2 / 3; background-size: cover; background-position: center; }
.member-modal-card .member-table { flex: 1; align-self: flex-start; padding: 10px 6px; }
/* Gruppen-Kachel (z. B. Plakatträger): ganzes Bild oben, nur Namen */
.member-modal-card.is-group { flex-direction: column; width: min(640px, 100%); }
.member-modal-card.is-group .member-modal-photo {
  flex: none; width: 100%; aspect-ratio: 3 / 2;
  background-size: contain; background-repeat: no-repeat; background-color: #0e0e0e;
}
@media (max-width: 600px) {
  .member-modal-card { flex-direction: column; width: min(360px, 100%); overflow: auto; }
  .member-modal-photo { flex: none; width: 100%; }
}
.member-modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 42px; height: 42px;
  border-radius: 999px; border: 0; background: rgba(0,0,0,.55); color: #fff;
  font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.member-table { width: 100%; border-collapse: collapse; }
.member-table th, .member-table td {
  text-align: left; padding: 15px 22px; border-top: 1px solid var(--line); vertical-align: top;
}
.member-table th { color: var(--muted); font-weight: 800; width: 44%; }
.member-table td { font-weight: 700; }

/* Blog: "in Bearbeitung"-Ebene über dem Inhalt */
.blog-locked { position: relative; }
.blog-locked-content { filter: blur(6px); opacity: .45; pointer-events: none; user-select: none; }
.blog-locked-screen { position: absolute; inset: 0; display: grid; align-items: start; justify-items: center; padding: 54px 24px; }
.wip-card {
  width: min(720px, 100%); background: var(--cream); border: 1px solid var(--line);
  border-radius: 26px; box-shadow: 0 30px 80px rgba(0,0,0,.3);
  padding: clamp(28px, 5vw, 48px); text-align: center;
}
.wip-card h2 { color: var(--red); font-size: clamp(1.6rem, 4.2vw, 2.6rem); line-height: 1.12; margin: 8px 0 22px; }
.wip-card p { color: var(--ink); text-align: left; margin: 12px 0; }

/* Wettspiele: Suche nach Jahr + Jahres-Blöcke */
.wettspiele-search { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.wettspiele-search label { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--muted); font-weight: 800; }
.wettspiele-search input {
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; font: inherit; font-weight: 800;
  background: var(--card); min-width: 170px; color: var(--ink);
}
.band-wine .wettspiele-search label { color: var(--sand); }
.wettspiele-list { display: grid; gap: 0; }
.wettspiel-year {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: start;
  color: var(--ink);
}
.wettspiel-year:first-child { border-top: 0; padding-top: 4px; }
.wettspiel-year h3 { color: var(--red); font-size: 2rem; line-height: 1; }
.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.event-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding: 11px 0; border-bottom: 1px solid var(--line); line-height: 1.4;
}
.event-list li:last-child { border-bottom: 0; }
.event-list .muted { color: var(--muted); }
.rang-link { color: var(--red); font-weight: 800; text-decoration: none; white-space: nowrap; font-size: .9rem; }
.rang-link:hover { text-decoration: underline; }

/* Blog: Daumen-Abstimmung + Kommentare */
.vote-bar { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.vote-btn {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 999px; padding: 11px 20px; font: inherit; font-weight: 800; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease, transform .1s ease;
}
.vote-btn:hover { border-color: var(--red); }
.vote-btn:active { transform: scale(.96); }
.vote-btn.active { border-color: var(--red); background: var(--red); color: #fff; }
.vote-count { font-variant-numeric: tabular-nums; }

.comments { margin-top: 40px; max-width: 760px; }
.comment-form { display: grid; gap: 12px; margin: 16px 0 26px; }
.comment-form input, .comment-form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
  font: inherit; background: var(--card); color: var(--ink);
}
.comment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.comment-list li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; }
.comment-list .c-name { font-weight: 900; }
.comment-list .c-date { color: var(--muted); font-size: .78rem; font-weight: 600; margin-left: 6px; }
.comment-list p { margin: 6px 0 0; color: var(--ink); }
.comment-empty { color: var(--muted); }

/* Vereinszeitung-Archiv: Ausgaben-Kacheln */
.zeitung-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px 22px; margin-top: 26px; }
.zeitung-card {
  background: none; border: 0; border-radius: 0;
  padding: 12px 0 0; text-decoration: none; color: var(--white); display: grid; gap: 4px;
  transition: border-color .15s ease, color .15s ease;
}
.zeitung-card:hover { border-color: var(--sand); }
.zeitung-card strong { color: var(--white); font-size: 1.7rem; line-height: 1; }
.zeitung-card span { color: rgba(255,255,255,.72); font-weight: 800; font-size: .82rem; }
.zeitung-card:hover span { color: var(--sand); }

/* Galerie: Jahres-Kacheln */
.gallery-years { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin-top: 26px; }
.year-tile {
  position: relative; overflow: hidden;
  display: grid; place-items: center; min-height: 200px;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  text-decoration: none; color: var(--red); font-weight: 950; font-size: 2.5rem; letter-spacing: -.02em;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.year-tile span { position: relative; z-index: 1; }
.year-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.18); border-color: var(--red); }
.year-tile-special { font-size: 1.5rem; text-align: center; line-height: 1.15; padding: 10px; }
/* Kachel mit Foto-Hintergrund + Jahr davor */
.year-tile.has-cover { color: #fff; border-color: transparent; background-size: cover; background-position: center; }
.year-tile.has-cover::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,.18));
}
.year-tile.has-cover span { text-shadow: 0 2px 14px rgba(0,0,0,.7); }
.year-tile.has-cover:hover { border-color: var(--red); }

/* Agenda: Download-Bereich als eigenes rotes Band */
.download-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.agenda-downloads .button { background: var(--white); border-color: var(--white); color: var(--red); }
.agenda-downloads .button:hover { background: var(--cream); border-color: var(--cream); color: var(--red); }

/* Galerie: Zurück-Button unten */
.gallery-back { padding: 6px 0 72px; text-align: center; }

/* Galerie: Anlässe auf-/zuklappen */
.gallery-heading { margin: 0; }
.gallery-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; padding: 6px 0; margin: 0; border: 0; background: none;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.gallery-toggle-text { display: inline-block; }
/* Auffälliger Aufklapp-Button: gefüllter Kreis mit klarem Pfeil */
.gallery-chevron {
  flex: none; position: relative;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  transition: transform .2s ease, background .15s ease;
}
.gallery-chevron::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 11px; height: 11px;
  border-right: 3px solid #fff; border-bottom: 3px solid #fff;
  transform: translate(-50%, -70%) rotate(45deg);   /* offen: Pfeil zeigt nach unten */
}
.gallery-section.collapsed .gallery-chevron::before {
  transform: translate(-65%, -50%) rotate(-45deg);  /* zu: Pfeil zeigt nach rechts */
}
/* Auf roten Bändern umgekehrt: weißer Kreis, roter Pfeil */
.band-wine .gallery-chevron { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.band-wine .gallery-chevron::before { border-color: var(--red); }
.gallery-toggle:hover .gallery-chevron { transform: scale(1.1); }
.gallery-section.collapsed .photo-grid { display: none; }

/* Automatisches Foto-Raster (Generator) */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 24px; }
.photo-grid picture { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 16px; }
.photo-grid img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  cursor: pointer; transition: transform .5s ease;
}
.photo-grid img:hover { transform: scale(1.07); }

/* Lightbox (Klick = Bild gross) */
.lightbox { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; gap: 16px; padding: 20px; background: rgba(0,0,0,.88); cursor: zoom-out; }
.lightbox.open { display: grid; align-content: center; }
.lightbox img { max-width: 95vw; max-height: 85vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox-close {
  position: fixed; top: 14px; right: 16px; z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  color: #fff; font-size: 1.9rem; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,.28); }
/* Weiter/Zurueck-Pfeile in der Lightbox */
.lightbox-nav {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 54px; height: 54px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.45);
  color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; padding-bottom: 4px;
  transition: background .15s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,.2); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
@media (max-width: 620px) {
  .lightbox-nav { width: 44px; height: 44px; font-size: 2rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}
.lightbox-tools { display: grid; gap: 14px; justify-items: center; }
.lightbox-rotate { display: flex; gap: 10px; }
.lightbox-rotate button {
  width: 48px; height: 48px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.55); background: rgba(255,255,255,.12);
  color: #fff; font-size: 1.35rem; line-height: 1; transition: background .15s ease;
}
.lightbox-rotate button:hover { background: rgba(255,255,255,.28); }
.lightbox-rotate button:disabled { opacity: .4; cursor: default; }
.lightbox-download {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  background: var(--red); color: var(--white);
  font-weight: 700; font-size: .95rem; text-decoration: none;
  cursor: pointer; transition: background .15s ease, transform .15s ease;
}
.lightbox-download:hover { background: var(--red-dark); transform: translateY(-1px); }
@media (max-width: 620px) { .wettspiel-year { grid-template-columns: 1fr; gap: 8px; } }

@media (max-width: 1050px) {
  .sub-item:has(.subdropdown) > a::after {
    content: "";
  }
  .subdropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: 0;
    min-width: 0;
    background: rgba(255,255,255,.05);
    margin: 2px 0 6px 14px;
    padding: 4px;
    display: grid;
    gap: 2px;
  }
}


/* ============================================================
   Barrierefreiheit: Skip-Link + sichtbarer Tastatur-Fokus
   ============================================================ */
.skip-link {
  position: absolute; left: 14px; top: -70px; z-index: 2000;
  background: var(--red); color: #fff; padding: 12px 20px;
  border-radius: 12px; font-weight: 900; text-decoration: none;
  transition: top .18s ease;
}
.skip-link:focus { top: 14px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.band-wine :focus-visible,
.news-and-events :focus-visible,
.hero :focus-visible,
.footer :focus-visible,
.lightbox :focus-visible { outline-color: #fff; }
.photo-grid img:focus-visible {
  outline: 3px solid #fff; outline-offset: -3px; box-shadow: 0 0 0 6px var(--red);
}


/* ============================================================
   Paket A: Bewegung - Hero-Zoom (Ken Burns) + Scroll-Reveal
   ============================================================ */
@keyframes heroKenBurns {
  from { transform: scale(1.05); }
  to   { transform: scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-animated .hero-photo { animation: none; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.22, .61, .36, 1);
  }
  .reveal.is-visible { opacity: 1; transform: none; }
}
.band-contain { aspect-ratio: 3 / 2; min-height: 0; background-size: contain; background-repeat: no-repeat; }


/* ============================================================
   Paket B: Full-Bleed-Bildband + Bild-Hover-Zoom
   ============================================================ */
.feature-band { position: relative; width: 100%; height: clamp(340px, 52vh, 600px); overflow: hidden; display: grid; }
.feature-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-band-inner {
  position: relative; z-index: 1; display: grid; align-content: end; justify-items: center;
  text-align: center; gap: 8px; padding: 24px 24px clamp(28px, 5vh, 54px);
  background: linear-gradient(to top, rgba(5,5,5,.68), rgba(5,5,5,.14) 55%, rgba(5,5,5,.08)); color: #fff;
}
.feature-band-inner.fb-mid {
  align-content: center; padding: 24px;
  background: linear-gradient(to bottom, rgba(5,5,5,.12), rgba(5,5,5,.52) 42%, rgba(5,5,5,.52) 62%, rgba(5,5,5,.12));
}
.feature-band-inner .label { color: var(--sand); }
.feature-band-inner h2 {
  font-size: clamp(2rem, 5.5vw, 4.4rem); line-height: 1.02; text-transform: uppercase;
  letter-spacing: -.02em; text-shadow: 0 2px 24px rgba(0,0,0,.6); max-width: 18ch;
}
.photo-grid picture:has(img:focus-visible) { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px var(--red); }
/* Hover: die ganze Kachel wächst (Foto + Name gemeinsam) – Name bleibt sichtbar, siehe .member:hover */


/* --- Rechtliche Seiten (Datenschutz / Impressum) --- */
.legal-stand { font-size: .82rem !important; color: var(--sand) !important; letter-spacing: .12em; text-transform: uppercase; margin-top: 14px !important; font-weight: 800; }
.legal-wrap { max-width: min(1500px, calc(100% - 48px)); }
.legal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 52px; }
.legal-card {
  background: transparent; border: 0; box-shadow: none;
  border-top: 1px solid rgba(140,22,34,.16);
  padding: 24px 2px 22px;
  display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: start;
}
.legal-ico {
  grid-row: span 2; align-self: start;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; font-size: 1.3rem; line-height: 1;
  background: rgba(140,22,34,.07); border: 1px solid rgba(140,22,34,.18);
}
.legal-card h2 { grid-column: 2; margin: 2px 0 0; font-size: 1.12rem; color: var(--red); text-transform: none; letter-spacing: 0; }
.legal-card p { grid-column: 2; margin: 6px 0 0; color: #2b2420; line-height: 1.6; }
.legal-cta {
  margin-top: 44px; text-align: center; background: var(--wine); color: #fff;
  border-radius: 22px; padding: 40px 28px;
}
.legal-cta h2 { color: #fff; margin: 0 0 10px; font-size: clamp(1.4rem, 3.2vw, 2rem); text-transform: none; letter-spacing: 0; line-height: 1.12; }
.legal-cta p { color: rgba(255,255,255,.86); max-width: 540px; margin: 0 auto 20px; }
.legal-cta .button { background: #fff; border-color: #fff; color: var(--red); }
.legal-cta .button:hover { background: var(--cream); border-color: var(--cream); }
.legal-back { display: inline-block; margin-top: 30px; font-weight: 800; color: var(--red); text-decoration: none; }
.legal-back:hover { text-decoration: underline; }

/* legal responsive */
@media (max-width: 920px){ .legal-grid { grid-template-columns: 1fr 1fr; gap: 0 40px; } }
@media (max-width: 600px){ .legal-grid { grid-template-columns: 1fr; } }

.legal-hero { padding: 84px 16px 70px; }
.legal-hero h1 { font-size: clamp(2.6rem, 6.5vw, 5.2rem); line-height: 1.02; margin: 0 auto; max-width: none; }
.legal-hero p { margin-top: 18px; }

.legal-card.wide { grid-column: 1 / -1; }

.copyright a { display: inline; color: rgba(255,255,255,.72); text-decoration: none; }
.copyright a:hover { color: #fff; text-decoration: underline; }

/* --- Mobile-Navigation: einklappbare Unter- und Sub-Menues --- */
.nav-caret { display: none; }
@media (max-width: 1050px) {
  .main-nav .nav-item { display: flex; flex-wrap: wrap; align-items: center; }
  .main-nav .nav-item > a { flex: 1; min-width: 0; display: flex; align-items: center; min-height: 56px; }

  .main-nav .dropdown { flex-basis: 100%; display: none; border-radius: 12px; }
  .main-nav .nav-item.expanded > .dropdown { display: grid; }

  .main-nav .sub-item { display: flex; flex-wrap: wrap; align-items: center; width: 100%; }
  .main-nav .sub-item > a { flex: 1; min-width: 0; display: flex; align-items: center; min-height: 52px; }
  .main-nav .sub-item:has(.subdropdown) > a::after { display: none; content: none; }

  /* Dritte Ebene (Ehrengarde/Pfeifer/Tambouren ...) im Handy-Menue komplett
     ausblenden: bei "Ueber uns" nur Verein/Mitglieder/Chronik zeigen. Ein Klick
     auf einen Sub-Punkt fuehrt direkt auf die jeweilige Seite. */
  .main-nav .subdropdown { display: none !important; }

  .main-nav .nav-caret {
    display: flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; flex: 0 0 auto; padding: 0;
    background: transparent; border: 0; color: rgba(255,255,255,.7);
    font-size: 1rem; cursor: pointer;
  }
  .main-nav .nav-caret span { transition: transform .2s ease; line-height: 1; }
  .main-nav .expanded > .nav-caret span { transform: rotate(180deg); }
}

.wip-card .label { color: var(--red); }

.legal-card a { color: var(--red); font-weight: 700; text-decoration: none; word-break: break-word; }
.legal-card a:hover { text-decoration: underline; }

/* 404-Seite */
body.error-page { min-height: 100vh; display: flex; flex-direction: column; }
body.error-page .page-main { flex: 1; display: flex; }
.error-hero { flex: 1; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.error-inner { display: grid; justify-items: center; }
.error-code {
  font-size: clamp(6rem, 22vw, 15rem); line-height: .85; font-weight: 950;
  letter-spacing: -.06em; color: var(--red); margin: 0 0 10px; text-transform: none;
}
.error-text { max-width: 520px; margin: 18px auto 30px; color: var(--muted); font-size: 1.1rem; line-height: 1.5; }
.error-actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; justify-content: center; }


/* === Mobile-Typografie: grosse Ueberschriften nicht ueber den Rand === */
@media (max-width: 620px) {
  h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
  h2, .join-title {
    font-size: clamp(2.25rem, 10.5vw, 3.6rem);
    line-height: .92;
    letter-spacing: -.05em;
  }
  .container { width: min(100% - 36px, 1760px); }
}

/* FIX: Mitgliederseite auf Handy ohne Erscheinen-/Reveal-Effekt.
   Der Scroll-Reveal setzt Elemente auf opacity:0 und blendet sie per
   IntersectionObserver ein. Loest der auf manchen Handys (Samsung Internet) bei den
   unteren Abschnitten nicht aus, bleiben Pfeifer/Tambouren unsichtbar (Klickflaeche
   + Platz aber da). Darum hier Sichtbarkeit hart erzwingen. Nur Mitgliederseite,
   nur Handy – der Effekt bleibt auf allen anderen Seiten erhalten. */
@media (max-width: 760px) {
  .members-page .member,
  .members-page .member *,
  .members-page .member-photo,
  .members-page .member-photo img,
  .members-page .member-grid,
  .members-page .member-grid * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
    clip-path: none !important;
  }

  .members-page .member-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 34px !important;
  }

  .members-page .member {
    display: block !important;
    width: 100% !important;
    background: var(--card) !important;
    color: var(--ink) !important;
    overflow: hidden !important;
  }

  .members-page .member-photo {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 2 / 3 !important;
    min-height: 360px !important;
    background: transparent !important;
    overflow: hidden !important;
  }

  .members-page .member-photo img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
  }

  .members-page .member-name {
    display: block !important;
  }
}

/* Mitgliederseite Handy: weissen Kartenrand entfernen (Karte transparent,
   Bild mit runden Ecken, Name direkt darunter). Kommt bewusst NACH dem
   vorherigen Block, damit background:transparent gegen var(--card) gewinnt. */
@media (max-width: 760px) {
  .members-page .member {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
  }

  .members-page .member-photo {
    background: transparent !important;
    border-radius: 28px !important;
    overflow: hidden !important;
  }

  .members-page .member-photo img {
    border-radius: 28px !important;
    display: block !important;
  }

  .members-page .member-name {
    background: transparent !important;
    padding: 14px 0 0 !important;
    text-align: center !important;
    font-weight: 950 !important;
  }

  .members-page .band-wine .member-name {
    color: #fff !important;
  }

  .members-page .band-cream .member-name {
    color: var(--ink) !important;
  }

  /* Plakattraeger ist ein Querformat-Gruppenfoto (alle 4 drauf): auf dem Handy
     NICHT ins Hochformat 2/3 zwingen, sondern Querformat 3/2 -> ganzes Bild
     sichtbar, Kachel flacher. */
  .members-page .member-large .member-photo {
    aspect-ratio: 3 / 2 !important;
    min-height: 0 !important;
  }
  .members-page .member-large .member-photo img {
    object-fit: cover !important;
    object-position: center !important;
  }
}

/* Mitgliederseite Handy: Platzhalter (Mitglieder ohne Foto) wieder anzeigen –
   dunkler Vereins-Hintergrund, OHNE Text. Muss NACH dem transparent-Block
   kommen, sonst gewinnt wieder der transparente Hintergrund. */
@media (max-width: 760px) {
  .members-page .member-photo.placeholder {
    display: block !important;
    min-height: 360px !important;
    border-radius: 28px !important;
    overflow: hidden !important;

    background:
      linear-gradient(135deg, rgba(5,5,5,.45), rgba(5,5,5,.62)),
      url("bilder/hero-hintergrund.jpg") center / cover no-repeat !important;
  }
}
