/* Grundfarben und Abstände */
:root {
  --paper: #f3efe5;
  --paper-light: #fbf8f1;
  --ink: #25271f;
  --muted: #68695e;
  --green: #42543f;
  --green-dark: #2f3d2d;
  --gold: #b59657;
  --line: rgba(47, 61, 45, 0.18);
  --shadow: 0 28px 80px rgba(35, 39, 30, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 15%, rgba(181, 150, 87, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 82%, rgba(66, 84, 63, 0.16), transparent 32rem),
    var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.23;
  background-image:
    linear-gradient(rgba(255,255,255,0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 5px 5px;
}

a {
  color: inherit;
  text-decoration-color: rgba(47, 61, 45, 0.45);
  text-underline-offset: 0.2em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

a:hover,
a:focus-visible {
  color: var(--green);
  text-decoration-color: currentColor;
}

.page-shell {
  width: min(100% - 2rem, 900px);
  margin: auto;
  padding: clamp(2rem, 7vw, 6rem) 0;
}

.farewell-card {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 7vw, 5.5rem);
  text-align: center;
  background: rgba(251, 248, 241, 0.92);
  border: 1px solid rgba(181, 150, 87, 0.42);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.farewell-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.farewell-card::before,
.farewell-card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(181, 150, 87, 0.35);
  transform: rotate(45deg);
}

.farewell-card::before {
  top: -90px;
  left: -90px;
}

.farewell-card::after {
  right: -90px;
  bottom: -90px;
}

.brand-logo-wrap {
  display: flex;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.brand-logo {
  display: block;
  width: min(100%, 360px);
  height: auto;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--green);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  max-width: 680px;
  margin: 0 auto;
  font-size: clamp(2.65rem, 8vw, 5.8rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.date-panel {
  width: fit-content;
  margin: clamp(2rem, 6vw, 3.5rem) auto;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}

.date-panel span,
.date-panel strong {
  display: block;
}

.date-label {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.date-panel strong {
  margin-top: 0.18rem;
  color: var(--green-dark);
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 400;
}

.message {
  max-width: 630px;
  margin: 0 auto;
  font-size: clamp(1.05rem, 2.3vw, 1.22rem);
}

.message p {
  margin: 0 0 1.25rem;
}

.closing-line {
  color: var(--green-dark);
  font-style: italic;
}

.signature {
  display: grid;
  gap: 0.1rem;
  margin-top: clamp(2rem, 5vw, 3.2rem);
}

.signature span {
  color: var(--muted);
  font-style: italic;
}

.signature strong {
  color: var(--green-dark);
  font-size: 1.15rem;
  font-weight: 400;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.2rem;
  margin-top: 2.4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  font-style: normal;
}

.site-footer {
  width: min(100% - 2rem, 900px);
  margin: 0 auto;
  padding: 0 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.65rem 1.5rem;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
}

.site-footer nav {
  display: flex;
  gap: 1rem;
}

.noscript-note {
  margin: 0;
  padding: 0.75rem;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 1rem, 900px);
    padding: 0.5rem 0 1.25rem;
  }

  .farewell-card {
    padding: 2.5rem 1.25rem;
  }

  .brand-logo {
    width: min(100%, 300px);
  }

  .contact {
    flex-direction: column;
    gap: 0.2rem;
  }

  .site-footer {
    justify-content: center;
    text-align: center;
  }
}

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

  .farewell-card {
    opacity: 1;
    transform: none;
  }
}

/* Rechtliche Unterseiten */
.legal-shell {
  width: min(100% - 2rem, 900px);
  margin: 0 auto;
  padding: clamp(1rem, 5vw, 4rem) 0 2rem;
}

.legal-card {
  background: rgba(251, 248, 241, 0.95);
  border: 1px solid rgba(181, 150, 87, 0.42);
  box-shadow: var(--shadow);
}

.legal-header {
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 6vw, 4.5rem) clamp(1.8rem, 4vw, 3rem);
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.logo-link {
  display: inline-block;
  margin-bottom: 1rem;
}

.logo-link .brand-logo {
  width: min(100%, 320px);
}

.legal-header h1 {
  max-width: none;
  margin-bottom: 1.35rem;
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  line-height: 1.05;
}

.back-link {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.86rem;
}

.legal-content {
  padding: clamp(1.5rem, 6vw, 4.5rem);
}

.legal-content section + section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.legal-content h2,
.legal-content h3,
.legal-content h4 {
  color: var(--green-dark);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.3;
}

.legal-content h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
}

.legal-content h3 {
  margin: 1.6rem 0 0.55rem;
  font-size: 1.05rem;
}

.legal-content h4 {
  margin: 1.25rem 0 0.35rem;
  font-size: 0.94rem;
}

.legal-content p,
.legal-content ul {
  max-width: 72ch;
  margin-top: 0;
}

.legal-content ul {
  padding-left: 1.35rem;
}

.legal-content li + li {
  margin-top: 0.25rem;
}

.legal-footer {
  padding-top: 0;
}

.site-footer a[aria-current="page"] {
  color: var(--green-dark);
  font-weight: 700;
  text-decoration-thickness: 2px;
}

@media (max-width: 560px) {
  .legal-shell {
    width: min(100% - 1rem, 900px);
    padding-top: 0.5rem;
  }

  .legal-header,
  .legal-content {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}
