/* ===== RESET & BASE ===== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

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

/* ===== LAYOUT ===== */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

.bg-alt {
  background: #f8f9fa;
}

/* ===== NAVIGATION ===== */

.nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 100;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  color: #555;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #1a1a1a;
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: #1a1a1a;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1a1a1a;
  margin: 5px 0;
  transition: 0.3s;
}

/* ===== HERO ===== */

.hero {
  padding: 7rem 0 6rem;
  text-align: center;
  background: linear-gradient(160deg, #f8f9fa 0%, #fff 50%, #f0f4ff 100%);
}

.hero-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #666;
  background: rgba(0, 0, 0, 0.04);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 750px;
  margin: 0 auto 1.25rem;
}

.hero p {
  font-size: 1.2rem;
  color: #666;
  max-width: 520px;
  margin: 0 auto 2.25rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #1a1a1a;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.btn-outline {
  background: transparent;
  color: #1a1a1a;
  border: 1.5px solid #ddd;
}

.btn-outline:hover {
  border-color: #1a1a1a;
  transform: translateY(-2px);
}

/* ===== SECTION HEADINGS ===== */

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  color: #888;
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

/* ===== CARDS GRID ===== */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 2.25rem 2rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

/* ===== PRICING ===== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pricing-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.pricing-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #555;
}

.pricing-card .price {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.pricing-card .price-note {
  font-size: 0.85rem;
  color: #888;
}

/* ===== PROCESS / STEPS ===== */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.step p {
  font-size: 0.88rem;
  color: #888;
}

/* ===== DEMO LINKS ===== */

.demo-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.demo-link {
  display: block;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 2.25rem 2rem;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
}

.demo-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border-color: #ccc;
}

.demo-link span {
  display: block;
  color: #888;
  font-weight: 400;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* ===== CONTACT ===== */

.contact-box {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.contact-box p {
  color: #666;
  margin-bottom: 1.5rem;
}

.contact-box a.email {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

/* ===== FOOTER ===== */

.footer {
  border-top: 1px solid #eee;
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: #999;
}

/* ===== DEMO PAGE HERO ===== */

.demo-hero {
  padding: 5rem 0 3rem;
  text-align: center;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
}

.demo-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.demo-hero p {
  color: #666;
  font-size: 1.05rem;
}

.demo-badge {
  display: inline-block;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

/* ===== DEMO HERO WITH IMAGE ===== */

.demo-hero-img {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 480px;
  display: flex;
  align-items: center;
}

.demo-hero-overlay {
  width: 100%;
  padding: 5rem 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.4) 100%);
  text-align: center;
}

.demo-hero-overlay h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.demo-hero-overlay p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

.demo-hero-overlay .demo-badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ===== SPLIT LAYOUT ===== */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split-reverse {
  direction: rtl;
}

.split-reverse > * {
  direction: ltr;
}

.split-text h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.split-text p {
  color: #555;
  margin-bottom: 0.75rem;
  line-height: 1.8;
}

.split-img img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  max-height: 360px;
}

/* ===== IMAGE BANNER ===== */

.img-banner {
  padding: 0;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* ===== ACCENT BUTTON ===== */

.btn-accent {
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ===== THEME: RESTAURANT ===== */

.theme-restaurant .btn-accent {
  background: #8b2635;
}

.theme-restaurant .btn-accent:hover {
  background: #a03040;
}

.theme-restaurant .step-number {
  background: #8b2635;
}

.theme-restaurant .card:hover {
  border-color: #e8d5d8;
}

/* ===== THEME: HANDWERKER ===== */

.theme-handwerker .btn-accent {
  background: #d97706;
}

.theme-handwerker .btn-accent:hover {
  background: #e68a1a;
}

.theme-handwerker .step-number {
  background: #d97706;
}

.theme-handwerker .card:hover {
  border-color: #fde68a;
}

/* ===== THEME: PHYSIO ===== */

.theme-physio .btn-accent {
  background: #0d9488;
}

.theme-physio .btn-accent:hover {
  background: #14b8a6;
}

.theme-physio .step-number {
  background: #0d9488;
}

.theme-physio .card:hover {
  border-color: #ccfbf1;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 960px) {
  .cards,
  .pricing-grid,
  .steps,
  .demo-list {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .split-reverse {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 0 1.5rem;
    gap: 0;
    border-bottom: 1px solid #eee;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
  }

  .nav-links.open {
    display: flex;
    max-height: 320px;
    opacity: 1;
    padding: 1rem 1.5rem;
  }

  .nav-links a {
    padding: 0.75rem 0;
    display: block;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 5rem 0 4rem;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .cards,
  .pricing-grid,
  .steps,
  .demo-list {
    grid-template-columns: 1fr;
  }

  section {
    padding: 3.5rem 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .demo-hero-img {
    min-height: 360px;
  }

  .img-banner {
    min-height: 200px;
    background-attachment: scroll;
  }

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