/* Lily Wang — Placeholder-Seite
   Farbwelt aus dem Hero-Motiv: Papierweiss, Tiefgrau, Bruecken-Rot.
   Keine externen Ressourcen (Fonts, CDN) — Strict-CSP-tauglich. */

:root {
  --paper:      #F7F5F2;
  --paper-warm: #EFEBE4;
  --ink:        #17191C;
  --ink-soft:   #565C66;
  --ink-faint:  #8C929C;
  --red:        #D8301F;
  --red-deep:   #A82417;
  --line:       rgba(23, 25, 28, .12);
  --card:       #FFFFFF;

  --w-text: 46rem;
  --w-wide: 78rem;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Noto Serif", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Sehr weicher Lichtschein hinter dem Inhalt — gibt dem Papierton Tiefe. */
.aura {
  position: fixed;
  inset: -20vh -10vw auto;
  height: 90vh;
  background:
    radial-gradient(60% 55% at 50% 0%, rgba(216, 48, 31, .08), transparent 70%),
    radial-gradient(40% 40% at 12% 18%, rgba(120, 140, 170, .10), transparent 70%),
    radial-gradient(40% 40% at 88% 14%, rgba(216, 48, 31, .06), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

main, .site-head, .site-foot { position: relative; z-index: 1; }

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

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: clamp(1.4rem, 3vw, 2.4rem) clamp(1.25rem, 5vw, 3rem) 0;
}

.brand { text-decoration: none; color: inherit; display: block; }

.brand-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: .01em;
  line-height: 1.1;
}

.brand-sub {
  display: block;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: .3rem;
}

.langs { display: flex; gap: .25rem; }

.lang {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: .82rem;
  letter-spacing: .08em;
  padding: .42rem .7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color .25s var(--ease), background-color .25s var(--ease);
}

.lang:hover { color: var(--ink); background: rgba(23, 25, 28, .05); }

.lang.is-active {
  color: var(--red-deep);
  background: rgba(216, 48, 31, .10);
}

.lang:focus-visible,
.c-link:focus-visible,
a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Hero ---------- */

.hero {
  max-width: var(--w-text);
  margin: 0 auto;
  padding: clamp(1.75rem, 5vh, 3.5rem) clamp(1.25rem, 5vw, 3rem) 0;
  text-align: center;
}

/* Text und Kontakte sitzen unter dem Bild. */
.intro {
  max-width: var(--w-text);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vh, 2.75rem) clamp(1.25rem, 5vw, 3rem) 0;
  text-align: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 0 0 clamp(1.4rem, 3vw, 2rem);
  font-size: .76rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.eyebrow > span:not(:first-child)::before {
  content: "";
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--red);
  opacity: .55;
  margin-right: .55rem;
  vertical-align: .18em;
}

.eyebrow .sep { display: none; }

.foot-meta .sep,
.back .sep {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--red);
  opacity: .55;
  flex: none;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 1.2rem + 3.1vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -.015em;
  margin: 0 auto clamp(1.2rem, 3vw, 1.8rem);
  max-width: 24ch;
  text-wrap: balance;
}

h1 em {
  font-style: normal;
  color: var(--red);
  position: relative;
  white-space: nowrap;
}

/* Feiner Unterstrich, der beim Laden mitwaechst. */
h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .08em;
  height: 2px;
  background: currentColor;
  opacity: .22;
  transform: scaleX(0);
  transform-origin: left;
  animation: grow 1.1s .7s var(--ease) forwards;
}

@keyframes grow { to { transform: scaleX(1); } }

.lead {
  font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem);
  color: var(--ink-soft);
  margin: 0 auto clamp(1.2rem, 3vw, 1.8rem);
  max-width: 38rem;
  text-wrap: pretty;
}

.note {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 clamp(1.4rem, 3.5vw, 2rem);
  padding: .5rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .6);
  font-size: .88rem;
  color: var(--ink-soft);
}

.note-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  flex: none;
  animation: pulse 2.6s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1;  box-shadow: 0 0 0 0 rgba(216, 48, 31, .45); }
  50%      { opacity: .8; box-shadow: 0 0 0 7px rgba(216, 48, 31, 0); }
}

/* ---------- Kontakt ---------- */

