/* ==========================================================================
   Grüne Gans – Abschieds-Infoseite
   ========================================================================== */

:root {
  --dark: #313d2b;
  --dark-2: #262f21;
  --cream: #dfe1c4;
  --cream-light: #f2f2e6;
  --text-dark: #262b1f;
  --text-light: #f4f5ea;
  --gold: #b99a4d;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Verdana, Geneva, sans-serif;
  color: var(--text-dark);
  background: var(--cream-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: normal;
  margin: 0 0 0.6em 0;
  line-height: 1.25;
}

p { margin: 0 0 1.2em 0; }

a { color: inherit; }

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

/* -------------------------- header -------------------------- */

.site-header {
  background: var(--dark);
  padding: 28px 0 22px;
}

.site-header .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.site-header img.logo {
  width: 128px;
  height: auto;
}

.site-header nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.site-header nav a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  border-color: var(--gold);
}

/* -------------------------- hero -------------------------- */

.hero {
  background:
    linear-gradient(180deg, rgba(38, 47, 33, 0.82) 0%, rgba(38, 47, 33, 0.68) 55%, rgba(38, 47, 33, 0.96) 100%),
    url("../images/hero-bg.jpg") 30% 55% / cover no-repeat;
  color: var(--text-light);
  padding: 20px 0 0;
  position: relative;
  overflow: hidden;
}

.hero .wrap {
  padding-top: 64px;
  padding-bottom: 110px;
  text-align: center;
}

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: 18px;
  display: block;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  max-width: 22ch;
  margin: 0 auto 0.3em;
}

.hero h1 .nowrap {
  white-space: nowrap;
}

.line-break-desktop {
  display: none;
}

@media (min-width: 700px) {
  .line-break-desktop {
    display: block;
  }
}

.hero .lead {
  max-width: 46ch;
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  opacity: 0.92;
}

.wave-divider {
  position: relative;
  width: 100%;
  height: clamp(48px, 8vw, 112px);
  overflow: hidden;
}

.wave-divider svg {
  position: absolute;
  inset: -4px -2px -4px -2px;
  width: calc(100% + 4px);
  height: calc(100% + 8px);
  display: block;
}

/* -------------------------- letter section -------------------------- */

.letter {
  background: var(--cream);
  padding: 10px 0 0;
}

.letter .wrap {
  padding-bottom: 70px;
}

.letter-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-top: 20px;
}

@media (min-width: 800px) {
  .letter-inner {
    grid-template-columns: 1.35fr 0.9fr;
    align-items: start;
  }
}

.letter-text p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.photo-column {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}

.photo-round {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--cream-light);
  box-shadow: 0 12px 28px rgba(38, 47, 33, 0.18);
}

.photo-round img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* -------------------------- notice box -------------------------- */

.notice {
  background: var(--cream-light);
  border-left: 4px solid var(--gold);
  padding: 22px 26px;
  margin: 8px 0 0;
  font-size: 0.98rem;
}

.notice strong { color: var(--dark); }

/* -------------------------- closing quote -------------------------- */

.closing {
  background: var(--dark);
  color: var(--text-light);
  text-align: center;
  padding: 80px 0 0;
  position: relative;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.closing .wrap {
  padding-bottom: 60px;
}

.closing blockquote {
  margin: 0 auto;
  max-width: 42ch;
  line-height: 1.5;
}

.closing p {
  max-width: 44ch;
  margin: 24px auto 0;
}

.closing .signature-final {
  margin-top: 28px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

/* -------------------------- footer / contact -------------------------- */

.site-footer {
  background: var(--cream);
  padding: 56px 0 40px;
}

.contact-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  text-align: center;
}

@media (min-width: 700px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
    text-align: left;
  }
}

.contact-grid h2 {
  font-size: 1.1rem;
  color: var(--dark);
}

.contact-grid p { margin-bottom: 0.4em; font-size: 0.96rem; }

.contact-grid a.tel,
.contact-grid a.mail {
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}

.legal-bar {
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid rgba(38, 47, 33, 0.18);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  font-size: 0.85rem;
}

@media (min-width: 700px) {
  .legal-bar { justify-content: space-between; }
}

.legal-bar a {
  text-decoration: none;
  color: var(--text-dark);
}

.legal-bar a:hover,
.legal-bar a:focus-visible {
  text-decoration: underline;
}

/* -------------------------- legal pages -------------------------- */

.legal-page {
  background: var(--cream-light);
}

.legal-page .wrap {
  max-width: 780px;
  padding: 56px 24px 90px;
}

.legal-page h1 {
  color: var(--dark);
  font-size: 2rem;
  margin-bottom: 0.8em;
}

.legal-page h3 {
  color: var(--dark);
  font-size: 1.15rem;
  margin-top: 2em;
}

.legal-page p, .legal-page li { font-size: 0.98rem; }

.legal-page a { border-bottom: 1px solid var(--gold); text-decoration: none; }

.back-link {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--dark);
  border-bottom: 1px solid var(--gold);
}

/* -------------------------- reduced motion -------------------------- */

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