/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --off-white: #F8F6F1;
  --white: #FFFFFF;
  --anthracite: #2D2D2D;
  --deep: #1A1A1A;
  --gold: #C9A96E;
  --gold-light: #E2CA9A;
  --gold-pale: #F0E6D3;
  --text-muted: #6B6B6B;
  --border: #E5E0D8;
  --font-display: 'Palatino Linotype', 'Palatino', 'Book Antiqua', 'Georgia', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --max-w: 1160px;
  --nav-h: 76px;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--deep);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.01em; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 300; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 300; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); font-weight: 400; }
p { color: var(--anthracite); line-height: 1.8; font-weight: 300; }

/* ─── LAYOUT ─── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }
@media (max-width: 600px) { .container { padding: 0 20px; } }

/* ─── LANGUAGE SWITCHER ─── */
.lang-toggle {
  display: flex; gap: 0; align-items: center;
  font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.lang-toggle button {
  background: none; border: none; cursor: pointer;
  padding: 4px 8px; color: var(--text-muted); font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase; font-family: var(--font-body);
  transition: color 0.2s;
}
.lang-toggle button.active { color: var(--gold); font-weight: 500; }
.lang-toggle .divider { color: var(--border); font-size: 0.65rem; user-select: none; }

/* ─── NAVIGATION ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(248, 246, 241, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.06); }
.nav-inner {
  width: 100%; max-width: var(--max-w); margin: 0 auto;
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
}
@media (max-width: 600px) { .nav-inner { padding: 0 20px; } }

/* LOGO */
.logo-wrap { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-svg { width: 40px; height: 40px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text .name {
  font-family: var(--font-display); font-size: 1.2rem;
  font-weight: 500; letter-spacing: 0.08em; color: var(--deep);
  text-transform: uppercase;
}
.logo-text .sub {
  font-family: var(--font-body); font-size: 0.6rem;
  letter-spacing: 0.22em; color: var(--gold); text-transform: uppercase;
  font-weight: 400; margin-top: 3px;
}

/* NAV LINKS */
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--anthracite); text-decoration: none; font-weight: 400;
  transition: color 0.2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transition: transform 0.25s;
}
.nav-links a:hover { color: var(--deep); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 28px; }
@media (max-width: 900px) { .nav-links { display: none; } }

/* MOBILE NAV */
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--deep); transition: 0.3s; }
@media (max-width: 900px) { .hamburger { display: flex; } }
.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--off-white); border-bottom: 1px solid var(--border);
  padding: 24px 20px; z-index: 99; flex-direction: column; gap: 20px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--anthracite); text-decoration: none; padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 28% 22%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(160deg, var(--off-white) 0%, #EDE9E0 55%, #E5DFCE 100%);
}
.hero-icon-bg {
  position: absolute; z-index: 0; pointer-events: none;
  right: -180px; top: 50%; transform: translateY(-50%);
  width: 1100px; height: auto;
  opacity: 0.05;
}
@media (max-width: 1440px) {
  .hero-icon-bg { width: 850px; right: -160px; }
}
@media (max-width: 1100px) {
  .hero-icon-bg { width: 620px; right: -140px; }
}
@media (max-width: 768px) {
  .hero-icon-bg { width: 420px; right: -110px; }
}
.hero .container { max-width: 1440px; }
.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, clamp(240px, 28vw, 400px));
  align-items: stretch;
  gap: clamp(90px, 5vw, 110px);
}
.hero-content {
  justify-self: start;
  max-width: 680px;
  min-width: 0;
}
.hero-logo-wrap {
  justify-self: center;
  display: flex; align-items: center; justify-content: center;
  min-width: 0; overflow: hidden;
  height: 82%;
  transform: translateY(-22px);
}
.hero-logo-mark {
  width: 100%; height: 100%; object-fit: contain; display: block;
}
@media (max-width: 1380px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-content { justify-self: start; max-width: 100%; }
  .hero-logo-wrap { display: none; }
}
.hero h1 { margin-bottom: 28px; color: var(--deep); font-size: clamp(2.65rem, 5.6vw, 4.45rem); }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-sub {
  font-size: 1.05rem; color: var(--text-muted); max-width: 560px;
  margin-bottom: 52px; font-weight: 300; line-height: 1.9;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  display: inline-block; padding: 14px 36px;
  background: var(--deep); color: var(--white);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-family: var(--font-body); font-weight: 500;
  text-decoration: none; transition: background 0.25s, transform 0.2s;
  border: 1px solid var(--deep);
}
.btn-primary:hover { background: var(--anthracite); transform: translateY(-1px); }
.btn-secondary {
  display: inline-block; padding: 14px 36px;
  background: transparent; color: var(--deep);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-family: var(--font-body); font-weight: 500;
  text-decoration: none; border: 1px solid var(--anthracite);
  transition: background 0.25s, color 0.25s, transform 0.2s;
}
.btn-secondary:hover { background: var(--deep); color: var(--white); transform: translateY(-1px); }
.hero-scroll {
  position: absolute; bottom: 108px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-muted); z-index: 1;
}
.scroll-line {
  width: 1px; height: 40px; background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }

