/* ==========================================================================
   Musikgalerie Arnold – Farewell Site
   Pure CSS, no frameworks. System fonts only – no external dependencies.
   ========================================================================== */

/* --- Design Tokens --- */
:root {
  /* Palette */
  --clr-bg-deep:    #1a0e10;
  --clr-bg-rich:    #3a1620;
  --clr-bg-warm:    #5c2230;
  --clr-cream:      #faf3e6;
  --clr-cream-soft: #f3e8d2;
  --clr-gold:       #c9973a;
  --clr-gold-light: #e8c872;
  --clr-gold-dark:  #8a6520;
  --clr-ink:        #2d1e1e;
  --clr-ink-soft:   #6b5450;
  --clr-accent:     #a44b5e;
  --clr-white:      #fffcf5;
  --clr-white-pure: #ffffff;

  /* Typography */
  --ff-serif: "Georgia", "Palatino Linotype", "Book Antiqua", "Palatino", serif;
  --ff-sans:  "Segoe UI", "Trebuchet MS", "Helvetica Neue", Arial, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;

  /* Misc */
  --radius:   0.75rem;
  --radius-lg: 1.25rem;
  --shadow:   0 8px 32px rgba(18, 6, 8, 0.3);
  --shadow-sm: 0 4px 16px rgba(18, 6, 8, 0.18);
  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: var(--ff-sans);
  color: var(--clr-ink);
  background: var(--clr-cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

/* --- Utility --- */
.container {
  width: min(1120px, 90vw);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 200;
  background: var(--clr-white-pure);
  color: var(--clr-ink);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus {
  left: 1rem;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 14, 16, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 151, 58, 0.18);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--ff-serif);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  color: var(--clr-cream);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-icon {
  font-size: 1.2em;
  color: var(--clr-gold-light);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.main-nav a {
  color: var(--clr-cream-soft);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: all var(--transition);
}
.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(232, 200, 114, 0.1);
  border-color: rgba(232, 200, 114, 0.3);
  color: var(--clr-white);
}
.main-nav a[aria-current="page"] {
  background: rgba(232, 200, 114, 0.15);
  border-color: rgba(232, 200, 114, 0.35);
  color: var(--clr-gold-light);
}

/* === HERO === */
.hero {
  position: relative;
  background-color: var(--clr-bg-deep);
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  color: var(--clr-cream);
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(165deg, rgba(26, 14, 16, 0.82) 0%, rgba(58, 22, 32, 0.7) 50%, rgba(92, 34, 48, 0.65) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  color: var(--clr-gold-light);
  margin-bottom: var(--space-sm);
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(232, 200, 114, 0.3);
  border-radius: 999px;
}

.hero h1 {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-md);
  color: var(--clr-white);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: rgba(250, 243, 230, 0.85);
  max-width: 56ch;
  line-height: 1.7;
}

/* Gallery interior photo in Rückblick section */
.galerie-photo {
  max-width: 680px;
  margin: 0 auto var(--space-lg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(201, 151, 58, 0.15);
}

.galerie-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.galerie-photo figcaption {
  text-align: center;
  padding: 0.6rem 1rem;
  background: var(--clr-cream);
  color: var(--clr-ink-soft);
  font-size: 0.9rem;
  font-style: italic;
}

/* === SECTION: Warm (Dank) === */
.section-warm {
  background:
    linear-gradient(180deg, var(--clr-cream) 0%, var(--clr-cream-soft) 100%);
  padding: var(--space-xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-icon {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--clr-accent);
}

.section-header h2 {
  font-family: var(--ff-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--clr-bg-rich);
  letter-spacing: 0.01em;
}

.section-intro {
  text-align: center;
  max-width: 62ch;
  margin: 0 auto var(--space-lg);
  color: var(--clr-ink-soft);
  font-size: 1.08rem;
  line-height: 1.7;
}

.prose-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.prose-col p {
  margin-bottom: var(--space-sm);
  line-height: 1.72;
  color: var(--clr-ink);
}

.featured-quote {
  position: relative;
  background: linear-gradient(135deg, var(--clr-bg-rich), var(--clr-bg-warm));
  color: var(--clr-cream);
  padding: var(--space-lg) var(--space-lg);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
}

.featured-quote::before {
  content: "„";
  position: absolute;
  top: -0.2em;
  left: 0.3em;
  font-family: var(--ff-serif);
  font-size: 5rem;
  color: rgba(232, 200, 114, 0.2);
  line-height: 1;
  pointer-events: none;
}

.featured-quote p {
  font-family: var(--ff-serif);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-style: italic;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.featured-quote cite {
  font-style: normal;
  font-size: 0.92rem;
  color: var(--clr-gold-light);
  letter-spacing: 0.05em;
}

/* === SECTION: Light (Rückblick / Timeline) === */
.section-light {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201, 151, 58, 0.06), transparent 70%),
    var(--clr-white);
  padding: var(--space-xl) 0;
}

.timeline {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding-left: 2.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.65rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--clr-gold-light),
    var(--clr-gold),
    var(--clr-gold-dark)
  );
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-lg);
}
.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2.5rem;
  top: 0.15rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--clr-gold);
  border: 3px solid var(--clr-white);
  box-shadow: 0 0 0 2px var(--clr-gold);
  z-index: 2;
  /* center on the 2px line: left of line is 0.65rem, so dot center = 0.65rem */
  transform: translateX(calc(0.65rem - 50% - 2.5rem + 2.5rem));
}

