:root {
  --stone: #ebe4d6;
  --paper: #f7f2e8;
  --ink: #1b2430;
  --muted: #5a6170;
  --teal: #0f4f4c;
  --teal-deep: #0a3533;
  --sand: #d8c4a0;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --max: 70rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.08rem;
  line-height: 1.6;
  padding-bottom: 5.5rem;
}

a {
  color: inherit;
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 8;
  padding: 0.5rem 0.8rem;
  background: var(--teal);
  color: var(--paper);
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.top {
  padding: 1.1rem 0 0.4rem;
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top-tools {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.lang {
  display: flex;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
}

.lang-btn {
  -webkit-appearance: none;
  appearance: none;
  min-height: 2.5rem;
  min-width: 2.6rem;
  padding: 0 0.75rem;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.lang-btn[aria-pressed="true"] {
  background: var(--teal);
  color: var(--paper);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.logo-mark {
  display: grid;
  grid-template-columns: repeat(6, 4px);
  gap: 3px;
  height: 1.4rem;
  align-items: end;
}

.logo-mark i {
  display: block;
  width: 4px;
  background: var(--teal);
}

.logo-mark i:nth-child(1) { height: 55%; }
.logo-mark i:nth-child(2) { height: 80%; }
.logo-mark i:nth-child(3) { height: 100%; }
.logo-mark i:nth-child(4) { height: 70%; }
.logo-mark i:nth-child(5) { height: 90%; }
.logo-mark i:nth-child(6) { height: 60%; }

.logo-type {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
}

.top-place {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero {
  padding: 3.2rem 0 2.4rem;
}

.kicker {
  margin: 0 0 0.7rem;
  color: var(--teal);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.8rem, 9vw, 6.2rem);
  line-height: 0.98;
}

.lede {
  max-width: 36rem;
  margin: 1.3rem 0 1.6rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn,
.dock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  min-height: 3rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.btn:link,
.btn:visited,
.dock-btn:link,
.dock-btn:visited {
  text-decoration: none;
}

.btn-primary {
  background: var(--teal);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--teal-deep);
}

.btn-line {
  border: 1.5px solid var(--ink);
}

.btn-line:hover {
  background: var(--paper);
}

.facts {
  padding: 0 0 3rem;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.facts article {
  padding: 1.2rem 1.1rem 1.3rem;
  background: var(--paper);
  border-top: 4px solid var(--teal);
}

.fact-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fact-value {
  margin: 0.35rem 0 0;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.fact-note,
.fact-hours {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.sprachen {
  padding: 0 0 3rem;
}

.lang-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.lang-list li {
  padding: 0.45rem 0.8rem;
  background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}

.termin {
  padding: 0 0 3.5rem;
}

.termin:target .termin-card {
  box-shadow: 0 0 0 3px var(--teal);
}

.termin-card {
  padding: clamp(1.4rem, 4vw, 2.4rem);
  background: var(--paper);
  background-image: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--sand) 45%, transparent), transparent 38%);
}

.termin h2,
.ort h2 {
  margin: 0 0 0.8rem;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.termin p {
  max-width: 40rem;
  color: var(--muted);
}

.ort {
  padding: 0 0 0;
}

.ort .wrap {
  padding-bottom: 1.4rem;
}

address {
  font-style: normal;
  margin: 0 0 0.8rem;
  font-size: 1.15rem;
}

.tram {
  color: var(--muted);
  margin: 0 0 1.1rem;
}

.map-frame {
  display: block;
  width: 100%;
  max-width: 100%;
  height: min(70vw, 420px);
  min-height: 320px;
  position: relative;
  overflow: hidden;
  background: #d8d0c2;
}

.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.55rem 0.8rem calc(0.55rem + env(safe-area-inset-bottom));
  background: var(--ink);
}

.dock-btn {
  min-height: 3rem;
  padding: 0.6rem 0.8rem;
}

.dock-call {
  background: var(--paper);
  color: var(--ink);
}

.dock-book {
  background: var(--teal);
  color: var(--paper);
}

.end {
  border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  font-size: 0.82rem;
  color: var(--muted);
}

.end-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.1rem 0;
}

.end p {
  margin: 0;
}

@media (max-width: 800px) {
  .facts-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .top-place {
    display: none;
  }

  .facts-grid {
    grid-template-columns: 1fr;
  }

  .map-frame {
    min-height: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
