/* computer-seiten.de – Bereich INTERNET, Gierden M-C-I */

@font-face {
  font-family: "Nunito";
  src: url("../assets/fonts/Nunito-Variable.ttf") format("truetype-variations"),
       url("../assets/fonts/Nunito-Variable.ttf") format("truetype");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-gold: #FECC00;
  --color-gold-dark: #8A6200;
  --color-ink: #1E1D1B;
  --color-ink-soft: #545048;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F7F5F0;
  --color-border: #E7E2D6;
  --color-surface-dark: #15130E;
  --color-on-dark: #F5F1E6;
  --color-on-dark-soft: #C9C2AD;
  --max-width: 1120px;
  --radius: 14px;
  --shadow: 0 12px 30px -18px rgba(30, 29, 27, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-ink);
}

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

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h2 {
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem);
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.05rem;
  margin-bottom: 0.4em;
}

p {
  margin: 0 0 1em;
}

.section-lead {
  max-width: 60ch;
  color: var(--color-ink-soft);
  font-size: 1.05rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-gold);
  color: var(--color-ink);
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  z-index: 200;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--color-gold-dark);
  outline-offset: 3px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand img {
  height: 48px;
  width: auto;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  font-weight: 600;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  border-color: var(--color-gold);
}

.mobile-nav {
  display: none;
}

.mobile-nav summary {
  list-style: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav summary:hover,
.mobile-nav[open] summary {
  background: var(--color-bg-alt);
}

.burger,
.burger::before,
.burger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-ink);
  position: relative;
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
}

.burger::before { top: -7px; }
.burger::after { top: 7px; }

.mobile-nav ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 12px 0;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav a {
  display: block;
  padding: 10px 4px;
  text-decoration: none;
  font-weight: 600;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-ink);
}

.btn-primary:hover {
  background: #E9BC00;
}

.btn-secondary {
  background: transparent;
  border-color: var(--color-ink);
  color: var(--color-ink);
}

.btn-secondary:hover {
  background: var(--color-ink);
  color: #fff;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 24px 112px;
  background: var(--color-surface-dark);
  color: var(--color-on-dark);
}

.hero-wordmark {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}

.hero-wordmark span {
  font-size: clamp(6rem, 22vw, 15rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  color: rgba(254, 204, 0, 0.05);
}

@supports (-webkit-text-stroke: 1px black) or (text-stroke: 1px black) {
  .hero-wordmark span {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(254, 204, 0, 0.4);
    text-stroke: 1.5px rgba(254, 204, 0, 0.4);
  }
}

.hero-network {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.9;
}

.hero-network svg {
  width: 100%;
  height: 100%;
}

.hero-network-lines line {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: draw-line 1.8s ease forwards;
}

.hero-network-lines line:nth-child(3n+1) { animation-delay: 0.1s; }
.hero-network-lines line:nth-child(3n+2) { animation-delay: 0.35s; }
.hero-network-lines line:nth-child(3n+3) { animation-delay: 0.6s; }

@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

.hero-network-nodes circle {
  animation: pulse 5s ease-in-out infinite;
}

.hero-network-nodes circle:nth-child(odd) {
  animation-delay: -2s;
}

@keyframes pulse {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--color-gold);
  font-size: 0.85rem;
  margin-bottom: 0.6em;
}

.hero h1 {
  font-size: clamp(2.3rem, 1.5rem + 3.2vw, 3.8rem);
  font-weight: 900;
  margin-bottom: 0.45em;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--color-on-dark-soft);
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 1.5em;
}

.hero .btn-secondary {
  border-color: var(--color-on-dark);
  color: var(--color-on-dark);
}

.hero .btn-secondary:hover {
  background: var(--color-on-dark);
  color: var(--color-surface-dark);
}

/* Leistungen */

.leistungen {
  padding: 88px 0;
}

.leistungsgruppen {
  display: grid;
  gap: 40px;
  margin-top: 48px;
}

.gruppe h3 {
  color: var(--color-gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1rem;
  margin-bottom: 1em;
}

.karten {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.karte {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-gold);
  border-radius: var(--radius);
  padding: 26px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.karte:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-gold);
  margin-bottom: 16px;
}

.icon {
  width: 26px;
  height: 26px;
  color: var(--color-ink);
}

.karte p {
  color: var(--color-ink-soft);
  margin-bottom: 0;
}

.karte.featured {
  background: var(--color-gold);
  border-top-color: var(--color-ink);
}

.karte.featured .icon-badge {
  background: var(--color-ink);
}

.karte.featured .icon {
  color: var(--color-gold);
}

