:root {
  --bg: #f3f5f2;
  --surface: #ffffff;
  --surface-alt: #eef2ed;
  --ink: #182027;
  --muted: #647078;
  --border: #dde3dd;
  --brand: #163247;
  --brand-soft: #28536b;
  --accent: #b88a44;
  --green: #54715f;
  --shadow: 0 20px 50px rgba(24, 32, 39, 0.1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand-soft);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(221, 227, 221, 0.9);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 800;
  letter-spacing: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text strong {
  font-size: 1.05rem;
}

.logo-text small {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.nav a {
  color: var(--ink);
  font-weight: 700;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav a.active,
.nav a:hover {
  color: var(--brand-soft);
  border-color: var(--accent);
  text-decoration: none;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 3px;
}

.language-switch button {
  min-width: 38px;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
}

.language-switch button.active {
  background: var(--brand);
  color: #fff;
}

.lang {
  display: inline;
}

body[data-lang="de"] .lang-en,
body[data-lang="de"] .lang-zh,
body[data-lang="en"] .lang-de,
body[data-lang="en"] .lang-zh,
body[data-lang="zh"] .lang-de,
body[data-lang="zh"] .lang-en {
  display: none;
}

body[data-lang="zh"] .legal .lang-de {
  display: inline;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 78px));
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
}

.hero-image,
.page-title-image > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 35, 47, 0.92) 0%, rgba(18, 35, 47, 0.74) 38%, rgba(18, 35, 47, 0.2) 78%),
    linear-gradient(180deg, rgba(18, 35, 47, 0.25), rgba(18, 35, 47, 0.62));
}

.hero-image {
  z-index: -2;
}

.hero-content {
  padding: 86px 0 96px;
}

.kicker,
.section-label,
.panel-label {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.12;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.5rem, 6vw, 5.7rem);
  letter-spacing: 0;
}

h2 {
  color: var(--brand);
  margin-bottom: 18px;
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  letter-spacing: 0;
}

h3 {
  color: var(--brand);
  margin-bottom: 12px;
  font-size: 1.24rem;
}

.hero-copy {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.18rem;
}

.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 20px;
  font-weight: 800;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #111812;
}

.btn-primary:hover {
  background: #c79a52;
}

.btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.08);
}

.section {
  padding: 76px 0;
}

.section-white {
  background: var(--surface);
}

.intro-section {
  padding: 58px 0 46px;
}

.intro-grid,
.profile-grid,
.contact-grid,
.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  align-items: start;
}

.lead {
  max-width: 760px;
  margin-top: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.services-grid,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.detail-card,
.profile-panel,
.legal {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-card {
  min-height: 260px;
  padding: 30px;
}

.service-number {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 20px;
  color: var(--green);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.service-card p,
.detail-card p,
.profile-panel p,
.legal p,
.legal li {
  color: var(--muted);
}

.profile-section {
  background: var(--surface-alt);
}

.profile-copy {
  max-width: 620px;
}

.profile-panel {
  padding: 32px;
  background: #fff;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
}

.check-list li {
  position: relative;
  margin-bottom: 14px;
  padding-left: 28px;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.58em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

.cta-band {
  padding: 54px 0;
  background: var(--brand);
  color: #fff;
}

.cta-band h2,
.contact-panel h2 {
  color: inherit;
  margin-bottom: 0;
}

.cta-inner {
  align-items: center;
}

.cta-inner .btn {
  justify-self: end;
}

.page-title {
  min-height: 260px;
  padding: 52px 0;
  display: flex;
  align-items: center;
  background: var(--brand);
  color: #fff;
}

.page-title h1 {
  max-width: 1100px;
  margin-bottom: 12px;
  font-size: clamp(2rem, 3.35vw, 3rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

body[data-lang="de"] .page-title h1,
body[data-lang="en"] .page-title h1 {
  white-space: nowrap;
}

.page-title p {
  max-width: 740px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.12rem;
}

.page-title-image {
  position: relative;
  min-height: 420px;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}

.page-title-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 35, 47, 0.9), rgba(18, 35, 47, 0.52)),
    linear-gradient(180deg, transparent, rgba(18, 35, 47, 0.72));
}

.page-title-image > img {
  z-index: -2;
}

.page-title-content {
  padding-top: 80px;
}

.detail-card {
  padding: 30px;
}

.detail-card h2 {
  font-size: 1.6rem;
  overflow-wrap: anywhere;
}

.contact-panel {
  min-height: 300px;
  padding: 36px;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
}

.contact-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-panel .btn {
  margin-top: 18px;
}

.legal {
  padding: 36px;
}

.legal h2 {
  margin-top: 34px;
  font-size: 1.45rem;
}

.legal h2:first-child {
  margin-top: 0;
}

.notice {
  margin-bottom: 28px;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: #fff7e8;
  padding: 16px 18px;
  color: #5d4318;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #11191d;
  color: rgba(255, 255, 255, 0.72);
  padding: 34px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.86);
}

.small {
  font-size: 0.92rem;
}

@media (max-width: 920px) {
  .header-inner {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .nav {
    gap: 18px;
  }

  .hero {
    min-height: 680px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(18, 35, 47, 0.93), rgba(18, 35, 47, 0.6));
  }

  .intro-grid,
  .profile-grid,
  .contact-grid,
  .cta-inner,
  .services-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .cta-inner .btn {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .logo-text small {
    max-width: 210px;
  }

  .hero {
    min-height: 650px;
  }

  .hero-content {
    padding: 64px 0 72px;
  }

  .section {
    padding: 56px 0;
  }

  .page-title {
    min-height: 220px;
    padding: 42px 0;
  }

  .page-title h1 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  body[data-lang="de"] .page-title h1,
  body[data-lang="en"] .page-title h1 {
    white-space: normal;
  }

  .service-card,
  .detail-card,
  .profile-panel,
  .contact-panel,
  .legal {
    padding: 24px;
  }
}
