/*
 Theme Name:   Ingenieurbüro Roos Child
 Theme URI:    https://www.elegantthemes.com/
 Description:  Divi Child Theme für Ingenieurbüro Roos
 Author:
 Template:     Divi
 Version:      1.0.0
 Text Domain:  divi-child
*/

/* ============================================================
   FARBEN & GRUNDLAGEN
   Primär-Rot:   #A21A17
   Grau:    #575756
   Rot-Light:   #B75F5F
   Hellgrau:     #686868
   Weiß:         #FFFFFF
   ============================================================ */

:root {
  --rot:      #A21A17;
  --rot-dark: #846E66;
  --grau: #575756;
  --rot-light:   #B75F5F;
  --grau-light: #686868;
  --weiss:    #FFFFFF;
  --text:     #999999;
  --text-light:#666666;
}

/* ---- Globale Schrift ---- */
body, p, li {
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--grau);
  font-weight: 700;
  line-height: 1.2;
}

/* ---- Header / Navbar ---- */
#main-header {
  background: #FFFFFF !important;
  border-bottom: 1px solid #E5E5E5;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

#main-header .et_pb_menu__menu a,
.et_menu a,
#top-menu a {
  color: var(--grau) !important;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: none;
}

#main-header .et_pb_menu__menu a:hover,
.et_menu a:hover,
#top-menu a:hover {
  color: var(--rot) !important;
}

/* Logo Text */
.et_pb_logo img,
#logo {
  max-height: 48px !important;
}

/* ---- Divi Native Buttons – hohe Spezifität nötig ---- */

/* Primär: rot ausgefüllt (Standard für alle Divi-Buttons) */
.et_pb_button_module_wrapper a.et_pb_button,
.et_pb_button_module_wrapper .et_pb_button,
a.et_pb_button,
.et_pb_button {
  background-color: var(--rot) !important;
  background: var(--rot) !important;
  color: #FFFFFF !important;
  border: 2px solid var(--rot) !important;
  border-radius: 3px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  padding: 13px 28px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  line-height: 1.3em !important;
}

.et_pb_button_module_wrapper a.et_pb_button:hover,
a.et_pb_button:hover,
.et_pb_button:hover {
  background-color: var(--rot-dark) !important;
  background: var(--rot-dark) !important;
  border-color: var(--rot-dark) !important;
  color: #FFFFFF !important;
}

/* Outline-Variante: Klasse "button-outline" im Modul unter CSS-Klasse eintragen */
.et_pb_button.button-outline,
a.et_pb_button.button-outline {
  background-color: transparent !important;
  background: transparent !important;
  color: var(--rot) !important;
  border: 2px solid var(--rot) !important;
}
.et_pb_button.button-outline:hover,
a.et_pb_button.button-outline:hover {
  background-color: var(--rot) !important;
  color: #FFFFFF !important;
}

/* Dunkel-Variante: Klasse "button-dark" im Modul unter CSS-Klasse eintragen */
.et_pb_button.button-dark,
a.et_pb_button.button-dark {
  background-color: var(--grau) !important;
  background: var(--grau) !important;
  border-color: var(--grau) !important;
  color: #FFFFFF !important;
}
.et_pb_button.button-dark:hover,
a.et_pb_button.button-dark:hover {
  background-color: #999999 !important;
  border-color: #999999 !important;
}

/* Divi entfernt manchmal den Pfeil – ausblenden für cleanen Look */
.et_pb_button::after { display: none !important; }

/* ---- Trennlinie rot unter Überschriften ---- */
.section-headline::after,
.with-underline::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--rot);
  margin-top: 14px;
}

/* ---- Hero Section ---- */
.hero-section {
  background: #FFFFFF;
  overflow: hidden;
}

/* Hero-Row: beide Spalten mittig ausrichten */
.hero-section > .et_pb_row {
  align-items: center !important;
  display: flex !important;
}

/* Hero linke Spalte */
.hero-section .et_pb_column:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Hero Bild: füllt die rechte Spalte vollständig, randlos oben */
.hero-section .et_pb_column:last-child {
  padding: 0 !important;
  overflow: hidden;
}

.hero-section .et_pb_column:last-child .et_pb_image_wrap {
  margin: 0;
  display: block;
  line-height: 0;
}

.hero-section .et_pb_column:last-child .et_pb_image_wrap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 !important;
  object-fit: cover;
}

