/* ==========================================================================
   Components
   ========================================================================== */

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-8);
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: 600;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
  text-align: center;
  justify-content: center;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(232, 107, 44, 0.35);
}

.btn--primary:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 107, 44, 0.45);
}

.btn--secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn--secondary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--white {
  background: var(--white);
  color: var(--primary);
}

.btn--white:hover {
  background: var(--primary-50);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn--lg {
  padding: var(--sp-4) var(--sp-10);
  font-size: var(--fs-lg);
}

.btn--sm {
  padding: var(--sp-2) var(--sp-5);
  font-size: var(--fs-sm);
}

.btn svg,
.btn .btn__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__icon {
  width: 56px;
  height: 56px;
  background: var(--primary-50);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-5);
  color: var(--primary);
}

.card__icon svg {
  width: 28px;
  height: 28px;
}

.card__title {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-3);
}

.card__text {
  color: var(--text-muted);
  font-size: var(--fs-base);
  margin-bottom: var(--sp-5);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--primary);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: gap var(--transition);
}

.card__link:hover {
  gap: var(--sp-3);
  color: var(--primary-dark);
}

/* --- Element Card (Feuer/Wasser/Erde spezial) --- */
.element-card {
  position: relative;
  overflow: hidden;
}

.element-card--feuer .card__icon {
  background: linear-gradient(135deg, #E7F4E4, #C5E5BE);
  color: var(--accent);
}

.element-card--wasser .card__icon {
  background: linear-gradient(135deg, #EEEEEE, #D4D4D4);
  color: var(--secondary);
}

.element-card--erde .card__icon {
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  color: var(--primary);
}

/* --- Stats Bar --- */
.stats-bar {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: var(--sp-12) 0;
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-8);
  text-align: center;
}

.stats-bar__item {
  color: var(--white);
}

.stats-bar__number {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 1;
  margin-bottom: var(--sp-2);
}

.stats-bar__label {
  font-size: var(--fs-sm);
  color: var(--primary-100);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .stats-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-6);
  }
}

/* --- Testimonials --- */
.testimonial {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial::before {
  content: '\201E';
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-6);
  font-size: 4rem;
  line-height: 1;
  color: var(--primary-100);
  font-family: Georgia, serif;
}

.testimonial__text {
  font-size: var(--fs-lg);
  font-style: italic;
  color: var(--neutral-700);
  padding-top: var(--sp-8);
  margin-bottom: var(--sp-6);
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.testimonial__name {
  font-weight: 600;
  font-size: var(--fs-base);
}

.testimonial__location {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.testimonial__stars {
  color: #FBBF24;
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-2);
}

/* --- Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  height: var(--header-height);
  transition: all var(--transition);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  height: var(--header-height-scrolled);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--neutral-200);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--fs-xl);
  color: var(--primary);
}

.header__logo img {
  height: 44px;
  border-radius: 0;
}

.header.scrolled .header__logo img {
  height: 36px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.header__nav-link {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--neutral-700);
  transition: color var(--transition-fast);
  position: relative;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

.header__nav-link:hover,
.header__nav-link.active {
  color: var(--primary);
}

.header__nav-link:hover::after,
.header__nav-link.active::after {
  width: 100%;
}

/* Dropdown */
.header__dropdown {
  position: relative;
}

.header__dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--sp-4);
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  border: 1px solid var(--neutral-200);
}

.header__dropdown:hover .header__dropdown-menu {
  opacity: 1;
  visibility: visible;
  top: calc(100% + 4px);
}

.header__dropdown-link {
  display: block;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--neutral-700);
  border-radius: var(--radius);
  transition: all var(--transition-fast);
}

.header__dropdown-link:hover {
  background: var(--primary-50);
  color: var(--primary);
}

.header__phone {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 600;
  color: var(--primary);
  font-size: var(--fs-sm);
}

/* Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: all var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-6);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 600;
  color: var(--neutral-800);
}

.mobile-menu a:hover {
  color: var(--primary);
}

@media (max-width: 1024px) {
  .header__nav { display: none; }
  .header__phone--desktop { display: none; }
  .hamburger { display: flex; }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--secondary-dark) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero__label {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: var(--sp-6);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--sp-6);
  line-height: 1.1;
}

.hero__subtitle {
  font-size: var(--fs-xl);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--sp-8);
  max-width: 560px;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.hero__badges {
  display: flex;
  gap: var(--sp-6);
  margin-top: var(--sp-12);
  flex-wrap: wrap;
}

.hero__badge {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.8);
}

.hero__badge svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

/* --- Footer (hell) --- */
.footer {
  background: #f5f7f6;
  color: #4b5563;
  padding: var(--sp-16) 0 var(--sp-8);
  border-top: 1px solid #e5e7eb;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-12);
  margin-bottom: var(--sp-12);
}

