/* Estrichbau Dott - Stylesheet */

:root {
  --primary: #8B4513;
  --primary-dark: #6B3410;
  --secondary: #D4A574;
  --accent: #C65D07;
  --dark: #2C2C2C;
  --gray: #5A5A5A;
  --light-gray: #F5F5F5;
  --white: #FFFFFF;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dark);
  line-height: 1.7;
  background: var(--white);
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }

p {
  color: var(--gray);
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: var(--transition);
}

header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo img {
  height: 60px;
  width: auto;
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
  gap: 8px;
}

nav a {
  display: block;
  padding: 10px 18px;
  color: var(--dark);
  font-weight: 500;
  border-radius: 6px;
  transition: var(--transition);
}

nav a:hover,
nav a.active {
  background: var(--light-gray);
  color: var(--primary);
}

/* Nav CTA Button */
.nav-cta {
  margin-left: 8px;
}

.nav-cta a {
  background: var(--accent);
  color: var(--white);
  border-radius: 8px;
  padding: 10px 24px;
}

.nav-cta a:hover {
  background: var(--primary);
  color: var(--white);
}

.nav-cta a.active {
  background: var(--primary);
  color: var(--white);
}

/* Hide Impressum on desktop */
.nav-mobile-only {
  display: none;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

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

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../img/estrich-vorbereitung---rot.jpg') center/cover;
  opacity: 0.2;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 700px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
}

.hero p {
  color: rgba(255,255,255,0.9);
  font-size: 1.2rem;
  margin-bottom: 32px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

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

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  margin-left: 16px;
}

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

/* Sections */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.1rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
}

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

.service-image {
  width: 100%;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-card h3 {
  margin-bottom: 16px;
  color: var(--primary);
}

.service-card p {
  font-size: 0.95rem;
}

/* Features Section */
.features {
  background: var(--light-gray);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-item {
  text-align: center;
  padding: 40px 24px;
  background: var(--white);
  border-radius: 12px;
  transition: var(--transition);
}

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

.feature-image {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.feature-item:hover .feature-image img {
  transform: scale(1.05);
}

.feature-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 0.9rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Products Section */
.products {
  background: var(--dark);
  color: var(--white);
}

.products h2,
.products h3 {
  color: var(--white);
}

.products p {
  color: rgba(255,255,255,0.8);
}

.products-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.products-text ul {
  list-style: none;
  margin: 24px 0;
}

.products-text li {
  padding: 12px 0;
  padding-left: 28px;
  position: relative;
  color: rgba(255,255,255,0.9);
}

.products-text li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
}

.products-image {
  border-radius: 12px;
  overflow: hidden;
}

.products-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Lead Funnel */
.lead-funnel {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.1);
  padding: 48px;
  position: relative;
}

.funnel-progress {
  position: relative;
  margin-bottom: 40px;
}

.funnel-progress-bar {
  position: absolute;
  top: 14px;
  left: 0;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.5s ease;
  z-index: 1;
}

.funnel-steps-indicator {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.funnel-steps-indicator::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
}

.funnel-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e0e0e0;
  color: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.funnel-step-dot.active {
  background: var(--accent);
  color: var(--white);
}

.funnel-step-dot.completed {
  background: var(--primary);
  color: var(--white);
}

/* Funnel Steps */
.funnel-step {
  display: none;
}

.funnel-step.active {
  display: block;
  animation: fadeInUp 0.4s ease;
}

.funnel-step-header {
  margin-bottom: 32px;
}

.funnel-step-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.funnel-step-header h3 {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  margin-bottom: 4px;
}

.funnel-step-sub {
  font-size: 0.95rem;
  color: var(--gray);
  margin-top: 4px;
}

/* Funnel Option Cards */
.funnel-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.funnel-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.funnel-option {
  cursor: pointer;
}

.funnel-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.funnel-option-card {
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px 24px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 16px;
}

.funnel-option-card.compact {
  padding: 16px 20px;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.funnel-option-card strong {
  display: block;
  color: var(--dark);
  font-size: 1rem;
}

.funnel-option-card span {
  display: block;
  font-size: 0.85rem;
  color: var(--gray);
}

.funnel-option-card:hover {
  border-color: var(--secondary);
  background: rgba(212, 165, 116, 0.05);
}

.funnel-option input[type="radio"]:checked + .funnel-option-card {
  border-color: var(--accent);
  background: rgba(198, 93, 7, 0.06);
  box-shadow: 0 0 0 1px var(--accent);
}

.funnel-option-card.highlight {
  border-style: dashed;
}

.funnel-option-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.funnel-option input[type="radio"]:checked + .funnel-option-card .funnel-option-icon {
  background: var(--accent);
  color: var(--white);
}

/* Funnel Navigation */
.funnel-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.funnel-next,
.funnel-submit {
  min-width: 160px;
}

.funnel-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.funnel-next:disabled:hover {
  transform: none;
  background: var(--accent);
  color: var(--white);
}

.btn-back {
  background: transparent;
  color: var(--gray);
  border: 1px solid #ddd;
}

.btn-back:hover {
  background: var(--light-gray);
  color: var(--dark);
  border-color: #ccc;
}

/* Summary on Step 5 */
.funnel-summary {
  background: var(--light-gray);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
}

.funnel-summary h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray);
  margin-bottom: 16px;
}

