/* IC-Services – Stylesheet
   Keine externen Ressourcen: Systemschriften, lokale Assets. */

:root {
  --brand-900: #06103a;
  --brand-800: #0a1a55;
  --brand-700: #0f2a92;
  --brand-600: #1636c6;
  --brand-500: #2b4fe0;
  --brand-400: #5a7bf2;
  --brand-300: #93aaff;
  --brand-100: #e5ebff;
  --brand-50:  #f2f5ff;

  /* Farbe für Text auf hellem/dunklem Grund – kontraststark in beiden Themes */
  --accent: var(--brand-600);

  --ink:      #0d1220;
  --ink-soft: #414a63;
  --ink-mute: #6b7591;
  --line:     #e2e6f0;
  --surface:  #ffffff;
  --surface-2:#f6f8fd;
  --surface-3:#eef2fb;

  --radius:   16px;
  --radius-lg:24px;
  --wrap:     1180px;
  --shadow:   0 1px 2px rgba(13, 18, 32, .05), 0 8px 24px -12px rgba(13, 18, 32, .14);
  --shadow-lg:0 2px 4px rgba(13, 18, 32, .05), 0 24px 56px -20px rgba(13, 18, 32, .22);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:      #eef1f8;
    --ink-soft: #b4bdd4;
    --ink-mute: #8b95b0;
    --line:     #232a42;
    --surface:  #0b1020;
    --surface-2:#101731;
    --surface-3:#161e3d;
    --brand-100:#1b2450;
    --accent:   #8fa8ff;
    --shadow:   0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .6);
    --shadow-lg:0 2px 4px rgba(0, 0, 0, .4), 0 24px 56px -20px rgba(0, 0, 0, .7);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-500); }

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.15rem, 1.4rem + 3.2vw, 4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.65rem, 1.25rem + 1.6vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem); }
p  { margin: 0 0 1rem; }

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

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--brand-600);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 0 0 8px 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; color: #fff; }

