/* ═══════════════════════════════════════════════
   SV IT & KI-Sicherheit — Design System
   Null externe Abhängigkeiten. Null Tracking.
   ═══════════════════════════════════════════════ */

:root {
  /* Farben */
  --ink: #0c1a27;
  --ink-soft: #1e3044;
  --body: #3b4f63;
  --muted: #7a8d9e;
  --border: #d4dbe2;
  --border-light: #e8ecf0;
  --bg: #faf9f7;
  --bg-warm: #f2f0ec;
  --bg-dark: #0f1c2b;
  --bg-dark-2: #162536;
  --accent: #b8860b;
  --accent-light: #d4a017;
  --white: #ffffff;

  /* Typografie — nur Systemfonts */
  --serif: Georgia, 'Times New Roman', 'DejaVu Serif', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

  /* Maße */
  --max-w: 1080px;
  --gutter: 24px;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── TEXTUR-OVERLAY (subtiler Rausch-Effekt) ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── NAVIGATION ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.3s;
}
.site-nav.scrolled {
  box-shadow: 0 1px 12px rgba(12, 26, 39, 0.06);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.nav-mark {
  width: 32px;
  height: 32px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}
.nav-name {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.nav-name small {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links .nav-cta {
  font-weight: 600;
  color: var(--white);
  background: var(--ink);
  padding: 8px 20px;
  transition: background 0.2s;
}
.nav-links .nav-cta:hover { background: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: 0.25s;
}

/* ── HERO ── */
.hero {
  position: relative;
  padding: 100px var(--gutter) 80px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(184,134,11,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.5s ease 0.15s forwards;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--ink);
  max-width: 780px;
  letter-spacing: -0.025em;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.3s forwards;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  margin-top: 28px;
  font-size: 1.12rem;
  font-weight: 400;
  color: var(--body);
  max-width: 580px;
  line-height: 1.75;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.45s forwards;
}
.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.6s forwards;
}
.btn-primary {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  background: var(--ink);
  padding: 13px 30px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all 0.25s;
  position: relative;
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(184, 134, 11, 0.2);
}
.btn-ghost {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  padding: 13px 30px;
  text-decoration: none;
  border: 1.5px solid var(--border);
  transition: all 0.25s;
}
.btn-ghost:hover { border-color: var(--ink); }

.hero-credentials {
  margin-top: 52px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.75s forwards;
}
.cred {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}
.cred::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── ALLGEMEINE SEKTIONEN ── */
.section {
  padding: 80px var(--gutter);
}
.section--alt { background: var(--bg-warm); }
.section--dark {
  background: var(--bg-dark);
  color: var(--white);
}
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section--dark .section-label { color: var(--accent-light); }
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.section--dark .section-title { color: var(--white); }
.section-intro {
  font-size: 1.02rem;
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 48px;
}
.section--dark .section-intro { color: rgba(255,255,255,0.55); }

/* ── GUTACHTEN-GRID ── */
.fields-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.field {
  background: var(--bg);
  padding: 32px 28px;
  position: relative;
  transition: background 0.3s;
}
.field:hover { background: var(--white); }
.field-num {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.field h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}
.field p {
  font-size: 0.88rem;
  color: var(--body);
  line-height: 1.6;
}
.field-tag {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(184,134,11,0.08);
  padding: 3px 10px;
}
.section--alt .field { background: var(--bg-warm); }
.section--alt .field:hover { background: var(--white); }

/* ── AUFTRAGGEBER ── */
.clients-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.client {
  padding: 24px;
  border: 1px solid var(--border);
  background: var(--white);
  transition: all 0.25s;
}
.client:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(184,134,11,0.07);
  transform: translateY(-2px);
}
.client-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.client-icon {
  font-size: 1.2rem;
  line-height: 1;
}
.client h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}
.client p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── ABLAUF ── */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: proc;
}
.proc-step {
  counter-increment: proc;
  padding: 36px 28px;
  border-right: 1px solid rgba(255,255,255,0.08);
  position: relative;
}
.proc-step:last-child { border-right: none; }
.proc-step::before {
  content: counter(proc, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  display: block;
  margin-bottom: 20px;
}
.proc-step h3 {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}
.proc-step p {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* ── ÜBER MICH ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.about-text p {
  margin-bottom: 18px;
  line-height: 1.8;
}
.qual-table {
  width: 100%;
  border-collapse: collapse;
}
.qual-table tr {
  border-bottom: 1px solid var(--border);
}
.qual-table tr:last-child { border-bottom: none; }
.qual-table td {
  padding: 14px 14px;
  font-size: 0.9rem;
  vertical-align: top;
}
.qual-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  width: 110px;
  padding-right: 16px;
}
.qual-value {
  color: var(--ink);
  font-weight: 500;
  padding-left: 16px;
}

/* ── KONTAKT ── */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.contact-text h2 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}
.contact-text p {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-line {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.contact-line .c-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  min-width: 80px;
  flex-shrink: 0;
}
.contact-line .c-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
}
.contact-line a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  transition: border-color 0.2s;
}
.contact-line a:hover { border-color: var(--accent); }
.contact-cta { margin-top: 12px; }
.btn-light {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--white);
  padding: 13px 30px;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-light:hover {
  background: var(--accent-light);
  color: var(--white);
}

/* ── FOOTER ── */
.site-footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer a:hover { color: var(--ink); }
.footer-links { display: flex; gap: 24px; }

/* ── UNTERSEITEN (Impressum, Datenschutz) ── */
.page-header {
  padding: 100px var(--gutter) 48px;
  border-bottom: 1px solid var(--border);
}
.page-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.page-header p {
  margin-top: 8px;
  font-size: 0.92rem;
  color: var(--muted);
}
.legal-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px var(--gutter) 80px;
}
.legal-content h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 40px;
  margin-bottom: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}
.legal-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.legal-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 24px;
  margin-bottom: 8px;
}
.legal-content p {
  margin-bottom: 14px;
  line-height: 1.8;
}
.legal-content ul {
  margin: 8px 0 16px 20px;
  line-height: 1.8;
}
.legal-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(184,134,11,0.3);
  transition: border-color 0.2s;
}
.legal-content a:hover { border-color: var(--accent); }

/* ── ANIMATIONEN ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.vis {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .fields-grid { grid-template-columns: 1fr; }
  .clients-row { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .proc-step { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .proc-step:nth-child(2) { border-right: none; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-split { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  .hero { padding: 80px 20px 56px; }
  .section { padding: 56px 20px; }
  .clients-row { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .proc-step { border-right: none; }
  .hero-credentials { flex-direction: column; gap: 14px; }
  .site-footer { flex-direction: column; gap: 12px; text-align: center; }
}