.funnel-summary-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.funnel-summary-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.funnel-summary-label {
  font-size: 0.8rem;
  color: var(--gray);
}

.funnel-summary-value {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
}

/* Contact fields in Step 5 */
.funnel-contact-fields {
  margin-bottom: 24px;
}

.funnel-contact-fields .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.funnel-contact-fields .form-group {
  margin-bottom: 20px;
}

.funnel-contact-fields label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark);
}

.funnel-contact-fields input,
.funnel-contact-fields textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--white);
}

.funnel-contact-fields input:focus,
.funnel-contact-fields textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.funnel-contact-fields input::placeholder,
.funnel-contact-fields textarea::placeholder {
  color: #999;
}

.funnel-contact-fields textarea {
  resize: vertical;
  min-height: 100px;
}

/* Success Message */
.funnel-success {
  text-align: center;
  padding: 40px 0;
}

.funnel-success-icon {
  color: #27ae60;
  margin-bottom: 24px;
}

.funnel-success h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.funnel-success p {
  font-size: 1.05rem;
  max-width: 400px;
  margin: 0 auto 32px;
}

.funnel-contact-alt {
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.funnel-contact-alt p {
  font-size: 0.95rem;
  margin-bottom: 16px;
}

/* Contact Info Bar */
.contact-info-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #eee;
  flex-wrap: wrap;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray);
}

.contact-info-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

.contact-info-item a {
  color: var(--dark);
  font-weight: 500;
}

.contact-info-item a:hover {
  color: var(--accent);
}

/* Responsive Funnel */
@media (max-width: 768px) {
  .lead-funnel {
    padding: 28px 20px;
    border-radius: 12px;
  }

  .funnel-options-grid {
    grid-template-columns: 1fr;
  }

  .funnel-contact-fields .form-row {
    grid-template-columns: 1fr;
  }

  .funnel-summary-items {
    grid-template-columns: 1fr;
  }

  .funnel-nav {
    flex-direction: column-reverse;
    gap: 12px;
  }

  .funnel-nav .btn {
    width: 100%;
    text-align: center;
  }

  .contact-info-bar {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
}

/* Footer */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.95rem;
}

.footer-links h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  display: block;
  padding: 6px 0;
}

.footer-links a:hover {
  color: var(--secondary);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.7);
  margin: 0 12px;
}

/* Responsive */
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .products-content {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  nav {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    transition: var(--transition);
  }
  
  nav.active {
    transform: translateY(0);
  }
  
  nav ul {
    flex-direction: column;
    gap: 0;
  }
  
  nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--light-gray);
  }

  .nav-mobile-only {
    display: list-item;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 8px;
  }

  .nav-cta a {
    display: block;
    text-align: center;
    border-bottom: none;
  }

  .hero {
    min-height: 70vh;
    margin-top: 84px;
  }
  
  .btn-outline {
    margin-left: 0;
    margin-top: 12px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  section {
    padding: 60px 0;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  animation: fadeInUp 0.6s ease forwards;
}


/* Legal Pages */
.legal-content {
  padding-top: 120px;
  padding-bottom: 80px;
}

.legal-content h1 {
  margin-bottom: 32px;
}

.legal-content h2 {
  margin-top: 40px;
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.legal-content p,
.legal-content li {
  margin-bottom: 12px;
}

.legal-content ul {
  margin-left: 24px;
  margin-bottom: 20px;
}
