/* Sternbäck – Vorschau-Neugestaltung 2026
   Palette (design choice, documented in fact pack):
   ink #101418 / ink-2 #171d24 / gold #E3A93C / paper #F5F0E6 / paper-2 #EDE5D4 */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-900-latin.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-400-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #101418;
  --ink-2: #171d24;
  --ink-3: #0b0e12;
  --gold: #e3a93c;
  --gold-soft: #f0c878;
  --paper: #f5f0e6;
  --paper-2: #ede5d4;
  --ink-on-paper: #1c2229;
  --muted: #98a2ad;
  --muted-paper: #6b7280;
  --line: rgba(227, 169, 60, .35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  background: var(--ink);
  color: var(--paper);
  line-height: 1.6;
}
img, svg { display: block; }
a { color: var(--gold-soft); }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: var(--ink);
  padding: .5rem 1rem; z-index: 50; font-weight: 600;
}
.skip:focus { left: 0; }

/* ---------- Topbar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: var(--ink-3);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.brand {
  display: flex; align-items: center; gap: .55rem;
  color: var(--paper); text-decoration: none;
  font-family: "Fraunces", serif; font-weight: 900;
  font-size: 1.05rem; letter-spacing: .04em;
}
.brand-star { width: 18px; height: 18px; fill: var(--gold); flex: none; }
.topnav { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.topnav a {
  color: var(--paper); text-decoration: none; font-size: .9rem;
  padding: .35rem 0; border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.topnav a:hover, .topnav a:focus { border-bottom-color: var(--gold); color: var(--gold-soft); }
.preview-tag {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--line);
  padding: .28rem .6rem; border-radius: 999px; white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - 62px);
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(1.2rem, 3vh, 2.2rem);
  padding: clamp(2rem, 6vh, 4rem) clamp(1rem, 4vw, 3rem) clamp(2.5rem, 7vh, 4.5rem);
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(227,169,60,.10), transparent 55%),
    var(--ink);
  overflow: hidden;
}
.eyebrow {
  font-size: .82rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--muted);
}
.mark-wrap { position: relative; max-width: 1200px; }
.mark { width: 100%; height: auto; }
.mark text {
  font-family: "Fraunces", serif; font-weight: 900;
  fill: var(--paper);
}
.mark-desktop { display: block; }
.mark-mobile { display: none; }
.hero-star {
  position: absolute;
  width: clamp(64px, 9vw, 130px); height: auto;
  right: -8px; top: -34px;
  transform: rotate(14deg);
}
.hero-star .star-path {
  fill: rgba(227,169,60,.14);
  stroke: var(--gold); stroke-width: 5;
  stroke-linejoin: round;
}

/* 星形描边点亮:入场一次,900ms */
.js .hero-star .star-path {
  stroke-dasharray: var(--star-len, 760);
  stroke-dashoffset: var(--star-len, 760);
  animation: star-draw .9s ease-out .25s forwards;
}
@keyframes star-draw { to { stroke-dashoffset: 0; } }

/* 字标落定:轻微上移入场,仅一次 */
.js .mark { opacity: 0; transform: translateY(14px); animation: mark-settle .7s ease-out .05s forwards; }
@keyframes mark-settle { to { opacity: 1; transform: none; } }

.fact-band {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .4rem .9rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255,255,255,.10);
  max-width: 1200px;
  font-size: clamp(.95rem, 1.4vw, 1.05rem);
}
.band-item { color: var(--paper); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.band-item:hover, .band-item:focus { color: var(--gold-soft); }
.band-sep { color: var(--muted); }

/* ---------- Aushang ---------- */
.notice-wrap {
  background: var(--paper);
  color: var(--ink-on-paper);
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 3rem);
}
.notice {
  max-width: 1100px; margin: 0 auto;
  background: var(--paper-2);
  border: 1px solid rgba(28,34,41,.18);
  box-shadow: 0 2px 0 rgba(28,34,41,.08);
  padding: clamp(1.2rem, 3vw, 2rem) clamp(1.2rem, 3.5vw, 2.4rem);
  display: flex; gap: 1.2rem; align-items: flex-start;
  transform: rotate(-.4deg);
}
.notice-star { width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 10; flex: none; margin-top: .3rem; }
.notice h2 {
  font-family: "Fraunces", serif; font-weight: 900;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  margin-bottom: .4rem; letter-spacing: .01em;
}
.notice p { max-width: 62ch; }
.notice strong { font-weight: 600; }

