:root {
  color-scheme: light;
  font: 100%/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  --ink: #172d3a;
  --muted: #55636a;
  --gold: #e7c680;
  --paper: #f6f3ec;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible { outline: 3px solid #916813; outline-offset: 5px; }
.shell { width: min(70rem, calc(100% - 3rem)); margin-inline: auto; }
.hero {
  min-height: 22vh;
  display: flex;
  align-items: center;
  padding-block: 1.4rem;
  color: #fffaf0;
  background: linear-gradient(90deg, #091a27ed, #0c1d2db8 60%, #0a192b91), url("banner.jpg") center 46% / cover;
  border-bottom: 2px solid var(--gold);
}
.brand { display: flex; align-items: center; gap: .65rem; color: var(--gold); font-size: .75rem; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; }
.brand img { width: 24px; height: 24px; image-rendering: pixelated; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; text-wrap: balance; }
h1 { margin: .45rem 0 0; font-size: clamp(1.9rem, 3.5vw, 3rem); line-height: 1.12; letter-spacing: -.025em; }
.home-content { padding-block: clamp(1.5rem, 4vw, 3rem); }
.farewell {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr);
  overflow: hidden;
  background: #fffefa;
  border: 1px solid #e4ded2;
  border-radius: 1rem;
  box-shadow: 0 8px 32px #192c3a07, 0 1px 3px #192c3a05;
}
.artwork { margin: 0; display: flex; align-items: center; padding: 1.75rem; background: #eeece6; }
.artwork img { display: block; width: 100%; height: auto; border-radius: .6rem; }
.farewell-copy { padding: clamp(1.5rem, 3vw, 2.5rem); }
.eyebrow { margin: 0 0 .8rem; color: #70603e; font-size: .7rem; letter-spacing: .12em; font-weight: 700; text-transform: uppercase; }
h2 { margin: 0 0 1.25rem; font-size: clamp(1.8rem, 2.8vw, 2.4rem); line-height: 1.13; letter-spacing: -.025em; }
p { margin-block: 0 1.15rem; }
.date { color: var(--muted); font-size: .9rem; }
.button {
  display: inline-flex;
  gap: 1.2rem;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .65rem 1.15rem;
  margin-top: .4rem;
  border: 1px solid #ddbd7a;
  border-radius: .55rem;
  background: var(--gold);
  color: #26313b;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 650;
  transition: background-color 150ms ease-out, transform 150ms ease-out, box-shadow 150ms ease-out;
  touch-action: manipulation;
}
@media (hover: hover) {
  .button:hover { background: #efd59e; box-shadow: 0 3px 10px #684a1820; transform: translateY(-1px); }
  .back:hover { color: #705014; }
}
.button:active { transform: scale(.98); background: #dbb86c; transition-duration: 0ms; }
.footer { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.25rem 2rem; border-top: 1px solid #dfd9cc; color: var(--muted); font-size: .75rem; }
.footer-name { font-weight: 650; color: var(--ink); letter-spacing: .04em; }
.ts-content { padding-block: 1.5rem 2.5rem; }
.back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 1rem; font-size: .9rem; }
.viewer-panel { border: 1px solid #e4ded2; border-radius: 1rem; background: #fffefa; overflow: hidden; box-shadow: 0 8px 32px #192c3a07; }
.viewer-heading { margin: 0; padding: 1rem 1.5rem; border-bottom: 1px solid #e4ded2; color: #70603e; font-size: .75rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.viewer-scroll { padding: 1.5rem; overflow-x: auto; }
.ts3v:empty::before { content: "TeamSpeak-Übersicht wird geladen …"; display: block; padding-block: 1rem; color: var(--muted); }

@media (max-width: 44rem) {
  .shell { width: calc(100% - 2rem); }
  .hero { padding-block: 1.25rem; }
  .farewell { grid-template-columns: minmax(0, 1fr); }
  .artwork { padding: 1rem; }
  .farewell-copy { padding: 1.5rem; }
  .viewer-scroll { padding: .8rem; }
  .footer { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
  .button:hover, .button:active { transform: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: #2f414d; }
  .farewell, .viewer-panel, .button { border-color: #6f644d; }
}
