/* =========================================================================
   SIENCO Consulting — styles.css
   Produktions-Stylesheet. Enthält Design-Tokens (Farben, Typo, Spacing,
   Effekte) sowie Komponenten- und Layout-Regeln. Keine externen
   Abhängigkeiten (Schrift self-hosted, kein CDN-Aufruf).
   ========================================================================= */

/* ---- Self-hosted Inter (ersetzt Google Fonts CDN) ---- */
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---- Farb-Tokens (verbindliche SIENCO CI) ---- */
:root {
  color-scheme: light;

  --sienco-navy: #153447;
  --sienco-petrol: #087C82;
  --sienco-turkis: #0DC8BD;
  --sienco-tiefteal: #0D4759;
  --sienco-blaugrau: #30566A;
  --sienco-hellgrau: #DDEAED;

  --neutral-0:   #FFFFFF;
  --neutral-50:  #F5F8F9;
  --neutral-100: #EDF3F4;
  --neutral-200: #DDEAED;
  --neutral-300: #C2D3D8;
  --neutral-400: #9BB0B8;
  --neutral-500: #6E858F;
  --neutral-600: #4C6675;
  --neutral-700: #30566A;
  --neutral-800: #1E4053;
  --neutral-900: #153447;

  --bg-page:        var(--neutral-0);
  --bg-subtle:      var(--neutral-50);
  --bg-muted:       var(--sienco-hellgrau);
  --bg-inverse:     var(--sienco-navy);
  --bg-inverse-alt: var(--sienco-tiefteal);

  --surface-card:   var(--neutral-0);

  --text-strong:    var(--sienco-navy);
  --text-body:      #24404F;
  --text-muted:     var(--sienco-blaugrau);
  --text-on-dark:   var(--neutral-0);
  --text-on-dark-muted: #A9C2CC;
  --text-link:      var(--sienco-petrol);
  --text-link-hover: var(--sienco-tiefteal);

  --border-subtle:  var(--sienco-hellgrau);
  --border-default: var(--neutral-300);
  --border-strong:  var(--neutral-400);
  --accent-rule:    var(--sienco-petrol);
  --accent-hi:      var(--sienco-turkis);
  --accent-edge:    3px;

  --focus-ring:     var(--sienco-petrol);

  /* Typografie */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --fs-display: clamp(2.75rem, 4.2vw, 4rem);
  --fs-h1:      clamp(2.25rem, 3vw, 3rem);
  --fs-h2:      clamp(1.75rem, 2.2vw, 2.25rem);
  --fs-h3:      1.5rem;
  --fs-lead:    1.25rem;
  --fs-body:    1rem;
  --fs-label:   0.75rem;

  --ls-tight: -0.02em;
  --ls-label: 0.14em;
  --lh-body: 1.6;
  --lh-heading: 1.18;

  /* Spacing (8px Basisraster) */
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-pill: 999px;

  --container-max: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-py: clamp(64px, 9vw, 128px);

  /* Effekte */
  --shadow-sm: 0 1px 2px rgba(21, 52, 71, 0.06);
  --shadow-md: 0 2px 8px rgba(21, 52, 71, 0.08);
  --shadow-lg: 0 12px 32px -8px rgba(21, 52, 71, 0.14);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
}

