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

/*
======================================================
  DIVI 5 – GLOBAL RESET (Stufe 2)
  Entfernt Layout-Pack-Styles, behält Struktur
  Für globales Design-System von WebService Krumpholz
======================================================
*/

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

:root {

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

  /* --- Sekundärfarben (Akzent Orange) --- */
  --secondary: #F4A259;
  --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);
}



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

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

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

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



/* ==================================================
   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.2s ease, transform 0.2s ease;
}

.et_pb_button:hover {
  background-color: var(--secondary);
  transform: translateY(-2px);
  color: var(--white) !important;
}



/* ==================================================
   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.2s ease, transform 0.2s ease;
}

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



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

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



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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}



/* ==================================================
   9) 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; }
}



/* ==================================================
   10) 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);
}


/* ==================================================
   11) 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; }



/* ==================================================
   12) 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;
}



/* ==================================================
   13) CTA TEXT
   ================================================== */

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

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

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



/* ==================================================
   14) DIVI BLURB OVERRIDES
   ================================================== */

.et_pb_blurb.service-card {
  border: none;
}

.et_pb_blurb .et_pb_blurb_content {
  padding: 0;
}