/* Hero H1 */
.hero-section .et_pb_text h1 {
  font-size: clamp(28px, 3.8vw, 52px);
  font-weight: 800;
  color: var(--grau);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

/* Eyebrow (kleiner Label-Text über dem Heading) */
.hero-eyebrow {
  font-size: 11px !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #888888 !important;
  font-weight: 500;
  margin-bottom: 18px !important;
  line-height: 1.4;
}

/* Rote Akzentlinie (kurzer Strich unter H1) */
.hero-red-line {
  width: 48px;
  height: 3px;
  background: var(--rot);
  margin: 14px 0 22px 0;
  display: block;
}

/* Hero Buttons nebeneinander – robust gegen Divi-eigenes Block-Rendering */
.hero-buttons,
.et_pb_text .hero-buttons {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

/* Divi setzt auf <p>-Kinder des Text-Moduls oft display:block – das überschreiben */
.hero-buttons p {
  display: contents !important; /* p-Tag unsichtbar machen, Inhalt fließt in flex */
  margin: 0 !important;
}

.hero-btn-primary,
.hero-btn-outline,
.hero-btn-dark {
  display: inline-block !important;
  width: auto !important;
  flex: 0 0 auto;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 3px;
  padding: 13px 26px !important;
  white-space: nowrap;
  transition: all 0.2s ease;
  line-height: 1.3;
  box-sizing: border-box;
}

.hero-btn-primary {
  background: var(--rot) !important;
  color: #FFFFFF !important;
  border: 2px solid var(--rot) !important;
}
.hero-btn-primary:hover {
  background: var(--rot-dark) !important;
  border-color: var(--rot-dark) !important;
  color: #FFFFFF !important;
}

.hero-btn-outline {
  background: transparent !important;
  color: var(--rot) !important;
  border: 2px solid var(--rot) !important;
}
.hero-btn-outline:hover {
  background: var(--rot) !important;
  color: #FFFFFF !important;
}

.hero-btn-dark {
  background: var(--grau) !important;
  color: #FFFFFF !important;
  border: 2px solid var(--grau) !important;
}
.hero-btn-dark:hover {
  background: #3a3a3a !important;
  border-color: #3a3a3a !important;
  color: #FFFFFF !important;
}

@media only screen and (max-width: 600px) {
  .hero-buttons {
    flex-direction: column !important;
    align-items: flex-start;
  }
  .hero-btn-primary,
  .hero-btn-outline,
  .hero-btn-dark {
    width: 100% !important;
    text-align: center;
  }
}

/* ---- Trust-Bar (Qualifikations-Icons) ---- */
.trust-bar {
  background: #FFFFFF;
  border-top: 1px solid #E8E8E8;
  border-bottom: 1px solid #E8E8E8;
}

.trust-item {
  text-align: center;
  padding: 28px 12px;
}

.trust-item i,
.trust-item .ti-icon {
  font-size: 26px;
  color: var(--rot);
  display: block;
  margin-bottom: 10px;
  line-height: 1;
}

.trust-item strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--grau);
  line-height: 1.4;
  margin-bottom: 4px;
}

.trust-item span {
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.4;
}

/* ---- Über mich / Expertise (gedämpfte Dunkelsektion) ---- */
.expertise-section {
  background: #777777;    /* Weiches Grau statt hartem Schwarz */
}

.expertise-section h2,
.expertise-section p,
.expertise-section li {
  color: #FFFFFF !important;
}

.expertise-section .et_pb_text h2 {
  color: #FFFFFF;
}

.expertise-section .qualifikation-liste li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.85) !important;
}

.expertise-section .qualifikation-liste li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--rot);
  font-weight: 700;
}

/* ---- Leistungskarten ---- */
.leistungen-section {
  background: #FFFFFF;
}

.leistungs-karte {
  border: 1px solid #E5E5E5;
  padding: 32px;
  height: 100%;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.leistungs-karte:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  transform: translateY(-3px);
}

.leistungs-karte .et_pb_blurb_title {
  font-size: 20px;
  font-weight: 700;
  color: var(--grau);
  margin-bottom: 12px;
}

/* Icon-Farbe für Blurb-Module */
.et_pb_blurb .et-pb-icon,
.et_pb_blurb .et_pb_main_blurb_image svg {
  fill: var(--rot) !important;
  color: var(--rot) !important;
}

/* ---- Für wen tätig bin ---- */
.fuer-wen-section {
  background: var(--grau);
}

.fuer-wen-section .et_pb_blurb {
  background: #FFFFFF;
  padding: 28px;
  border-left: 4px solid var(--rot);
}