/* ---- Basis-Reset ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-body);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 {
  font-family: var(--font-sans);
  color: var(--text-strong);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-tight);
  font-weight: 700;
  margin: 0;
}
p { margin: 0; }
a { color: var(--text-link); text-decoration: none; transition: color var(--dur-fast) var(--ease-standard); }
a:hover { color: var(--text-link-hover); }
img { max-width: 100%; display: block; }
::selection { background: var(--sienco-turkis); color: var(--sienco-navy); }
*:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--sienco-navy); color: #fff; padding: 10px 16px;
  border-radius: var(--radius-md); transition: top var(--dur-base) var(--ease-out);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---- Layout helpers ---- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-py) var(--gutter); border-top: 1px solid var(--border-subtle); }
.section-inner { max-width: var(--container-max); margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--ls-label);
  text-transform: uppercase; color: var(--text-muted);
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--accent-rule); }
.eyebrow.on-dark { color: #7fb0b8; }
.eyebrow.on-dark::before { background: var(--sienco-turkis); }
.section-lead {
  font-size: var(--fs-h3); font-weight: 600; color: var(--text-strong);
  letter-spacing: var(--ls-tight); line-height: 1.3; margin: 18px 0 40px; max-width: 720px;
}

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,0.92); backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header .container {
  height: 104px; display: flex; align-items: center; justify-content: space-between;
}
.site-header .logo img { height: 40px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a.navlink { font-size: 0.9375rem; font-weight: 500; color: var(--text-strong); }
.lang-switch { display: flex; align-items: center; gap: 2px; font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); }
.lang-switch button {
  font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 700;
  background: none; border: none; padding: 2px 4px; cursor: pointer; color: var(--text-muted);
}
.lang-switch button[aria-pressed="true"] { color: var(--sienco-petrol); }
.lang-switch .sep { color: var(--border-default); }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--sienco-navy); }

/* ---- Buttons ---- */
.btn {
  font-family: var(--font-sans); font-weight: 600; display: inline-flex;
  align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent;
  border-radius: var(--radius-md); cursor: pointer; text-decoration: none; line-height: 1;
  white-space: nowrap;
  transition: background var(--dur-base) var(--ease-standard), color var(--dur-base) var(--ease-standard), border-color var(--dur-base) var(--ease-standard);
}
.btn:hover { color: inherit; }
.btn-lg { font-size: 1rem; padding: 14px 26px; height: 52px; }
.btn-md { font-size: 0.9375rem; padding: 11px 20px; height: 44px; }
.btn-sm { font-size: 0.8125rem; padding: 8px 14px; height: 34px; }
.btn-primary { background: var(--sienco-petrol); color: #fff; border-color: var(--sienco-petrol); }
.btn-primary:hover { background: var(--sienco-tiefteal); border-color: var(--sienco-tiefteal); color: #fff; }
.btn-outline { background: transparent; color: var(--sienco-navy); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--sienco-hellgrau); color: var(--sienco-navy); }
.btn-ghost { background: transparent; color: var(--sienco-petrol); border-color: transparent; }
.btn-ghost:hover { background: var(--sienco-hellgrau); color: var(--sienco-petrol); }
.btn:disabled { opacity: 0.45; pointer-events: none; }

/* ---- Card ---- */
.card {
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard);
}
.card.accent { border-left: var(--accent-edge) solid var(--accent-rule); }
.card-icon {
  position: relative; width: 44px; height: 44px; border-radius: var(--radius-md);
  background: var(--sienco-hellgrau); display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { stroke: var(--sienco-navy); }
.card-icon::after {
  content: ''; position: absolute; top: -3px; right: -3px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--sienco-turkis);
}
.card h3 { font-size: 1.1875rem; margin: 0 0 8px; letter-spacing: var(--ls-tight); }
.card p { font-size: 0.9375rem; color: var(--text-body); line-height: 1.55; }