.contact {
  /* Bricht aus dem schmalen Textmass aus, damit die drei Wege in eine Reihe passen. */
  width: min(56rem, calc(100vw - 2.5rem));
  margin-left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  list-style: none;
  padding: 0;
}

.c-link {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .7rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(23, 25, 28, .04);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              border-color .25s var(--ease);
}

.c-link:hover {
  transform: translateY(-2px);
  border-color: rgba(216, 48, 31, .35);
  box-shadow: 0 10px 24px -12px rgba(23, 25, 28, .28);
}

.c-ico {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  flex: none;
  border-radius: 10px;
  background: rgba(216, 48, 31, .09);
  color: var(--red-deep);
}

.c-ico svg { width: 18px; height: 18px; display: block; }

.c-body { display: block; min-width: 0; }

.c-label {
  display: block;
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  line-height: 1.4;
}

.c-value {
  display: block;
  font-size: .95rem;
  line-height: 1.35;
  white-space: nowrap;
}

.c-hint {
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .1rem .35rem;
  margin-left: .1rem;
  flex: none;
}

.c-copy.is-done .c-hint {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

/* ---------- Bruecke ---------- */

.bridge {
  margin: clamp(1rem, 3vh, 2.25rem) 0 0;
  padding: 0;
}

.bridge-stage {
  position: relative;
  max-width: min(88rem, 128vh);
  margin: 0 auto;
  padding: 0 clamp(.5rem, 3vw, 2rem);
}

.bridge-img {
  position: relative;
  /* Reveal: die Bruecke baut sich aus der Mitte nach aussen auf. */
  clip-path: inset(0 50% 0 50%);
  animation: build 1.9s .25s var(--ease) forwards;
}

@keyframes build { to { clip-path: inset(0 0 0 0); } }

.bridge-img img {
  display: block;
  width: 100%;
  height: auto;
  /* Parallax-Versatz, aus JS gespeist. */
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
  transition: transform .6s var(--ease);
  mix-blend-mode: multiply;
}

/* Lichtschimmer, der langsam von Shanghai nach Berlin wandert. */
.shimmer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg,
    transparent 38%,
    rgba(255, 255, 255, .55) 47%,
    rgba(255, 244, 240, .75) 50%,
    rgba(255, 255, 255, .55) 53%,
    transparent 62%);
  mix-blend-mode: overlay;
  opacity: 0;
  animation: sweep 9s 2.4s var(--ease) infinite;
}

@keyframes sweep {
  0%        { transform: translateX(-62%); opacity: 0; }
  12%       { opacity: .95; }
  46%       { opacity: .95; }
  60%, 100% { transform: translateX(62%);  opacity: 0; }
}

/* Ortsmarken links und rechts */
.place {
  position: absolute;
  top: 8%;
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  opacity: 0;
  animation: fade .9s 1.7s var(--ease) forwards;
  white-space: nowrap;
}

.place i {
  display: block;
  width: clamp(1.5rem, 4vw, 3rem);
  height: 1px;
  background: currentColor;
  opacity: .5;
}

.place-l { left: clamp(1rem, 5vw, 4rem); }
.place-r { right: clamp(1rem, 5vw, 4rem); animation-delay: 2s; }

@keyframes fade { to { opacity: 1; } }

.bridge figcaption {
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1rem, .95rem + .3vw, 1.2rem);
  color: var(--ink-soft);
  margin-top: clamp(.5rem, 2vw, 1.2rem);
  opacity: 0;
  animation: fade .9s 2.3s var(--ease) forwards;
}

/* ---------- Leistungen ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: clamp(1rem, 2.5vw, 1.6rem);
  max-width: var(--w-wide);
  margin: clamp(3.5rem, 9vw, 6rem) auto 0;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.5rem, 3vw, 2rem);
  overflow: hidden;
  /* Einblenden beim Scrollen (JS setzt .is-in). */
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease),
              border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.card.is-in { opacity: 1; transform: none; }

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--red), rgba(216, 48, 31, 0));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .45s var(--ease);
}

.card:hover { border-color: rgba(216, 48, 31, .3); box-shadow: 0 14px 34px -22px rgba(23, 25, 28, .4); }
.card:hover::before { transform: scaleY(1); }

.card-no {
  display: block;
  font-size: .72rem;
  letter-spacing: .2em;
  color: var(--red);
  margin-bottom: .8rem;
}

