/* ============================================================
   Somtec Systems — Design tokens (helles, freundliches Theme)
   ============================================================ */

:root {
  /* Color — warmes, helles Grundgerüst */
  --bg: #faf7f2;
  --bg-raised: #ffffff;
  --bg-raised-2: #fffdf9;
  --input-bg: #f2ede3;
  --line: #e6ded0;
  --line-soft: #efe9dd;
  --text: #2b2620;
  --text-dim: #6b6255;
  --text-faint: #99907f;

  --amber: #e8a33d;       /* Flächen: Buttons, Badges, Icons */
  --amber-ink: #a8631a;   /* Text auf hellem Grund */
  --amber-dim: #d98a2e;
  --green: #2e9c74;
  --green-soft: #e3f3ec;
  --red: #c94a32;
  --red-soft: #fbeae6;

  /* Type */
  --f-display: "Space Grotesk", "IBM Plex Sans", sans-serif;
  --f-body: "IBM Plex Sans", -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius: 10px;
  --radius-sm: 8px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* sehr dezente Farbtupfer im Hintergrund, kein harter Kontrast */
body::before, body::after {
  content: "";
  position: fixed;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  pointer-events: none;
}
body::before { background: var(--amber); opacity: 0.07; top: -220px; left: -180px; }
body::after  { background: var(--green); opacity: 0.05; bottom: -260px; right: -160px; }

img { max-width: 100%; display: block; }
a { color: inherit; }

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

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Eyebrow / mono labels ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(232, 163, 61, 0.18);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.brand-logo {
  height: 34px;
  width: auto;
}
.brand span {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-faint);
  font-weight: 400;
  letter-spacing: 0.08em;
}
nav.main-nav {
  display: flex;
  gap: 30px;
  font-size: 14.5px;
}
nav.main-nav a {
  text-decoration: none;
  color: var(--text-dim);
  transition: color 0.15s ease;
}
nav.main-nav a:hover { color: var(--text); }
.nav-cta {
  font-family: var(--f-mono);
  font-size: 13px;
  color: #2b2011 !important;
  background: var(--amber);
  padding: 9px 16px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}
.nav-cta:hover { background: var(--amber-dim); transform: translateY(-1px); }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--line-soft);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-family: var(--f-display);
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 18px 0 22px;
  color: var(--text);
}
.hero h1 em {
  font-style: normal;
  color: var(--amber-ink);
}
.hero p.lead {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 46ch;
  margin: 0 0 30px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 13px 22px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: box-shadow 0.2s ease, background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--amber); color: #2b2011; }
.btn-primary:hover {
  background: var(--amber-dim);
  box-shadow: 0 10px 26px -10px rgba(216,138,46,0.55);
  transform: translateY(-1px);
}
.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: var(--bg-raised);
}
.btn-ghost:hover { border-color: var(--text-faint); transform: translateY(-1px); }

/* ---------- Hero resilience diagram ---------- */
.node-diagram {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 12px 34px -18px rgba(43,38,32,0.18);
}
.node-diagram .frame-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.node-diagram svg { width: 100%; height: auto; display: block; }

.pulse-a, .pulse-b {
  transform-origin: center;
  animation: pulse 3.2s ease-in-out infinite;
}
.pulse-b { animation-delay: 1.6s; }
@keyframes pulse {
  0%, 100% { opacity: 0.45; r: 5; }
  50% { opacity: 1; r: 7; }
}
.sync-line {
  stroke-dasharray: 4 6;
  animation: dash 2.4s linear infinite;
}
@keyframes dash { to { stroke-dashoffset: -20; } }

/* ---------- Section scaffolding ---------- */
section { padding: 84px 0; border-bottom: 1px solid var(--line-soft); }
section:last-of-type { border-bottom: none; }
.section-head { max-width: 62ch; margin-bottom: 48px; }
.section-head h2 {
  font-family: var(--f-display);
  font-size: clamp(26px, 3vw, 34px);
  margin: 14px 0 12px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.section-head p { color: var(--text-dim); font-size: 16.5px; }

/* ---------- Pain point cards ---------- */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pain-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 10px 26px -18px rgba(43,38,32,0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.pain-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -18px rgba(43,38,32,0.22); }
.pain-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 16px;
}
.tag-kosten { background: #fbeed9; color: var(--amber-ink); }
.tag-risiko { background: var(--red-soft); color: var(--red); }
.tag-pflicht { background: var(--green-soft); color: var(--green); }
.pain-card h3 {
  font-family: var(--f-display);
  font-size: 19px;
  margin: 0 0 10px;
  line-height: 1.3;
  color: var(--text);
}
.pain-card p { color: var(--text-dim); font-size: 15px; margin: 0; }
.pain-stat {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

/* ---------- Services ---------- */
.service-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 28px;
  padding: 34px 0;
  border-top: 1px solid var(--line-soft);
}
.service-row:last-child { border-bottom: 1px solid var(--line-soft); }
.service-num {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--text-faint);
  padding-top: 4px;
}
.service-body h3 {
  font-family: var(--f-display);
  font-size: 22px;
  margin: 0 0 10px;
  color: var(--text);
}
.service-body p {
  color: var(--text-dim);
  max-width: 62ch;
  margin: 0 0 14px;
}
.service-meta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--amber-ink);
}