.footer__brand {
  max-width: 320px;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 800;
  color: #0f2b1a;
  margin-bottom: var(--sp-4);
}

.footer__desc {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: #4b5563;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: 700;
  color: #0f2b1a;
  margin-bottom: var(--sp-5);
}

.footer__link {
  display: block;
  font-size: var(--fs-sm);
  color: #4b5563;
  padding: var(--sp-1) 0;
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: #1b6b40;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-3);
  color: #4b5563;
}

.footer__contact-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #1b6b40;
}

.footer__bar {
  border-top: 1px solid #e5e7eb;
  padding-top: var(--sp-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
  font-size: var(--fs-xs);
  color: #6b7280;
}

.footer__legal {
  display: flex;
  gap: var(--sp-6);
}

.footer__legal a {
  color: #4b5563;
  transition: color var(--transition-fast);
}

.footer__legal a:hover {
  color: #1b6b40;
}

@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* --- Forms --- */
.form-group {
  margin-bottom: var(--sp-5);
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--neutral-700);
  margin-bottom: var(--sp-2);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius);
  font-size: var(--fs-base);
  transition: border-color var(--transition-fast);
  background: var(--white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-50);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--error);
}

.form-error {
  font-size: var(--fs-xs);
  color: var(--error);
  margin-top: var(--sp-1);
  display: none;
}

.form-input.error + .form-error,
.form-select.error + .form-error,
.form-textarea.error + .form-error {
  display: block;
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-checkbox {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--primary);
}

/* --- FAQ Accordion --- */
.faq-item {
  border-bottom: 1px solid var(--neutral-200);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-5) 0;
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 600;
  text-align: left;
  color: var(--neutral-800);
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question svg {
  width: 24px;
  height: 24px;
  transition: transform var(--transition);
  flex-shrink: 0;
  color: var(--primary);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-answer__inner {
  padding-bottom: var(--sp-6);
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  border-radius: var(--radius-xl);
  padding: var(--sp-12) var(--sp-8);
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: var(--sp-4);
  position: relative;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--fs-lg);
  max-width: 500px;
  margin: 0 auto var(--sp-8);
  position: relative;
}

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  font-size: var(--fs-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge--primary {
  background: var(--primary-50);
  color: var(--primary);
}

.badge--accent {
  background: var(--accent-50);
  color: var(--accent);
}

/* --- Floating CTA --- */
.floating-cta {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.floating-cta__btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
}

.floating-cta__btn--phone {
  background: var(--primary);
  color: var(--white);
}

.floating-cta__btn--whatsapp {
  background: #25D366;
  color: var(--white);
}

.floating-cta__btn:hover {
  transform: scale(1.1);
}

.floating-cta__btn svg {
  width: 24px;
  height: 24px;
}

/* --- Referenz Card --- */
.referenz-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.referenz-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.referenz-card__image {
  height: 240px;
  background-size: cover;
  background-position: center;
  background-color: var(--neutral-200);
}

.referenz-card__body {
  padding: var(--sp-6);
}

.referenz-card__tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-50);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-3);
}

.referenz-card__title {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-2);
}

.referenz-card__meta {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* --- Process Steps --- */
.process-steps {
  counter-reset: step;
}

.process-step {
  display: flex;
  gap: var(--sp-6);
  margin-bottom: var(--sp-8);
  counter-increment: step;
}

.process-step__number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--fs-lg);
}

.process-step__content h4 {
  margin-bottom: var(--sp-2);
}

.process-step__content p {
  color: var(--text-muted);
}

/* --- Footer Lesbarkeit (hell) --- */
.footer__desc { color: #4b5563; }
.footer__link { color: #4b5563; }
.footer__link:hover { color: #1b6b40; }
.footer__contact-item { color: #4b5563; }
.footer__contact-item a { color: #4b5563 !important; }
.footer__contact-item a:hover { color: #1b6b40 !important; }
.footer__bar { color: #6b7280; }
.footer__legal a { color: #4b5563; }
.footer__legal a:hover { color: #1b6b40; }
