/* ------------------------------------------------------------------
   Dêra Kurdî Bonn — Wartungsseite
   Design-Tokens der Gemeinde-Website (Cream / Forest Green / Gold)
   ------------------------------------------------------------------ */

:root {
  color-scheme: light;

  /* Backgrounds */
  --bg-page:     #FDFBF7;
  --bg-alt:      #F5F0EA;
  --bg-surface:  #EAE6E0;
  --bg-white:    #FFFFFF;

  /* Text */
  --text:        #3C3A35;
  --text-muted:  #7A756D;
  --text-black:  #1A1A1A;

  /* Brand */
  --primary:       #2D4A3E;
  --primary-light: #44685A;
  --forest-dark:   #1F3A30;

  /* Accents */
  --gold:        #C5A365;
  --gold-hover:  #B09156;
  --gold-soft:   #F0E4C8;
  --terracotta:  #C8805E;

  /* Borders */
  --border:          #E2DDD6;
  --gold-line:       rgba(197, 163, 101, 0.45);
  --gold-line-soft:  rgba(197, 163, 101, 0.22);

  /* Radius */
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 8px;
  --r-pill: 999px;

  /* Shadows */
  --sh-card:  0 1px 2px rgba(45,74,62,0.035), 0 6px 20px rgba(45,74,62,0.05);
  --sh-soft:  0 1px 2px rgba(45,74,62,0.04),  0 10px 32px rgba(45,74,62,0.07);
  --sh-hover: 0 2px 6px rgba(45,74,62,0.06),  0 28px 60px rgba(45,74,62,0.15);
  --sh-warm:  0 2px 8px rgba(197,163,101,0.09), 0 18px 48px rgba(197,163,101,0.16);

  /* Typography */
  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ornate:  "Cinzel", "Playfair Display", Georgia, serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-page);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------------------------------------------------------- Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4.25rem;
}

.brand {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
}

.lang-btn {
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.375rem 0.875rem;
  border: none;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

.lang-btn:hover {
  color: var(--primary);
}

.lang-btn.active {
  background: var(--primary);
  color: #fff;
}

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

.hero {
  padding: 5rem 0 6rem;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(197,163,101,0.14), transparent 70%),
    var(--bg-page);
}

.hero-inner {
  text-align: center;
}

.hero-logo-wrap {
  display: block;
  width: fit-content;
  margin: 0 auto 2rem;
}

.hero-logo {
  display: block;
  width: 190px;
  height: auto;
}

.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: var(--r-pill);
  background: var(--gold-soft);
  color: var(--primary);
  font-family: var(--font-ornate);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  margin: 0 auto;
  max-width: 44rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 2.5rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--primary);
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem auto;
}

.ornament span {
  display: block;
  width: 3.5rem;
  height: 1px;
  background: var(--gold-line);
}

.ornament i {
  display: block;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

.hero-sub {
  margin: 0 auto;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.cta {
  display: inline-block;
  margin-top: 2.25rem;
  padding: 0.875rem 2.25rem;
  border-radius: var(--r-pill);
  background: var(--primary);
  color: #fff;
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: var(--sh-soft);
  transition: background-color 0.35s var(--ease),
              box-shadow 0.35s var(--ease),
              transform 0.35s var(--ease);
}

.cta:hover {
  background: var(--primary-light);
  box-shadow: var(--sh-hover);
  transform: translateY(-2px);
}

/* -------------------------------------------------------- Services */

.services {
  padding: 6rem 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--gold-line-soft);
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-ornate);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  margin: 0 0 2.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 2.125rem;
  line-height: 1.2;
  color: var(--primary);
}

/* Featured card — next service */

.feature-card {
  position: relative;
  max-width: 34rem;
  margin: 0 auto;
  padding: 2.75rem 2rem 2.5rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-warm);
  transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 5rem;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--gold);
}

.feature-card:hover {
  box-shadow: var(--sh-hover);
  transform: translateY(-3px);
}

.feature-relative {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: var(--r-pill);
  background: var(--gold-soft);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.feature-weekday {
  margin: 0;
  font-family: var(--font-ornate);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.feature-date {
  margin: 0.5rem 0 0;
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--primary);
}

.feature-time {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gold-line-soft);
  width: 100%;
  justify-content: center;
  color: var(--text);
}

.icon-clock {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--gold);
  flex-shrink: 0;
}

.feature-time-value {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.feature-time-suffix {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.empty-state {
  max-width: 30rem;
  margin: 0 auto;
  padding: 2rem;
  background: var(--bg-white);
  border: 1px dashed var(--gold-line);
  border-radius: var(--r-md);
  color: var(--text-muted);
}

.duration-note {
  margin: 1.75rem auto 0;
  max-width: 34rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Upcoming list */

.upcoming {
  max-width: 34rem;
  margin: 4rem auto 0;
  text-align: start;
}

.upcoming-title {
  margin: 0 0 1rem;
  font-family: var(--font-ornate);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

.date-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-card);
  overflow: hidden;
}

.date-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.35s var(--ease);
}

.date-row:last-child {
  border-bottom: none;
}

.date-row:hover {
  background: var(--bg-page);
}

.date-block {
  text-align: center;
  line-height: 1;
}

.date-day {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
}

.date-month {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.date-weekday {
  display: block;
  font-weight: 500;
  color: var(--text);
}

.date-full {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.date-time {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------------------------------------------------------- Footer */

.site-footer {
  margin-top: auto;
  background: var(--forest-dark);
  color: rgba(253, 251, 247, 0.75);
  border-top: 3px solid var(--gold);
  padding: 3rem 0;
}

.footer-inner {
  text-align: center;
}

.footer-name {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.footer-contact {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--gold);
  font-size: 0.9375rem;
  text-decoration: none;
  border-bottom: 1px solid var(--gold-line);
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.footer-contact:hover {
  color: #fff;
  border-color: #fff;
}

.footer-copy {
  margin: 1.5rem 0 0;
  font-size: 0.8125rem;
  color: rgba(253, 251, 247, 0.55);
}

/* --------------------------------------------- Sprachwechsel-Fade */

[data-i18n],
.feature-card,
.date-list {
  transition: opacity 0.25s var(--ease);
}

.is-fading [data-i18n],
.is-fading .feature-card,
.is-fading .date-list {
  opacity: 0;
}

/* ------------------------------------------------------- Responsive */

@media (min-width: 768px) {
  .hero {
    padding: 6rem 0 7rem;
  }
  .hero-logo {
    width: 230px;
  }
  .hero-title {
    font-size: 3.25rem;
  }
  .section-title {
    font-size: 2.5rem;
  }
  .feature-date {
    font-size: 2.75rem;
  }
  .feature-card {
    padding: 3.25rem 3rem 3rem;
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 1.05rem;
  }
  .lang-btn {
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
  }
  .date-row {
    grid-template-columns: 3rem 1fr;
    row-gap: 0.25rem;
  }
  .date-time {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto;
  }
}