/* ---------- Kontakt & Anreise ---------- */
.contact {
  background: var(--paper);
  color: var(--ink-on-paper);
  padding: 0 clamp(1rem, 4vw, 3rem) clamp(3rem, 6vw, 4.5rem);
}
.contact-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(280px, 5fr) 7fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: stretch;
}
.contact-card { display: flex; flex-direction: column; }
.contact-card h2, .unknown h2 {
  font-family: "Fraunces", serif; font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
}
.contact-card address { font-style: normal; }
.addr-name { font-family: "Fraunces", serif; font-weight: 900; font-size: 1.15rem; margin-bottom: .3rem; }
.contact-card address p { margin-bottom: .8rem; max-width: 34ch; }
.mail-link { color: var(--ink-on-paper); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; overflow-wrap: anywhere; }
.mail-link:hover, .mail-link:focus { color: #7a5310; }
.route-btn {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: .5rem;
  margin: .4rem 0 1rem;
  background: var(--ink); color: var(--paper);
  text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: .75rem 1.2rem; border-radius: 2px;
}
.route-btn svg { width: 18px; height: 18px; }
.route-btn:hover, .route-btn:focus { background: #232b34; color: var(--gold-soft); }
.map-note { color: var(--muted-paper); font-size: .85rem; }

.map-wrap { position: relative; display: flex; flex-direction: column; min-height: 420px; }
.map-frame {
  width: 100%; height: 460px; border: 0;
  flex: 1 1 auto; min-height: 420px;
  background: var(--paper-2);
}
.map-fallback {
  font-size: .85rem; color: var(--muted-paper);
  padding-top: .5rem;
}
.map-fallback--ok { color: var(--muted-paper); }
.map-fallback--ok a, .map-fallback--slow a { color: #7a5310; font-weight: 600; }
.map-fallback--slow { color: #7a5310; }

/* ---------- Noch offen (unknown) ---------- */
.unknown {
  background: var(--ink-2);
  color: var(--paper);
  padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 3rem);
  border-top: 1px solid rgba(255,255,255,.06);
}
.unknown-inner { max-width: 900px; margin: 0 auto; }
.unknown-lede { color: var(--muted); max-width: 56ch; margin-bottom: 1.8rem; }
.unknown-list { list-style: none; }
.unknown-list li {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.unknown-list li::before {
  content: ""; flex: none;
  width: 12px; height: 12px;
  align-self: center;
  background: var(--gold);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.unknown-list span { flex: 1 1 auto; }
.unknown-list em {
  font-style: normal; flex: none;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--line); border-radius: 999px;
  padding: .18rem .6rem;
}
.unknown-foot { color: var(--muted); font-size: .9rem; margin-top: 1.4rem; }

/* ---------- Footer ---------- */
.footer { background: var(--ink-3); padding: 2.2rem clamp(1rem, 4vw, 3rem) 2.6rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; gap: .9rem; }
.footer-brand { display: flex; align-items: center; gap: .55rem; font-family: "Fraunces", serif; font-weight: 900; }
.footer-star { width: 16px; height: 16px; fill: var(--gold); flex: none; }
.footer-nav { display: flex; gap: 1.4rem; }
.footer-nav a { color: var(--paper); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.footer-nav a:hover, .footer-nav a:focus { color: var(--gold-soft); }
.footer-demo { color: var(--muted); font-size: .82rem; }

/* ---------- 法律页 ---------- */
.legal-main {
  background: var(--paper); color: var(--ink-on-paper);
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 3rem) clamp(3rem, 7vw, 5rem);
}
.legal-card { max-width: 780px; margin: 0 auto; }
.legal-card h1 {
  font-family: "Fraunces", serif; font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1.2rem;
}
.legal-card h2 {
  font-family: "Fraunces", serif; font-weight: 900;
  font-size: 1.15rem; margin: 1.6rem 0 .5rem;
}
.legal-card p { margin-bottom: .9rem; max-width: 64ch; }
.legal-card ul { margin: 0 0 1rem 1.2rem; }
.legal-card li { margin-bottom: .4rem; }
.legal-tag {
  display: inline-block; font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: #7a5310;
  border: 1px solid rgba(122,83,16,.4); border-radius: 999px;
  padding: .2rem .65rem; margin-bottom: 1.2rem;
}

/* 404 */
.error-code {
  font-family: "Fraunces", serif; font-weight: 900;
  font-size: clamp(4rem, 14vw, 8rem); line-height: 1;
  color: var(--gold); margin-bottom: 1rem;
}

/* ---------- 移动端 ---------- */
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .map-wrap { min-height: 380px; }
  .map-frame { height: 380px; min-height: 380px; }
}
@media (max-width: 640px) {
  .mark-desktop { display: none; }
  .mark-mobile { display: block; }
  .hero-star { width: 58px; right: 2px; top: -26px; }
  .notice { flex-direction: column; gap: .8rem; transform: none; }
  .topnav a { font-size: .82rem; }
  .unknown-list li { flex-wrap: wrap; }
}
@media (max-width: 360px) {
  .preview-tag { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .hero-star .star-path { animation: none; stroke-dashoffset: 0; }
  .js .mark { animation: none; opacity: 1; transform: none; }
  * { scroll-behavior: auto !important; }
}
