/* ==========================================================================
   BKUD Sebilj — Design-System
   Palette aus dem Vereinssiegel: Gold auf Pergament, dazu Krapprot aus der
   Nošnja als einziger Akzent. Kein Terrakotta, kein Verlauf, kein Schatten.
   ========================================================================== */

/* ==========================================================================
   Schriften
   --------------------------------------------------------------------------
   Die Dateien liegen in assets/fonts/ und werden vom eigenen Webspace
   ausgeliefert. Es gibt keine Verbindung zu Google — deshalb braucht die
   Seite keinen Cookie-Banner.

   Fehlen die Dateien, greift automatisch die Ersatzschrift. Die Seite
   funktioniert also auch ohne sie, sieht nur weniger festlich aus.
   Anleitung zum Nachrüsten steht in der README.
   ========================================================================== */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-024F, U+2000-206F, U+20A0-20BF;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-024F, U+2000-206F, U+20A0-20BF;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-024F, U+2000-206F, U+20A0-20BF;
}

@font-face {
  font-family: "Cinzel";
  src: url("fonts/cinzel-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-024F, U+2000-206F, U+20A0-20BF;
}

:root {
  --font-display: "Cormorant Garamond";
  --font-body: "Source Sans 3";
  --font-label: "Cinzel";

  --ink: #16130f;
  --ink-soft: #2a241c;
  --ink-line: #3a3228;

  --parchment: #f4efe4;
  --parchment-deep: #e9e0cd;
  --parchment-line: #d5c9ae;

  --gold: #a8823c;
  --gold-light: #d8bc80;

  --madder: #7b2b27;
  --madder-light: #a8524d;

  --text: #221e18;
  --text-muted: #5c5344;
  --text-inv: #f4efe4;
  --text-inv-muted: #b8ab93;

  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section: clamp(4rem, 9vw, 7.5rem);

  --step--1: clamp(0.8rem, 0.77rem + 0.15vw, 0.88rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.35rem + 1.2vw, 2.3rem);
  --step-3: clamp(2.1rem, 1.6rem + 2.4vw, 3.4rem);
  --step-4: clamp(2.6rem, 1.7rem + 4.2vw, 5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--parchment);
  color: var(--text);
  font-family: var(--font-body), "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  font-family: var(--font-display), Georgia, serif;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0 0 1.1em;
  text-wrap: pretty;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

:focus-visible {
  outline: 2px solid var(--madder);
  outline-offset: 3px;
}

.on-dark :focus-visible {
  outline-color: var(--gold-light);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Grundbausteine ------------------------------------------------------ */

.wrap {
  width: min(72rem, 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap-narrow {
  width: min(46rem, 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--text-inv);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}

.skip:focus {
  left: 0;
}

/* Eyebrow mit Aksak-Marke: drei Striche in ungleichen Längen — die
   ungeraden Taktarten der Tänze als Strukturzeichen, nicht als Dekor. */
.eyebrow {
  font-family: var(--font-label), Georgia, serif;
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 1.4rem;
  height: 0.5rem;
  background-image: linear-gradient(
    to right,
    currentColor 0 0.55rem,
    transparent 0.55rem 0.75rem,
    currentColor 0.75rem 1rem,
    transparent 1rem 1.2rem,
    currentColor 1.2rem 1.4rem
  );
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 1px;
}

.on-dark .eyebrow {
  color: var(--gold-light);
}

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-label), Georgia, serif;
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.6rem;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.btn:hover {
  background: var(--gold);
  color: var(--ink);
}

.btn-solid {
  background: var(--madder);
  border-color: var(--madder);
  color: var(--parchment);
}

.btn-solid:hover {
  background: var(--madder-light);
  border-color: var(--madder-light);
  color: var(--parchment);
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* --- Kopfzeile ----------------------------------------------------------- */

.header {
  background: var(--ink);
  color: var(--text-inv);
  border-bottom: 1px solid var(--ink-line);
  position: relative;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.9rem;
}

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

.brand img {
  width: 56px;
  height: 56px;
  flex: none;
  transition: transform 200ms ease;
}

.brand:hover img {
  transform: scale(1.04);
}

/* Nur aktiv, wenn HEADER_WORDMARK in build.mjs auf true steht. */
.brand-name,
.brand-sub {
  display: block;
}

.brand-name {
  font-family: var(--font-label), Georgia, serif;
  font-size: 1rem;
  letter-spacing: 0.2em;
  line-height: 1;
}

.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-inv-muted);
  margin-top: 0.35rem;
}

/* Für Screenreader lesbar, optisch unsichtbar. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.7vw, 1.5rem);
}

.nav a {
  font-size: 0.92rem;
  white-space: nowrap;
  text-decoration: none;
  color: var(--text-inv-muted);
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color 140ms ease, border-color 140ms ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--parchment);
  border-bottom-color: var(--gold);
}

.lang {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-label), Georgia, serif;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
}

.lang a {
  text-decoration: none;
  color: var(--text-inv-muted);
}

.lang a[aria-current="true"] {
  color: var(--gold-light);
}

.lang span {
  color: var(--ink-line);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink-line);
  color: var(--text-inv);
  font-family: var(--font-label), Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
}

@media (max-width: 68rem) {
  .menu-toggle {
    display: inline-block;
  }

  .nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--ink-line);
    padding: 0.5rem var(--gutter) 1.5rem;
  }

  .nav[data-open="true"] {
    display: flex;
  }

  .nav a {
    padding-block: 0.85rem;
    border-bottom: 1px solid var(--ink-line);
    white-space: normal;
  }
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  background: var(--ink);
  color: var(--text-inv);
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    62% 78% at 50% 12%,
    rgba(168, 130, 60, 0.16),
    transparent 70%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center;
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.hero-seal {
  width: clamp(110px, 16vw, 168px);
  margin-inline: auto;
  margin-bottom: 2rem;
}

.hero .eyebrow {
  justify-content: center;
}

.hero h1 {
  font-size: var(--step-4);
  margin-bottom: 1.25rem;
}

.hero-sub {
  max-width: 40ch;
  margin-inline: auto;
  color: var(--text-inv-muted);
  font-size: var(--step-1);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 2.25rem;
}

/* Signatur: die Kolo-Kette. Reduzierte Figuren, die sich an den Händen
   fassen — die Form der Tänze als durchlaufendes Band der Seite. */
.chain {
  display: block;
  width: 100%;
  height: 44px;
  color: var(--gold);
}

.chain-dark {
  color: var(--gold);
  opacity: 0.5;
}

.chain-light {
  color: var(--parchment-line);
}

/* --- Auszeichnungsband --------------------------------------------------- */

.award {
  background: var(--madder);
  color: var(--parchment);
}

.award-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding-block: 1.75rem;
}

.award .eyebrow {
  color: rgba(244, 239, 228, 0.75);
  margin-bottom: 0.5rem;
}

.award h2 {
  font-size: var(--step-2);
}

.award-meta {
  font-size: var(--step--1);
  color: rgba(244, 239, 228, 0.8);
  margin: 0.5rem 0 0;
  letter-spacing: 0.02em;
}

.award .btn {
  border-color: rgba(244, 239, 228, 0.55);
  color: var(--parchment);
  flex: none;
}

.award .btn:hover {
  background: var(--parchment);
  color: var(--madder);
}

/* --- Abschnitte ---------------------------------------------------------- */

.section {
  padding-block: var(--section);
}

.section-tight {
  padding-block: calc(var(--section) * 0.62);
}

.section-dark {
  background: var(--ink);
  color: var(--text-inv);
}

.section-deep {
  background: var(--parchment-deep);
}

.section h2 {
  font-size: var(--step-3);
}

.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 46ch;
}

.on-dark .lead {
  color: var(--text-inv-muted);
}

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  }
}

