/**
 * GWH Theme - CSS Framework
 * Migriert von Astra Child Theme
 * 
 * Inhalt:
 * - CSS Variablen (Brand Colors)
 * - Layout Container
 * - Sections
 * - Grid System
 * - Typography
 * - Buttons
 * - Cards
 * - Utilities
 * - Responsive
 */

/* === FARBEN (Brand) === */
:root {
  --gh-primary: #53ad00;
  --gh-primary-dark: #3d8000;
  --gh-secondary: #333333;
  --gh-accent: #ff6600;
  --gh-text: #333333;
  --gh-text-light: #666666;
  --gh-text-muted: #999999;
  --gh-bg-light: #f8f9fa;
  --gh-bg-dark: #1a1a1a;
  --gh-white: #ffffff;
  --gh-border: #e0e0e0;
  --gh-shadow: 0 2px 10px rgba(0,0,0,0.08);
  --gh-radius: 8px;
  --gh-transition: all 0.3s ease;
}

/* === LAYOUT CONTAINER === */
.gh-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.gh-container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.gh-container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === SECTIONS === */
.gh-section {
  padding: 60px 20px;
}

.gh-section-white {
  padding: 60px 20px;
  background: var(--gh-white);
}

.gh-section-light {
  padding: 60px 20px;
  background: var(--gh-bg-light);
}

.gh-section-dark {
  padding: 60px 20px;
  background: var(--gh-bg-dark);
  color: var(--gh-white);
}

.gh-section-primary {
  padding: 60px 20px;
  background: var(--gh-primary);
  color: var(--gh-white);
}

/* === GRID SYSTEM === */
.gh-grid {
  display: grid;
  gap: 25px;
  margin: 20px 0;
  align-items: stretch;
}

.gh-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  align-items: stretch;
}

.gh-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  align-items: stretch;
}

.gh-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.gh-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 25px;
  align-items: stretch;
}

/* === ROW SYSTEM (Flexbox) === */
.gh-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 0 -15px;
}

.gh-row > [class*="gh-col"] {
  padding: 0 15px;
  box-sizing: border-box;
}

.gh-col-1 { flex: 0 0 100%; max-width: 100%; }
.gh-col-1-2 { flex: 0 0 50%; max-width: 50%; }
.gh-col-1-3 { flex: 0 0 33.333%; max-width: 33.333%; }
.gh-col-2-3 { flex: 0 0 66.666%; max-width: 66.666%; }
.gh-col-1-4 { flex: 0 0 25%; max-width: 25%; }
.gh-col-3-4 { flex: 0 0 75%; max-width: 75%; }
.gh-col-auto { flex: 1; }

.gh-row-center { justify-content: center; }
.gh-row-between { justify-content: space-between; }
.gh-row-stretch { align-items: stretch; }
.gh-row-middle { align-items: center; }

