@import url('fonts.css');

/* ---------------------------------------------------------------
   Attribution Consulting — Mario Szirniks
   Farben und Typografie aus dem Design-Entwurf.
   --------------------------------------------------------------- */

:root {
  --bg:        #101315;
  --bg-alt:    #14181A;
  --bg-deep:   #0C0F10;
  --line:      #232729;
  --line-2:    #2C3134;

  --fg:        #E8E6E1;
  --fg-strong: #F5F3EF;
  --fg-muted:  #B4B8B6;
  --fg-soft:   #9CA3A3;
  --fg-dim:    #7C8489;
  --fg-dimmer: #5F676B;

  --accent:      #C9A227;
  --accent-dark: #A98B26;
  --negative:    #B4574F;

  --serif: Newsreader, 'Iowan Old Style', Georgia, serif;
  --sans:  'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1180px;
  --pad:  40px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }

a { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--bg);
  padding: 10px 18px; font-family: var(--mono); font-size: 13px; z-index: 100;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* --- Typografische Bausteine ------------------------------------ */

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.section-label { margin-bottom: 44px; }

h1, h2, h3 { font-weight: 400; margin: 0; text-wrap: pretty; }

h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--fg-strong);
}
h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
  color: var(--fg-strong);
}
h3 { color: var(--fg-strong); }

p { margin: 0 0 18px; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

strong { color: var(--fg-strong); font-weight: 400; }

.lead { font-size: 19px; line-height: 1.65; color: var(--fg-muted); }
.body { font-size: 17px; line-height: 1.7; color: var(--fg-muted); }
.body-sm { font-size: 16px; line-height: 1.7; color: var(--fg-soft); }

/* --- Links und Buttons ------------------------------------------ */

.link {
  color: var(--fg-muted);
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid rgba(180, 184, 182, 0.3);
  transition: color .18s, border-color .18s;
}
.link:hover, .link:focus-visible { color: var(--fg-strong); border-bottom-color: var(--fg-strong); }

.btn {
  display: inline-block;
  border: 1px solid var(--accent);
  background: none;
  color: var(--accent);
  padding: 13px 24px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s, color .18s;
}
.btn:hover, .btn:focus-visible { background: var(--accent); color: var(--bg); }

.btn-quiet {
  border-color: var(--line-2);
  color: var(--fg-muted);
}
.btn-quiet:hover, .btn-quiet:focus-visible { background: var(--line-2); color: var(--fg-strong); }

/* --- Kopf und Fuß ----------------------------------------------- */

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-top: 36px;
  padding-bottom: 36px;
}
.wordmark {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
}
.site-nav { display: flex; gap: 26px; align-items: baseline; }
.site-nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  text-decoration: none;
  transition: color .18s;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--fg-strong); }
.site-nav .byline { color: var(--fg-dim); }

.site-footer { border-top: 1px solid var(--line); padding: 32px 0; }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-dimmer);
  letter-spacing: 0.06em;
}
.site-footer a {
  color: var(--fg-dimmer);
  text-decoration: none;
  border-bottom: 1px solid rgba(95, 103, 107, 0.4);
  transition: color .18s, border-color .18s;
}
.site-footer a:hover, .site-footer a:focus-visible { color: var(--fg); border-bottom-color: var(--fg); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px 28px; }
.footer-links button {
  font: inherit; letter-spacing: inherit; color: var(--fg-dimmer);
  background: none; border: 0; border-bottom: 1px solid rgba(95, 103, 107, 0.4);
  padding: 0; cursor: pointer;
}
.footer-links button:hover { color: var(--fg); border-bottom-color: var(--fg); }

/* --- Sektionen --------------------------------------------------- */

section { border-top: 1px solid var(--line); }
section.alt { background: var(--bg-alt); }
.section-pad { padding-top: 96px; padding-bottom: 96px; }

/* --- Hero -------------------------------------------------------- */

.hero { border-top: 0; position: relative; }
.hero .wrap { padding-top: 80px; padding-bottom: 110px; position: relative; }
.hero-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: 56%;
  height: 100%;
  opacity: .5;
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; }
.hero .eyebrow { color: var(--accent); margin-bottom: 30px; }
.hero h1 { margin-bottom: 28px; }
.hero .lead { margin-bottom: 40px; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }

@keyframes dashflow { to { stroke-dashoffset: -200; } }
@keyframes nodepulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}

/* --- Raster ------------------------------------------------------ */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 56px 64px;
  align-items: start;
}
.stack { display: flex; flex-direction: column; gap: 22px; }

.panel { border: 1px solid var(--line); background: var(--bg); padding: 26px 26px 22px; }
.panel-title {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-dim); margin-bottom: 6px;
}
.panel-note { font-size: 13px; color: var(--fg-dimmer); margin-bottom: 14px; }

