/* LOCAL SELF-HOSTED INTER FONTS (PER AGENTS.MD STANDARDS) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/Inter-Regular-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/Inter-Medium-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/Inter-SemiBold-600.woff2') format('woff2');
}


:root {
  --color-primary: #1a1f2e;
  --color-accent: #af3731;
  --color-bg-light: #f8f8f6;
  --color-bg-alt: #eef0f2;
  --color-text: #333333;
  --color-white: #ffffff;
  
  --font-family-main: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
}

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

body {
  font-family: var(--font-family-main);
  color: var(--color-text);
  line-height: 1.6;
  background-color: var(--color-white);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 400;
}

h2 {
  font-size: 2rem;
  font-weight: 400;
}

@media (max-width: 768px) {
  h2 { font-size: 1.75rem; }
}

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

/* Utilities */
.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.padding-y-lg { padding: 5rem 0; }
.padding-y-md { padding: 3rem 0; }
.text-center { text-align: center; }

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

.grid-3-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

@media (max-width: 768px) {
  .grid-2-col { grid-template-columns: 1fr; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
  border: 2px solid transparent;
}

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

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

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* Blue button (contact forms): blue idle, red hover */
.btn-blue {
  background-color: var(--color-primary);
  color: var(--color-white);
}
.btn-blue:hover {
  background-color: var(--color-accent);
  transform: translateY(-2px);
}

/* Header */
.top-bar {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 0.9rem;
  padding: 0.5rem 0;
  text-align: center;
  position: relative;
  z-index: 1001;
}

.site-header {
  background-color: var(--color-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.site-header.nav-up {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

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

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
  margin: 0 1rem;
}

.nav-link {
  font-weight: 500;
  color: var(--color-primary);
  padding: 1.5rem 0;
  display: block;
}

.nav-link:hover {
  color: var(--color-accent);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-white);
  min-width: 250px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  transition-delay: 0.18s;
  list-style: none;
  padding: 1rem 0;
  border-radius: 0 0 4px 4px;
}

/* Bridge for Dropdown */
.nav-item::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 14px;
  background: transparent;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.dropdown-item {
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-primary);
}

.dropdown-item:hover {
  background-color: var(--color-bg-light);
  color: var(--color-accent);
}

/* Mobile Menu */
.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-white);
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: none;
  }
  .main-nav.active { display: flex; }
  .nav-list {
    flex-direction: column;
    width: 100%;
  }
  .nav-item { margin: 0; width: 100%; }
  .nav-link { padding: 1rem; border-bottom: 1px solid var(--color-bg-alt); }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    padding: 0;
    display: none;
  }
  .nav-item.active .dropdown-menu { display: block; }
  .header-cta { display: none; }
}

/* Hero Split */
.hero-split {
  min-height: clamp(520px, 82vh, 720px);
  display: flex;
  position: relative;
}

.hero-split .hero-content {
  flex: 1;
  padding: 5rem 10% 5rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--color-white);
  z-index: 2;
  position: relative;
}

/* Anti-overlay gradient */
.hero-split::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(26,31,46,0.6) 0%, rgba(26,31,46,0.55) 45%, rgba(26,31,46,0) 55%);
  z-index: 1;
}

.hero-split .hero-image {
  flex: 1;
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-split h1 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.hero-list {
  list-style: none;
  margin: 1.5rem 0 2rem;
}

.hero-list li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-list i { color: var(--color-accent); }

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Compact */
.hero-compact {
  min-height: clamp(200px, 30vh, 320px);
  position: relative;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero-compact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(26,31,46,0.55) 0%, rgba(26,31,46,0.4) 50%, rgba(26,31,46,0.25) 100%);
  z-index: 1;
}

.hero-compact .container {
  position: relative;
  z-index: 2;
  color: var(--color-white);
}

.hero-compact h1 { color: var(--color-white); }

