:root {
  --color-bg: #0b1120;
  --color-text: #f9fafb;
  --color-muted: #9ca3af;
  --color-accent: #2563eb;
  --radius: 0.75rem;
  --max-width: 1100px;
  --nav-height: 4rem;
  --font: system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: var(--font);
  background: #0b1120;
  color: var(--color-text);
  line-height: 1.6;
}

/* Skip-Link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  padding: 0.5rem 0.75rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius);
  transform: translateY(-200%);
  transition: 0.2s;
}
.skip-link:focus {
  transform: translateY(0);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-mark {
  width: 2rem;
  height: 2rem;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #000;
}
.logo-text {
  font-weight: 600;
}

/* Hamburger */
.nav-toggle {
  background: none;
  border: none;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  cursor: pointer;
}
.nav-toggle-bar {
  width: 1.6rem;
  height: 2px;
  background: #fff;
  border-radius: 999px;
}

/* Navigation – Mobile */
.site-nav {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: #020617;
  transform: translateY(-100%);
  transition: 0.25s ease-out;
}
.site-nav.open {
  transform: translateY(0);
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.site-nav a {
  color: #fff;
  text-decoration: none;
}

/* Hero */
.hero {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 1rem;
}
.hero-content {
  background: #111827;
  padding: 1.5rem;
  border-radius: var(--radius);
}
.hero-benefits {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.hero-benefits li {
  margin-bottom: 0.4rem;
}
.hero-contact a {
  color: var(--color-accent);
}

/* Hero Image */
.hero-visual {
  margin-top: 1rem;
}
.hero-image img {
  width: 100%;
  border-radius: var(--radius);
}

/* Sections */
.section {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 1rem;
}
.section h2 {
  margin-bottom: 1rem;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1rem;
}
.card {
  background: #111827;
  padding: 1rem;
  border-radius: var(--radius);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--color-muted);
  background: #0b1120;
}

/* Desktop */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    transform: none !important;
    background: transparent;
  }

  .site-nav ul {
    flex-direction: row;
    justify-content: flex-end;
    gap: 1.5rem;
    padding: 0;
  }

  .hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.print-section {
  max-width: var(--max-width);
  margin: 1rem auto 2rem;
  padding: 0 1.25rem;
}

.print-button {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  background: #82a6f2;
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s ease-out,
    transform 0.2s ease-out;
}

.print-button:hover,
.print-button:focus-visible {
  background: #0350f5;
  transform: translateY(-1px);
  color: #fff;
}

/* Beim Drucken ausblenden */
@media print {
  .print-section {
    display: none !important;
  }
}
.kontakt-mail {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}

.kontakt-mail:hover,
.kontakt-mail:focus-visible {
  text-decoration: underline;
}
@media print {
  #kontakt,
  #kontakt-2 {
    display: none !important;
  }
}
.site-footer {
  padding: 2rem 1rem;
  background: #111;
  color: #eee;
  text-align: center;
}

.footer-links {
  display: grid;
  gap: 1.5rem;
  justify-content: center;
}

.footer-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.icon-2 img {
  display: block;
}

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

.footer-copy {
  margin-top: 2rem;
  font-size: 0.9rem;
}
.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  padding: 0.5rem 0.9rem;
  background: #82a6f2;
  color: #000;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  z-index: 1000;
  transition:
    background 0.2s ease-out,
    transform 0.2s ease-out;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: #0651f3;
  transform: translateY(-1px);
  color: #fff;
}
/* =========================================
   PRINT – garantiert eine A4-Seite
   ========================================= */
@media print {
  @page {
    size: A4 portrait;
    margin: 0.4cm;
  }

  /* Grundkomprimierung */
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 10pt !important;
    line-height: 1.25 !important;
  }

  /* Alles Unnötige entfernen */
  .site-header,
  .nav-toggle,
  .site-nav,
  .skip-link,
  .hero-svg,
  .site-footer {
    display: none !important;
  }

  /* Layout komprimieren */
  .hero,
  .section,
  .card-grid,
  .about-layout {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* =========================================
   PRINT – optimiert für einseitigen Druck (A4)
   ========================================= */
  @media print {
    @page {
      size: A4 portrait;
      margin: 0.4cm;
    }

    /* Grundkomprimierung */
    body {
      background: #fff !important;
      color: #000 !important;
      font-size: 10pt !important;
      line-height: 1.25 !important;
    }

    /* Navigation, Header, Footer & UI-Elemente ausblenden */
    .site-header,
    .nav-toggle,
    .site-nav,
    .skip-link,
    .hero-svg,
    .site-footer,
    .back-to-top {
      display: none !important;
    }

    /* Bild-Handling im Hero */
    .hero-image img {
      display: none !important;
    }

    .hero-image {
      position: relative !important;
      width: 100% !important;
      height: 100px !important;
      overflow: hidden !important;
      margin-bottom: 0.3rem !important;
    }

    .hero-image::before {
      content: "" !important;
      position: absolute !important;
      inset: 0 !important;
      background-image: url("images/webdesigner-all-in-one-rr.png") !important;
      background-size: cover !important;
      background-position: center !important;
      background-repeat: no-repeat !important;
      display: block !important;
    }

    /* Typografie verkleinern */
    h1 {
      font-size: 14pt !important;
      margin: 0 0 0.3rem !important;
    }

    h2 {
      font-size: 12pt !important;
      margin: 0 0 0.2rem !important;
    }

    h3 {
      font-size: 11pt !important;
      margin: 0 0 0.2rem !important;
    }

    p,
    li {
      margin: 0 0 0.15rem !important;
    }

    /* Layout & Grids komprimieren */
    .hero,
    .section,
    .card-grid,
    .about-layout {
      margin: 0 !important;
      padding: 0 !important;
    }

    .card-grid,
    .about-layout {
      grid-template-columns: 1fr !important;
      gap: 0.4rem !important;
    }

    /* Cards kompakt */
    .card {
      padding: 0.4rem !important;
      margin-bottom: 0.3rem !important;
      border: 1px solid #ccc !important;
      box-shadow: none !important;
    }

    /* Links mit URL ergänzen (ausgenommen Anker & Javascript-Links) */
    a[href^="http"]::after,
    a[href^="/"]::after {
      content: " (" attr(href) ")";
      font-size: 8pt;
    }

    /* Seitenumbrüche für Blöcke verhindern (moderne Syntax + Fallback) */
    .card,
    .section,
    h1,
    h2,
    h3,
    img {
      break-inside: avoid !important;
      page-break-inside: avoid !important;
    }
  }
}