.prose {
  max-width: var(--measure);
}

.prose p {
  margin-bottom: 1.15em;
}

.prose h3 {
  font-size: var(--step-1);
  margin: 2.4rem 0 0.8rem;
  color: var(--text);
}

.on-dark .prose h3 {
  color: var(--text-inv);
}

.prose ul {
  margin: 0 0 1.4em;
  padding-left: 1.1rem;
  list-style: none;
}

.prose li {
  position: relative;
  margin-bottom: 0.55em;
  padding-left: 0.9rem;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 0.5rem;
  height: 1px;
  background: var(--gold);
}

.prose blockquote {
  margin: 2rem 0;
  padding: 0 0 0 1.4rem;
  border-left: 2px solid var(--gold);
  font-family: var(--font-display), Georgia, serif;
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--text);
}

.on-dark .prose blockquote {
  color: var(--text-inv);
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

/* --- Kennzahlen ---------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--parchment-line);
  border-left: 1px solid var(--parchment-line);
}

@media (min-width: 44rem) {
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.stat {
  border-right: 1px solid var(--parchment-line);
  border-bottom: 1px solid var(--parchment-line);
  padding: 1.6rem 1.25rem;
  text-align: center;
}

.stat-value {
  font-family: var(--font-display), Georgia, serif;
  font-size: var(--step-3);
  line-height: 1;
  color: var(--gold);
}

.stat-label {
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

/* --- Kulturkacheln ------------------------------------------------------- */

.cards {
  display: grid;
  gap: 1px;
  background: var(--parchment-line);
  border: 1px solid var(--parchment-line);
  grid-template-columns: minmax(0, 1fr);
  margin-top: 3rem;
}

@media (min-width: 40rem) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  background: var(--parchment);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background-color 160ms ease;
}

