/* ===========================
   pepelabs 2024 – Gesamt-Stylesheet
   Komplett neu aufgebaut, modal-safe
=========================== */

/* ---------- Root Variablen ---------- */
:root {
  --bg: #050810;
  --bg-alt: #0b0f1a;
  --card-bg: #111827;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --radius: 16px;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
  --max-width: 1040px;
  --transition: 0.2s ease;
}

/* ---------- Reset ---------- */
* {
  box-sizing: border-box;
}

/* Smooth Scrolling für Anker-Links (#about, #services, #contact, usw.) */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 52%, #000 100%);
  color: var(--text);
  line-height: 1.6;
}


a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===========================
      NAV / HEADER
=========================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4.25rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.logo span {
  color: var(--accent);
}

nav a {
  margin-left: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
}

nav a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

/* ===========================
      HERO
=========================== */
.hero {
  padding: 5rem 0 4rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.hero-text-block {
  max-width: 650px;
}

.tagline {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

h1 {
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  margin: 1rem 0 0.7rem;
}

.hero-text {
  font-size: 1rem;
  color: var(--text-muted);
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-small {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #020817;
  font-weight: 600;
}

.btn-primary:hover {
  box-shadow: 0 14px 30px rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--text-muted);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn-small {
  padding: 0.35rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.btn-small:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
}

.screen-mock {
  width: 100%;
  max-width: 420px;
  border-radius: 22px;
  background: radial-gradient(circle at top left, #1d4ed8, #0f172a 45%, #020617 100%);
  border: 1px solid rgba(148, 163, 184, 0.3);
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.85);
}

.screen-header {
  padding: 0.6rem 0.8rem;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(30, 64, 175, 0.7);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.screen-header .dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.screen-header .dot:nth-child(1) { background: #f97373; }
.screen-header .dot:nth-child(2) { background: #facc15; }
.screen-header .dot:nth-child(3) { background: #22c55e; }

.screen-url {
  margin-left: 0.7rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.screen-body {
  padding: 1.3rem;
}

.badge {
  padding: 0.2rem 0.6rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
}

/* ===========================
      SECTIONS
=========================== */

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: radial-gradient(circle at top left, #020617, #000);
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}

.section-intro {
  max-width: 600px;
  color: var(--text-muted);
}

.two-col {
  display: grid;
  gap: 2rem;
}

.grid-3 {
  display: grid;
  gap: 1.5rem;
}

/* Cards */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.meta {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* ===========================
      FORMULAR
=========================== */

.contact-form label {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(15, 23, 42, 0.92);
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  outline: none;
}

/* ===========================
      FOOTER
=========================== */

.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding: 1.3rem 0 1.5rem;
  background: #020617;
}

.footer-content {
  display: flex;
  justify-content: space-between;
}

/* ===========================
      MODAL / POPUP (NEU, FEHLERFREI)
=========================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 80;
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none; /* wichtig */
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-inner {
  width: 100%;
  max-width: 430px;
  background: radial-gradient(circle at top left, #0f172a, #020617 60%);
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 1.6rem 1.8rem;
  position: relative;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.9);
}

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--accent);
}

/* Sichtbarkeit */
.modal.show {
  display: flex !important;
}

.modal-overlay.show {
  display: block !important;
}

/* ===========================
      RESPONSIVE
=========================== */

@media (min-width: 720px) {
  .hero-content {
    flex-direction: row;
    align-items: center;
  }

  .two-col {
    grid-template-columns: 2fr 1.5fr;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  nav {
    display: none;
  }

  .footer-content {
    flex-direction: column;
    gap: 0.6rem;
    text-align: center;
  }
}
