:root {
  --bg: #f5f3ef;
  --paper: #f8f5f0;
  --panel: rgba(255, 255, 255, 0.66);
  --ink: #121212;
  --muted: #4e4d49;
  --line: rgba(18, 18, 18, 0.12);
  --darkbar: #6d6a67;
  --gold: #d7b861;
  --gold-deep: #a57b2b;
  --red: #d62d2d;
  --red-deep: #8c1b24;
  --green: #49a35a;
  --green-deep: #285b36;
  --blue: #2195d3;
  --blue-deep: #0f5a7b;
  --shadow: rgba(30, 24, 18, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #efefef;
  color: var(--ink);
  font-family: "Inter", sans-serif;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-shell {
  min-height: 100vh;
}

.topbar {
  background: rgba(104, 100, 97, 0.9);
  color: #fff;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.1);
}

.topbar-inner {
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  min-height: 40px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  min-height: 40px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.brand-text {
  opacity: 0.9;
}

.main-content {
  padding-top: 28px;
  padding-bottom: 36px;
}

.hero-banner {
  position: relative;
  min-height: 430px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background:
    linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.28)),
    url('../assets/gallery/g01.jpeg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 0 0 10px rgba(255, 216, 128, 0.18);
}

.hero-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.34);
}

.hero-overlay h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.3rem, 5vw, 5rem);
  line-height: 0.9;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.hero-overlay p {
  margin: 16px 0 0;
  font-size: 1.1rem;
  font-weight: 500;
  font-style: italic;
  color: rgba(255,255,255,0.9);
}

.news-section {
  padding-top: 38px;
}

.news-heading,
.about-section h2,
.associations-section h2,
.events-section h2,
.gallery-section h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 4vw, 4.2rem);
  line-height: 1;
  font-weight: 600;
  text-align: center;
  margin: 0 0 28px;
  font-style: italic;
}

.news-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.5fr;
  gap: 34px;
  align-items: start;
}

.news-aside {
  padding: 20px 18px 0 0;
  border-right: 1px solid var(--line);
  text-align: left;
}

.news-aside h3,
.news-article h3 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 2vw, 2.1rem);
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
}

.news-aside p,
.news-article p,
.about-section p,
.event-copy p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.98rem;
}

.news-aside .small {
  margin-top: 14px;
  font-size: 0.9rem;
}

.about-section {
  padding-top: 42px;
}

.about-section p {
  max-width: 980px;
  margin: 0 auto;
  text-align: left;
  font-size: 1.02rem;
}

.associations-section {
  padding-top: 42px;
}

.association-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.association-card {
  background: rgba(255,255,255,0.4);
  border: 1px solid var(--line);
  min-height: 370px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 18px 30px rgba(25,22,18,0.04);
  position: relative;
}

.association-card::before {
  content: "";
  position: absolute;
  inset: 12px 12px auto 12px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(199, 170, 72, 0.45), rgba(116, 50, 19, 0.08), rgba(199, 170, 72, 0.45));
}

.association-card h3 {
  margin: 16px 0 18px;
  min-height: 54px;
  text-align: center;
  font-size: 1.15rem;
  line-height: 1.4;
  font-weight: 600;
}

.association-card img.wappen {
  width: min(100%, 260px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 16px;
  background: rgba(255,255,255,0.22);
  border: 5px solid rgba(22, 20, 18, 0.82);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,0.18), 0 14px 22px rgba(34, 26, 17, 0.08);
}

