/*
======================================================
  WEBSERVICE KRUMPHOLZ – DIVI CHILD THEME
  Global Design System für Divi 5
  Farben • Typografie • Layout • Komponenten
  Author: Marc Krumpholz
  Version: 1.6
  Template: Divi
======================================================
*/

/* ==================================================
   1) CSS VARIABLEN – GLOBAL BRANDING SYSTEM
   ================================================== */

@font-face {
  font-family: 'Poppins';
  src: url('fonts/poppins-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('fonts/poppins-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url('fonts/open-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {

  /* --- Primärfarben (Branding Blau) --- */
  --primary: #1F3A5F;
  --primary-light: #3E5C85;
  --primary-dark: #16283F;

  /* --- Sekundärfarben (Akzent Orange) --- */
  --secondary: #FFA259;
  --secondary-dark: #D9823B;

  /* --- Neutrale Farben --- */
  --gray-light: #F2F2F2;
  --gray-medium: #E6E6E6;
  --gray-dark: #333333;
  --white: #FFFFFF;

  /* --- Statusfarben --- */
  --success: #4CAF50;
  --warning: #FFC107;
  --error: #D9534F;

  /* --- Typografie --- */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  /* --- Spacing-System --- */
  --space-xxl: 120px;
  --space-xl: 100px;
  --space-lg: 80px;
  --space-md: 40px;
  --space-sm: 20px;
  --space-xs: 10px;

  /* --- Radius-System --- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 20px;

  /* --- Schatten --- */
  --shadow-soft: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-medium: 0 6px 20px rgba(0,0,0,0.12);
  --shadow-strong: 0 10px 30px rgba(0,0,0,0.18);
}



/* ==================================================
   2) TYPOGRAFIE – GLOBAL
   ================================================== */

body {
  font-family: var(--font-body);
  color: var(--gray-dark);
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: -0.3px;
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 28px; }
h4 { font-size: 22px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

/* ==================================================
   2.1) GLOBALER TEXT-RHYTHMUS (H2, P, LISTEN)
   ================================================== */

/* Abstand unter H2 */
.et_pb_section h2 {
  margin-bottom: 20px;
}

/* Absatz-Abstand */
.et_pb_section p {
  margin-bottom: 16px;
}

/* Abstand unter Listen */
.et_pb_section ul,
.et_pb_section ol {
  margin-bottom: 20px;
}

/* Abstand zwischen Bullet-Points */
.et_pb_section li {
  margin-bottom: 8px;
}


/* ==================================================
   3) BUTTONS – GLOBAL COMPONENT
   ================================================== */

.et_pb_button {
  background-color: var(--primary);
  color: var(--white) !important;
  border-radius: var(--radius-sm);
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

/* Button Hover – weiß+ schwarze Schrift */
.et_pb_button:hover {
  background-color: var(--white) !important;
  color: var(--gray-dark) !important;
  box-shadow: none !important;
  transform: translateY(-1px);
}

.header-cta {
  margin-left: 20px;
}

.et-l--header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.et-l--header {
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.et-l--header .et_pb_menu {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* ==================================================
   3.1) HEADER – DIVI 5 STABIL & KOMPAKT
   ================================================== */

/* Header Section kompakt, aber stabil */
.et-l--header .et_pb_section {
  padding-top: 18px !important;
  padding-bottom: 18px !important;
}

/* Row im Header */
.et-l--header .et_pb_row {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  align-items: center;
}

/* Menü-Inner-Wrapper stabilisieren */
.et-l--header .et_pb_menu__inner {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  min-height: 52px !important; /* Divi 5 Mindesthöhe */
  display: flex;
  align-items: center;
}

/* Logo stabil */
.et-l--header .et_pb_image_0_tb_header img {
  max-height: 100px !important;
  height: auto !important;
  width: auto !important;
  padding-left: 0px !important;
}

/* Menülinks kompakt, aber stabil */
.et-l--header nav ul li a {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
}

/* CTA Wrapper */
.et-l--header .header-cta {
  display: flex;
  align-items: center;
  margin-left: 18px !important;
  padding: 0 !important;
}

/* CTA Button */
.et-l--header .header-cta.et_pb_button {
  padding: 10px 20px !important;
  font-size: 25px !important;
  line-height: 1 !important;
  border-radius: var(--radius-sm);
  background-color: var(--primary);
  color: var(--white) !important;
  font-weight: 600;
  margin: 0 !important;
}

/* Button Hover – weiß + schwarze Schrift */
.et-l--header .header-cta.et_pb_button:hover {
  background-color: var(--white) !important;
  color: var(--gray-dark) !important;
  box-shadow: none !important;
  transform: translateY(-1px);
}

/* ==================================================
   4) SPACING – GLOBAL LAYOUT SYSTEM
   ================================================== */

.et_pb_section {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.et_pb_row {
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}

/* ==================================================
   5) SEKTIONEN – DESIGN VARIANTEN
   ================================================== */

.section-light { background-color: var(--white); }
.section-gray { background-color: var(--gray-light); }

.section-dark {
  background-color: var(--primary-dark);
  color: var(--white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
  color: var(--white);
}



/* ==================================================
   6) SERVICE CARDS – PREMIUM COMPONENT
   ================================================== */

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-medium);
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.service-card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-3px) scale(1.01);
}



/* ==================================================
   7) TESTIMONIAL CARDS – PREMIUM COMPONENT
   ================================================== */

.testimonial-card {
  background: var(--white);
  color: var(--gray-dark);
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--gray-medium);
  line-height: 1.6;
}

.testimonial-card strong {
  display: block;
  margin-top: 20px;
  font-weight: 600;
  color: var(--primary);
}

.testimonial-card,
.testimonial-card .et_pb_testimonial_description,
.testimonial-card .et_pb_testimonial_content,
.testimonial-card .et_pb_testimonial_author,
.testimonial-card .et_pb_testimonial_meta {
  color: var(--gray-dark) !important;
}

.testimonial-icon {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 15px;
}



/* ==================================================
   8) ICONS – GLOBAL COLOR SYSTEM
   ================================================== */

.icon-primary { color: var(--primary); }
.icon-secondary { color: var(--secondary); }
.icon-white { color: var(--white); }

/* ==================================================
   9) GRID SYSTEM – FLEXIBLE LAYOUTS
   ================================================== */

.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: var(--space-md);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }



/* ==================================================
   10) RESPONSIVE – MOBILE OPTIMIZATION
   ================================================== */

@media (max-width: 980px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 24px; }
  h4 { font-size: 20px; }
}



/* ==================================================
   11) FORMULAR – CLEAN INPUT DESIGN
   ================================================== */

input, textarea {
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-medium);
  padding: 12px;
}

input:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(31,58,95,0.2);
}



/* ==================================================
   12) SPACING UTILITIES
   ================================================== */

.space-xs { padding: var(--space-xs) 0; }
.space-sm { padding: var(--space-sm) 0; }
.space-md { padding: var(--space-md) 0; }
.space-lg { padding: var(--space-lg) 0; }
.space-xl { padding: var(--space-xl) 0; }



/* ==================================================
   13) TEXT WIDTH UTILITIES
   ================================================== */

.max-700 {
  max-width: 700px;
  margin: 0 auto;
  display: block;
}

.text-narrow {
  padding-left: 0;
  padding-right: 90px;
}



/* ==================================================
   14) IMAGE UTILITIES
   ================================================== */

.max-400 {
  max-width: 400px;
  height: auto;
}

.max-500 {
  max-width: 500px;
  margin: 0 auto;
  display: block;
}

.img-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.img-center-vertical {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}



/* ==================================================
   15) HERO SECTION
   ================================================== */

.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.hero > * {
  position: relative;
  z-index: 2;
}



/* ==================================================
   16) CTA TEXT
   ================================================== */

.cta-center {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

/* CTA Section – globaler Rhythmus */
.cta-center h2 {
  margin-bottom: 16px;
}

.cta-center p {
  margin-bottom: 20px;
}

.cta-center h1,
.cta-center h2 {
  color: var(--white);
}

.cta-center p {
  color: var(--gray-light);
}

/* Ablauf-Liste kompakter machen */
.process-step strong {
  display: block;
  margin-bottom: 4px;
}

.process-step p {
  margin-bottom: 20px;
}


/* ==================================================
   17) DIVI BLURB OVERRIDES
   ================================================== */

.et_pb_blurb.service-card { border: none; }
.et_pb_blurb .et_pb_blurb_content { padding: 0; }

/* ==================================================
   18) MICRO-ANIMATIONS – SCROLL & HOVER EFFECTS
   ================================================== */

/* --- Fade-In Base Class (für alle Elemente nutzbar) --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- Service Cards: sanfter Hover --- */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* --- Testimonial Cards: leichtes Schweben --- */
.testimonial-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

/* --- Bilder: sanfter Zoom beim Hover --- */
.img-zoom {
  transition: transform 0.4s ease;
}

.img-zoom:hover {
  transform: scale(1.03);
}

/* --- Buttons: weicher Hover (ergänzend) --- */
.et_pb_button {
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.et_pb_button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* --- Sections: sanfter Fade-In beim Scrollen --- */
.section-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-animate.visible {
  opacity: 1;
  transform: translateY(0);
}
/* ==================================================
   19) FOOTER – (TEXTMODUL-KONTAKT KOMPAKT)
   ================================================== */

/* Gesamten Footer-Kontaktbereich kompakter machen */
.footer-contact {
  padding-top: 25px;
  padding-bottom: 25px;
}

/* Text kompakter & ruhiger */
.footer-contact p {
  font-size: 15px;
  line-height: 1.4;
  margin: 0 0 6px 0;
  color: var(--gray-light);
}

/* Unicode-Icons (📞 ✉️ 📍) verkleinern */
.footer-contact p span {
  font-size: 16px;
  line-height: 1;
}

/* Links im Kontaktbereich */
.footer-contact a {
  color: var(--gray-light);
  text-decoration: none;
}

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

/* Überschrift "Kontakt" kompakter */
.footer-contact strong {
  font-size: 16px;
  display: block;
  margin-bottom: 8px;
}

.footer-links ul li {
  margin-bottom: 4px;
  line-height: 1.4;
}

.footer-contact img {
  max-width: 110px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 15px;
  margin-top: 20px;
}

/* =============================
   MOBILE OPTIMIERUNGEN
   ============================= */

@media (max-width: 980px) {

  .et_pb_section {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .text-narrow {
    padding-left: 0;
    padding-right: 0;
  }

  .et_pb_button {
    width: 100%;
    text-align: center;
    padding: 16px 20px;
  }

  .et-l--header .et_pb_section {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  .hero {
    min-height: 60vh;
  }

  .service-card,
  .testimonial-card {
    padding: 20px;
  }
}

/* =====================================
   SUB HERO – kompakt & wirklich klein
===================================== */

.sub-hero {
  padding-top: 60px !important;
  padding-bottom: 60px !important;
  min-height: auto !important;
}

.sub-hero .et_pb_row {
  padding: 0 !important;
}

.sub-hero h1 {
  margin-bottom: 10px;
}

.sub-hero p {
  max-width: 700px;
  margin-bottom: 20px;
}

/* Mobile */
@media (max-width: 980px) {
  .sub-hero {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
}

/* Einheitliche Content-Breite für alle Sections */
.section-dark .et_pb_column,
.section-light .et_pb_column {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.content-center {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
