:root {
  --primary-color: #5D4C7A;
  --secondary-color: #4A3A63;
  --accent-color: #7D65A0;
  --light-color: #EDE8F5;
  --dark-color: #1E1630;
  --gradient-primary: linear-gradient(135deg, #5D4C7A 0%, #7D65A0 100%);
  --hover-color: #483B60;
  --background-color: #F8F6FC;
  --text-color: #1E1A2E;
  --border-color: rgba(93, 76, 122, 0.18);
  --divider-color: rgba(93, 76, 122, 0.12);
  --shadow-color: rgba(93, 76, 122, 0.1);
  --highlight-color: #C9923A;
  --main-font: 'Montserrat', sans-serif;
  --alt-font: 'Roboto', sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  max-width: 100%;
}

body {
  font-family: var(--alt-font);
  color: var(--text-color);
  background: linear-gradient(140deg, #F8F6FC 0%, #EDE8F5 100%);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  max-width: 100%;
  min-width: 320px;
}

img { max-width: 100%; height: auto; }

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

h1, h2, h3 {
  font-family: var(--main-font);
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 1rem 0;
}

h1 { font-size: clamp(2rem, 5vw, 4rem); line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); line-height: 1.3; }
h3 { font-size: clamp(1.1rem, 3vw, 1.4rem); line-height: 1.4; }

p { margin: 0 0 1rem 0; font-size: clamp(1rem, 2vw, 1.1rem); }

/* Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 4px;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(5px);
}

.hamburger .line {
  width: 22px;
  height: 2px;
  background: var(--primary-color);
  margin: 2px 0;
  transition: 0.3s;
  border-radius: 1px;
}

#menu-toggle { display: none; }

#menu-toggle:checked ~ .mobile-nav {
  max-height: 400px;
  opacity: 1;
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}

.mobile-nav ul { padding: 2rem; margin: 0; list-style: none; }
.mobile-nav li { margin: 1rem 0; }

.mobile-nav a {
  display: block;
  padding: 0.8rem 0;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}

.mobile-nav a:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* Header */
header {
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-color);
  padding: 1.5rem 0;
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(93, 76, 122, 0.1);
  backdrop-filter: blur(10px);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img { height: 3rem; width: auto; }

.navigation ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.navigation a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: all 0.3s ease;
}

.navigation a:hover { color: var(--primary-color); }

.grid { display: grid; max-width: 100%; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 1.8rem;
  max-width: 100%;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 100%;
}

/* Feature Cards — pill badge icon, flat minimal style with bottom accent bar */
.feature-card {
  background: white;
  border-radius: 12px;
  padding: 2rem 1.8rem 1.6rem;
  box-shadow: 0 1px 12px rgba(93, 76, 122, 0.09);
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  transition: width 0.4s ease;
}

.feature-card:hover::after { width: 100%; }

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(93, 76, 122, 0.18);
}

.feature-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.2rem;
  border-radius: 20px;
  background: var(--light-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.feature-card:hover .feature-icon {
  background: var(--gradient-primary);
  border-color: transparent;
  border-radius: 50%;
}

/* Testimonials */
.testimonial {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 14px rgba(93, 76, 122, 0.08);
  transition: all 0.3s ease;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  max-width: 100%;
}

.testimonial:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 22px rgba(93, 76, 122, 0.15);
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--main-font);
  font-weight: 700;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* FAQ */
.faq-item {
  background: white;
  border-radius: 10px;
  margin: 1rem 0;
  box-shadow: 0 1px 8px rgba(93, 76, 122, 0.07);
  transition: all 0.3s ease;
  padding: 1.8rem 2rem;
  border-right: 4px solid transparent;
  max-width: 100%;
}

.faq-item:hover {
  border-right-color: var(--accent-color);
  box-shadow: 0 4px 20px rgba(93, 76, 122, 0.14);
  transform: translateX(-3px);
}

/* Form */
input, textarea {
  transition: all 0.3s ease;
  font-family: var(--alt-font);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  background: white;
  color: var(--text-color);
  font-size: 1rem;
  width: 100%;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(93, 76, 122, 0.1);
}

.btn, button {
  transition: all 0.3s ease;
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-family: var(--alt-font);
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-shadow: 0 3px 14px rgba(93, 76, 122, 0.3);
}

.btn:hover, button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(93, 76, 122, 0.4);
}

/* Pattern — subtle cross/plus signs */
.pattern-bg {
  background-image:
    linear-gradient(rgba(93, 76, 122, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 76, 122, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(93, 76, 122, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 76, 122, 0.025) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 10px 10px, 10px 10px;
}

/* Random Block — comparison two-column "Vorher / Nachher" style */
.compare-band {
  width: 100%;
  padding: 3.5rem 0;
  background: var(--dark-color);
}

.compare-band h2 {
  color: white;
  margin-bottom: 0.4rem;
}

.compare-subtitle {
  color: rgba(237, 232, 245, 0.72);
  text-align: center;
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
  max-width: 860px;
  margin: 0 auto;
}

.compare-col {
  border-radius: 12px;
  padding: 2rem 1.8rem;
}

.compare-col.before {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.compare-col.after {
  background: rgba(125, 101, 160, 0.25);
  border: 1px solid rgba(125, 101, 160, 0.4);
}

.compare-label {
  font-family: var(--main-font);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.compare-col.before .compare-label { color: rgba(237,232,245,0.55); }
.compare-col.after .compare-label { color: var(--highlight-color); }

.compare-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.compare-item-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
}

.compare-col.before .compare-item-dot { background: rgba(237,232,245,0.3); }
.compare-col.after .compare-item-dot { background: var(--highlight-color); }

.compare-item p {
  margin: 0;
  font-size: 0.95rem;
}

.compare-col.before .compare-item p { color: rgba(237,232,245,0.7); }
.compare-col.after .compare-item p { color: rgba(237,232,245,0.92); }

.compare-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
}

.compare-vs {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-family: var(--main-font);
  font-size: 0.85rem;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(93, 76, 122, 0.4);
}

/* Contact */
.contact-inner { width: 80%; margin: 0 auto; }

/* Footer */
footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 3rem 0 1rem;
}

footer a {
  color: var(--light-color);
  text-decoration: none;
  transition: opacity 0.3s;
}

footer a:hover { opacity: 0.75; text-decoration: underline; }

/* Responsive */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .navigation { display: none; }
  .mobile-nav { display: block; }
  .features-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .grid { grid-template-columns: 1fr !important; gap: 1.5rem; }
  .contact-inner { width: 100%; }

  .compare-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .compare-divider {
    padding: 0.5rem 0;
  }

  .testimonial {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .testimonial-avatar { margin: 0 auto; }

  .faq-item, .testimonial { padding: 1.6rem 1.2rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 0.75rem; }
  .contact-inner { width: 100%; }
  .faq-item { padding: 1.4rem 1rem; }
  .feature-icon { width: 60px; height: 60px; font-size: 1.8rem; }
}

a:focus, button:focus, input:focus, textarea:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}