/* Hearhop – Coming soon
   Schriften lokal, keine externen Quellen. */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/fraunces-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/fraunces-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --petrol: #245A60;
  --petrol-tief: #173F44;
  --petrol-nacht: #102E32;
  --creme: #F7F5EF;
  --papier: #FFFEFA;
  --sand: #ECE7DB;
  --tinte: #18292B;
  --tinte-weich: #44585A;  /* 6.5:1 auf Creme */
  --kupfer: #B0633B;       /* nur Akzent, nicht für Fließtext */

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --rand: 20px;
  --max: 1240px;
  --radius: 28px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--creme);
  color: var(--tinte);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "kern", "liga", "calt";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--kupfer);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.shell {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--rand);
}

/* ---------- Kopf ---------- */

.kopf {
  padding-block: 22px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.marke {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--petrol-tief);
}
.marke img {
  width: 36px;
  height: 36px;
}
.marke span {
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.5rem;
  letter-spacing: -0.015em;
  line-height: 1;
  transform: translateY(1px);
}

/* ---------- Sprachauswahl (ohne JS) ---------- */

.sprache {
  position: relative;
  font-size: 0.8125rem;
  font-weight: 560;
  letter-spacing: 0.08em;
  color: var(--petrol-tief);
}
.sprache summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px 9px 14px;
  border: 1.5px solid rgba(36, 90, 96, 0.3);
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.sprache summary::-webkit-details-marker { display: none; }
.sprache summary:hover { border-color: var(--petrol); background: var(--papier); }
.sprache summary svg { width: 14px; height: 14px; transition: transform 160ms ease; }
.sprache[open] summary { border-color: var(--petrol); background: var(--papier); }
.sprache[open] summary svg { transform: rotate(180deg); }
.sprache ul {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 10;
  margin: 0;
  padding: 6px;
  min-width: 176px;
  list-style: none;
  background: var(--papier);
  border: 1px solid var(--sand);
  border-radius: 16px;
  box-shadow: 0 18px 40px -18px rgba(16, 46, 50, 0.35);
}
.sprache li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 480;
  letter-spacing: 0;
  color: var(--tinte);
  white-space: nowrap;
}
.sprache li a:hover { background: var(--sand); }
.sprache li a[aria-current="page"] { color: var(--petrol); font-weight: 600; }
.sprache li a[aria-current="page"]::after {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--kupfer);
  flex: none;
}

/* ---------- Bühne ---------- */

.buehne {
  flex: 1;
  display: grid;
  gap: 40px;
  padding-block: 40px 56px;
  align-items: center;
}

.ueberzeile {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  font-size: 0.8125rem;
  font-weight: 560;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--petrol);
}
.ueberzeile::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--kupfer);
  flex: none;
}

h1 {
  margin: 0 0 28px;
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(3.25rem, 7vw + 1.25rem, 7rem);
  line-height: 0.98;
  letter-spacing: -0.028em;
  color: var(--petrol-tief);
  text-wrap: balance;
}
h1 .punkt { color: var(--kupfer); }

.lede {
  margin: 0 0 20px;
  max-width: 34ch;
  font-size: clamp(1.1875rem, 1.1rem + 0.5vw, 1.4375rem);
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--tinte);
  text-wrap: pretty;
}

.hinweis {
  margin: 0 0 40px;
  max-width: 44ch;
  color: var(--tinte-weich);
  text-wrap: pretty;
}

.knopf {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px 16px 22px;
  border-radius: 999px;
  background: var(--petrol);
  color: var(--creme);
  text-decoration: none;
  font-weight: 540;
  font-size: 1rem;
  letter-spacing: 0.005em;
  transition: background-color 180ms ease, transform 180ms ease;
}
.knopf svg { width: 20px; height: 20px; flex: none; }
.knopf:hover { background: var(--petrol-tief); }
.knopf:active { transform: translateY(1px); }
.knopf .pfeil { transition: transform 180ms ease; }
.knopf:hover .pfeil { transform: translateX(3px); }

/* ---------- Aktionen: Instagram + Store-Platzhalter ---------- */

.aktionen {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}
.aktionen .knopf { align-self: flex-start; }

.stores {
  display: flex;
  gap: 10px;
}
.store {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 14px;
  border: 1.5px solid rgba(36, 90, 96, 0.38);
  border-radius: 999px;
  color: var(--tinte-weich);
  background: transparent;
  cursor: default;
  user-select: none;
  white-space: nowrap;
}
.store svg {
  width: 22px;
  height: 22px;
  flex: none;
  opacity: 0.75;
}
.store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-size: 0.9375rem;
  font-weight: 560;
  letter-spacing: -0.005em;
  color: var(--petrol-tief);
}
.store-text small {
  font-size: 0.625rem;
  font-weight: 560;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tinte-weich);
  margin-bottom: 2px;
}

