:root {
  --cream: #F5F0E8;
  --cream-dark: #EDE6D6;
  --ink: #1C1A14;
  --ink-light: #3D3A2E;
  --ink-muted: #7A7468;
  --gold: #9B7B2E;
  --gold-light: #C9A84C;
  --gold-pale: #F0E6C8;
  --red-accent: #8B2020;
  --border: rgba(28,26,20,0.12);
  --border-strong: rgba(28,26,20,0.25);
  --white: #FDFBF7;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Serif 4', Georgia, serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  font-size: 18px;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(245,240,232,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-mark { width: 40px; height: 40px; background: var(--ink); display: flex; align-items: center; justify-content: center; border-radius: 4px; }
.nav-logo-mark span { font-family: 'JetBrains Mono', monospace; color: var(--gold-light); font-size: 13px; font-weight: 500; letter-spacing: -0.5px; }
.nav-wordmark { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -0.3px; }
.nav-wordmark em { color: var(--gold); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { font-family: 'Source Serif 4', serif; font-size: 15px; color: var(--ink-light); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--gold); }
.nav-cta { background: var(--ink) !important; color: var(--gold-light) !important; padding: 10px 22px !important; border-radius: 3px !important; font-size: 14px !important; transition: background 0.2s !important; }

/* Language Switcher */
.lang-switch { display: flex; gap: 10px; margin-left: 20px; border-left: 1px solid var(--border); padding-left: 20px; }
.lang-switch a { font-family: 'JetBrains Mono', monospace; font-size: 12px; text-decoration: none; color: var(--ink-muted); }
.lang-switch a.active { color: var(--gold); font-weight: 700; }

/* ── HERO ── */
#hero { min-height: 100vh; padding-top: 68px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.hero-bg-pattern { position: absolute; inset: 0; background-image: repeating-linear-gradient(0deg, transparent, transparent 59px, var(--border) 59px, var(--border) 60px), repeating-linear-gradient(90deg, transparent, transparent 59px, var(--border) 59px, var(--border) 60px); opacity: 0.4; }
.hero-accent-bar { position: absolute; top: 0; left: 0; width: 6px; height: 100%; background: linear-gradient(180deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%); }
.hero-inner { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 4rem 3rem 4rem 5rem; display: grid; grid-template-columns: 1fr 420px; gap: 4rem; align-items: center; }
.hero-tagline { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 12px; }
.hero-tagline::before { content: ''; display: inline-block; width: 32px; height: 1px; background: var(--gold); }
.hero-h1 { font-family: 'Playfair Display', serif; font-size: clamp(3rem, 5vw, 5.5rem); line-height: 1.05; font-weight: 900; color: var(--ink); margin-bottom: 2rem; letter-spacing: -2px; }
.hero-h1 .highlight { color: var(--gold); position: relative; display: inline-block; }
.hero-h1 .highlight::after { content: ''; position: absolute; bottom: 4px; left: 0; right: 0; height: 3px; background: var(--gold-light); opacity: 0.4; }
.hero-sub { font-size: 1.25rem; color: var(--ink-light); font-weight: 300; max-width: 560px; margin-bottom: 2.5rem; line-height: 1.75; }
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--gold-light); padding: 16px 32px; border-radius: 3px; font-family: 'Source Serif 4', serif; font-size: 16px; text-decoration: none; transition: background 0.2s, transform 0.15s; cursor: pointer; border: none; }
.btn-primary:hover { background: var(--ink-light); transform: translateY(-1px); }
.btn-secondary { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--ink); padding: 16px 32px; border-radius: 3px; border: 1.5px solid var(--border-strong); font-family: 'Source Serif 4', serif; font-size: 16px; text-decoration: none; transition: border-color 0.2s, color 0.2s; cursor: pointer; }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