@media (max-width: 768px) {
  .hero-split { flex-direction: column; }
  .hero-split .hero-image { width: 100%; position: static; height: 300px; }
  .hero-split .hero-content { padding: 3rem 1.5rem; }
  .hero-split::before { background: rgba(26,31,46,0.8); }
  .hero-compact::before { background: rgba(26,31,46,0.8); }
}

/* Trust Bar */
.trust-bar {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 0.5rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.trust-item i {
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: 0;
}
.trust-item h4 {
  margin-bottom: 0;
}
.trust-item p {
  margin-bottom: 0;
}

/* Service Cards Grid */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }

.service-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-card-desc {
  margin-bottom: 1.5rem;
  flex: 1;
  color: #555;
}

.service-card-link {
  color: var(--color-accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Why Us Comparison */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.comparison-table th, .comparison-table td {
  padding: 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--color-bg-alt);
}

.comparison-table th {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 1.2rem;
  font-weight: 500;
}

.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table .other-col { width: 50%; border-right: 1px solid var(--color-bg-alt); }
.comparison-table .our-col { width: 50%; background-color: rgba(232, 99, 10, 0.05); }

.check-green { color: #28a745; margin-right: 0.5rem; }
.cross-red { color: #dc3545; margin-right: 0.5rem; }

/* 3-Step Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  counter-reset: process-counter;
}

.process-card {
  background: var(--color-bg-light);
  padding: 2.5rem 2rem;
  border-radius: 8px;
  position: relative;
  text-align: center;
}

.process-card::before {
  counter-increment: process-counter;
  content: counter(process-counter);
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--color-bg-alt);
  border-radius: 8px;
  background: var(--color-white);
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '\f078';
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
  transition: transform var(--transition-fast);
}

.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item[open] summary { border-bottom: 1px solid var(--color-bg-alt); }
.faq-content { padding: 1.5rem; color: #555; }

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  background: transparent;
}

.form-control:focus { outline: none; border-color: var(--color-accent); }

/* Watermark Placeholder (floating label logic can be here, but simple placeholder is fine per reqs) */
.honeypot { display: none; }

/* CTA Banner */
.cta-banner {
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 4rem 0;
  text-align: center;
}

.cta-banner h2 { color: var(--color-white); margin-bottom: 2rem; }

/* SEO Block */
.seo-block {
  background-color: var(--color-bg-light);
  color: var(--color-text);
  padding: 4rem 0;
}

.seo-block p { margin-bottom: 1rem; }

/* Footer */
.site-footer {
  background-color: var(--color-primary);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-heading {
  color: var(--color-white);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-logo { max-width: 200px; margin-bottom: 1.5rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a:hover { color: var(--color-accent); }
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
}

/* Footer Accordion */
.footer-accordion { list-style: none; }
.footer-acc-item { border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-acc-item:last-child { border-bottom: none; }

.footer-acc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.65rem 0;
  cursor: pointer;
  text-align: left;
  gap: 0.5rem;
  transition: color 0.2s;
  font-family: inherit;
}
.footer-acc-toggle:hover { color: var(--color-accent); }
.footer-acc-toggle .acc-icon {
  font-size: 0.7rem;
  transition: transform 0.25s ease;
  flex-shrink: 0;
  color: rgba(255,255,255,0.4);
}
.footer-acc-item.open .acc-icon { transform: rotate(180deg); }
.footer-acc-toggle .acc-label { flex: 1; }

/* Parent link inside toggle row */
.footer-acc-toggle a.acc-parent-link {
  flex: 1;
  color: inherit;
  text-decoration: none;
}
.footer-acc-toggle a.acc-parent-link:hover { color: var(--color-accent); }

.footer-acc-children {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.footer-acc-item.open .footer-acc-children {
  max-height: 500px;
}
.footer-acc-children ul {
  list-style: none;
  padding: 0 0 0.5rem 0.75rem;
  border-left: 2px solid rgba(232,99,10,0.3);
  margin: 0 0 0.5rem;
}
.footer-acc-children ul li { margin-bottom: 0.4rem; }
.footer-acc-children ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
  display: block;
  padding: 0.1rem 0;
}
.footer-acc-children ul li a:hover { color: var(--color-accent); }

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 1.5rem;
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

.cookie-banner.show { transform: translateY(0); }

@media (max-width: 768px) {
  .cookie-banner { flex-direction: column; text-align: center; gap: 1rem; }
}

/* Animations */
.fade-in-up {
  opacity: 1;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================ */
/* INTERACTIVE SERVICE GRID (Original Dachexperte.com style) */
/* ================================ */
.services-grid-section {
  background-color: #233048;
  padding: 60px 0 0;
}
.services-grid-heading {
  color: #fff;
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
}
.services-grid-heading strong {
  font-weight: 500;
}
.services-grid-divider {
  width: 80px;
  height: 3px;
  background: #af3731;
  margin-bottom: 2rem;
}
.services-grid-wrapper {
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  background-size: cover;
  background-position: center;
  transition: background-image 0.4s ease;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
  z-index: 2;
}
.grid-cell {
  background-color: #af3731;
  border: 1px solid rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  text-decoration: none;
  color: #fff;
  position: relative;
  transition: background-color 0.35s ease;
  min-height: 200px;
}
.grid-cell:hover {
  background-color: rgba(160, 195, 160, 0.55);
}
/* When any cell is hovered, all cells become transparent to reveal the full-grid background image */
.services-grid-wrapper.grid-hover-active .grid-cell {
  background-color: transparent;
}
.services-grid-wrapper.grid-hover-active .grid-cell:hover {
  background-color: rgba(160, 195, 160, 0.55);
}
/* Hide icons and text of non-hovered cells */
.services-grid-wrapper.grid-hover-active .grid-cell:not(:hover) .grid-icon,
.services-grid-wrapper.grid-hover-active .grid-cell:not(:hover) .grid-title,
.services-grid-wrapper.grid-hover-active .grid-cell:not(:hover) .grid-link {
  opacity: 0;
}
.grid-icon {
  width: 80px;
  height: auto;
  margin-bottom: 1rem;
  transition: opacity 0.3s ease;
}
.grid-icon-hover {
  position: absolute;
  top: 2.5rem;
  opacity: 0;
}
.grid-cell:hover .grid-icon-default {
  opacity: 0;
}
.grid-cell:hover .grid-icon-hover {
  opacity: 1;
}
.grid-title {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0.25rem;
}
.grid-link {
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.8;
}
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .grid-cell {
    min-height: 160px;
    padding: 2rem 1rem;
  }
}

.trust-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.trust-story-text h2 {
  font-weight: 300;
}
.trust-story-text h2 strong {
  font-weight: 500;
}
.trust-story-image img {
  width: 100%;
  border-radius: 4px;
}
@media (max-width: 768px) {
  .trust-story-grid { grid-template-columns: 1fr; }
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.usp-card {
  text-align: center;
  padding: 2rem 1rem;
}
.usp-card img {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
}
.usp-card h4 {
  margin-bottom: 0.5rem;
  font-weight: 500;
}
@media (max-width: 768px) {
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
}

.coupons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.coupon-card {
  background: #fff;
  border: 2px dashed #af3731;
  padding: 2rem;
  text-align: center;
  border-radius: 8px;
}
.coupon-badge {
  background: #af3731;
  color: #fff;
  display: inline-block;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}
.coupon-card h4 {
  margin-bottom: 0.5rem;
}
@media (max-width: 768px) {
  .coupons-grid { grid-template-columns: 1fr; }
}

/* ================================ */
/* HERO HOME (Original Dachexperte.com style) */
/* ================================ */
.hero-home {
  min-height: clamp(520px, 82vh, 720px);
  background-image: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.5) 100%),
                     url('../assets/images/Einfamilienhaus-mit-Ziegeldach.webp');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
}
.hero-home-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-home-text {
  color: #fff;
}
.hero-home-text h1 {
  color: #fff;
  margin-bottom: 0.5rem;
}
.hero-home-text h3 {
  color: #fff;
  font-weight: 400;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero-tagline {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  max-width: 500px;
}
.hero-home-form-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.hero-form-header {
  background: #af3731;
  color: #fff;
  padding: 1.25rem 1.5rem;
}
.hero-form-header h3 {
  color: #fff;
  font-weight: 300;
  font-size: 1.1rem;
  margin-bottom: 0;
}
.hero-form-header h3 strong {
  font-weight: 600;
}
.hero-contact-form {
  padding: 1.5rem;
  position: relative;
}
.hero-contact-form input,
.hero-contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  background: #f9f9f9;
  font-size: 0.95rem;
  font-family: inherit;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s ease;
}
.hero-contact-form input:focus,
.hero-contact-form textarea:focus {
  outline: none;
  border-color: #af3731;
}
.hero-contact-form textarea {
  resize: vertical;
}
@media (max-width: 768px) {
  .hero-home-inner {
    grid-template-columns: 1fr;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .hero-home-form-card {
    max-width: 400px;
  }
}

/* ================================ */
/* CONTACT SECTION (Original Dachexperte.com style) */
/* ================================ */
.contact-section {
  background-color: #233048;
  background-image: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.3) 100%),
                     url('../assets/images/Einfamilienhaus-mit-Ziegeldach.webp');
  background-size: cover;
  background-position: center;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  min-height: 480px;
}
.contact-info-panel {
  background-color: #af3731;
  color: #fff;
  padding: 3rem 2rem;
}
.contact-info-panel h2 {
  color: #fff;
  font-weight: 300;
  margin-bottom: 0;
}
.contact-info-panel h2 strong {
  font-weight: 500;
}
.contact-divider {
  width: 60px;
  height: 2px;
  background: rgba(255,255,255,0.5);
  margin: 1rem 0 2rem;
}
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}
.contact-item i {
  font-size: 1.1rem;
  margin-top: 3px;
  flex-shrink: 0;
}
.contact-maps {
  display: flex;
  flex-direction: column;
  gap: 4%;
}
.contact-maps iframe {
  flex: 1;
}
.contact-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.contact-form-panel .hero-home-form-card {
  width: 100%;
}
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-maps {
    min-height: 400px;
  }
  .contact-maps iframe {
    min-height: 190px;
  }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section {
  padding: 4rem 0;
  background: var(--color-bg-alt);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1rem;
}
.testimonial-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.testimonial-stars {
  color: #f0c040;
  font-size: 1.1rem;
  letter-spacing: 2px;
}
.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  font-style: italic;
  flex-grow: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}
.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-bg-alt);
}
.testimonial-name {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-primary);
}
.testimonial-location {
  font-size: 0.85rem;
  color: #888;
}

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

/* ============================================================
   DISTRICT TAG CLOUD
   ============================================================ */
.districts-section {
  padding: 3rem 0;
}
.district-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-width: 900px;
  margin: 1.5rem auto 0;
}
.district-tag {
  display: inline-block;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.district-tag:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

/* HERO HIGH-CONTRAST ENFORCEMENT */
.hero-section, .hero-compact, .hero-content {
  color: #ffffff !important;
}
.hero-section h1, .hero-compact h1, .hero-content h1 {
  color: #ffffff !important;
}
.hero-subtitle, .hero-content p {
  color: rgba(255, 255, 255, 0.95) !important;
}
.hero-content .btn-outline {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.8) !important;
}
.hero-content .btn-outline:hover {
  background: #ffffff !important;
  color: var(--color-primary) !important;
}

/* Accessibility High Contrast Overrides */
.city-badge-item {
  color: #0f172a !important;
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
}
.city-badge-item.active {
  color: #ffffff !important;
  background: #af3731 !important;
  border-color: #af3731 !important;
}
.seo-block p {
  color: #1e293b !important;
}
.btn-accent {
  background-color: #a32a24 !important;
  color: #ffffff !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-0: 0;
}