/* ---------- Tafel (Visual) ---------- */

.tafel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(247, 245, 239, 0.10), transparent 60%),
    linear-gradient(160deg, var(--petrol) 0%, var(--petrol-tief) 62%, var(--petrol-nacht) 100%);
  color: var(--creme);
  aspect-ratio: 4 / 5;
  max-height: 640px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 30px 60px -30px rgba(16, 46, 50, 0.45);
}

.tafel .zeichen {
  position: absolute;
  top: 7%;
  left: 7%;
  width: clamp(72px, 22%, 120px);
  height: auto;
}

.tafel .route {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 58%;
}
.route .weg {
  fill: none;
  stroke: var(--creme);
  stroke-opacity: 0.55;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 2 7;
  animation: wandern 24s linear infinite;
}
.route .halt { fill: var(--creme); }
.route .halt-ring { fill: none; stroke: var(--creme); stroke-opacity: 0.5; stroke-width: 1.2; }
.route .ziel { fill: var(--kupfer); }
.route .ziel-ring {
  fill: none; stroke: var(--kupfer); stroke-width: 1.4;
  transform-box: fill-box; transform-origin: center;
  animation: pulsen 2.8s ease-out infinite;
}

.tafel .legende {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 28%;
  margin: 0;
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(1.5rem, 2.2vw + 0.6rem, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--creme);
  text-wrap: balance;
}
.tafel .legende small {
  display: block;
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.72;
}

