/* Berwari Trading - Stylesheet. Keine externen Schriften oder Ressourcen. */

:root {
  --navy: #03234E;
  --navy-deep: #021A3A;
  --blue: #0468B9;
  --red: #8F042D;
  --red-hover: #6F0322;
  --ink: #0F1F38;
  --muted: #4F5F78;
  --line: #D4DCE8;
  --paper: #F3F6FA;
  --white: #FFFFFF;
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

/* ---- Sprachumschaltung: versteckt nur Elemente mit data-l, niemals <html> oder <body> ---- */
html:not(.en) [data-l="en"],
html.en [data-l="zh"] { display: none !important; }
[hidden] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
figure { margin: 0; }
a { color: var(--blue); }
h1, h2, h3 { color: var(--navy); margin: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid #5DA8EA; outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 820px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); color: var(--navy); padding: 8px 14px; border-radius: 3px; }
.skip:focus { left: 8px; }

/* ---- Buttons ---- */
.btn {
  display: inline-block; font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2;
  padding: 13px 24px; border-radius: 3px; border: 1px solid transparent;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn-sm { padding: 9px 16px; font-size: .88rem; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hover); }
.btn-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-light:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: block; flex: 0 0 auto; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--red); }
.actions { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  font: inherit; font-size: .85rem; font-weight: 600; padding: 8px 12px; line-height: 1.2;
  background: var(--white); color: var(--navy); border: 1px solid var(--line); border-radius: 3px; cursor: pointer;
}
.lang-btn:hover { border-color: var(--navy); }
@media (max-width: 860px) { .nav { display: none; } }