/* ---- Anwendungsfälle ---- */
.anwendung-section {
  background: #FFFFFF;
}

.anwendung-section ul li {
  padding: 8px 0 8px 28px;
  position: relative;
  border-bottom: 1px solid #F0F0F0;
  font-size: 15px;
}

.anwendung-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--rot);
  border-radius: 50%;
}

/* ---- Warum mit mir (gedämpft dunkel) ---- */
.warum-section {
  background: #777777;    /* Etwas heller als Expertise-Sektion, ruhiger */
}

.warum-section h2,
.warum-section p,
.warum-section li {
  color: #FFFFFF !important;
}

.warum-section .check-liste li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 12px;
}

.warum-section .check-liste li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--rot);
  font-weight: 700;
}

/* ---- Ablauf / Steps ---- */
.ablauf-section {
  background: #FFFFFF;
}

.ablauf-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.ablauf-step-nr {
  width: 42px;
  height: 42px;
  min-width: 42px;
  background: var(--rot);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

/* ---- Kontakt-Section ---- */
.kontakt-section {
  background: var(--grau);
}

/* Linke Spalte: Kontaktinfo optisch auf gleiche Höhe wie Formular bringen */
.kontakt-section .et_pb_column:first-child .et_pb_text {
  padding-top: 8px;
}

/* Formular-Karte: dezente Border statt aggressivem Schatten */
.kontakt-form-card {
  background: #FFFFFF;
  border: 1px solid #E0E0E0 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}

/* Überschrift "Ihre Anfrage" – gleiche Größe wie linkes "Direkte Kontaktmöglichkeiten" */
.et_pb_contact_form_container .et_pb_contact_main_title,
.et_pb_contact_main_title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #575756 !important;
  margin-bottom: 20px !important;
  line-height: 1.3 !important;
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
}

/* Formularfelder */
.et_pb_contact_form_container input,
.et_pb_contact_form_container textarea,
.et_pb_contact_form_container select {
  border: 1px solid #DDDDDD !important;
  border-radius: 3px !important;
  padding: 11px 14px !important;
  font-size: 14px !important;
  background: #FFFFFF !important;
  color: #333333 !important;
  transition: border-color 0.2s !important;
}

.et_pb_contact_form_container input:focus,
.et_pb_contact_form_container textarea:focus {
  border-color: var(--rot) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(196,29,36,0.10) !important;
}

/* Feldbezeichnungen (Labels) */
.et_pb_contact_form_container label,
.et_pb_contact_field_label {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #555555 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  margin-bottom: 6px !important;
  display: block;
}

/* Submit-Button */
.et_pb_contact_form_container .et_pb_contact_submit {
  background-color: var(--rot) !important;
  color: #FFFFFF !important;
  border: 2px solid var(--rot) !important;
  padding: 12px 28px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  border-radius: 3px !important;
  cursor: pointer;
  transition: background 0.2s !important;
}

.et_pb_contact_form_container .et_pb_contact_submit:hover {
  background-color: var(--rot-dark) !important;
  border-color: var(--rot-dark) !important;
}

/* ---- Sticky Footer CTA Bar ---- */
.sticky-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--rot);
  color: #FFFFFF;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 9999;
  font-weight: 500;
  font-size: 15px;
}

.sticky-cta-bar a {
  color: #FFFFFF !important;
  text-decoration: none;
  font-weight: 700;
}

/* ---- Footer ---- */
#main-footer {
  background: var(--grau);
  color: rgba(255,255,255,0.7);
}

#main-footer a {
  color: rgba(255,255,255,0.7) !important;
}

#main-footer a:hover {
  color: var(--rot) !important;
}

#footer-bottom {
  background: #111111;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ---- Rote Akzent-Linie ---- */
.red-line {
  width: 50px;
  height: 3px;
  background: var(--rot);
  margin: 16px 0 24px 0;
}

/* ---- Responsive ---- */
@media only screen and (max-width: 980px) {
  .hero-section .et_pb_text h1 {
    font-size: 32px;
  }
  .sticky-cta-bar {
    font-size: 13px;
    padding: 12px 16px;
  }
  body {
    padding-bottom: 60px;
  }
}

@media only screen and (max-width: 767px) {
  h2 { font-size: 26px !important; }
  .et_pb_button { font-size: 13px !important; padding: 11px 22px !important; }
  .sticky-cta-bar { flex-direction: column; gap: 6px; font-size: 12px; }
}
