/* Base styles */
:root {
  --bg: #0b1018;
  --surface: #121a25;
  --surface-2: #182334;
  --border: rgba(160, 200, 255, 0.12);
  --text: #eef6ff;
  --muted: #9fb1c8;
  --primary: #8fe8ff;
  --primary-strong: #5cd7ff;
  --shadow: 0 24px 80px rgba(0,0,0,.45);
  --radius: 24px;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 15% 20%, rgba(92,215,255,.10), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(143,232,255,.08), transparent 24%),
    linear-gradient(180deg, #0a0f17 0%, #0b1018 100%);
}

main { flex: 1; }
a { color: inherit; text-decoration: none; }
.container { width: min(calc(100% - 32px), var(--container)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(8, 12, 19, 0.7);
  border-bottom: 1px solid rgba(255,255,255,.05);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: -.03em;
  font-size: 1.4rem;
}

.brand-logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: hidden;
  padding: 0;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: .97rem;
}

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

.nav .active {
  color: var(--text);
  border-bottom: 2px solid rgba(143,232,255,.6);
  padding-bottom: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transform: translateY(0);
  box-shadow: 0 10px 18px rgba(0,0,0,.22);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 24px rgba(0,0,0,.28);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 14px rgba(0,0,0,.18);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #07111b;
  box-shadow: 0 16px 36px rgba(92,215,255,.22);
}

.btn-secondary {
  border-color: var(--border);
  background: rgba(255,255,255,.02);
  color: var(--text);
}

.btn-accent {
  box-shadow:
    0 18px 40px rgba(92,215,255,.35),
    0 0 0 1px rgba(143,232,255,.35) inset;
}

footer {
  padding: 36px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}

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

.footer-nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--text);
}

/* Home page */
.page-home .hero {
  padding: 82px 0 56px;
}

.page-home .hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 36px;
  align-items: center;
}

.page-home h1 {
  margin: 0;
  font-size: clamp(3.1rem, 7vw, 6.1rem);
  line-height: .92;
  letter-spacing: -.06em;
  max-width: 12ch;
}

.page-home .brand-highlight {
  font-size: 1.2em;
  font-weight: 900;
  display: inline-block;
}

.page-home .headline-rest {
  font-size: 0.8em;
  font-weight: 700;
  margin-top: 0.70em;
  line-height: 1.00;
  display: block;
}

.page-home .hero p {
  margin: 22px 0 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.page-home .actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-home .mockup {
  position: relative;
  min-height: 520px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.page-home .mockup::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(143,232,255,.16), transparent 30%);
  pointer-events: none;
}

.page-home .topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.page-home .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
}

.page-home .screen {
  padding: 22px;
  display: grid;
  gap: 18px;
}

.page-home .panel {
  background: rgba(10, 16, 26, 0.55);
  border: 1px solid rgba(143,232,255,.18);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 18px 45px rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
}

.page-home .hero-card {
  min-height: 190px;
  display: grid;
  align-content: end;
  background:
    linear-gradient(135deg, rgba(143,232,255,.22), rgba(143,232,255,.05)),
    linear-gradient(180deg, rgba(18,26,37,.85) 0%, rgba(10,16,26,.9) 100%);
  box-shadow:
    0 24px 55px rgba(0,0,0,.45),
    0 0 0 1px rgba(143,232,255,.18) inset,
    0 0 28px rgba(92,215,255,.15);
}

.page-home .hero-card h2 {
  margin: 0 0 10px;
  font-size: 1.8rem;
  letter-spacing: -.04em;
}

.page-home .hero-card p,
.page-home .mini p,
.page-home .service p,
.page-home .contact-card p,
.page-home footer p { color: var(--muted); }

.page-home .mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.page-home .mini-slider {
  width: 100%;
  overflow: hidden;
}

.page-home .slider-track {
  overflow: hidden;
}

.page-home .slider-strip {
  display: flex;
  gap: 12px;
  transition: transform 0.45s ease;
  will-change: transform;
}

.page-home .panel.mini {
  flex: 0 0 calc(50% - 6px);
  margin: 0;
}




.page-home .mini h3,
.page-home .service h3 { margin: 0 0 8px; font-size: 1rem; }

.page-home .mini p,
.page-home .service p,
.page-home .contact-card p,
.page-home footer p { margin: 0; line-height: 1.65; }

.page-home .section {
  padding: 34px 0 86px;
}

.page-home .section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 24px;
}

.page-home .section-head h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -.05em;
}

.page-home .section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.7;
}