.card h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 0 0 .6rem;
}

.card p { margin: 0; color: var(--ink-soft); font-size: .95rem; text-wrap: pretty; }

/* ---------- Fuss ---------- */

.site-foot {
  max-width: var(--w-wide);
  margin: clamp(4rem, 10vw, 7rem) auto 0;
  padding: clamp(1.6rem, 4vw, 2.4rem) clamp(1.25rem, 5vw, 3rem) clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem;
  font-size: .86rem;
  color: var(--ink-faint);
}

.foot-brand { margin: 0; letter-spacing: .1em; text-transform: uppercase; font-size: .74rem; }

.foot-meta { margin: 0; display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }

.foot-meta a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line); }
.foot-meta a:hover { color: var(--red-deep); border-color: currentColor; }

/* ---------- Hinweis-Einblendung (WeChat kopiert) ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  transform: translate(-50%, 1.2rem);
  background: var(--ink);
  color: #fff;
  font-size: .86rem;
  padding: .6rem 1.1rem;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  z-index: 50;
}

.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Sprachen ---------- */

/* Chinesisch braucht etwas mehr Zeilenluft und einen anderen Schriftschnitt. */
html[data-lang="zh"] body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", var(--sans);
  line-height: 1.85;
}

html[data-lang="zh"] h1,
html[data-lang="zh"] .card h2,
html[data-lang="zh"] .bridge figcaption {
  font-family: "Songti SC", "Noto Serif CJK SC", var(--serif);
  letter-spacing: .01em;
}

html[data-lang="zh"] h1 { font-size: clamp(2rem, 1.3rem + 3.4vw, 3.6rem); line-height: 1.3; }
html[data-lang="zh"] .eyebrow { letter-spacing: .1em; }

/* ---------- Kleine Schirme ---------- */

@media (max-width: 44rem) {
  .c-link { width: 100%; }
  .c-value { white-space: normal; word-break: break-word; }
  /* Auf schmalen Schirmen liegt das Bild zu eng — die Ortsmarken wuerden
     in die Skyline ragen, deshalb entfallen sie dort. */
  .place { display: none; }
  .site-foot { justify-content: center; text-align: center; }
}

/* ---------- Bewegung reduzieren ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .bridge-img { clip-path: none; }
  .shimmer { display: none; }
  .card { opacity: 1; transform: none; }
  .place, .bridge figcaption { opacity: 1; }
  h1 em::after { transform: scaleX(1); }
}

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */

.legal .site-head { align-items: flex-start; }

.back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: .4rem .2rem;
}

.back:hover { color: var(--red-deep); }

.doc {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 3.5rem) clamp(1.25rem, 5vw, 3rem) 0;
}

.doc h1 {
  text-align: left;
  max-width: none;
  font-size: clamp(1.9rem, 1.3rem + 2vw, 2.6rem);
  margin: 0 0 1.5rem;
}

.doc h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 2.2rem 0 .6rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.doc h2:first-of-type { margin-top: 1.8rem; }

.doc p { margin: 0 0 1rem; text-wrap: pretty; }

.doc a { color: var(--red-deep); text-decoration: none; border-bottom: 1px solid rgba(216, 48, 31, .3); }
.doc a:hover { border-color: currentColor; }

.doc code {
  font-size: .9em;
  background: rgba(23, 25, 28, .06);
  border-radius: 4px;
  padding: .1em .35em;
}

/* Anschriften und Ähnliches ohne Absatzabstand zwischen den Zeilen */
.doc .address { line-height: 1.75; }

/* Einleitender Hinweis, farblich abgesetzt */
.doc .hint {
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: 0 12px 12px 0;
  padding: .9rem 1.1rem;
  color: var(--ink-soft);
  font-size: .95rem;
}

.doc .stand { color: var(--ink-faint); font-size: .86rem; margin-top: 1.8rem; }

/* Trennung der beiden Sprachfassungen */
.doc-sep {
  border: 0;
  border-top: 1px solid var(--line);
  margin: clamp(3rem, 7vh, 4.5rem) 0 0;
}

.doc section[lang="en"] { padding-top: clamp(1.5rem, 4vh, 2.5rem); }

.foot-meta a + .sep { opacity: .55; }