.hero-trustbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 22px 40px;
  display: flex; justify-content: center; align-items: center;
  gap: 36px; flex-wrap: nowrap; overflow: hidden;
}
.hero-trustbar span:not(.hero-trustbar-dot) {
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 400; white-space: nowrap;
}
.hero-trustbar-dot {
  width: 3px; height: 3px; border-radius: 50%; background: var(--border); flex-shrink: 0;
}
@media (max-width: 640px) {
  .hero-trustbar { display: none; }
}

/* ─── SECTION BASE ─── */
section { padding: 120px 0; }
@media (max-width: 768px) { section { padding: 72px 0; } }
.section-label {
  font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); font-family: var(--font-body); font-weight: 500;
  margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
}
.section-label::before { content: ''; display: block; width: 28px; height: 1px; background: var(--gold); }
.section-title { margin-bottom: 20px; }
.section-lead {
  font-size: 1.05rem; color: var(--text-muted); max-width: 580px;
  font-weight: 300; line-height: 1.9;
}
.gold-rule { width: 48px; height: 1px; background: var(--gold); margin: 32px 0; }

/* ─── ABOUT ─── */
#about { background: var(--white); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }
.about-visual {
  position: relative;
}
.about-box {
  background: var(--off-white); padding: 60px 48px;
  border-left: 2px solid var(--gold);
}
.about-stat {
  font-family: var(--font-display); font-size: 3.5rem; font-weight: 300;
  color: var(--gold); line-height: 1; margin-bottom: 8px;
}
.about-stat-label {
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 400;
}
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
.about-text p { margin-bottom: 20px; }
.about-text p:last-child { margin-bottom: 0; }

/* ─── WHAT WE DO ─── */
#services { background: var(--off-white); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 64px; }
@media (max-width: 768px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  background: var(--white); padding: 52px 40px;
  transition: transform 0.3s;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { transform: translateY(-4px); }
.service-icon {
  width: 44px; height: 44px; margin-bottom: 28px;
}
.service-card h3 { margin-bottom: 16px; font-size: 1.35rem; }
.service-card p { font-size: 0.92rem; color: var(--text-muted); }
.service-num {
  position: absolute; bottom: 32px; right: 36px;
  font-family: var(--font-display); font-size: 4rem; font-weight: 300;
  color: var(--gold-pale); line-height: 1; user-select: none;
}

/* ─── VALUES ─── */
#values { background: var(--deep); }
#values .section-label { color: var(--gold-light); }
#values .section-label::before { background: var(--gold-light); }
#values .section-title { color: var(--white); }
#values .section-lead { color: rgba(255,255,255,0.5); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 64px; }
@media (max-width: 600px) { .values-grid { grid-template-columns: 1fr; } }
.value-item {
  background: rgba(255,255,255,0.03); padding: 40px 28px;
  border-top: 1px solid rgba(201,169,110,0.3);
  transition: background 0.3s;
}
.value-item:hover { background: rgba(201,169,110,0.08); }
.value-icon { width: 32px; height: 32px; margin-bottom: 20px; }
.value-item h4 {
  font-size: 1rem; font-weight: 500; color: var(--white);
  margin-bottom: 10px; font-family: var(--font-display); letter-spacing: 0.03em;
}
.value-item p { font-size: 0.85rem; color: rgba(255,255,255,0.45); line-height: 1.7; }

/* ─── COMPLIANCE ─── */
#compliance { background: var(--white); }
.compliance-inner {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: center;
}
@media (max-width: 768px) { .compliance-inner { grid-template-columns: 1fr; gap: 48px; } }
.compliance-items { display: flex; flex-direction: column; gap: 24px; }
.compliance-item {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 24px 28px; background: var(--off-white);
  border-left: 2px solid var(--border); transition: border-color 0.2s;
}
.compliance-item:hover { border-color: var(--gold); }
.compliance-icon { flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; }
.compliance-item h4 { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; margin-bottom: 5px; }
.compliance-item p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }
.compliance-process {
  background: var(--deep); color: var(--white);
  padding: 56px 48px;
  border-top: 2px solid var(--gold);
}
@media (max-width: 600px) { .compliance-process { padding: 40px 28px; } }
.process-heading {
  font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold-light); font-family: var(--font-body); font-weight: 500;
  margin-bottom: 36px;
}
.process-flow { display: flex; flex-direction: column; }
.process-step { display: flex; align-items: center; gap: 20px; }
.process-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: rgba(201,169,110,0.06);
  display: flex; align-items: center; justify-content: center;
}
.process-icon svg { width: 20px; height: 20px; }
.process-label {
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 400;
  letter-spacing: 0.02em; color: rgba(255,255,255,0.88);
}
.process-connector {
  width: 1px; height: 26px; margin-left: 21.5px;
  background: linear-gradient(to bottom, var(--gold), rgba(201,169,110,0.15));
  opacity: 0.6;
}