.karte.featured p {
  color: rgba(30, 29, 27, 0.75);
}

/* Leitmotiv-Marker vor Abschnittsüberschriften */

.section-marker {
  display: inline-flex;
  color: var(--color-gold-dark);
  margin-bottom: 0.7em;
}

.section-marker--dark {
  color: var(--color-gold);
}

.section-marker--ink {
  color: var(--color-ink);
}

/* Warum wir */

.warum-wir {
  padding: 88px 0;
  background: var(--color-bg-alt);
}

.highlight-box {
  background: var(--color-gold);
  border-radius: var(--radius);
  padding: 28px clamp(20px, 4vw, 36px);
  margin: 32px 0;
}

.highlight-box p {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-ink);
  max-width: 44ch;
}

.vorteile {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.vorteile li {
  position: relative;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 14px 18px 14px 42px;
  font-weight: 600;
}

.vorteile li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 1.15em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-gold);
}

/* Digitale Souveränität */

.souveraenitaet {
  padding: 88px 0;
}

.souveraenitaet .inner {
  background: var(--color-ink);
  color: #fff;
  border-radius: 24px;
  padding: 56px clamp(24px, 6vw, 64px);
}

.souveraenitaet h2 {
  color: var(--color-gold);
}

.souveraenitaet .section-lead {
  color: #E7E4DB;
  max-width: 70ch;
}

.souveraenitaet-liste {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.souveraenitaet-liste li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.souveraenitaet-liste li::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 0.2em;
  border-radius: 50%;
  background: var(--color-gold);
}

/* Ablauf */

.ablauf {
  padding: 88px 0;
  background: var(--color-bg-alt);
}

.schritte {
  --schritt-gap: 32px;
  position: relative;
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  gap: var(--schritt-gap);
  grid-template-columns: 1fr;
}

.schritt {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: start;
  gap: 22px;
  padding-bottom: var(--schritt-gap);
}

.schritt:last-child {
  padding-bottom: 0;
}

.schritt::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 64px;
  bottom: calc(-1 * var(--schritt-gap));
  left: 31px;
  width: 3px;
  background: var(--color-gold);
}

.schritt:last-child::before {
  display: none;
}

.schritt-marker {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-ink);
  border: 3px solid var(--color-gold);
}

.schritt-nummer {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-gold);
}

.schritt-inhalt h3 {
  margin-bottom: 0.3em;
}

.schritt-inhalt p {
  color: var(--color-ink-soft);
  margin-bottom: 0;
}

/* CTA Abschluss */

.cta-abschluss {
  padding: 96px 0;
  text-align: center;
  background: var(--color-gold);
}

.cta-abschluss h2 {
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-abschluss p {
  font-size: 1.1rem;
  margin-bottom: 1.6em;
}

.kontakt-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.cta-abschluss .btn-primary {
  background: var(--color-ink);
  color: #fff;
}

.cta-abschluss .btn-primary:hover {
  background: #000;
}

.cta-abschluss .btn-secondary {
  border-color: var(--color-ink);
}

.cta-abschluss .btn-secondary:hover {
  background: var(--color-ink);
  color: #fff;
}

/* Footer */

.site-footer {
  padding: 40px 0;
  background: var(--color-surface-dark);
  color: var(--color-on-dark-soft);
}

.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  height: 32px;
  width: auto;
}

.site-footer nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.site-footer a {
  color: var(--color-on-dark);
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-note {
  width: 100%;
  color: var(--color-on-dark-soft);
  font-size: 0.9rem;
  margin: 0;
}

/* Responsive */

@media (min-width: 640px) {
  .karten {
    grid-template-columns: 1fr 1fr;
  }

  .vorteile {
    grid-template-columns: 1fr 1fr;
  }

  .souveraenitaet-liste {
    grid-template-columns: 1fr 1fr;
  }

  .schritte {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .leistungsgruppen {
    grid-template-columns: 1fr 1fr;
  }

  .schritte {
    grid-template-columns: repeat(4, 1fr);
  }

  .schritt {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding-bottom: 0;
  }

  .schritt::before {
    top: 31px;
    bottom: auto;
    left: 50%;
    width: calc(100% + var(--schritt-gap));
    height: 3px;
  }
}

@media (max-width: 719px) {
  .main-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }
}

/* Scroll-Reveal (progressive enhancement, siehe js/reveal.js) */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Bewegung reduzieren */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-network-nodes circle,
  .hero-network-lines line {
    animation: none;
    stroke-dashoffset: 0;
  }

  .karte {
    transition: none;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
