/* Farb-System */
:root {
  --brand-color: #f39c12; /* Kräftiges Bau-Orange/Gelb */
  --text-dark: #2c3e50;
  --text-light: #ffffff;
  --bg-grey: #f8f9fa;
  --transition: 0.3s ease;
}

/* Spezifische Themen-Klassen */
body.theme-sanitaer {
  --brand-color: #0056b3;
} /* Blau */
body.theme-dachbau {
  --brand-color: #a52a2a;
} /* Rot */
body.theme-metallbau {
  --brand-color: #2c3e50;
} /* Anthrazit */
body.theme-galabau {
  --brand-color: #2e7d32;
} /* Grün */
body.theme-geruest {
  --brand-color: #fbc02d;
} /* Signalgelb */
body.theme-bau {
  --brand-color: #08aab6;
} /* Bau-Gelb */

/* Reset & Basics */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  color: var(--text-dark);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.text-center {
  text-align: center;
}
.text-white {
  color: var(--text-light);
}
.section-padding {
  padding-top: 80px;
  padding-bottom: 80px;
}
.bg-blue {
  background-color: var(--brand-color);
}

/* Navigation & Dropdown */
.main-header {
  background: #ffffff;
  padding: 15px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: sticky; /* Preserved from original */
  top: 0; /* Preserved from original */
  z-index: 100; /* Preserved from original */
}

.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}

.sub-brand {
  color: var(--brand-color);
  margin-left: 10px;
  padding-left: 10px;
  border-left: 2px solid #eee;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--brand-color);
}

.nav-cta {
  background: var(--brand-color);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 4px;
}

/* Dropdown Logik */
.dropdown {
  position: relative;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  top: 100%;
}
.dropdown-content a {
  color: var(--text-dark);
  padding: 12px 16px;
  display: block;
  font-size: 0.9rem;
}
.dropdown-content a:hover {
  background-color: #f1f1f1;
}
.dropdown:hover .dropdown-content {
  display: block;
}

/* Hero */
.hero {
  background:
    linear-gradient(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05)), var(--bg-grey);
  padding: 100px 0;
  text-align: center;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--brand-color);
}
.hero-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

/* Buttons */
.btn-main,
.nav-btn {
  background: var(--brand-color);
  color: #fff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  transition: var(--transition);
}
.btn-main:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}
.btn-sec {
  border: 2px solid var(--brand-color);
  color: var(--brand-color);
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
}

/* Grid & Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-content: center; /* Centers the grid tracks if they don't fill width */
}

.grid > * {
  /* flex propert is ignored in grid, but keeping if it's used elsewhere as flex item (unlikely with this class name) */
  flex: 1 1 300px;
  max-width: 380px;
  margin: 0 auto; /* Centers the card within its grid cell */
  width: 100%; /* Ensures it fills available space up to max-width */
}
.card {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  border-bottom: 4px solid var(--brand-color);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  height: 100%; /* Ensures card fills height of wrapper (e.g. anchor) */
  display: flex;
  flex-direction: column;
}
/* Card-Link Stretching */
.card-link {
  text-decoration: none;
  color: inherit;
  display: flex; /* Makes the anchor a flex container */
  height: 100%; /* Fills the flex-wrap parent's line height */
}
.card-link .card {
  width: 100%; /* Full width of the anchor */
  display: flex; /* Enables flex within card for inner alignment if needed */
  flex-direction: column;
  justify-content: center; /* Vertically center content if desired, or 'flex-start' */
  height: auto; /* Grows with content, but constrained by parent height */
  flex: 1; /* Grows to fill the anchor height */
}
.card-link:hover .card {
  transform: translateY(-5px);
  transition: 0.3s;
}

/* Inner Layout Harmony */
.card-inner {
  display: flex;
  gap: 25px; /* More breathing room */
  flex: 1; /* Fill the parent .card height */
}
.card-icon {
  font-size: 2.2rem; /* Slightly smaller to be less dominant */
  line-height: 1;
  width: 50px; /* Fixed width for alignment stability */
  text-align: center;
  flex-shrink: 0; /* Prevent icon from shrinking */
  align-self: center; /* Center icon vertically */
}
.card-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-text h3 {
  margin-top: 0; /* Remove top margin to align with icon */
  margin-bottom: 8px;
  font-size: 1.25rem;
}
.card-text p {
  margin: 0;
  line-height: 1.5;
  color: #555; /* Soften text color slightly */
}
.more-link {
  display: inline-block;
  margin-top: auto; /* Push to bottom */
  padding-top: 15px; /* Add visual spacing */
  font-weight: bold;
  color: var(--brand-color);
  font-size: 0.9rem;
}
.icon-placeholder {
  font-size: 3rem;
  margin-bottom: 15px;
}

/* Region List */
.region-list {
  columns: 2;
  list-style-type: "✓ ";
  padding-left: 20px;
  margin-top: 20px;
}

.contact-section {
  background: #fdfdfd;
  padding: 100px 0;
  border-top: 1px solid #eee;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.checkbox-group {
  display: flex;
  align-items: flex-start; /* Richtet Box oben am Text aus */
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 25px;
}

.checkbox-group input[type="checkbox"] {
  width: auto; /* Verhindert, dass die Box die volle Breite einnimmt */
  margin-top: 5px; /* Korrigiert die vertikale Ausrichtung zum Text */
  cursor: pointer;
}

.checkbox-group label {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #666;
  font-weight: normal; /* Weniger dominant als die Feld-Labels */
  cursor: pointer;
}

.checkbox-group label a {
  color: var(--brand-color);
  text-decoration: underline;
}

/* Info-Seite */
.badge {
  background: var(--brand-color);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}
.trust-list {
  list-style: none;
  padding: 0;
  margin: 25px 0;
}
.trust-list li {
  margin-bottom: 12px;
  font-weight: 500;
}
.phone-link {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--brand-color);
  text-decoration: none;
}

/* Formular-Design */
.contact-form-wrapper {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}
.input-group {
  margin-bottom: 20px;
}
.input-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #444;
}
.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: 0.3s;
}
.input-group input:focus {
  border-color: var(--brand-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}
.btn-submit {
  width: 100%;
  background: var(--brand-color);
  color: white;
  padding: 15px;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.btn-submit:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Abgehobener Footer */
.site-footer {
  background: #1a1a1a; /* Sehr dunkles Grau für Kontrast */
  color: #bdc3c7;
  padding: 60px 0 20px 0;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 50px;
}

.logo-light {
  color: #fff;
  font-weight: bold;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.site-footer h4 {
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.site-footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--brand-color); /* Farblicher Akzent im Footer */
}

.site-footer ul {
  list-style: none;
  padding: 0;
}
.site-footer ul li {
  margin-bottom: 10px;
}
.site-footer a {
  color: inherit;
  text-decoration: none;
  transition: 0.3s;
}
.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid #333;
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  .nav-links {
    display: none;
  } /* Vereinfacht für das Beispiel */
  .region-list {
    columns: 1;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