/* Hero card */
.hero-card { background: var(--white); border: 1px solid var(--border-strong); border-radius: 6px; padding: 2.5rem; box-shadow: 12px 12px 0 var(--cream-dark), 12px 12px 0 1px var(--border); }
.hero-card-head { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-bottom: 1.5rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--border); }
.value-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 1.3rem; }
.value-icon { width: 34px; height: 34px; flex-shrink: 0; background: var(--gold-pale); border: 1px solid rgba(155,123,46,0.25); border-radius: 3px; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.value-text strong { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.value-text span { font-size: 13px; color: var(--ink-muted); font-weight: 300; line-height: 1.4; }

/* ── PHILOSOPHY ── */
#philosophy { background: var(--ink); padding: 4rem 2rem; position: relative; z-index: 2; }
.philosophy-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4rem; }
.phil-item { text-align: center; }
.phil-num { font-family: 'Playfair Display', serif; font-size: 3.5rem; font-weight: 900; color: var(--gold); line-height: 1; margin-bottom: 0.5rem; }
.phil-title { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700; color: var(--white); margin-bottom: 1rem; }
.phil-text { font-size: 0.95rem; color: rgba(253,251,247,0.5); font-weight: 300; line-height: 1.7; }

/* ── QUOTE ── */
#quote-section { padding: 9rem 2rem; background: var(--white); text-align: center; position: relative; overflow: hidden; }
.quote-box { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.quote-text { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 4.5vw, 3.4rem); font-style: italic; color: var(--ink); line-height: 1.25; margin-bottom: 2.5rem; }
.quote-cite { font-family: 'JetBrains Mono', monospace; font-size: 14px; text-transform: uppercase; color: var(--gold); letter-spacing: 2.5px; opacity: 0.8; }
.quote-bg-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 25rem; color: var(--cream); z-index: 0; opacity: 0.5; pointer-events: none; }

/* ── SECTIONS ── */
section { padding: 7rem 2rem; }
.container { max-width: 1200px; margin: 0 auto; position: relative; }
.section-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; display: flex; align-items: center; gap: 1rem; }
.section-label::before { content: ''; width: 20px; height: 1px; background: var(--gold); opacity: 0.4; }
.section-h2 { font-family: 'Playfair Display', serif; font-size: clamp(2.2rem, 4vw, 3.8rem); font-weight: 700; color: var(--ink); line-height: 1.1; margin-bottom: 1.8rem; letter-spacing: -1px; }
.section-lead { font-size: 1.25rem; color: var(--ink-light); max-width: 720px; margin-bottom: 4rem; font-weight: 300; line-height: 1.6; }

/* ── LEISTUNGEN ── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card { background: var(--white); border: 1px solid var(--border); padding: 3rem 2.5rem; border-radius: 6px; transition: all 0.3s; position: relative; overflow: hidden; }
.service-card:hover { border-color: var(--gold-light); transform: translateY(-4px); box-shadow: 0 15px 40px rgba(28,26,20,0.06); }
.service-card-num { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--gold-light); opacity: 0.5; margin-bottom: 1.5rem; display: block; }
.service-card h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; margin-bottom: 1.2rem; letter-spacing: -0.5px; }
.service-card p { font-size: 0.95rem; color: var(--ink-muted); line-height: 1.8; font-weight: 300; margin-bottom: 2rem; }
.service-card-cta { display: inline-flex; align-items: center; gap: 8px; font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; color: var(--gold); font-weight: 600; cursor: pointer; background: none; border: none; text-decoration: none; padding-bottom: 4px; border-bottom: 1px solid var(--gold); letter-spacing: 1px; transition: 0.2s; }
.service-card-cta:hover { color: var(--ink); border-color: var(--ink); padding-left: 4px; }

/* ── EMBEDDED CHATBOT ── */
.chatbot-container { 
  display: grid; grid-template-columns: 1fr 450px; gap: 5rem; align-items: start;
  background: var(--white); border: 1px solid var(--border-strong); border-radius: 12px; padding: 4rem; margin-top: 4rem;
  box-shadow: 0 25px 80px rgba(28,26,20,0.08); 
}
.chat-info-area h3 { font-family: 'Playfair Display', serif; font-size: 2.5rem; margin-bottom: 2rem; line-height: 1.2; }
.chat-info-area p { margin-bottom: 2rem; font-size: 1.1rem; opacity: 0.8; }
.chat-usp-list { list-style: none; }
.chat-usp-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; font-size: 1rem; font-weight: 400; }
.chat-usp-list li::before { content: '✓'; color: var(--gold); font-weight: 900; }

