/**
 * LAYOUT IMPROVEMENTS
 * Bessere Lesbarkeit, Kontraste und Abstände
 */

/* ===================================
   GLOBAL IMPROVEMENTS
   =================================== */

/* Bessere Lesbarkeit */
body {
  font-size: 16px;
  line-height: 1.7;
}

/* Größere Schrift für Überschriften */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
}

/* Bessere Kontraste */
.metal-heading {
  color: #1a1a1a;
}

.metal-section--dark .metal-heading {
  color: #ffffff;
}

/* ===================================
   CARDS & BOXES
   =================================== */

/* Klare Rahmen für Cards */
.metal-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.metal-section--dark .metal-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hover-Effekte */
.metal-card--hover {
  transition: all 0.3s ease;
}

.metal-card--hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* ===================================
   TIMELINE STYLES
   =================================== */

.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  width: 16px;
  height: 16px;
  background: #f39c12;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 3px #f39c12;
  z-index: 2;
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 24px;
  width: 2px;
  height: calc(100% + 20px);
  background: linear-gradient(to bottom, #f39c12, rgba(243, 156, 18, 0.3));
}

.timeline-item:last-child::after {
  display: none;
}

.timeline-content {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #f39c12;
}

.timeline-year {
  display: inline-block;
  background: #f39c12;
  color: white;
  padding: 5px 15px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 4px;
  margin-bottom: 10px;
}

/* ===================================
   VALUE CARDS
   =================================== */

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.value-card {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  padding: 40px 30px;
  border-radius: 8px;
  text-align: center;
  border-top: 4px solid #f39c12;
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.value-icon {
  width: 70px;
  height: 70px;
  background: rgba(243, 156, 18, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.value-icon svg {
  width: 32px;
  height: 32px;
  color: #f39c12;
}

.value-card h3 {
  color: white;
  font-size: 22px;
  margin-bottom: 15px;
}

.value-card p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

/* ===================================
   SERVICE SECTIONS
   =================================== */

.service-section {
  padding: 100px 0;
}

.service-section:nth-child(odd) {
  background: #f8f9fa;
}

.service-section:nth-child(even) {
  background: #1a1a1a;
}

.service-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 1024px) {
  .service-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.service-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.service-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.service-badge {
  display: inline-block;
  background: #f39c12;
  color: white;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.service-content h2 {
  margin-bottom: 20px;
}

.service-content p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 25px;
}

.service-section:nth-child(odd) .service-content p {
  color: #444;
}

.service-section:nth-child(even) .service-content p {
  color: rgba(255, 255, 255, 0.85);
}

.feature-list {
  list-style: none;
  margin: 30px 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 16px;
}

.service-section:nth-child(even) .feature-list li {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #f39c12;
}

/* ===================================
   STATS BOXES
   =================================== */

.stat-box {
  background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
  padding: 40px 20px;
  text-align: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-box-number {
  font-size: 48px;
  font-weight: 900;
  color: #f39c12;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-box-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
}

/* ===================================
   TINY HOUSE MODEL CARDS
   =================================== */

.model-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.model-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.model-image {
  height: 280px;
  overflow: hidden;
}

.model-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.model-card:hover .model-image img {
  transform: scale(1.1);
}

.model-content {
  padding: 35px;
}

.model-badge {
  display: inline-block;
  background: #8B6F47;
  color: white;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  margin-bottom: 15px;
}

.model-price {
  font-size: 36px;
  font-weight: 900;
  color: #5D4037;
  margin: 20px 0 5px;
}

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

.contact-card {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: #f39c12;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.contact-info h3 {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-info a {
  color: #f39c12;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
}

.contact-info p {
  color: #888;
  font-size: 14px;
  margin-top: 3px;
}

/* ===================================
   FORM STYLES
   =================================== */

.contact-form {
  background: white;
  padding: 50px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e8e8e8;
  border-radius: 6px;
  font-size: 16px;
  transition: all 0.3s ease;
  font-family: inherit;
  background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #f39c12;
  background: white;
}

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

/* ===================================
   INFO CARDS
   =================================== */

.info-card {
  background: white;
  padding: 50px 40px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
}

.info-icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #fff5e6 0%, #ffe4cc 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
}

.info-icon svg {
  width: 40px;
  height: 40px;
  color: #f39c12;
}

/* ===================================
   FAQ STYLES
   =================================== */

.faq-item {
  background: #34495e;
  padding: 35px;
  margin-bottom: 20px;
  border-radius: 8px;
  border-left: 4px solid #f39c12;
}

.faq-item h3 {
  color: white;
  margin-bottom: 15px;
  font-size: 20px;
}

.faq-item p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
}

/* ===================================
   MAP PLACEHOLDER
   =================================== */

.map-placeholder {
  height: 450px;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.map-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.map-content {
  text-align: center;
  color: white;
  position: relative;
  z-index: 1;
}

.map-content svg {
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
  opacity: 0.5;
}

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

@media (max-width: 768px) {
  .service-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .value-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    padding: 30px;
  }
  
  .contact-card {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }
  
  .timeline-item {
    padding-left: 30px;
  }
}