/* ─── PARTNERSHIPS ─── */
#partners { background: var(--off-white); }
.partners-intro { margin-bottom: 72px; }
.partners-intro-head { margin-bottom: 40px; }
.partners-texts { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
@media (max-width: 768px) { .partners-texts { grid-template-columns: 1fr; gap: 32px; } }
.partners-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
@media (max-width: 768px) { .partners-grid { grid-template-columns: 1fr; } }
.partner-card {
  background: var(--white); padding: 44px 36px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s;
}
.partner-card:hover { border-color: var(--gold); }
.partner-card h3 { font-size: 1.2rem; margin-bottom: 14px; }
.partner-card p { font-size: 0.88rem; color: var(--text-muted); }

/* ─── FOOTER ─── */
footer {
  background: var(--deep); color: rgba(255,255,255,0.7);
  padding: 72px 0 40px;
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px;
  padding-bottom: 52px; border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 36px;
}
@media (max-width: 768px) { .footer-top { grid-template-columns: 1fr; gap: 40px; } }
.footer-logo-wrap { display: flex; align-items: center; gap: 14px; text-decoration: none; margin-bottom: 20px; }
.footer-logo-wrap .logo-text .name { color: var(--white); }
.footer-about { font-size: 0.88rem; line-height: 1.8; max-width: 320px; }
.footer-col h5 {
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); font-family: var(--font-body); font-weight: 500;
  margin-bottom: 20px;
}
.footer-col a, .footer-col span {
  display: block; font-size: 0.85rem; color: rgba(255,255,255,0.65);
  text-decoration: none; margin-bottom: 10px; transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 0.75rem; color: rgba(255,255,255,0.55);
}
.footer-bottom .lang-toggle button { color: rgba(255,255,255,0.35); }
.footer-bottom .lang-toggle button.active { color: var(--gold); }
.footer-bottom .lang-toggle .divider { color: rgba(255,255,255,0.15); }

/* ─── ANIMATION ─── */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ─── HIDDEN LANG CONTENT ─── */
[data-lang] { display: none; }
[data-lang].lang-active { display: block; }
[data-lang-inline] { display: none; }
[data-lang-inline].lang-active { display: inline; }

/* ─── ABOUT PRINCIPLE BLOCK ─── */
.about-principle-block {
  border-left: 2px solid var(--gold);
  padding-left: 0;
}
.apb-item {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 28px 36px;
  background: var(--white);
  transition: background 0.25s;
}
.apb-item:hover { background: #fdfcf9; }
.apb-num {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 300;
  color: var(--gold); line-height: 1; flex-shrink: 0; width: 28px;
  padding-top: 2px;
}
.apb-content h4 {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--deep); margin-bottom: 6px;
}
.apb-content p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.75; }
.apb-divider { height: 1px; background: var(--border); margin: 0 36px; }

/* ─── LOGO IMG ─── */
.logo-img { height: 46px; width: auto; display: block; flex-shrink: 0; }
.logo-img.footer-logo-img { filter: brightness(0) invert(1); opacity: 0.88; }

/* ─── GERMANY FLAG BANNER ─── */
.de-flag-banner {
  width: 100%; height: 12px;
  background: linear-gradient(to bottom,
    #1a1a1a 0%,    #1a1a1a 33.333%,
    #cc0000 33.333%, #cc0000 66.667%,
    #ffcc00 66.667%, #ffcc00 100%
  );
  animation: flagSlideIn 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.5s;
}
@keyframes flagSlideIn {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0% 0 0); }
}
@media (prefers-reduced-motion: reduce) { .de-flag-banner { animation: none; } }

/* ─── LEGAL PAGES (Impressum / Datenschutz) ─── */
.legal-main {
  padding-top: calc(var(--nav-h) + 64px);
  padding-bottom: 100px;
  min-height: 60vh;
}