.page-home .services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.page-home .service {
  min-height: 170px;
  padding: 16px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-home .service-number {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  margin-bottom: 18px;
  color: var(--primary);
  background: rgba(143,232,255,.08);
  border: 1px solid rgba(143,232,255,.12);
  font-weight: 700;
}

.page-home .contact-card {
  padding: 30px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow);
}

/* Contact page */
.page-kontakt .hero {
  padding: 78px 0 30px;
}

.page-kontakt h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: .98;
  letter-spacing: -.05em;
  max-width: 12ch;
}

.page-kontakt .hero p {
  margin: 18px 0 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.page-kontakt .form-wrap {
  padding: 36px 0 86px;
}

.page-kontakt form {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
  padding: 28px;
  display: grid;
  gap: 18px;
  max-width: 760px;
}

.page-kontakt .field {
  display: grid;
  gap: 8px;
}

.page-kontakt label {
  font-weight: 600;
  color: var(--text);
}

.page-kontakt input,
.page-kontakt textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(8, 12, 19, 0.7);
  color: var(--text);
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
}

.page-kontakt textarea { min-height: 160px; resize: vertical; }

.page-kontakt .form-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.form-success {
  display: none;
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(143,232,255,.35);
  background: rgba(143,232,255,.08);
  color: var(--text);
}

.form-success.is-visible {
  display: block;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Impressum page */
.page-impressum .hero {
  padding: 78px 0 24px;
}

.page-impressum h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: .98;
  letter-spacing: -.05em;
  max-width: 12ch;
}

.page-impressum .impressum-content {
  padding: 12px 0 86px;
}

.page-impressum .impressum-card {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
  padding: 28px;
  max-width: 760px;
}

.page-impressum .impressum-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.02rem;
}

.page-impressum .impressum-card strong {
  display: block;
  color: var(--text);
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.page-impressum .impressum-lines {
  margin: 0;
  white-space: pre-line;
  color: var(--text);
  font-size: 1.05rem;
}

/* Website kaufen page */
.page-kaufen .hero {
  padding: 78px 0 30px;
}

.page-kaufen h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: .98;
  letter-spacing: -.05em;
  max-width: 14ch;
}

.page-kaufen .hero p {
  margin: 18px 0 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.page-kaufen .section {
  padding: 28px 0 86px;
}

.page-kaufen .section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 24px;
}

.page-kaufen .section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  letter-spacing: -.04em;
}

.page-kaufen .section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.7;
}

.page-kaufen .offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.page-kaufen .offer-card {
  min-height: 200px;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px; /* consistent spacing controlled by grid gap */
  align-items: start; /* ensure content starts at the top for consistent layout */
}

.page-kaufen .offer-card h3 {
  margin: 0; /* remove margin so grid gap defines spacing consistently */
  font-size: clamp(1.8rem, 3.8vw, 2.4rem);
  font-weight: 800;
  line-height: 1.02;
}

.page-kaufen .offer-card p {
  margin: 0; /* ensure paragraphs don't add extra spacing */
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.98rem;
}

/* Ensure injected product title/description elements don't bring their own margins */
.product-title, .product-description {
  margin: 0;
}

/* Make title area consistent height so spacing to description is even */
.product-title {
  min-height: 3.2rem; /* accommodates up to ~2 lines depending on viewport */
  display: block;
  overflow: hidden;
}

/* normalize Shopify-injected HTML inside the description container */
.product-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.98rem;
}

.product-description h2 {
  margin: 0 0 6px 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.product-description ul {
  margin: 6px 0 0 1.1em;
}

.page-kaufen .offer-card .btn {
  justify-self: start;
  margin-top: 10px;
}

@media (max-width: 960px) {
  .page-home .hero-grid,
  .page-home .services,
  .page-home .section-head,
  .page-home .contact-card {
    grid-template-columns: 1fr;
    display: grid;
  }

  .page-home .hero-grid { gap: 24px; }
  .page-home .mockup { min-height: 460px; }
  .page-home .contact-card { align-items: start; }
  .page-kaufen .offer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    left: 16px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(9,13,20,.95);
    border: 1px solid var(--border);
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav.open { display: flex; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .page-home .mini-grid,
  .page-home .services { grid-template-columns: 1fr; }
  .page-home .mini-slider { grid-template-columns: 1fr; }
  .page-home .slider-btn { justify-self: center; }
  .page-home h1 { max-width: 12ch; }
  .page-home .hero { padding-top: 48px; }
  .page-kontakt .hero { padding-top: 48px; }
  .page-impressum .hero { padding-top: 48px; }
  .page-kaufen .hero { padding-top: 48px; }
}