/* ============================================================
   Die IT-Experten – it-experten.info
   Statische Website · Stand 07/2026
   ============================================================ */

/* ---------- Fonts (selbst gehostet, DSGVO-konform) ---------- */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/archivo-v25-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/archivo-v25-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/archivo-v25-latin-800.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/source-sans-3-v19-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/source-sans-3-v19-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/ibm-plex-mono-v20-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/ibm-plex-mono-v20-latin-500.woff2') format('woff2'); }

/* ---------- Tokens ---------- */
:root {
  --ink: #101d2b;
  --ink-soft: #31465c;
  --petrol: #164e86;
  --paper: #f2f6fa;
  --white: #ffffff;
  --line: #d9e2ec;
  --signal: #1e73d0;
  --signal-dark: #155ba8;
  --ok: #1d7a4f;

  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --maxw: 1120px;
  --radius: 6px;
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--petrol); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }

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

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--petrol);
  display: block;
  margin-bottom: 0.9rem;
}
.eyebrow::before { content: '// '; color: var(--signal); }

.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 46em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--signal); color: #fff; }
.btn-primary:hover { background: var(--signal-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost.on-dark:hover { background: #fff; color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.18rem;
  color: var(--ink); text-decoration: none;
  letter-spacing: -0.01em;
  display: flex; align-items: baseline; gap: .45rem;
}
.logo .bracket { color: var(--signal); font-family: var(--font-mono); font-weight: 500; }
.main-nav { display: flex; align-items: center; gap: 1.25rem; }
.main-nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--signal-dark); }
.main-nav .btn { padding: .55rem 1.1rem; font-size: .92rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

@media (max-width: 1060px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 24px 1.2rem;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .main-nav .btn { margin-top: 1rem; text-align: center; border: 0; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--paper);
  background-image:
    linear-gradient(rgba(30,115,208,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,115,208,.055) 1px, transparent 1px);
  background-size: 34px 34px;
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.5rem;
  align-items: center; padding: 5rem 0 5.5rem;
}
.hero h1 .accent { color: var(--signal-dark); }
.hero .lead { margin: 1.4rem 0 2.1rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-meta {
  margin-top: 2.2rem; font-family: var(--font-mono); font-size: .82rem;
  color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 1.4rem;
}
.hero-meta span::before { content: '✓ '; color: var(--ok); }

/* Signature: Prozess-Check-Protokoll */
.protocol {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(20,38,47,.10);
  overflow: hidden;
}
.protocol-head {
  background: var(--ink); color: #fff;
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; padding: .7rem 1.2rem;
  display: flex; justify-content: space-between;
}
.protocol-head .dot { color: var(--signal); }
.protocol ul { list-style: none; padding: .6rem 0; }
.protocol li {
  padding: .9rem 1.2rem; border-bottom: 1px dashed var(--line);
  font-size: 1.02rem; font-weight: 600; color: var(--ink);
}
.protocol li:last-child { border-bottom: 0; }
.protocol-foot {
  border-top: 1px solid var(--line); padding: 1rem 1.2rem;
  font-weight: 600; font-size: .95rem;
}
.protocol-foot a { color: var(--signal-dark); }

@media (max-width: 840px) {
  .hero-inner { grid-template-columns: 1fr; padding: 3rem 0 3.5rem; gap: 2.2rem; }
}

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.dark { background: var(--ink); color: #fff; }
.section.dark h2 { color: #fff; }
.section.dark .eyebrow { color: #9dc3ee; }
.section.dark p { color: #cfdbe1; }
.section-head { max-width: 52em; margin-bottom: 2.6rem; }
.section.dark .section-head { max-width: none; }
.section-head.compact { margin-bottom: 0; }
.section-head p { margin-top: .9rem; color: var(--ink-soft); font-size: 1.1rem; }
.section.dark .section-head p { color: #cfdbe1; }

/* ---------- Karten / Grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem;
  display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(16,29,43,.10); }
.card .btn { margin-top: auto; align-self: flex-start; }
.card p + .btn, .card p + .more { margin-top: 1.4rem; }
.card .more { margin-top: auto; padding-top: 1rem; }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--ink-soft); font-size: 1rem; }
.card .more { display: inline-block; font-weight: 600; text-decoration: none; color: var(--signal-dark); }
.card .more:hover { text-decoration: underline; }

.pillar {
  padding: 2.2rem;
  border-top: 4px solid var(--petrol);
}
.pillar.software { border-top-color: var(--signal); }
.pillar ul { margin: 1rem 0 1.2rem 1.1rem; color: var(--ink-soft); font-size: 1rem; }
.pillar ul li { margin-bottom: .35rem; }

/* Schmerzpunkte-Zitate */
.pains { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
@media (max-width: 760px) { .pains { grid-template-columns: 1fr; } }
.pain {
  position: relative;
  background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 1.5rem 1.7rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(16,29,43,.06);
  transition: transform .22s ease, box-shadow .22s ease;
}
.pain::before {
  content: '„';
  color: var(--signal);
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700; font-size: 1.5em; line-height: 0;
  margin-right: .08em;
}
.pain:hover { transform: translateY(-5px) rotate(-.5deg); box-shadow: 0 16px 34px rgba(16,29,43,.13); }
.pains .pain:nth-child(even):hover { transform: translateY(-5px) rotate(.5deg); }

/* Case Studies (Protokoll-Stil) */
.case {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.case:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(16,29,43,.10); }
.case-head {
  background: var(--paper); border-bottom: 1px solid var(--line);
  padding: 1rem 1.5rem;
  min-height: 6.6rem;
  display: flex; flex-direction: column; justify-content: flex-start;
}
.case-head .tag {
  font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .12em; color: var(--petrol);
}
.case-head h3 { margin-top: .3rem; font-size: 1.12rem; }
.case-body { padding: 1.3rem 1.5rem; font-size: .98rem; color: var(--ink-soft); flex: 1; }
.case-body dt {
  font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .12em; color: var(--ink); margin-top: .9rem;
}
.case-body dt:first-child { margin-top: 0; }
.case-body dd { margin-top: .2rem; }
.case-result {
  border-top: 1px solid var(--line); padding: 1rem 1.5rem;
  font-weight: 600; font-size: .95rem; color: var(--ok);
  min-height: 4.6rem; display: flex; align-items: center;
}
.case-result::before { content: '→ '; }

/* Ablauf-Schritte (echte Sequenz → Nummern gerechtfertigt) */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); font-weight: 500; font-size: .95rem;
  color: var(--signal); display: block; margin-bottom: .5rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.step p { font-size: .95rem; color: var(--ink-soft); }
.section.dark .step p { color: #cfdbe1; }
.section.dark .step h3 { color: #fff; }

/* Zielgruppen */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
@media (max-width: 900px) { .audience { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: start; }
@media (max-width: 840px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin-top: 1.4rem; }
.contact-list li { padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.14); display: flex; gap: 1rem; align-items: baseline; }
.contact-list .k { font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: #9dc3ee; width: 90px; flex-shrink: 0; }
.contact-list a { color: #fff; font-weight: 600; text-decoration: none; font-size: 1.1rem; }
.contact-list a:hover { color: var(--signal); }
.contact-box {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius); padding: 2rem;
}
.contact-box h3 { color: #fff; margin-bottom: .7rem; }
.contact-box .btn { margin-top: 1.2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #9fb3bd; border-top: 1px solid rgba(255,255,255,.12); font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; padding: 2.2rem 0; }
.site-footer a { color: #cfdbe1; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }

/* ---------- Textseiten (Impressum etc.) ---------- */
.prose { max-width: 46em; padding: 3.5rem 0 4.5rem; }
.prose h1 { margin-bottom: 1.6rem; }
.prose h2 { font-size: 1.35rem; margin: 2.2rem 0 .7rem; }
.prose p, .prose address { margin-bottom: 1rem; font-style: normal; color: var(--ink-soft); }

/* ---------- Scroll-Reveal (dezent) ---------- */
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
html.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Logo-Bilder ---------- */
.logo img { height: 40px; width: auto; display: block; }
.footer-logo img { height: 30px; width: auto; opacity: .9; margin-bottom: .6rem; }
@media (max-width: 480px) { .logo img { height: 32px; } }



/* Unterstreichung, die sich unter der Headline zeichnet */
html.js .hero h1 .accent {
  background-image: linear-gradient(90deg, var(--signal), var(--signal));
  background-repeat: no-repeat;
  background-position: 0 96%;
  background-size: 0% 4px;
  animation: drawLine .9s .5s ease forwards;
}
@keyframes drawLine { to { background-size: 100% 4px; } }

/* Buttons: kleiner Schub */
.btn { transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(30,115,208,.30); }

@media (prefers-reduced-motion: reduce) {
  html.js .hero h1 .accent { background-size: 100% 4px; animation: none; }
}


/* ---------- Utility-Klassen (ersetzen Inline-Styles) ---------- */
.contact-intro { margin-top: .9rem; }
.contact-box + .contact-box { margin-top: 1.2rem; }
.section.dark + .section.dark { border-top: 1px solid rgba(255,255,255,.12); }
.note { margin-top: 1.6rem; color: var(--ink-soft); max-width: 52em; }

/* ---------- Mehr Bewegung ---------- */
/* Hero-Elemente erscheinen nacheinander */
html.js .hero-inner > div:first-child > * { opacity: 0; animation: fadeUp .6s ease forwards; }
html.js .hero-inner > div:first-child > *:nth-child(1) { animation-delay: .05s; }
html.js .hero-inner > div:first-child > *:nth-child(2) { animation-delay: .15s; }
html.js .hero-inner > div:first-child > *:nth-child(3) { animation-delay: .28s; }
html.js .hero-inner > div:first-child > *:nth-child(4) { animation-delay: .40s; }
html.js .hero-inner > div:first-child > *:nth-child(5) { animation-delay: .52s; }
html.js .protocol { opacity: 0; animation: fadeUp .7s .3s ease forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Karten im Raster erscheinen versetzt */
html.js .grid-2 > .reveal:nth-child(2), html.js .grid-3 > .reveal:nth-child(2),
html.js .audience > .reveal:nth-child(2), html.js .pains > .reveal:nth-child(2),
html.js .steps > .reveal:nth-child(2) { transition-delay: .12s; }
html.js .grid-2 > .reveal:nth-child(3), html.js .grid-3 > .reveal:nth-child(3),
html.js .audience > .reveal:nth-child(3), html.js .pains > .reveal:nth-child(3),
html.js .steps > .reveal:nth-child(3) { transition-delay: .24s; }
html.js .grid-2 > .reveal:nth-child(4), html.js .grid-3 > .reveal:nth-child(4),
html.js .pains > .reveal:nth-child(4), html.js .steps > .reveal:nth-child(4) { transition-delay: .36s; }

/* Primär-Buttons: Licht-Sweep beim Hover */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); transition: left .5s ease;
}
.btn-primary:hover::after { left: 140%; }

/* Blinkender Terminal-Cursor in der Hero-Zeile */
.hero .eyebrow::after { content: '_'; color: var(--signal); margin-left: 3px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html.js .hero-inner > div:first-child > *, html.js .protocol { opacity: 1; animation: none; }
  .hero .eyebrow::after { animation: none; }
  .btn-primary::after { display: none; }
}


/* ---------- Scroll-Fortschritt oben ---------- */
#scrollbar {
  position: fixed; top: 0; left: 0; z-index: 200;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--signal), var(--ok));
}

/* ---------- Spotlight folgt der Maus über Karten ---------- */
html.js .card, html.js .case, html.js .pain {
  background-image: radial-gradient(240px circle at var(--mx, -500px) var(--my, -500px), rgba(30,115,208,.09), transparent 65%);
}

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


@media (prefers-reduced-motion: reduce) {
  #scrollbar { display: none; }
  html.js .card, html.js .case, html.js .pain { background-image: none; }
  
}


/* ---------- Scroll-Fortschrittsbalken ---------- */
#progressbar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--signal), #6db4f5);
  z-index: 100;
}

/* ---------- Software-Säule: lebendiger Farbverlauf ---------- */
.pillar.software { border-top: 0; position: relative; overflow: hidden; padding-top: calc(2.2rem + 4px); }
.pillar.software::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--signal), #7fd0ff, var(--signal));
  background-size: 200% 100%;
  animation: slideGrad 4s linear infinite;
}
@keyframes slideGrad { to { background-position: -200% 0; } }

/* ---------- Checklisten-Karte schwebt sanft ---------- */
html.js .protocol { animation: fadeUp .7s .3s ease forwards, floaty 7s 1.6s ease-in-out infinite alternate; }
@keyframes floaty { from { transform: translateY(0); } to { transform: translateY(-8px); } }

@media (prefers-reduced-motion: reduce) {
  html.js .protocol { animation: none; opacity: 1; }
  .pillar.software::before { animation: none; }
  #progressbar { display: none; }
}


/* ---------- Checklisten-Zeilen erscheinen nacheinander ---------- */
html.js .protocol li { opacity: 0; transform: translateX(-14px); animation: lineIn .5s ease forwards; }
html.js .protocol li:nth-child(1) { animation-delay: .6s; }
html.js .protocol li:nth-child(2) { animation-delay: 1.0s; }
html.js .protocol li:nth-child(3) { animation-delay: 1.4s; }
html.js .protocol li:nth-child(4) { animation-delay: 1.8s; }
html.js .protocol li:nth-child(5) { animation-delay: 2.2s; }
@keyframes lineIn { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html.js .protocol li { opacity: 1; transform: none; animation: none; }
}

/* Schließendes Anführungszeichen am Zitat-Ende */
.pain::after {
  content: '“';
  color: var(--signal);
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700; font-size: 1.5em; line-height: 0;
  margin-left: .08em;
  vertical-align: -0.05em;
}


/* ---------- Projekt-Akkordeon ---------- */
.case-list { display: flex; flex-direction: column; gap: 1rem; max-width: 56em; }
details.case summary {
  cursor: pointer; list-style: none;
  position: relative; padding: 1.15rem 3.4rem 1.15rem 1.5rem;
  gap: .25rem; min-height: 0;
  transition: background .15s ease;
}
details.case summary::-webkit-details-marker { display: none; }
details.case summary::after {
  content: '▾';
  position: absolute; right: 1.4rem; top: 50%;
  margin-top: -.75em;
  font-size: 1.3rem; color: var(--signal);
  transition: transform .25s ease;
}
details.case[open] summary::after { transform: rotate(180deg); }
details.case summary:hover { background: #e7eff8; }
details.case:not([open]) summary { border-bottom: 0; }
details.case[open] .case-body { animation: fadeUp .35s ease; }


/* Download-Karten (Fernwartung): komplett zentriert */
.downloads .card { text-align: center; align-items: center; }
.downloads .card .btn { align-self: center; }