.facts { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.facts > div { background: var(--bg); padding: 24px 26px; }
.facts dt {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-dim); margin-bottom: 10px;
}
.facts dd { margin: 0; font-size: 16px; color: var(--fg); line-height: 1.5; }

/* --- Modellvergleich --------------------------------------------- */

.compare { padding-bottom: 96px; }
.compare .grid-2 { gap: 44px 64px; }
.legend { display: flex; gap: 22px; font-family: var(--mono); font-size: 12px; color: var(--fg-dim); flex-wrap: wrap; }
.legend span { display: flex; align-items: center; gap: 8px; }
.swatch { width: 14px; height: 8px; display: inline-block; }
.swatch.base { background: #3A4145; }
.swatch.algo { background: var(--accent); }

.bars { border: 1px solid var(--line); background: var(--bg); padding: 28px 30px 24px; }
.bars-list { display: flex; flex-direction: column; gap: 20px; }
.bar-row { display: grid; grid-template-columns: 112px 1fr; gap: 0 18px; align-items: center; }
.bar-row > span { font-family: var(--mono); font-size: 12px; color: var(--fg-muted); }
.bar-pair { display: flex; flex-direction: column; gap: 4px; }
.bar { height: 9px; }
.bar.base { background: #3A4145; }
.bar.algo { background: var(--accent); }
.bars-foot {
  border-top: 1px solid var(--line); margin-top: 24px; padding-top: 14px;
  font-family: var(--mono); font-size: 11px; color: var(--fg-dimmer); letter-spacing: 0.06em;
}

/* --- Zeitleiste --------------------------------------------------- */

.timeline { display: flex; flex-direction: column; }
.timeline h2 { margin-bottom: 64px; max-width: 640px; }
.tl-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0 40px;
  border-top: 1px solid var(--line);
  padding: 34px 0;
}
.tl-item:last-child { border-bottom: 1px solid var(--line); }
.tl-item.accent { background: linear-gradient(90deg, rgba(201, 162, 39, 0.05), transparent 60%); }
.tl-year { font-family: var(--mono); font-size: 14px; color: var(--accent); letter-spacing: 0.04em; padding-top: 3px; }
.tl-body { max-width: 720px; }
.tl-body h3 { font-size: 19px; margin-bottom: 10px; }

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px 32px;
  margin: 22px 0 18px;
  max-width: 560px;
}
.metric-value { font-family: var(--mono); font-size: 26px; color: var(--fg-strong); }
.metric-label { font-size: 13px; color: var(--fg-dim); margin-top: 4px; }

.chart-card {
  border: 1px solid var(--line); background: var(--bg-deep);
  padding: 24px 26px 20px; margin-top: 26px; max-width: 640px;
}
.chart-cols {
  position: relative;
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 6px;
  height: 130px;
}
.chart-baseline { position: absolute; left: 0; right: 0; top: 90px; height: 1px; background: #4E565A; }
.chart-col { display: grid; grid-template-rows: 90px 40px; }
.chart-col .up { display: flex; align-items: flex-end; }
.chart-col .down { display: flex; align-items: flex-start; }
.chart-col i { display: block; width: 100%; background: var(--accent); }
.chart-col i.mid { background: var(--accent-dark); }
.chart-col i.low { background: var(--fg-dim); }
.chart-col i.faint { background: var(--fg-dimmer); }
.chart-col i.neg { background: var(--negative); }
.chart-legend {
  display: flex; justify-content: space-between; margin-top: 12px;
  font-family: var(--mono); font-size: 11px; color: var(--fg-dimmer); gap: 12px;
}
.chart-legend .neg { color: var(--negative); }

/* --- Leistungen ---------------------------------------------------- */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service { background: var(--bg); padding: 36px 32px 40px; }
.service-num { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-bottom: 20px; }
.service h3 { font-family: var(--serif); font-size: 23px; line-height: 1.25; margin-bottom: 14px; }
.service p { font-size: 15px; line-height: 1.7; color: var(--fg-soft); }

/* --- Referenzen ---------------------------------------------------- */

.refs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px 64px;
  max-width: 960px;
}
.refs-label { font-size: 15px; font-family: var(--mono); letter-spacing: 0.06em; margin-bottom: 18px; }
.refs-label.now { color: var(--accent); }
.refs-label.past { color: var(--fg-dim); }
.refs-list { font-family: var(--serif); font-size: 26px; line-height: 1.5; font-weight: 300; }
.refs-list.now { color: var(--fg-strong); }
.refs-list.past { color: var(--fg-soft); }

/* --- Kontakt -------------------------------------------------------- */

