/* IT Services Dirksen – Stylesheet */

:root {
  --brand: #185FA5;
  --brand-strong: #124a82;
  --brand-2: #3a82cc;
  --brand-soft: #E6F1FB;
  --brand-line: #B5D4F4;
  --accent: #85B7EB;

  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5b6573;
  --border: #e3e8ef;
  --shadow: 0 1px 2px rgba(16, 38, 66, .04), 0 8px 24px rgba(16, 38, 66, .06);

  --radius: 14px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #6aa8e8;
    --brand-strong: #8fc0f0;
    --brand-2: #b5d4f4;
    --brand-soft: #16263a;
    --brand-line: #24405f;
    --accent: #85B7EB;

    --bg: #0e1319;
    --bg-alt: #121922;
    --surface: #151d27;
    --text: #e8edf3;
    --text-muted: #9aa7b6;
    --border: #233040;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-kicker {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .32em;
  color: var(--brand);
  margin-bottom: 4px;
}
.brand-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .12em;
}

.nav { display: flex; gap: 28px; }
.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
}
.nav a:hover { color: var(--text); }

@media (max-width: 560px) {
  .nav { gap: 18px; }
  .nav a { font-size: 14px; }
  .brand-name { font-size: 17px; }
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 96px;
  background:
    radial-gradient(900px 420px at 85% -10%, var(--brand-soft), transparent 70%),
    var(--bg);
}

.hero::before {
  /* subtiles Punktraster – angelehnt an das Logo */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--brand-line) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  mask-image: radial-gradient(600px 360px at 90% 10%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(600px 360px at 90% 10%, #000 20%, transparent 75%);
  opacity: .7;
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: 48px;
}

.hero-text { position: relative; z-index: 1; }
.hero-text > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-text > :nth-child(2) { animation-delay: .08s; }
.hero-text > :nth-child(3) { animation-delay: .16s; }
.hero-text > :nth-child(4) { animation-delay: .24s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

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

.hero-art {
  width: 100%;
  max-width: 480px;
  justify-self: end;
  overflow: visible;
  animation: art-in 1.4s cubic-bezier(.2, .7, .2, 1) both .1s;
}
@keyframes art-in {
  from { opacity: 0; transform: scale(.94) rotate(-4deg); }
  to   { opacity: 1; transform: none; }
}

.hero-art .stop-glow  { stop-color: var(--brand-soft); stop-opacity: 1; }
.hero-art .stop-soft  { stop-color: var(--brand-soft); stop-opacity: .9; }
.hero-art .stop-clear { stop-color: var(--brand-soft); stop-opacity: 0; }

.art-faint { stroke: var(--brand-line); }
.art-line  { stroke: var(--accent); }
.art-frame { stroke: var(--brand); }

.art-flow {
  stroke: var(--brand);
  stroke-dasharray: 2 14;
  animation: flow 3s linear infinite;
}
.art-flow-in { stroke-dasharray: 1 11; animation-duration: 2.2s; opacity: .8; }
@keyframes flow { to { stroke-dashoffset: -32; } }

.art-ring {
  transform-box: view-box;
  transform-origin: 240px 240px;
  animation: spin 90s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.art-node circle    { fill: var(--bg); stroke: var(--brand); stroke-width: 2.5; }
.art-node-sm circle { fill: var(--accent); }
.art-core           { fill: var(--brand); }
.art-core-dot       { fill: var(--brand-soft); }

.art-halo {
  fill: var(--brand);
  opacity: .15;
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 3.2s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(.6); opacity: .35; }
  100% { transform: scale(1.9); opacity: 0; }
}

.art-sat circle { fill: var(--accent); animation: twinkle 4s ease-in-out infinite; }
.art-sat circle:nth-child(3n+1) { animation-delay: -1.3s; }
.art-sat circle:nth-child(3n+2) { animation-delay: -2.6s; }
@keyframes twinkle { 50% { opacity: .3; } }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art {
    position: absolute;
    top: -130px;
    right: -190px;
    width: 400px;
    opacity: .16;
    pointer-events: none;
    animation-name: art-in-bg;
  }
}
@keyframes art-in-bg {
  from { opacity: 0; }
  to   { opacity: .16; }
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 22px;
  max-width: 14ch;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 700;
}
.hero h1 span {
  color: var(--brand);
  background: linear-gradient(100deg, var(--brand) 25%, var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lead {
  max-width: 56ch;
  margin: 0 0 36px;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-muted);
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 10px;
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: #185FA5; color: #fff; }
.btn-primary:hover { background: #124a82; color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Sections ---------- */

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

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -.02em;
}
.section-head p { margin: 0; color: var(--text-muted); }

.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0 40px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  counter-reset: svc;
}
.services li {
  position: relative;
  padding: 22px 0 22px 44px;
  border-top: 1px solid var(--border);
  counter-increment: svc;
}
.services li::before {
  content: counter(svc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 24px;
  font: 600 13px/1.6 ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: .04em;
  color: var(--brand);
}
.services li::after {
  /* Akzentlinie, wächst beim Hover */
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 28px;
  height: 2px;
  background: var(--brand);
  transition: width .35s cubic-bezier(.2, .7, .2, 1);
}
.services li:hover::after { width: 100%; }
.services strong { display: block; margin-bottom: 2px; }
.services span { color: var(--text-muted); font-size: 15.5px; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 48px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  font-size: 14.5px;
  color: var(--text-muted);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
}
.footer-grid address { font-style: normal; line-height: 1.8; }
.footer-grid address strong { color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; align-content: flex-start; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.copyright { margin-top: 32px; font-size: 13.5px; }

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

.legal { padding: 72px 0 96px; }
.legal .container { max-width: 760px; }
.legal h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -.02em;
}
.legal .subtitle { margin: 0 0 48px; color: var(--text-muted); }
.legal h2 {
  margin: 44px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 1.3rem;
  letter-spacing: -.01em;
}
.legal h3 { margin: 28px 0 8px; font-size: 1.05rem; }
.legal p, .legal li { color: var(--text); }
.legal address { font-style: normal; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }

/* ---------- Utility ---------- */

/* Kontaktdaten stehen im Quelltext rückwärts (Schutz vor Crawlern) */
.obf { unicode-bidi: bidi-override; direction: rtl; }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
}

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .hero { padding: 72px 0 64px; }
  section { padding: 72px 0; }
}

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