/* ---- Hero ---- */
.hero { background: var(--sienco-navy); position: relative; overflow: hidden; }
.hero-graphic { position: absolute; inset: 0; left: auto; width: 58%; height: 100%; opacity: 0.9; }
.hero-inner { position: relative; z-index: 1; padding: var(--space-10) var(--gutter) var(--space-9); max-width: var(--container-max); margin: 0 auto; }
.hero-content { max-width: 720px; }
.hero-content .logo-mark { height: 92px; width: auto; margin-bottom: 40px; max-width: 100%; }
.hero h1 { font-size: var(--fs-display); font-weight: 800; line-height: 1.08; color: #fff; margin: 20px 0 22px; }
.hero-lead { font-size: var(--fs-lead); color: var(--text-on-dark-muted); line-height: 1.55; max-width: 600px; margin: 0 0 34px; }

/* ---- Grids ---- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.benefit { display: flex; gap: 14px; align-items: flex-start; }
.benefit-icon {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: var(--radius-md);
  background: var(--sienco-hellgrau); display: flex; align-items: center; justify-content: center;
}
.benefit-title { font-size: 0.9375rem; font-weight: 700; color: var(--text-strong); margin-bottom: 3px; }
.benefit-text { font-size: 0.9375rem; color: var(--text-body); line-height: 1.5; }

/* ---- Vorgehen (flow) ---- */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: stretch; gap: 0; }
.flow-step {
  min-width: 0; border: 1px solid var(--border-subtle); border-top: var(--accent-edge) solid var(--accent-rule);
  border-radius: var(--radius-lg); padding: var(--space-6); background: var(--surface-card);
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.flow-step-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.flow-num { font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 600; color: var(--sienco-petrol); letter-spacing: 0.06em; }
.flow-dur {
  font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 600; color: var(--sienco-navy);
  background: rgba(13,200,189,0.16); border: 1px solid var(--sienco-turkis); border-radius: var(--radius-pill); padding: 2px 9px;
}
.flow-step h3 { font-size: 1.0625rem; margin: 0 0 8px; letter-spacing: var(--ls-tight); }
.flow-step p { font-size: 0.9375rem; color: var(--text-body); line-height: 1.55; }
.flow-arrow { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; padding: 0 6px; align-self: center; }

/* ---- Team ---- */
.team-section { background: var(--bg-subtle); border-bottom: 1px solid var(--border-subtle); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; align-items: stretch; }
.team-card { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.team-portrait { flex: 0 0 auto; width: 96px; height: 96px; border-radius: var(--radius-md); overflow: hidden; background: var(--sienco-navy); }
.team-portrait img { width: 100%; height: 100%; object-fit: cover; }
.team-name { font-size: 1.375rem; margin: 0 0 4px; letter-spacing: var(--ls-tight); }
.team-role { font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--sienco-petrol); margin: 0 0 16px; }
.team-bio { font-size: var(--fs-body); color: var(--text-body); line-height: 1.6; }
.grow-box {
  border: 1px dashed var(--border-default); border-radius: var(--radius-lg); padding: var(--space-6);
  background: var(--neutral-0); margin-top: 24px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.grow-tag {
  display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-label); font-weight: 600;
  letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--sienco-petrol); margin-bottom: 12px;
}
.grow-tag::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--sienco-turkis); }
.grow-text { font-size: var(--fs-body); color: var(--text-body); line-height: 1.6; max-width: 640px; margin: 0; }