.embedded-chat-window { 
  background: var(--cream); border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; 
  height: 600px; display: flex; flex-direction: column; box-shadow: inset 0 0 20px rgba(28,26,20,0.03); 
}
.chat-header { background: var(--ink); padding: 1.5rem; color: var(--white); display: flex; justify-content: space-between; align-items: center; }
.chat-header-text { font-family: 'Playfair Display', serif; font-size: 1.1rem; }
.chat-status { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--gold-light); text-transform: uppercase; letter-spacing: 1.5px; }

.chat-messages { flex: 1; overflow-y: auto; padding: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.msg { max-width: 85%; padding: 12px 18px; border-radius: 4px; font-size: 15px; line-height: 1.5; }
.msg.bot { background: var(--white); border: 1px solid var(--border); align-self: flex-start; color: var(--ink); border-left: 3px solid var(--gold); }
.msg.user { background: var(--ink); color: var(--white); align-self: flex-end; font-weight: 300; }

.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 1rem 2rem; background: var(--white); border-top: 1px solid var(--border); }
.chip { background: var(--cream); border: 1px solid var(--border); border-radius: 4px; padding: 6px 14px; font-size: 13px; font-family: 'JetBrains Mono', monospace; cursor: pointer; transition: 0.2s; color: var(--ink-muted); }
.chip:hover { border-color: var(--gold); color: var(--gold); background: var(--white); }

.chat-input-row { padding: 1.25rem 2rem; background: var(--white); border-top: 1px solid var(--border); display: flex; gap: 10px; }
.chat-field { flex: 1; border: 1px solid var(--border); padding: 10px 14px; border-radius: 4px; outline: none; font-size: 15px; font-family: 'Source Serif 4', serif; }
.chat-send { background: var(--ink); color: var(--gold-light); border: none; padding: 0 20px; border-radius: 4px; cursor: pointer; transition: 0.2s; }
.chat-send:hover { background: var(--ink-light); }

/* ── FOOTER ── */
footer { background: var(--ink); color: var(--white); padding: 7rem 2rem 3rem; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; }
.footer-brand-text { opacity: 0.5; font-size: 14px; line-height: 1.8; margin-top: 1.5rem; max-width: 320px; font-weight: 300; }
.footer-col h4 { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-light); margin-bottom: 2rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 1rem; }
.footer-links a { color: rgba(253,251,247,0.4); text-decoration: none; font-size: 15px; transition: 0.2s; font-weight: 400; }
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-bottom { 
  max-width: 1200px; margin: 5rem auto 0; padding-top: 2rem; 
  border-top: 1px solid rgba(253,251,247,0.1); display: flex; justify-content: space-between; align-items: center; 
  font-size: 12px; color: rgba(253,251,247,0.3); font-weight: 300;
}

/* ── ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ── MOBILE ── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; padding: 5rem 2rem; text-align: center; }
  .hero-card { display: none; }
  .hero-tagline { justify-content: center; }
  .hero-tagline::before { display: none; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .philosophy-inner { grid-template-columns: 1fr; gap: 3rem; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .chatbot-container { grid-template-columns: 1fr; padding: 2.5rem; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  body { font-size: 17px; }
  section { padding: 5rem 1.5rem; }
  .nav-links { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-h1 { font-size: 3rem; }
  .embedded-chat-window { height: 500px; }
  .chat-info-area h3 { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