/* === TYPOGRAPHY === */
.gh-heading-hero {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.gh-heading-section {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 15px;
}

.gh-heading-card {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
}

.gh-heading-small {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.gh-text {
  color: var(--gh-text);
  line-height: 1.6;
}

.gh-text-light {
  color: var(--gh-text-light);
  line-height: 1.6;
}

.gh-text-muted {
  color: var(--gh-text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.gh-text-white {
  color: var(--gh-white);
}

.gh-text-center {
  text-align: center;
}

.gh-text-intro {
  font-size: 18px;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 30px;
}

/* === BUTTONS === */
.gh-btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none !important;
  border-radius: var(--gh-radius);
  transition: var(--gh-transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.gh-btn-primary {
  background: var(--gh-primary);
  color: var(--gh-white) !important;
  border-color: var(--gh-primary);
}

.gh-btn-primary:hover {
  background: var(--gh-primary-dark);
  border-color: var(--gh-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--gh-shadow);
}

.gh-btn-secondary {
  background: var(--gh-secondary);
  color: var(--gh-white) !important;
  border-color: var(--gh-secondary);
}

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

.gh-btn-outline:hover {
  background: var(--gh-primary);
  color: var(--gh-white) !important;
}

.gh-btn-outline-white {
  background: transparent;
  color: var(--gh-white) !important;
  border-color: var(--gh-white);
}

.gh-btn-outline-white:hover {
  background: var(--gh-white);
  color: var(--gh-primary) !important;
}

.gh-btn-large {
  padding: 18px 36px;
  font-size: 18px;
}

.gh-btn-small {
  padding: 10px 20px;
  font-size: 14px;
}

.gh-btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* === CARDS === */
.gh-card {
  background: var(--gh-white);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--gh-shadow);
  height: 100%;
  box-sizing: border-box;
}

.gh-card-bordered {
  background: var(--gh-white);
  border: 2px solid var(--gh-primary);
  border-radius: 12px;
  padding: 25px;
  height: 100%;
  box-sizing: border-box;
}

.gh-card-dark {
  background: var(--gh-bg-dark);
  color: var(--gh-white);
  border-radius: 12px;
  padding: 30px;
}

/* === CATEGORY CARDS === */
.gh-category-card {
  display: block;
  background: var(--gh-white);
  border: 2px solid var(--gh-border);
  border-radius: 12px;
  padding: 30px 25px;
  text-align: center;
  text-decoration: none !important;
  color: var(--gh-secondary) !important;
  transition: var(--gh-transition);
  height: 100%;
  box-sizing: border-box;
}

.gh-category-card:hover {
  border-color: var(--gh-primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.gh-category-icon {
  font-size: 48px;
  margin-bottom: 15px;
  line-height: 1;
}

.gh-category-card h3 {
  color: var(--gh-secondary);
  margin-bottom: 10px;
}

.gh-category-card p {
  color: var(--gh-text-muted);
  font-size: 14px;
  margin-bottom: 15px;
}

.gh-category-link {
  display: inline-block;
  color: var(--gh-primary);
  font-weight: 600;
  font-size: 14px;
}

.gh-category-card:hover .gh-category-link {
  text-decoration: underline;
}

/* === FEATURE CARDS === */
.gh-feature-card {
  background: var(--gh-white);
  border-radius: 12px;
  padding: 35px 25px;
  text-align: center;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  height: 100%;
  box-sizing: border-box;
}

.gh-feature-icon {
  font-size: 42px;
  margin-bottom: 20px;
  line-height: 1;
}

.gh-feature-card h3 {
  color: var(--gh-secondary);
  margin-bottom: 12px;
}

.gh-feature-card p {
  color: var(--gh-text-light);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* === BRAND CARDS (Hersteller) === */
.gh-brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--gh-white);
  border: 2px solid var(--gh-border);
  border-radius: 10px;
  padding: 25px 15px;
  text-align: center;
  text-decoration: none !important;
  transition: var(--gh-transition);
  min-height: 120px;
  height: 100%;
  box-sizing: border-box;
}

.gh-brand-card:hover {
  border-color: var(--gh-primary);
  background: var(--gh-primary);
}

.gh-brand-card strong {
  display: block;
  color: var(--gh-secondary);
  font-size: 18px;
  margin-bottom: 5px;
  transition: color 0.3s ease;
}

.gh-brand-card span {
  color: var(--gh-text-muted);
  font-size: 12px;
  transition: color 0.3s ease;
}

.gh-brand-card:hover strong,
.gh-brand-card:hover span {
  color: var(--gh-white);
}

.gh-brand-all {
  background: var(--gh-bg-light);
  border-style: dashed;
}

.gh-brand-all:hover {
  background: var(--gh-secondary);
  border-color: var(--gh-secondary);
}

/* === HERO === */
.gh-hero {
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--gh-primary) 0%, var(--gh-primary-dark) 100%);
  color: var(--gh-white);
}

.gh-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.gh-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
}

/* === BADGE === */
.gh-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: var(--gh-white);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* === LISTS === */
.gh-list {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.gh-list li {
  padding: 8px 0 8px 30px;
  position: relative;
  line-height: 1.5;
}

.gh-list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gh-primary);
  font-weight: bold;
  font-size: 1.1em;
}

/* === DIVIDERS === */
.gh-divider {
  border: none;
  height: 1px;
  background: var(--gh-border);
  margin: 25px 0;
}

.gh-divider-thick {
  height: 3px;
  background: var(--gh-primary);
  width: 80px;
}

/* === FIGURES === */
.gh-figure {
  margin: 0;
}

.gh-figure img {
  max-width: 100%;
  height: auto;
  border-radius: var(--gh-radius);
}

/* === UTILITIES === */
.gh-mt-0 { margin-top: 0 !important; }
.gh-mt-1 { margin-top: 10px !important; }
.gh-mt-2 { margin-top: 20px !important; }
.gh-mt-3 { margin-top: 30px !important; }
.gh-mt-4 { margin-top: 40px !important; }

.gh-mb-0 { margin-bottom: 0 !important; }
.gh-mb-1 { margin-bottom: 10px !important; }
.gh-mb-2 { margin-bottom: 20px !important; }
.gh-mb-3 { margin-bottom: 30px !important; }
.gh-mb-4 { margin-bottom: 40px !important; }

.gh-pt-0 { padding-top: 0 !important; }
.gh-pb-0 { padding-bottom: 0 !important; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .gh-grid-4,
  .gh-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gh-heading-hero {
    font-size: 36px;
  }
  
  .gh-heading-section {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .gh-section,
  .gh-section-white,
  .gh-section-light,
  .gh-section-dark,
  .gh-section-primary {
    padding: 40px 15px;
  }
  
  .gh-grid-3,
  .gh-grid-4,
  .gh-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gh-row {
    flex-direction: column;
    gap: 20px;
  }
  
  .gh-col-1-2,
  .gh-col-1-3,
  .gh-col-2-3,
  .gh-col-1-4,
  .gh-col-3-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .gh-heading-hero {
    font-size: 28px;
  }
  
  .gh-heading-section {
    font-size: 24px;
  }
  
  .gh-hero {
    padding: 50px 15px;
  }
  
  .gh-hero h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .gh-grid-2,
  .gh-grid-3,
  .gh-grid-4,
  .gh-grid-5 {
    grid-template-columns: 1fr;
  }
  
  .gh-heading-hero {
    font-size: 24px;
  }
  
  .gh-card,
  .gh-category-card,
  .gh-feature-card {
    padding: 20px;
  }
}

/* === SILBENTRENNUNG === */
body {
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
}

/* === WORDPRESS CLEANUP === */
.gh-grid br,
.gh-grid-2 br,
.gh-grid-3 br,
.gh-grid-4 br,
.gh-grid-5 br {
  display: none !important;
}

.gh-grid > p:empty,
.gh-grid-2 > p:empty,
.gh-grid-3 > p:empty,
.gh-grid-4 > p:empty,
.gh-grid-5 > p:empty {
  display: none !important;
}

.gh-brand-card br {
  display: none !important;
}