/* ---- Hero ---- */
.hero { position: relative; color: #fff; background: var(--navy-deep); overflow: hidden; }
.hero-media, .hero-scrim { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.hero-media picture, .logi-media picture, .global-media picture { height: 100%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; transform-origin: 70% 50%; }
.hero-scrim { background: linear-gradient(90deg, rgba(2, 26, 58, .92) 0%, rgba(2, 26, 58, .76) 38%, rgba(2, 26, 58, .12) 72%, rgba(2, 26, 58, 0) 100%); }
.hero-inner { position: relative; z-index: 2; padding-top: clamp(72px, 11vw, 132px); padding-bottom: clamp(88px, 12vw, 150px); }
.hero h1 { color: #fff; font-size: clamp(1.75rem, 4.8vw, 3.6rem); line-height: 1.14; letter-spacing: -.015em; max-width: 17.5em; margin-bottom: 22px; text-wrap: balance; }
.hero .lead { font-size: clamp(1.02rem, 1.5vw, 1.18rem); max-width: 35rem; color: #DDE7F6; margin-bottom: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-arc { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(34px, 6vw, 84px); z-index: 3; display: block; }
@media (max-width: 720px) {
  .hero h1 br { display: none; }
  .hero-scrim { background: linear-gradient(180deg, rgba(2, 26, 58, .86) 0%, rgba(2, 26, 58, .68) 100%); }
}
html:not(.en) .hero h1 { line-height: 1.28; }

/* ---- Sections ---- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--paper); }
.section h2, .global h2, .logi h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); line-height: 1.22; letter-spacing: -.01em; margin-bottom: 16px; }
.lede { color: var(--muted); max-width: 40rem; margin-bottom: 28px; }
.photo figcaption, .band figcaption, .strip-cap { font-size: .85rem; color: var(--muted); margin-top: 8px; }

.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

.facts { margin: 26px 0 0; }
.facts div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .92rem; }
.facts dd { margin: 0; font-weight: 600; color: var(--navy); }

/* What we buy */
.buy { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .buy { grid-template-columns: minmax(0, 1fr); } }
.rule-list li { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 4px 24px; padding: 16px 0; border-top: 1px solid var(--line); }
.rule-list h3 { font-size: 1rem; }
.rule-list p { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .rule-list li { grid-template-columns: minmax(0, 1fr); } }
.cats { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); }
.buy-side .criteria { margin-top: 18px; }
.criteria { background: var(--navy); color: #fff; padding: 24px 26px; border-radius: 3px; }
.criteria p { margin: 0; }
.crit-label { font-size: .88rem; color: #B9CCE8; }
.crit-big { font-size: 1.8rem; font-weight: 700; line-height: 1.2; margin: 4px 0 14px !important; }
.criteria ul li { padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .22); font-size: .95rem; color: #E6EEFA; }
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: clamp(32px, 5vw, 56px); }
.strip img { width: 100%; height: clamp(170px, 24vw, 300px); object-fit: cover; }
.strip-cap { margin-top: 10px; }

/* Why */
.band img { width: 100%; height: clamp(200px, 32vw, 400px); object-fit: cover; object-position: center 55%; }
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 48px); margin-top: 34px; }
.points li { border-top: 2px solid var(--navy); padding: 16px 0 26px; }
.points h3 { font-size: 1.05rem; margin-bottom: 6px; }
.points p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .points { grid-template-columns: minmax(0, 1fr); } }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 36px); margin-top: 32px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--navy); padding-top: 16px; }
.steps li::before { content: counter(step); display: block; font-size: 2rem; font-weight: 700; line-height: 1; color: var(--red); margin-bottom: 12px; }
.steps h3 { font-size: 1.05rem; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 28px; } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Global trade */
.global { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); background: var(--navy-deep); color: #fff; }
.global-media img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.global-panel { position: relative; overflow: hidden; display: flex; align-items: center; }
.global-text { position: relative; z-index: 2; padding: clamp(36px, 6vw, 80px) clamp(24px, 5vw, 64px); }
.global h2 { color: #fff; }
.global p { color: #D5E2F5; }
.global p:last-child { margin-bottom: 0; }
.routes { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; opacity: .45; z-index: 1; }
.routes path { fill: none; stroke: #7FB4EA; stroke-width: 1.5; stroke-dasharray: 4 10; }
.routes circle { fill: #E55B78; }
@media (max-width: 860px) {
  .global { grid-template-columns: minmax(0, 1fr); }
  .global-media img { min-height: 0; height: 240px; }
}

/* Logistics */
.logi { position: relative; color: #fff; background: var(--navy-deep); min-height: 340px; display: flex; align-items: flex-end; overflow: hidden; }
.logi-media, .logi-scrim { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.logi-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.logi-scrim { background: linear-gradient(0deg, rgba(2, 26, 58, .92) 0%, rgba(2, 26, 58, .6) 55%, rgba(2, 26, 58, .15) 100%); }
.logi-inner { position: relative; z-index: 2; padding-top: 60px; padding-bottom: 40px; }
.logi h2 { color: #fff; }
.logi p { max-width: 36rem; color: #E1EAF7; margin-bottom: 6px; }
.logi .logi-cap { font-size: .85rem; color: #B9CCE8; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 18px 40px 18px 0; font-weight: 600; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 1.5rem; line-height: 1.2; color: var(--red); }
.faq details[open] summary::after { content: "\2013"; }
.faq .ans { margin: 0 0 20px; color: var(--muted); max-width: 40rem; }

/* Contact */
.notice { padding: 14px 18px; border-radius: 3px; margin-bottom: 24px; font-size: .95rem; }
.notice p { margin: 0; }
.notice-error { background: #FBEDEF; border: 1px solid #E3A9B3; color: #6F0322; }
.notice-note { background: #FFF6E0; border: 1px solid #EBD28C; color: #6B4E00; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.direct { background: var(--white); border: 1px solid var(--line); padding: 26px; border-radius: 3px; }
.direct h3 { font-size: 1rem; margin-bottom: 12px; }
.direct .mt { margin-top: 24px; }
.qr { width: 100%; max-width: 190px; height: auto; border: 1px solid var(--line); }
.qr-sm { max-width: 160px; margin: 0 auto; }
.qr-hint { font-size: .88rem; color: var(--muted); margin: 8px 0 12px; }
.idline { margin: 0; }
.idlabel { color: var(--muted); font-size: .92rem; margin-right: 6px; }
.idval { color: var(--navy); font-size: 1.05rem; word-break: break-all; }
.copy-btn { font: inherit; font-size: .8rem; margin-left: 8px; padding: 3px 10px; background: var(--white); color: var(--navy); border: 1px solid var(--line); border-radius: 3px; cursor: pointer; }
.copy-btn:hover { border-color: var(--navy); }
.soon { display: none; color: var(--muted); }
.wechat-soon [data-wechat-live] { display: none; }
.wechat-soon .soon { display: block; }

.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 600px) { .form .row { grid-template-columns: minmax(0, 1fr); } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--navy); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  padding: 11px 12px; border: 1px solid #B6C3D6; border-radius: 3px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: 2px solid rgba(4, 104, 185, .25); outline-offset: 0; }
.field.check { display: flex; gap: 10px; align-items: flex-start; }
.field.check input { margin-top: 5px; flex: 0 0 auto; }
.field.check label { font-weight: 400; margin: 0; color: var(--ink); }
.hint { font-size: .85rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Subpages */
.page { padding: clamp(40px, 6vw, 80px) 0; }
.page h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 14px; }
.page h2 { font-size: 1.1rem; margin: 26px 0 6px; }
.content-card { background: var(--white); border: 1px solid var(--line); padding: 8px 28px 26px; border-radius: 3px; }
.content-card p { color: var(--muted); }
.todo { color: #B0102B; font-weight: 700; }
.info-card { background: var(--white); border: 1px solid var(--line); padding: 6px 28px; border-radius: 3px; }
.info-row { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.info-row:last-child { border-bottom: 0; }
.info-row .k { color: var(--muted); }
@media (max-width: 560px) { .info-row { grid-template-columns: minmax(0, 1fr); } }
.thanks { text-align: center; }
.tick { width: 56px; height: 56px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.thanks-qr { margin: 24px 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--white); color: var(--muted); font-size: .92rem; padding: 40px 0 24px; }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr); gap: 28px; }
@media (max-width: 760px) { .foot { grid-template-columns: minmax(0, 1fr); } }
.foot-brand img { height: 40px; width: auto; margin-bottom: 12px; }
.foot p { margin: 0 0 .6em; }
.foot-links a { display: block; margin-bottom: 6px; color: var(--navy); }
.legal { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.legal p { margin: 0; font-size: .85rem; }

/* ---- Bewegung: nur wenn gewünscht, und nur an zwei Stellen ---- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.07); } }
@keyframes dash { to { stroke-dashoffset: -140; } }
@media (prefers-reduced-motion: no-preference) {
  .js .hero-inner > * { animation: rise .85s cubic-bezier(.2, .7, .2, 1) both; }
  .js .hero-inner .lead { animation-delay: .12s; }
  .js .hero-inner .hero-cta { animation-delay: .24s; }
  .hero-media img { animation: drift 32s ease-out both; }
  .routes path { animation: dash 18s linear infinite; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

