/* =====================================================
   01. DESIGN-VARIABLEN
===================================================== */

:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --card: #1e293b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-dark: #0284c7;
  --border: rgba(148, 163, 184, 0.2);
  --max-width: 1120px;
  --radius: 22px;
}


/* =====================================================
   02. RESET / GRUNDEINSTELLUNGEN
===================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}


/* =====================================================
   03. LAYOUT-HILFSKLASSEN
===================================================== */

.container {
  width: min(100% - 32px, var(--max-width));
  margin-inline: auto;
}

.section {
  padding: 96px 0;
}

.section-muted {
  background: rgba(15, 23, 42, 0.7);
}

.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.two-column p {
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 1.06rem;
}


/* =====================================================
   04. TYPOGRAFIE
===================================================== */

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  margin-bottom: 16px;
}

h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.6rem, 6vw, 5.7rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  font-size: 1.35rem;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 42px;
}

.section-intro {
  max-width: 680px;
  color: var(--muted);
  margin-top: -24px;
  margin-bottom: 36px;
}


/* =====================================================
   05. HEADER / NAVIGATION
===================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.logo span {
  color: var(--accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 1.7rem;
  cursor: pointer;
}


/* =====================================================
   06. BUTTONS
===================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #082f49;
}

.btn-primary:hover {
  background: #7dd3fc;
}

.btn-secondary {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--accent);
}


/* =====================================================
   07. WIEDERVERWENDBARE KARTEN
===================================================== */

.hero-card,
.service-card,
.project-card,
.step,
.contact-box {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.92));
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.service-card p,
.step p,
.project-card p,
.contact-box p {
  color: var(--muted);
  margin-top: 12px;
}


/* =====================================================
   08. HERO-BEREICH
===================================================== */

.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 34%),
    radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.12), transparent 34%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: 48px;
}

.hero-text {
  max-width: 650px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-card {
  padding: 32px;
}

.card-label {
  color: var(--muted);
  margin-bottom: 18px;
}

.hero-card ul {
  list-style: none;
  display: grid;
  gap: 14px;
}

.hero-card li {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border);
}


/* =====================================================
   09. LEISTUNGEN
===================================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}

.service-card:hover {
  transform: translateY(-4px) scale(1.04);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}


/* =====================================================
   10. PROJEKTE / ARBEITEN
===================================================== */

.project-card {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 32px;
  padding: 32px;
  align-items: center;
}

.project-type {
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: #bae6fd;
  font-size: 0.82rem;
  font-weight: 800;
}

.project-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.project-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
}

.project-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 900;
}

.project-preview {
  min-height: 260px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(15, 23, 42, 0.8)),
    repeating-linear-gradient(45deg,
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0.04) 10px,
      transparent 10px,
      transparent 20px);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--muted);
}

.mini-project-card {
  margin-top: 24px;
  margin-bottom: 16px;
  padding: 28px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.92));
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.mini-project-card p {
  color: var(--muted);
  margin-top: 12px;
}

.project-link {
  display: inline-flex;
  margin-top: 22px;
  color: var(--accent);
  font-weight: 800;
}

.project-link:hover {
  color: #7dd3fc;
}

/* =====================================================
   11. TAGS / TECHNOLOGIEN
===================================================== */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tags span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.24);
  color: #bae6fd;
  font-size: 0.88rem;
}


/* =====================================================
   12. ABLAUF
===================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.step {
  padding: 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}

.step:hover {
  transform: translateY(-6px) scale(1.04);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.step span {
  display: inline-block;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 18px;
}


/* =====================================================
   13. KONTAKT
===================================================== */

.contact-section {
  padding-bottom: 120px;
}

.contact-box {
  padding: 48px;
  text-align: center;
}

.contact-box h2 {
  max-width: 760px;
  margin-inline: auto;
}

.contact-box p {
  margin-bottom: 28px;
}


/* =====================================================
   14. FOOTER
===================================================== */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.footer-inner a:hover {
  color: var(--text);
}


/* =====================================================
   15. RESPONSIVE DESIGN – TABLET
===================================================== */

@media (max-width: 900px) {

  .hero-grid,
  .two-column,
  .project-card {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-nav {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 18px;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 14px;
  }

  .nav-toggle {
    display: block;
  }
}


/* =====================================================
   16. RESPONSIVE DESIGN – SMARTPHONE
===================================================== */

@media (max-width: 600px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  .card-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .contact-box {
    padding: 32px 22px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* =====================================================
   11. VORHER / NACHHER SLIDER
===================================================== */

.before-after-section {
  margin-top: 48px;
}

.small-heading {
  margin-bottom: 24px;
}

.before-after-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.before-after-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  pointer-events: none;
}

.after-image {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.before-image-wrapper {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
  z-index: 2;
}

.before-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}

.slider-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
}

.slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--accent);
  z-index: 4;
  transform: translateX(-50%);
  pointer-events: none;
}

.slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: var(--accent);
  color: #082f49;
  display: grid;
  place-items: center;
  font-weight: 900;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.38);
}

.comparison-badge {
  position: absolute;
  top: 18px;
  z-index: 6;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.comparison-badge-before {
  left: 18px;
  color: var(--muted);
}

.comparison-badge-after {
  right: 18px;
  color: #bae6fd;
}

.legal-section {
  padding-top: 140px;
}

.legal-content {
  max-width: 900px;
}

.legal-content h1 {
  margin-bottom: 1.5rem;
}

.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.legal-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.legal-content ul {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text-muted);
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content a {
  color: var(--accent);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

.legal-date {
  margin-top: 3rem;
  font-size: 0.95rem;
}