:root {
  --ink: #171522;
  --muted: #625f70;
  --paper: #f7f4ed;
  --panel: #ffffff;
  --line: #ddd7ca;
  --cyan: #00a9c7;
  --magenta: #d70b63;
  --green: #98d45b;
  --shadow: 0 18px 60px rgba(23, 21, 34, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 74px;
  padding: 12px clamp(18px, 4vw, 48px);
  background: rgba(247, 244, 237, .92);
  border-bottom: 1px solid rgba(221, 215, 202, .9);
  backdrop-filter: blur(16px);
}
.brand img { width: 164px; height: auto; }
.main-nav { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.main-nav a, .lang-switch, .link-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
}
.main-nav a:hover, .lang-switch:hover, .link-button:hover { color: var(--ink); background: rgba(23, 21, 34, .06); }
.header-actions { display: flex; align-items: center; gap: 8px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(23, 21, 34, .18); }
.button.secondary { background: transparent; color: var(--ink); }
.button.small { min-height: 38px; padding: 8px 12px; font-size: .92rem; }

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, .86fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(38px, 7vw, 92px) clamp(18px, 5vw, 72px) 36px;
}
.hero-copy { max-width: 780px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--magenta);
  font-size: .78rem;
  font-weight: 820;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.03; margin: 0; letter-spacing: 0; }
h1 { font-size: clamp(2.45rem, 6vw, 5.8rem); max-width: 11ch; }
h2 { font-size: clamp(2rem, 4vw, 4rem); max-width: 13ch; }
h3 { font-size: 1.28rem; }
.lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: #3d394b;
  font-size: clamp(1.1rem, 2vw, 1.42rem);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0; }
.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 36px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}
.proof-strip div { background: rgba(255,255,255,.62); padding: 16px; }
.proof-strip dt { font-weight: 840; }
.proof-strip dd { margin: 4px 0 0; color: var(--muted); font-size: .94rem; }
.hero-visual { position: relative; min-height: 420px; }
.hero-visual > img {
  width: 100%;
  aspect-ratio: 16/11;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(23, 21, 34, .16);
  box-shadow: var(--shadow);
}
.system-panel {
  position: absolute;
  right: -16px;
  bottom: -20px;
  width: min(330px, 84%);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(23, 21, 34, .92);
  color: white;
  box-shadow: 0 22px 60px rgba(23, 21, 34, .28);
  overflow: hidden;
}
.panel-header { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.12); }
.panel-header span { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.panel-header span:nth-child(2) { background: var(--magenta); }
.panel-header span:nth-child(3) { background: var(--green); }
.panel-header strong { margin-left: 8px; font-size: .78rem; color: rgba(255,255,255,.72); text-transform: uppercase; letter-spacing: .08em; }
.system-panel ul { list-style: none; margin: 0; padding: 12px 14px 16px; display: grid; gap: 8px; }
.system-panel li { display: flex; gap: 10px; align-items: center; font-size: .94rem; }
.system-panel b { color: var(--green); }

.section { padding: clamp(54px, 9vw, 108px) clamp(18px, 5vw, 72px); }
.section-head {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(280px, 1fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: 28px;
}
.section-head p:last-child { max-width: 660px; color: var(--muted); font-size: 1.08rem; }
.filter-row, .starter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip, .starter-row button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  padding: 8px 12px;
  cursor: pointer;
}
.chip.active, .starter-row button:hover { border-color: var(--ink); background: var(--ink); color: white; }
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.case-card, .service-list article, .about-card, .chat-shell, .contact-form, .direct-contact {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset;
}
.case-card { padding: 20px; min-height: 310px; display: flex; flex-direction: column; }
.case-card[hidden] { display: none; }
.case-kicker { margin: 0 0 12px; color: var(--cyan); font-weight: 840; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.case-card > p:not(.case-kicker) { color: var(--muted); }
.case-card dl { margin-top: auto; display: grid; gap: 10px; }
.case-card dt { font-size: .74rem; font-weight: 820; text-transform: uppercase; color: #7d7889; }
.case-card dd { margin: 2px 0 0; }

.services-section { background: #ede8dc; border-block: 1px solid var(--line); }
.service-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.service-list article { padding: 20px; }
.service-number { display: inline-flex; margin-bottom: 28px; color: var(--magenta); font-weight: 840; }
.service-list p { color: var(--muted); }

.chat-section { background: var(--ink); color: white; }
.chat-section .eyebrow { color: var(--green); }
.chat-section .section-head p:last-child { color: rgba(255,255,255,.72); }
.chat-shell { max-width: 900px; margin: 0 auto; padding: 16px; background: #211e30; border-color: rgba(255,255,255,.16); }
.chat-log { min-height: 260px; max-height: 380px; overflow: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px; }
.msg { max-width: 82%; padding: 12px 14px; border-radius: 8px; background: rgba(255,255,255,.1); }
.msg.user { margin-left: auto; background: rgba(0,169,199,.24); }
.msg.assistant { border: 1px solid rgba(255,255,255,.1); }
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 12px; }
.chat-form input, .contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: white;
  color: var(--ink);
}
.chat-form input { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: white; }
.chat-shell .link-button { margin-top: 8px; color: rgba(255,255,255,.75); }

.about-card { display: grid; grid-template-columns: .82fr 1fr; gap: 40px; padding: clamp(24px, 5vw, 48px); }
.about-copy p { color: var(--muted); }
.trust-list { display: grid; gap: 8px; padding: 0; list-style: none; }
.trust-list li { padding-left: 18px; position: relative; }
.trust-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 18px;
}
.contact-section .section-head { grid-column: 1 / -1; }
.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
}
.contact-form label { display: grid; gap: 6px; font-weight: 760; }
.contact-form .wide, .form-note, .contact-form .button { grid-column: 1 / -1; }
.form-note { margin: 0; color: var(--muted); font-size: .94rem; }
.direct-contact { padding: 20px; align-self: start; }
.direct-contact p { color: var(--muted); }
.honeypot { position: absolute; left: -9999px; }
.notice {
  grid-column: 1 / -1;
  margin: 0 0 4px;
  padding: 14px 16px;
  border: 1px solid var(--green);
  border-radius: 8px;
  background: rgba(152, 212, 91, .18);
  font-weight: 640;
}
.notice[hidden] { display: none; }

/* Legal pages (impressum.html / datenschutz.html) */
.legal { max-width: 780px; margin: 0 auto; }
.legal h1 { font-size: clamp(2rem, 4vw, 3.2rem); max-width: none; margin-bottom: 22px; }
.legal h2 { font-size: 1.34rem; max-width: none; margin: 34px 0 10px; }
.legal p, .legal li { color: #3d394b; }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 44px 0; }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr; justify-items: start; gap: 10px; }
  .main-nav { justify-content: flex-start; }
  .hero { grid-template-columns: 1fr; }
  .proof-strip, .case-grid, .service-list, .section-head, .about-card, .contact-section { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; }
  .system-panel { right: 10px; }
}
@media (max-width: 620px) {
  .brand img { width: 132px; }
  .main-nav a { padding: 7px 8px; }
  .header-actions { width: 100%; justify-content: space-between; }
  .hero { padding-top: 28px; }
  .hero-actions, .site-footer { flex-direction: column; }
  .proof-strip, .contact-form, .chat-form { grid-template-columns: 1fr; }
  .case-card { min-height: auto; }
  .msg { max-width: 100%; }
}