.wappen {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border: 5px solid rgba(22, 20, 18, 0.82);
  background: linear-gradient(135deg, #f6f1dc 0%, #d9c07c 100%);
  border-radius: 18px 18px 24px 24px;
  box-shadow: inset 0 0 0 4px rgba(255,255,255,0.22), 0 14px 22px rgba(34, 26, 17, 0.08);
  overflow: hidden;
}

.wappen::before,
.wappen::after {
  content: "";
  position: absolute;
}

.wappen::before {
  inset: 10% 10% 8% 10%;
  border-radius: 18px;
  background: rgba(255,255,255,0.2);
  box-shadow: inset 0 0 0 2px rgba(23, 17, 12, 0.12);
}

.wappen.red {
  background: linear-gradient(135deg, #f2d8cf 0%, #cf4d4d 42%, #7a1d24 100%);
}

.wappen.red::before {
  inset: 14% 18% 18% 18%;
  border-radius: 14px 14px 18px 18px;
  background: linear-gradient(135deg, #f7f7f7 0%, #dfe3e8 100%);
  box-shadow: inset 0 0 0 5px rgba(31,26,24,0.75);
}

.wappen.red::after {
  left: 50%;
  top: 50%;
  width: 38%;
  height: 38%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #f9f9f9 0%, #d1d1d1 40%, #7a7a7a 100%);
  box-shadow: 0 0 0 6px rgba(0,0,0,0.12);
}

.wappen.purple {
  background: linear-gradient(135deg, #f0dbff 0%, #8b5cb4 40%, #3d2d6a 100%);
}

.wappen.purple::before {
  inset: 12% 18% 18% 18%;
  border-radius: 14px 14px 18px 18px;
  background: linear-gradient(135deg, #f5f1e6 0%, #d0b57d 42%, #8b6a2a 100%);
}

.wappen.purple::after {
  left: 50%;
  top: 52%;
  width: 42%;
  height: 42%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.88), rgba(149,149,149,0.75));
  box-shadow: 0 0 0 6px rgba(0,0,0,0.12);
}

.wappen.blue {
  background: linear-gradient(135deg, #d8f1ff 0%, #6ab7db 35%, #1d6d92 100%);
}

.wappen.blue::before {
  inset: 18% 20% 18% 20%;
  border-radius: 12px 12px 18px 18px;
  background: linear-gradient(135deg, #faf4eb 0%, #e8d6a0 100%);
}

.wappen.blue::after {
  left: 50%;
  top: 50%;
  width: 34%;
  height: 34%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: linear-gradient(135deg, #a3d6ff 0%, #f4d8ad 100%);
}

.wappen.green-dark {
  background: linear-gradient(135deg, #d3f0d0 0%, #4d8f5f 40%, #234b34 100%);
}

.wappen.green-dark::before {
  inset: 14% 18% 20% 18%;
  border-radius: 16px 16px 18px 18px;
  background: linear-gradient(135deg, #f7f7f7 0%, #d8d8d8 100%);
}

.wappen.green-dark::after {
  inset: 35% 20% 25% 20%;
  border-radius: 8px;
  background: linear-gradient(135deg, #7b9c24, #d0ce2b);
}

.wappen.green-soft {
  background: linear-gradient(135deg, #e4f5cc 0%, #98ca79 36%, #11744d 100%);
}

.wappen.green-soft::before {
  inset: 14% 18% 18% 18%;
  border-radius: 20px 20px 18px 18px;
  background: linear-gradient(135deg, #f4f4f4 0%, #d5d5d5 100%);
}

.wappen.green-soft::after {
  left: 50%;
  top: 50%;
  width: 40%;
  height: 40%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53, 118, 58, 0.7), rgba(23, 42, 27, 0.9));
}

.wappen.green-light {
  background: linear-gradient(135deg, #f2f9ca 0%, #c5db3b 30%, #497810 100%);
}

.wappen.green-light::before {
  inset: 17% 18% 18% 18%;
  border-radius: 18px;
  background: linear-gradient(135deg, #f7f7f7 0%, #d9d9d9 100%);
}

.wappen.green-light::after {
  left: 50%;
  top: 52%;
  width: 36%;
  height: 36%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: linear-gradient(135deg, #e4db61, #c7942d);
}

.meta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.association-card .more-link,
.association-card .secondary,
.association-card button {
  appearance: none;
  border: 0;
  border-radius: 4px;
  background: #d73037;
  color: #fff;
  padding: 7px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1.2;
}

.association-card .secondary,
.association-card button.secondary {
  background: #e7f0ff;
  color: #1f427a;
}

.events-section {
  padding-top: 56px;
}

.event-year {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 14px;
  font-family: "Cormorant Garamond", serif;
}

.event-list {
  max-width: 640px;
  margin: 0 auto;
}

.month-row {
  text-align: center;
  padding: 18px 0 12px;
  font-size: 1.8rem;
  font-family: "Cormorant Garamond", serif;
  border-bottom: 1px solid var(--line);
  margin: 0 0 14px;
}

.event-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 22px;
  align-items: center;
  background: rgba(255,255,255,0.38);
  border: 1px solid var(--line);
  box-shadow: 0 12px 20px rgba(0,0,0,0.03);
  padding: 14px 18px 14px 14px;
  margin: 12px 0 18px;
}

.date-box {
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  background: #201f20;
  color: #fff;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.day {
  font-size: 3.2rem;
  font-weight: 700;
  font-family: "Cormorant Garamond", serif;
}

.event-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tag {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2a628f;
  font-weight: 700;
}

.event-copy h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
}

.time-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ebd778;
  color: #2e2b2d;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
}

.gallery-section {
  padding-top: 54px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.gallery-item {
  min-height: 180px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.4);
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item.large-script {
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.5);
}

.gallery-item.large-script span {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(4rem, 7vw, 7rem);
  font-style: italic;
  line-height: 0.8;
  color: #191919;
  transform: rotate(-8deg);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.22);
  margin-top: 42px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 0 28px;
  color: var(--muted);
}

.footer-inner p {
  margin: 0;
  font-size: 0.92rem;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-inner nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.84rem;
}

.legal-page {
  padding-top: 38px;
  padding-bottom: 52px;
}

.legal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.legal-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.legal-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.legal-content {
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 36px);
  border-radius: 18px;
}

.legal-content h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.legal-content h2 {
  margin: 28px 0 12px;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}

.legal-content h3 {
  margin: 18px 0 8px;
  font-size: 1.05rem;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.98rem;
}

.legal-content ul {
  padding-left: 1.1rem;
}

@media (max-width: 980px) {
  .association-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .main-content {
    padding-top: 16px;
  }

  .navbar-nav {
    gap: 0.15rem !important;
  }

  .navbar-nav .nav-link {
    padding: 0.35rem 0.45rem;
    font-size: 0.88rem;
  }

  .hero-banner {
    min-height: 320px;
    padding: 28px 16px;
    box-shadow: inset 0 0 0 6px rgba(255, 216, 128, 0.18);
  }

  .hero-overlay h1 {
    font-size: clamp(2.4rem, 9vw, 3.5rem);
    line-height: 0.98;
  }

  .hero-overlay p {
    font-size: 1rem;
  }

  .news-heading,
  .about-section h2,
  .associations-section h2,
  .events-section h2,
  .gallery-section h2 {
    font-size: clamp(2.25rem, 8vw, 3rem);
    margin-bottom: 20px;
  }

  .news-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .news-aside {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
  }

  .association-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .association-card {
    min-height: 0;
    padding: 16px 12px;
  }

  .association-card img.wappen {
    width: min(100%, 200px);
  }

  .association-card h3 {
    min-height: 0;
    font-size: 1rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .gallery-item {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .gallery-item.large-script span {
    font-size: clamp(3rem, 12vw, 5rem);
  }

  .event-year {
    font-size: 1.5rem;
  }

  .event-card {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
  }

  .date-box {
    width: 72px;
    height: 72px;
  }

  .day {
    font-size: 2.4rem;
  }

  .event-copy h3 {
    font-size: 1.05rem;
  }

  .time-pill {
    max-width: 100%;
    white-space: normal;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .legal-header {
    gap: 12px;
  }
}

@media (max-width: 520px) {
  .hero-overlay {
    width: 100%;
  }

  .hero-banner {
    padding-right: 0;
    padding-left: 0;
  }

  .hero-overlay h1 {
    font-size: clamp(1.5rem, 8.8vw, 2.4rem);
  }

  .news-heading,
  .about-section h2,
  .associations-section h2,
  .events-section h2,
  .gallery-section h2 {
    font-size: clamp(1.5rem, 8vw, 2.3rem);
  }

  .association-grid {
    grid-template-columns: 1fr;
  }

  .association-card img.wappen {
    width: min(100%, 220px);
  }

  .event-card {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
  }

  .date-box {
    width: 60px;
    height: 60px;
    border-radius: 8px;
  }

  .day {
    font-size: 2rem;
  }

  .tag {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
  }

  .event-copy p {
    font-size: 0.9rem;
  }

  .event-copy {
    min-width: 0;
  }

  .event-copy h3,
  .event-copy p {
    overflow-wrap: anywhere;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner nav {
    gap: 10px;
  }

  .legal-content {
    padding: 18px;
    border-radius: 12px;
  }

  .legal-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