.eyebrow {
  font-size: .8125rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .75rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px -12px rgba(13, 18, 32, .3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo { width: auto; height: 40px; }
.brand-logo--light { display: none; }

@media (prefers-color-scheme: dark) {
  .brand-logo--dark  { display: none; }
  .brand-logo--light { display: block; }
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: .35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: block;
  padding: .55rem .85rem;
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: .95rem;
  font-weight: 550;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.site-nav a:hover { background: var(--surface-3); color: var(--ink); }

.site-nav .nav-cta {
  background: var(--brand-600);
  color: #fff;
  margin-left: .4rem;
  padding-inline: 1.15rem;
}
.site-nav .nav-cta:hover { background: var(--brand-500); color: #fff; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle-bar {
  display: block;
  width: 19px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    inset: 100% 1.25rem auto 1.25rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: .6rem;
    display: none;
  }
  .site-nav.is-open { display: block; }

  .site-nav ul { flex-direction: column; align-items: stretch; gap: .15rem; }
  .site-nav a { padding: .8rem 1rem; font-size: 1rem; }
  .site-nav .nav-cta { margin: .35rem 0 0; text-align: center; }
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 2rem + 9vw, 8rem) 0 0;
  background: var(--brand-900);
  color: #f1f4ff;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70rem 40rem at 78% -12%, rgba(43, 79, 224, .55), transparent 62%),
    radial-gradient(48rem 34rem at 8% 108%, rgba(15, 42, 146, .6), transparent 60%),
    linear-gradient(168deg, #06103a 0%, #091a5c 55%, #0a1a4a 100%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(147, 170, 255, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 170, 255, .09) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(90% 70% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(90% 70% at 50% 0%, #000 20%, transparent 78%);
}

.hero-inner { max-width: 56rem; }
.hero .eyebrow { color: var(--brand-300); }
.hero h1 { color: #fff; margin-bottom: 1.25rem; }

.hero-lead {
  font-size: clamp(1.05rem, .98rem + .45vw, 1.3rem);
  line-height: 1.6;
  color: #c5d0f5;
  max-width: 46rem;
  margin-bottom: 2.25rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .9rem 1.75rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .18s ease, background .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
  color: #fff;
  box-shadow: 0 10px 28px -12px rgba(43, 79, 224, .9);
}
.btn-primary:hover { background: linear-gradient(180deg, var(--brand-400), var(--brand-500)); color: #fff; }

.btn-ghost {
  color: #e6ecff;
  border-color: rgba(198, 212, 255, .32);
  background: rgba(255, 255, 255, .04);
}
.btn-ghost:hover { border-color: rgba(198, 212, 255, .6); background: rgba(255, 255, 255, .1); color: #fff; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  list-style: none;
  margin: clamp(3.5rem, 2rem + 5vw, 6rem) 0 0;
  padding: 0;
  background: rgba(147, 170, 255, .18);
  border: 1px solid rgba(147, 170, 255, .18);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
}
.stats li {
  background: rgba(6, 16, 58, .72);
  backdrop-filter: blur(6px);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.stat-value {
  font-size: clamp(1.85rem, 1.4rem + 1.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: #fff;
  line-height: 1.05;
}
.stat-label { font-size: .875rem; color: #a9b8e8; line-height: 1.45; }

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

.section { padding: clamp(4rem, 2.5rem + 6vw, 7.5rem) 0; }
.section-alt { background: var(--surface-2); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.section-lead { font-size: 1.075rem; color: var(--ink-soft); margin-bottom: 0; }

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.35rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.85rem;
  box-shadow: var(--shadow);
  transition: transform .28s cubic-bezier(.2, .7, .3, 1), box-shadow .28s ease, border-color .28s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--brand-500) 32%, var(--line));
}
.card p { color: var(--ink-soft); }

.card-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 1.35rem;
  color: #fff;
  background: linear-gradient(145deg, var(--brand-500), var(--brand-700));
  box-shadow: 0 8px 20px -10px rgba(22, 54, 198, .8);
}
.card-icon svg { width: 25px; height: 25px; }

.card-list {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 1.35rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: .6rem;
  font-size: .9375rem;
  color: var(--ink-soft);
}
.card-list li { position: relative; padding-left: 1.6rem; }
.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .52em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-500) 16%, transparent);
}

.callout {
  margin-top: 1.35rem;
  padding: 2rem 1.85rem;
  border-radius: var(--radius-lg);
  border: 1px dashed color-mix(in srgb, var(--brand-500) 40%, var(--line));
  background: color-mix(in srgb, var(--brand-500) 5%, var(--surface));
}
.callout h3 { margin-bottom: .5rem; }
.callout p { margin: 0; color: var(--ink-soft); max-width: 62ch; }

/* ---------- Vorgehen ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.85rem 1.6rem;
}
.step-no {
  display: block;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: .85rem;
}
.step h3 { margin-bottom: .45rem; }
.step p { margin: 0; font-size: .9375rem; color: var(--ink-soft); }

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

.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.35rem;
}
.ref {
  padding: 1.75rem 1.6rem;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand-500);
  transition: background .25s ease, transform .25s ease;
}
.ref:hover { background: var(--surface-3); transform: translateY(-3px); }
.ref-sector {
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .6rem;
}
.ref h3 { font-size: 1.075rem; margin-bottom: .55rem; }
.ref p:last-child { margin: 0; font-size: .9375rem; color: var(--ink-soft); }

.sectors {
  margin-top: 2.5rem;
  padding: 2rem 1.85rem;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.sectors h3 { margin-bottom: 1.15rem; }
.sectors ul {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sectors li {
  padding: .5rem 1.05rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: .9rem;
  font-weight: 550;
  color: var(--ink-soft);
}

/* ---------- Profil ---------- */

.profile-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: start;
}
@media (max-width: 900px) { .profile-grid { grid-template-columns: 1fr; } }

.profile-grid p { color: var(--ink-soft); }

.lang-note {
  margin-top: 1.75rem;
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: .9375rem;
  color: var(--ink-soft);
}
.lang-note strong { color: var(--ink); }

.certs-title { margin-bottom: 1rem; }
.certs-title:not(:first-child) { margin-top: 2.25rem; }