.contact .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 56px 80px;
  align-items: start;
  padding-top: 96px;
  padding-bottom: 110px;
}
.contact-intro { max-width: 460px; }
.contact-intro .section-label { margin-bottom: 36px; }
.contact-intro h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.25; margin-bottom: 20px; }
.contact-intro .body { margin-bottom: 28px; }
.contact-details { font-family: var(--mono); font-size: 15px; color: var(--fg); line-height: 2; }
.contact-details a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(201, 162, 39, .4); }
.contact-details a:hover { color: var(--fg-strong); border-bottom-color: var(--fg-strong); }
.contact-details .place { color: var(--fg-dim); }

.form { display: flex; flex-direction: column; gap: 18px; max-width: 520px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span, .field-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-dim);
}
.form input[type="text"],
.form input[type="email"],
.form textarea {
  background: var(--bg);
  border: 1px solid var(--line-2);
  color: var(--fg-strong);
  font-family: var(--sans);
  font-size: 16px;
  padding: 13px 14px;
  outline: none;
  border-radius: 0;
  transition: border-color .18s;
}
.form textarea { line-height: 1.6; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--accent); }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--fg-soft); line-height: 1.55; }
.consent input { margin: 3px 0 0; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.consent a { color: var(--fg-muted); }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

.form-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.form-status { font-size: 14px; color: var(--fg-soft); }
.form-status.error { color: var(--negative); }
.form-hint { font-size: 13px; line-height: 1.6; color: var(--fg-dimmer); margin: 0; }
.form-hint[hidden] { display: none; }

.optout {
  border: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 22px 24px;
  margin: 28px 0 8px;
}
.optout[hidden] { display: none; }
.optout .consent { font-size: 15px; color: var(--fg-muted); }
.optout .form-status:empty { display: none; }
.optout .form-status { margin-top: 12px; color: var(--accent); }

/* --- Rechtstexte ------------------------------------------------------ */

.legal { border-top: 0; }
.legal .wrap { max-width: 800px; padding-top: 72px; padding-bottom: 96px; }
.legal h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 40px; }
.legal h2 { font-size: 24px; margin: 48px 0 16px; }
.legal h3 { font-family: var(--serif); font-size: 20px; margin: 32px 0 12px; }
.legal p, .legal li { font-size: 16px; line-height: 1.75; color: var(--fg-muted); }
.legal ul { padding-left: 20px; margin: 0 0 18px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(201, 162, 39, .35); }
.legal a:hover { color: var(--fg-strong); border-bottom-color: var(--fg-strong); }
.legal .updated { font-family: var(--mono); font-size: 12px; color: var(--fg-dimmer); letter-spacing: .06em; }
.legal address { font-style: normal; color: var(--fg); line-height: 1.9; }

.todo {
  display: inline-block;
  background: rgba(201, 162, 39, .12);
  border: 1px dashed var(--accent);
  color: var(--accent);
  padding: 1px 7px;
  font-family: var(--mono);
  font-size: 13px;
}

/* --- Consent-Banner ---------------------------------------------------- */

.cc {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 60;
  max-width: 620px;
  background: var(--bg-alt);
  border: 1px solid var(--line-2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
  padding: 24px 26px;
}
.cc[hidden] { display: none; }
.cc h2 {
  font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--fg-dim); margin-bottom: 12px;
}
.cc p { font-size: 15px; line-height: 1.6; color: var(--fg-muted); margin-bottom: 20px; }
.cc p a { color: var(--fg-muted); }
.cc-actions { display: flex; flex-wrap: wrap; gap: 12px 14px; }
.cc-actions .btn { padding: 11px 20px; font-size: 12px; }

/* --- Responsiv ---------------------------------------------------------- */

@media (max-width: 900px) {
  :root { --pad: 24px; }
  body { font-size: 16px; }
  .section-pad { padding-top: 64px; padding-bottom: 64px; }
  .hero .wrap { padding-top: 48px; padding-bottom: 72px; }
  .hero-art { width: 100%; opacity: .22; }
  .contact .wrap { padding-top: 64px; padding-bottom: 72px; }
  .compare { padding-bottom: 64px; }
  .grid-2 { gap: 40px; }
  .timeline h2 { margin-bottom: 40px; }
  .tl-item { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
  .tl-year { padding-top: 0; }
  .site-header { padding-top: 24px; padding-bottom: 24px; flex-wrap: wrap; gap: 8px 20px; }
  .site-nav { gap: 18px; }
  .refs-list { font-size: 22px; }
  .service { padding: 28px 24px 32px; }
  .bars, .panel, .chart-card { padding-left: 20px; padding-right: 20px; }
  .cc { left: 0; right: 0; bottom: 0; max-width: none; border-left: 0; border-right: 0; border-bottom: 0; }
}

@media (max-width: 560px) {
  .bar-row { grid-template-columns: 1fr; gap: 6px; }
  .chart-legend { font-size: 10px; }
  .site-nav .nav-link { display: none; }
}

@media print {
  body { background: #fff; color: #000; }
  .cc, .hero-art { display: none; }
}