.welle {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 9%;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.welle i {
  flex: 1 1 0;
  height: 100%;
  border-radius: 999px;
  background: var(--creme);
  opacity: 0.9;
  transform: scaleY(var(--h, 0.3));
  transform-origin: center;
  animation: atmen var(--d, 2s) ease-in-out infinite alternate;
  animation-delay: var(--v, 0s);
}
.welle i:nth-child(1)  { --h: .22; --d: 2.1s; --v: -.2s; }
.welle i:nth-child(2)  { --h: .40; --d: 1.8s; --v: -.9s; }
.welle i:nth-child(3)  { --h: .62; --d: 2.4s; --v: -.4s; }
.welle i:nth-child(4)  { --h: .34; --d: 1.9s; --v: -1.3s; }
.welle i:nth-child(5)  { --h: .78; --d: 2.2s; --v: -.6s; }
.welle i:nth-child(6)  { --h: .50; --d: 2.0s; --v: -1.6s; }
.welle i:nth-child(7)  { --h: .90; --d: 2.5s; --v: -.1s; }
.welle i:nth-child(8)  { --h: .44; --d: 1.7s; --v: -1.1s; }
.welle i:nth-child(9)  { --h: .68; --d: 2.3s; --v: -.8s; }
.welle i:nth-child(10) { --h: .30; --d: 2.0s; --v: -1.9s; }
.welle i:nth-child(11) { --h: .56; --d: 1.8s; --v: -.3s; }
.welle i:nth-child(12) { --h: .82; --d: 2.6s; --v: -1.4s; }
.welle i:nth-child(13) { --h: .38; --d: 2.1s; --v: -.7s; }
.welle i:nth-child(14) { --h: .60; --d: 1.9s; --v: -1.7s; }
.welle i:nth-child(15) { --h: .26; --d: 2.3s; --v: -.5s; }
.welle i:nth-child(16) { --h: .48; --d: 2.0s; --v: -1.2s; }
.welle i:nth-child(17) { --h: .72; --d: 2.4s; --v: -.9s; }
.welle i:nth-child(18) { --h: .36; --d: 1.8s; --v: -1.5s; }
.welle i:nth-child(19) { --h: .54; --d: 2.2s; --v: -.2s; }
.welle i:nth-child(20) { --h: .20; --d: 2.0s; --v: -1.0s; }
.welle i:nth-child(21) { --h: .42; --d: 2.5s; --v: -.6s; }
.welle i:nth-child(22) { --h: .66; --d: 1.9s; --v: -1.8s; }
.welle i:nth-child(23) { --h: .32; --d: 2.1s; --v: -.4s; }
.welle i:nth-child(24) { --h: .18; --d: 2.3s; --v: -1.3s; }

@keyframes atmen {
  from { transform: scaleY(var(--h, 0.3)); }
  to   { transform: scaleY(calc(var(--h, 0.3) * 0.45 + 0.08)); }
}
@keyframes wandern {
  to { stroke-dashoffset: -180; }
}
@keyframes pulsen {
  0%   { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .welle i, .route .weg, .route .ziel-ring { animation: none; }
  .route .ziel-ring { opacity: 0.6; transform: scale(1.4); }
  .knopf, .knopf .pfeil { transition: none; }
}

/* ---------- Chinesisch / Japanisch: Systemschriften als Fallback ---------- */

html[lang="zh"] {
  --serif: "Fraunces", "Songti SC", "STSong", "Noto Serif CJK SC", "Noto Serif SC", "SimSun", serif;
  --sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
html[lang="ja"] {
  --serif: "Fraunces", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif CJK JP", "Noto Serif JP", serif;
  --sans: "Inter", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans CJK JP", "Noto Sans JP", sans-serif;
}
html[lang="zh"] body, html[lang="ja"] body { line-height: 1.75; }
html[lang="zh"] h1, html[lang="ja"] h1 {
  font-weight: 500;
  font-size: clamp(2.875rem, 6vw + 1rem, 6rem);
  line-height: 1.18;
  letter-spacing: 0.01em;
}
html[lang="zh"] .lede, html[lang="ja"] .lede { line-height: 1.65; letter-spacing: 0; }
html[lang="zh"] .ueberzeile, html[lang="ja"] .ueberzeile,
html[lang="zh"] .store-text small, html[lang="ja"] .store-text small,
html[lang="zh"] .tafel .legende small, html[lang="ja"] .tafel .legende small { letter-spacing: 0.06em; }
html[lang="zh"] .tafel .legende, html[lang="ja"] .tafel .legende { font-weight: 500; line-height: 1.3; }
html[lang="zh"] .prosa h2, html[lang="ja"] .prosa h2 { font-weight: 600; }

/* ---------- Fuß ---------- */

.fuss {
  border-top: 1px solid var(--sand);
  padding-block: 28px 36px;
  font-size: 0.875rem;
  color: var(--tinte-weich);
}
.fuss .zeilen {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fuss p { margin: 0; }
.fuss nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.fuss a {
  color: var(--petrol-tief);
  text-decoration: none;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.fuss a:hover { text-decoration: underline; }
.fuss .klein {
  font-size: 0.8125rem;
}

/* ---------- Textseite (Datenschutz) ---------- */

.textseite {
  flex: 1;
  padding-block: 32px 72px;
}
.textseite .zurueck {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 36px;
  font-size: 0.9375rem;
  color: var(--petrol);
  text-decoration: none;
}
.textseite .zurueck:hover { text-decoration: underline; text-underline-offset: 3px; }

.prosa {
  max-width: 66ch;
}
.prosa h1 {
  font-size: clamp(2.25rem, 3vw + 1.25rem, 3.5rem);
  margin-bottom: 10px;
}
.prosa .stand {
  margin: 0 0 40px;
  color: var(--tinte-weich);
  font-size: 0.9375rem;
}
.prosa h2 {
  font-family: var(--serif);
  font-weight: 480;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--petrol-tief);
  margin: 44px 0 12px;
}
.prosa h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  margin: 24px 0 6px;
}
.prosa p, .prosa li { text-wrap: pretty; }
.prosa p { margin: 0 0 14px; }
.prosa ul { margin: 0 0 14px; padding-left: 1.2em; }
.prosa li { margin-bottom: 6px; }
.prosa a { color: var(--petrol); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prosa address { font-style: normal; margin: 0 0 14px; }
.prosa .kasten {
  margin: 0 0 32px;
  padding: 18px 22px;
  border-radius: 16px;
  background: var(--papier);
  border: 1px solid var(--sand);
}
.prosa .kasten p:last-child { margin-bottom: 0; }
.prosa .trenner {
  border: 0;
  border-top: 1px solid var(--sand);
  margin: 48px 0 8px;
}

/* ---------- Größere Bildschirme ---------- */

@media (min-width: 720px) {
  :root { --rand: 32px; }
  .aktionen { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px 16px; }
  .store { flex: 0 0 auto; }
  .kopf { padding-block: 30px 10px; }
  .tafel { aspect-ratio: 4 / 3; max-height: none; }
  .tafel .zeichen { width: clamp(72px, 14%, 110px); }
}

@media (min-width: 1000px) {
  :root { --rand: 48px; }
  .buehne {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(48px, 6vw, 96px);
    padding-block: 56px 72px;
    min-height: calc(100svh - 190px);
  }
  .tafel { aspect-ratio: 4 / 5; max-height: 680px; }
  .fuss .zeilen {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
  }
}