.certs {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.certs li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem 1rem;
  padding: .95rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.certs li:last-child { border-bottom: 0; }
.certs span { font-weight: 600; font-size: .9375rem; }
.certs em {
  font-style: normal;
  font-size: .8125rem;
  color: var(--ink-mute);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tags li {
  padding: .4rem .85rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand-500) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand-500) 20%, transparent);
  font-size: .85rem;
  font-weight: 550;
  color: var(--accent);
}

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

.contact-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  padding: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--brand-800), var(--brand-900) 70%);
  color: #eaefff;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 900px) { .contact-card { grid-template-columns: 1fr; } }

.contact-card h2 { color: #fff; }
.contact-card .eyebrow { color: var(--brand-300); }
.contact-card .section-lead { color: #bcc9f2; }

.contact-details { display: grid; gap: .75rem; align-content: start; }

.contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(198, 212, 255, .16);
  color: #eaefff;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
a.contact-row:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(198, 212, 255, .4);
  transform: translateX(3px);
  color: #fff;
}
.contact-row--static { cursor: default; }
.contact-row svg { width: 21px; height: 21px; flex-shrink: 0; color: var(--brand-300); }
.contact-row span { display: flex; flex-direction: column; font-size: .9375rem; }
.contact-row strong {
  font-size: .7rem;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #97a8dd;
  margin-bottom: .1rem;
}

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

.site-footer {
  background: var(--brand-900);
  color: #b6c2e8;
  padding: clamp(3rem, 2rem + 3vw, 4.5rem) 0 2rem;
  font-size: .9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

.footer-brand img { height: 42px; width: auto; margin-bottom: 1.15rem; }
.footer-brand p { max-width: 26rem; margin: 0; }

.site-footer h2 {
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7e8ec4;
  margin-bottom: 1rem;
}
.site-footer address { font-style: normal; line-height: 1.75; }
.site-footer a { color: #d3dcf8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(147, 170, 255, .16);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 2rem;
  font-size: .85rem;
  color: #8494c8;
}
.footer-bottom p { margin: 0; }
.footer-note { color: #6f7fb4; }

/* ---------- Rechtsseiten ---------- */

.page-head {
  padding: clamp(3rem, 2rem + 4vw, 5rem) 0 clamp(2rem, 1rem + 3vw, 3rem);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); margin-bottom: .35rem; }
.page-head p { color: var(--ink-soft); margin: 0; }

.legal { padding: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) 0 clamp(3.5rem, 2rem + 5vw, 6rem); }
.legal .wrap { max-width: 52rem; }
.legal h2 {
  font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem);
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.legal h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 { font-size: 1.05rem; margin-top: 1.75rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul, .legal ol { padding-left: 1.35rem; display: grid; gap: .5rem; margin-bottom: 1rem; }
.legal address {
  font-style: normal;
  line-height: 1.8;
  padding: 1.35rem 1.6rem;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
  margin-bottom: 1.25rem;
  color: var(--ink);
}
.legal .updated {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .875rem;
  color: var(--ink-mute);
}

.dl-grid {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .6rem 1.75rem;
  margin: 0 0 1.25rem;
}
.dl-grid dt { font-weight: 600; color: var(--ink); }
.dl-grid dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 560px) {
  .dl-grid { grid-template-columns: 1fr; gap: .1rem 0; }
  .dl-grid dd { margin-bottom: .75rem; }
}

.error-page { text-align: center; padding: clamp(5rem, 3rem + 8vw, 9rem) 0; }
.error-code {
  font-size: clamp(4rem, 2rem + 10vw, 8rem);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1;
  background: linear-gradient(150deg, var(--brand-500), var(--brand-800));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}
.error-lead { margin-inline: auto; max-width: 36rem; }
.error-action { margin-top: 2rem; }

/* ---------- Scroll-Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

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

@media print {
  .site-header, .nav-toggle, .hero-actions, .skip-link { display: none !important; }
  body { color: #000; background: #fff; }
  .hero, .contact-card, .site-footer { background: #fff !important; color: #000 !important; }
  .reveal { opacity: 1; transform: none; }
}