.timeline-card {
  background: var(--clr-cream);
  border: 1px solid rgba(201, 151, 58, 0.2);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.timeline-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.timeline-card h3 {
  font-family: var(--ff-serif);
  font-size: 1.2rem;
  color: var(--clr-gold-dark);
  margin-bottom: 0.5rem;
}

.timeline-card p {
  color: var(--clr-ink-soft);
  line-height: 1.65;
}

/* === SECTION: Closing (Abschied) === */
.section-closing {
  background: linear-gradient(170deg, var(--clr-bg-deep), var(--clr-bg-rich) 60%, var(--clr-bg-warm));
  color: var(--clr-cream);
  padding: var(--space-xl) 0;
}

.section-closing .container {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.couple-photo {
  width: clamp(180px, 28vw, 340px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: rgba(250, 243, 230, 0.08);
  border: 1px solid rgba(232, 200, 114, 0.15);
}

.couple-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.closing-text h2 {
  font-family: var(--ff-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: var(--space-sm);
  color: var(--clr-white);
}

.closing-text p {
  color: rgba(250, 243, 230, 0.82);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.notice-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: var(--space-md) 0;
}

.notice-pill {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.88rem;
  background: rgba(250, 243, 230, 0.1);
  border: 1px solid rgba(232, 200, 114, 0.3);
  color: var(--clr-gold-light);
}

.closing-farewell {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(232, 200, 114, 0.2);
  font-size: 1.1rem;
  color: var(--clr-cream) !important;
}

.closing-farewell strong {
  color: var(--clr-gold-light);
  font-family: var(--ff-serif);
  font-size: 1.15em;
}

/* === FOOTER === */
.site-footer {
  background: rgba(18, 8, 10, 0.95);
  border-top: 1px solid rgba(201, 151, 58, 0.15);
  padding: var(--space-md) 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.footer-brand {
  font-family: var(--ff-serif);
  color: var(--clr-cream-soft);
  font-size: 1rem;
}

.footer-tagline {
  color: rgba(250, 243, 230, 0.55);
  font-size: 0.88rem;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-nav a {
  color: var(--clr-cream-soft);
  font-size: 0.9rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--clr-gold-light);
  background: rgba(232, 200, 114, 0.08);
}
.footer-nav span {
  color: rgba(250, 243, 230, 0.3);
}

/* === LEGAL PAGES === */
.legal-page {
  background:
    radial-gradient(ellipse 100% 50% at 10% -10%, rgba(201, 151, 58, 0.06), transparent 60%),
    var(--clr-cream);
}

.legal-main {
  padding: var(--space-lg) 0 var(--space-xl);
}

.legal-panel {
  background: var(--clr-white);
  border: 1px solid rgba(201, 151, 58, 0.15);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.legal-panel h1 {
  font-family: var(--ff-serif);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  color: var(--clr-bg-rich);
  margin-bottom: 0.25rem;
}

.legal-subtitle {
  color: var(--clr-ink-soft);
  font-size: 0.95rem;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(201, 151, 58, 0.15);
}

.legal-panel h2 {
  font-family: var(--ff-serif);
  font-size: 1.3rem;
  color: var(--clr-gold-dark);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
}

.legal-panel h3 {
  font-family: var(--ff-serif);
  font-size: 1.1rem;
  color: var(--clr-ink);
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

.legal-panel section:first-of-type h2 {
  margin-top: 0;
}

.legal-panel p,
.legal-panel li,
.legal-panel address {
  line-height: 1.7;
  color: var(--clr-ink);
}

.legal-panel address {
  font-style: normal;
}

.legal-panel ul {
  padding-left: 1.5rem;
  margin: var(--space-xs) 0 var(--space-sm);
}

.legal-panel li {
  margin-bottom: 0.35rem;
}

.legal-panel a {
  color: var(--clr-gold-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-panel a:hover {
  color: var(--clr-accent);
}

.placeholder {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 0.35rem;
  background: rgba(201, 151, 58, 0.15);
  color: var(--clr-gold-dark);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px dashed rgba(201, 151, 58, 0.4);
}

.back-link {
  display: inline-block;
  margin-top: var(--space-md);
  color: var(--clr-gold-dark);
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color var(--transition);
}
.back-link:hover,
.back-link:focus-visible {
  color: var(--clr-accent);
}

/* === Scroll Animations === */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-warm,
.section-light,
.section-closing {
  animation: fadeUp 0.8s ease both;
}

.section-light {
  animation-delay: 0.1s;
}

.section-closing {
  animation-delay: 0.15s;
}

/* === Responsive === */
@media (max-width: 900px) {
  .prose-columns {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .section-closing .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .couple-photo {
    margin: 0 auto;
  }

  .notice-pills {
    justify-content: center;
  }
}

@media (max-width: 680px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .main-nav {
    width: 100%;
  }

  .main-nav a {
    font-size: 0.85rem;
    padding: 0.35rem 0.65rem;
  }

  .hero {
    padding: var(--space-lg) 0 var(--space-md);
  }

  .hero-illustration {
    position: relative;
    right: auto;
    bottom: auto;
    width: 80%;
    margin: var(--space-md) auto 0;
    opacity: 0.5;
  }

  .timeline {
    padding-left: 2rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .section-warm,
  .section-light,
  .section-closing {
    animation: none;
  }

  .timeline-card:hover {
    transform: none;
  }
}