/* ---------- Featured / Eisbrecher ---------- */
.feature-box {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  box-shadow: 0 14px 36px -20px rgba(43,38,32,0.18);
}
.feature-box h3 {
  font-family: var(--f-display);
  font-size: 24px;
  margin: 10px 0 12px;
  color: var(--text);
}
.feature-box p { color: var(--text-dim); max-width: 52ch; }
.feature-price {
  font-family: var(--f-mono);
  font-size: 34px;
  color: var(--amber-ink);
  white-space: nowrap;
}
.feature-price span { font-size: 13px; color: var(--text-faint); display: block; margin-top: 4px; }
.feature-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  font-size: 14.5px;
  color: var(--text-dim);
}
.feature-list li { padding: 5px 0 5px 20px; position: relative; }
.feature-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--amber-ink);
  font-family: var(--f-mono);
}

/* ---------- Trust / resilience ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.trust-list { list-style: none; padding: 0; margin: 0; }
.trust-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
}
.trust-list li:first-child { border-top: none; }
.trust-check {
  font-family: var(--f-mono);
  color: var(--green);
  font-size: 15px;
}
.trust-list strong { display: block; margin-bottom: 3px; font-size: 15.5px; color: var(--text); }
.trust-list p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

.about-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 10px 26px -18px rgba(43,38,32,0.16);
}
.about-card .eyebrow { margin-bottom: 14px; }
.about-card p { color: var(--text-dim); font-size: 15px; }
.about-card strong { color: var(--text); }
.about-card .timeline {
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--text-faint);
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
}

/* ---------- Partner ---------- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.partner-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 10px 24px -18px rgba(43,38,32,0.15);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.partner-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -18px rgba(43,38,32,0.22); }
.partner-logo {
  height: 44px;
  display: flex;
  align-items: center;
}
.partner-logo img { max-height: 44px; max-width: 160px; object-fit: contain; }
.partner-card strong { font-family: var(--f-display); font-size: 16px; color: var(--text); }
.partner-card p { color: var(--text-dim); font-size: 14px; margin: 0; }
.partner-empty {
  color: var(--text-faint);
  font-family: var(--f-mono);
  font-size: 14px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
}

/* ---------- Contact form ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .full { grid-column: 1 / -1; }
.contact-form label {
  display: block;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--f-body);
  font-size: 14.5px;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--amber-dim);
  background: var(--bg-raised);
}
.contact-form textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 13px; color: var(--text-faint); margin-top: 4px; }
.form-note a { color: var(--amber-ink); }
.form-alert {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14.5px;
  margin-bottom: 20px;
}
.form-alert.success { background: var(--green-soft); border: 1px solid var(--green); color: #1f6e51; }
.form-alert.error { background: var(--red-soft); border: 1px solid var(--red); color: var(--red); }
.hp-field { position: absolute; left: -9999px; opacity: 0; }

/* ---------- Cookie banner ---------- */
#cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: 0 24px 54px -22px rgba(43,38,32,0.35);
}
#cookie-banner p { font-size: 14px; color: var(--text-dim); margin: 8px 0 16px; }
#cookie-banner .cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
#cookie-banner[hidden] { display: none; }
.cookie-link {
  background: none;
  border: none;
  color: var(--text-faint);
  font-family: var(--f-mono);
  font-size: 12.5px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

/* ---------- Pillar / capability cards ---------- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.pillar-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 10px 24px -18px rgba(43,38,32,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pillar-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -18px rgba(43,38,32,0.22); }
.pillar-icon { color: var(--amber-ink); margin-bottom: 14px; }
.pillar-card h3 { font-family: var(--f-display); font-size: 16.5px; margin: 0 0 10px; color: var(--text); }
.pillar-card p { color: var(--text-dim); font-size: 13.5px; margin: 0 0 12px; }
.pillar-card ul { list-style: none; padding: 0; margin: 0; font-size: 13px; color: var(--text-dim); }
.pillar-card li { padding: 3px 0 3px 14px; position: relative; }
.pillar-card li::before { content: "–"; position: absolute; left: 0; color: var(--text-faint); }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.chip {
  font-family: var(--f-mono);
  font-size: 12.5px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-dim);
  background: var(--bg-raised);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 10px 26px -18px rgba(43,38,32,0.16);
}
.contact-line {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 15px;
}
.contact-line:first-of-type { border-top: none; }
.contact-line span:first-child { color: var(--text-faint); font-family: var(--f-mono); font-size: 13px; }
.contact-line a { color: var(--text); text-decoration: none; }
.contact-line a:hover { color: var(--amber-ink); }
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.hours-table td { padding: 7px 0; border-top: 1px solid var(--line-soft); }
.hours-table tr:first-child td { border-top: none; }
.hours-table td:last-child { text-align: right; font-family: var(--f-mono); color: var(--text-dim); }

/* ---------- Footer ---------- */
footer {
  padding: 36px 0;
  font-size: 13.5px;
  color: var(--text-faint);
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
footer a { color: var(--text-faint); text-decoration: none; margin-left: 18px; }
footer a:hover { color: var(--text-dim); }

/* ---------- Legal pages ---------- */
.legal main {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 28px 90px;
}
.legal h1 { font-family: var(--f-display); font-size: 30px; margin-bottom: 30px; color: var(--text); }
.legal h2 { font-family: var(--f-display); font-size: 19px; margin: 34px 0 10px; color: var(--text); }
.legal p, .legal li { color: var(--text-dim); font-size: 15px; }
.legal a { color: var(--amber-ink); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  nav.main-nav { display: none; }
  .hero .wrap { grid-template-columns: 1fr; }
  .pain-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; }
  .feature-box { grid-template-columns: 1fr; text-align: left; }
  .feature-price { justify-self: start; }
  .form-grid { grid-template-columns: 1fr; }
  .pillar-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .pillar-grid { grid-template-columns: 1fr; }
}