/* ---- Anfrage / Assistent ---- */
.anfrage-section { background: var(--sienco-navy); }
.anfrage-inner { max-width: 960px; margin: 0 auto; padding: var(--section-py) var(--gutter); }
.anfrage-inner h2 { font-size: var(--fs-h2); font-weight: 800; color: #fff; letter-spacing: var(--ls-tight); margin: 16px 0 12px; }
.anfrage-lead { font-size: 1.0625rem; color: var(--text-on-dark-muted); line-height: 1.55; max-width: 620px; margin: 0 0 34px; }
.chat-panel { background: var(--neutral-0); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--border-subtle); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border-subtle); background: var(--neutral-50); }
.chat-head-name { font-size: 0.9375rem; font-weight: 700; color: var(--text-strong); }
.chat-head-status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--text-muted); }
.chat-head-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--sienco-turkis); }
.chat-body { height: 440px; overflow-y: auto; padding: 24px 20px; display: flex; flex-direction: column; gap: 16px; background: var(--neutral-0); }
.msg { display: flex; gap: 10px; align-items: flex-end; max-width: 82%; animation: fade var(--dur-base) var(--ease-out); }
.msg-avatar { flex: 0 0 auto; width: 30px; height: 30px; border-radius: var(--radius-sm); background: var(--sienco-hellgrau); display: flex; align-items: center; justify-content: center; }
.msg-bubble { padding: 12px 15px; border-radius: 14px 14px 14px 4px; font-size: 0.9375rem; line-height: 1.55; white-space: pre-wrap; background: var(--neutral-100); color: var(--text-body); }
.msg-user { align-self: flex-end; margin-left: auto; }
.msg-user .msg-bubble { background: var(--sienco-petrol); color: #fff; border-radius: 14px 14px 4px 14px; }
.msg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip {
  font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 600; color: var(--sienco-navy);
  background: var(--neutral-0); border: 1px solid var(--border-default); border-radius: var(--radius-pill);
  padding: 8px 14px; cursor: pointer; transition: background var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard);
}
.chip:hover { background: var(--sienco-hellgrau); border-color: var(--sienco-petrol); }
.typing-dots { background: var(--neutral-100); padding: 14px 16px; border-radius: 14px 14px 14px 4px; display: flex; gap: 5px; }
.typing-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--sienco-blaugrau); animation: dot 1.2s infinite; }
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.chat-foot { border-top: 1px solid var(--border-subtle); padding: 16px 20px; background: var(--neutral-50); }
.composer { display: flex; gap: 10px; align-items: center; }
.composer input {
  flex: 1 1 auto; font-family: var(--font-sans); font-size: var(--fs-body); color: var(--text-body);
  background: var(--neutral-0); border: 1px solid var(--border-default); border-radius: var(--radius-md);
  padding: 12px 14px; outline: none;
}
.summary-title { font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.summary-box {
  border: 1px solid var(--border-subtle); border-left: var(--accent-edge) solid var(--accent-rule);
  border-radius: var(--radius-md); padding: 16px 18px; background: var(--neutral-0);
  display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 0.875rem; margin-bottom: 14px;
}
.summary-box dt { color: var(--text-muted); margin: 0; }
.summary-box dd { color: var(--text-strong); margin: 0; }
.consent-row { display: flex; gap: 10px; align-items: flex-start; font-size: 0.8125rem; color: var(--text-body); line-height: 1.5; margin-bottom: 14px; cursor: pointer; }
.consent-row input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--sienco-petrol); flex: 0 0 auto; }
.chat-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.direct-contact { text-align: center; margin: 18px 0 0; font-size: 0.875rem; color: var(--text-on-dark-muted); }
.direct-contact a { color: var(--sienco-turkis); font-weight: 500; }

/* ---- Rechtliches ---- */
.legal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.legal-grid h2 { font-size: var(--fs-h3); font-weight: 700; margin: 16px 0 16px; }
.legal-grid p { font-size: 0.9375rem; color: var(--text-body); line-height: 1.7; margin: 0 0 14px; }
.legal-grid a { color: var(--sienco-petrol); }

/* ---- Footer ---- */
.site-footer { background: var(--sienco-tiefteal); }
.footer-grid { max-width: var(--container-max); margin: 0 auto; padding: var(--space-8) var(--gutter); display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 32px; }
.footer-label { font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--ls-label); text-transform: uppercase; color: #7fb0b8; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.9375rem; color: #fff; }
.footer-links a.muted { color: var(--text-on-dark-muted); }
.footer-address { margin: 20px 0 0; font-size: 0.875rem; color: var(--text-on-dark-muted); line-height: 1.5; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); }
.footer-bottom-inner { max-width: var(--container-max); margin: 0 auto; padding: 20px var(--gutter); font-size: 0.8125rem; color: #7fb0b8; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); padding: 10px 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .legal-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .site-header .container { height: 72px; }
  .site-header .logo img { height: 32px; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 72px 0 auto 0; background: #fff; flex-direction: column;
    align-items: flex-start; gap: 0; padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md); transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard);
  }
  .site-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-nav a.navlink { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--border-subtle); }
  .site-nav .lang-switch, .site-nav .btn { margin-top: 12px; }
  .hero-content .logo-mark { height: 60px; margin-bottom: 22px; }
  .hero h1 { font-size: 2rem; }
  .chat-body { height: 380px; }
}