.card:hover {
  background: var(--parchment-deep);
}

.card h3 {
  font-size: var(--step-2);
}

.card p {
  margin: 0;
  color: var(--text-muted);
}

.card-more {
  margin-top: auto;
  padding-top: 1.25rem;
  font-family: var(--font-label), Georgia, serif;
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* --- Zweispaltige Einladungen -------------------------------------------- */

.invites {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 52rem) {
  .invites {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.invite {
  border-top: 2px solid var(--gold);
  padding-top: 1.75rem;
}

.invite h2 {
  font-size: var(--step-2);
  margin-bottom: 1rem;
}

.invite p {
  color: var(--text-muted);
}

.on-dark .invite p {
  color: var(--text-inv-muted);
}

.invite .btn {
  margin-top: 0.75rem;
}

/* --- Seitenkopf ---------------------------------------------------------- */

.pagehead {
  background: var(--ink);
  color: var(--text-inv);
  padding-block: clamp(3rem, 7vw, 5rem) clamp(2.5rem, 6vw, 4rem);
}

.pagehead h1 {
  font-size: var(--step-3);
  margin-bottom: 1rem;
}

.pagehead .lead {
  color: var(--text-inv-muted);
}

/* --- Formular ------------------------------------------------------------ */

.form {
  display: grid;
  gap: 1.35rem;
  max-width: 40rem;
}

@media (min-width: 40rem) {
  .form-row {
    display: grid;
    gap: 1.35rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field label {
  font-family: var(--font-label), Georgia, serif;
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--parchment-line);
  padding: 0.8rem 0.9rem;
  border-radius: 0;
  width: 100%;
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
}

.form-note {
  font-size: var(--step--1);
  color: var(--text-muted);
}

.form-status {
  border-left: 2px solid var(--gold);
  padding: 0.9rem 1.1rem;
  background: var(--parchment-deep);
}

.form-status[data-tone="error"] {
  border-left-color: var(--madder);
}

/* --- Platzhalter (nur im Entwicklungsmodus sichtbar) --------------------- */

.placeholder {
  border: 1px dashed var(--madder);
  background: rgba(123, 43, 39, 0.06);
  color: var(--madder);
  padding: 0.7rem 0.9rem;
  margin: 0 0 1.15em;
  font-size: var(--step--1);
  line-height: 1.5;
}

.placeholder strong {
  display: block;
  font-family: var(--font-label), Georgia, serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.68rem;
  margin-bottom: 0.3rem;
}

/* --- Fußzeile ------------------------------------------------------------ */

.footer {
  background: var(--ink);
  color: var(--text-inv-muted);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  font-size: 0.94rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer h2 {
  font-family: var(--font-label), Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.footer a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer a:hover {
  color: var(--parchment);
  border-bottom-color: var(--gold);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink-line);
  font-size: 0.82rem;
  color: #7d7261;
}


/* --- Anfrage per E-Mail (statt Formular) --------------------------------- */

.contact-card {
  border: 1px solid var(--parchment-line);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
  background: var(--parchment-deep);
}

.contact-card h2 {
  font-size: var(--step-2);
  margin-bottom: 0.75rem;
}

.contact-card p:last-of-type {
  margin-bottom: 1.5rem;
}

.contact-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.contact-list a {
  color: var(--madder);
  text-underline-offset: 3px;
}

.checklist {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  color: var(--text-muted);
}

.checklist li {
  position: relative;
  padding-left: 1.4rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.7rem;
  height: 1px;
  background: var(--gold);
}
