/* ===================================================================
   GMBHSUPPORT - MOBILE-OPTIMIZED PROFESSIONAL DESIGN
   Clean | Trustworthy | Responsive
   =================================================================== */

:root {
  /* Light Professional Color System */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #e9ecef;
  
  --text-primary: #1a1a1a;
  --text-secondary: #4a5568;
  --text-tertiary: #718096;
  
  /* Professional Accent Colors */
  --accent-primary: #2563eb;
  --accent-success: #059669;
  --accent-warning: #d97706;
  --accent-danger: #dc2626;
  
  /* Borders & Shadows */
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
  
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1240px;
  --header-height: 72px;
  
  --font-sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.375rem, 3vw, 2rem); margin-bottom: 0.875rem; }
h4 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); margin-bottom: 0.75rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  line-height: 1.7;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent-success);
}

.container {
  width: min(var(--max-width), calc(100% - 3rem));
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 3rem;
}

.section-title {
  position: relative;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-tertiary);
  margin-top: 0.75rem;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }
.grid-2-section { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; }

/* Professional Card System */
.card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-primary);
}

.card-success {
  border-left: 4px solid var(--accent-success);
  background: linear-gradient(to right, rgba(5, 150, 105, 0.03), transparent);
}

.card-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: 1.75rem;
  color: white;
  background: linear-gradient(135deg, var(--accent-primary), #1e40af);
  box-shadow: var(--shadow-md);
}

/* Professional Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--accent-success);
  color: white;
  border: 1px solid var(--accent-success);
}

.btn-primary:hover {
  background: #047857;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
  text-decoration: none;
}

.btn-secondary {
  background: white;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
  background: var(--bg-secondary);
  color: var(--text-primary);
  text-decoration: none;
}

.btn-large {
  padding: 1.125rem 2.25rem;
  font-size: 1.0625rem;
}

/* Badge System */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  background: rgba(5, 150, 105, 0.1);
  color: var(--accent-success);
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-success);
  box-shadow: 0 0 8px rgba(5, 150, 105, 0.5);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Stats Box */
.stats-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  padding: 2rem 2.5rem;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  flex-wrap: nowrap;
  max-width: 700px;
  margin: 0 auto;
}

.stat {
  flex: 1 1 180px;
  min-width: 180px;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-success);
  line-height: 1.2;
  margin-bottom: 0.5rem;
  white-space: nowrap;
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.5;
  white-space: nowrap;
}

/* Form System */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1.125rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: white;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius);
  outline: none;
  transition: all 0.2s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-tertiary);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}

.form-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
}

/* Alert System */
.alert {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  border-left: 4px solid;
  font-weight: 500;
}

.alert-success {
  background: rgba(5, 150, 105, 0.05);
  border-color: var(--accent-success);
  color: #065f46;
}

.alert-error {
  background: rgba(220, 38, 38, 0.05);
  border-color: var(--accent-danger);
  color: #991b1b;
}

.alert-warning {
  background: rgba(217, 119, 6, 0.05);
  border-color: var(--accent-warning);
  color: #92400e;
}

/* Utilities */
.text-center { text-align: center; }
.text-success { color: var(--accent-success); }
.text-warning { color: var(--accent-warning); }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Feature List */
.feature-list {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--accent-success);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.feature-item:hover {
  background: white;
  border-left-color: var(--accent-primary);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-success);
  color: white;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
}

/* Highlight Box */
.highlight-box {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(5, 150, 105, 0.05));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
}

/* ============================================
   MOBILE NAVIGATION
   ============================================ */

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: white;
  z-index: 999;
  padding: 5rem 2rem 2rem;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  overflow-y: auto;
}

.mobile-nav-menu.active {
  right: 0;
}

.mobile-nav-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-menu a {
  display: block;
  padding: 1rem 0;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.0625rem;
  border-bottom: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.mobile-nav-menu a:hover {
  color: var(--accent-success);
  padding-left: 0.5rem;
}

.mobile-nav-menu a:first-of-type {
  border-top: 1px solid var(--border-light);
}

/* Desktop Navigation ausblenden auf Mobile */
nav > div > div {
  display: flex;
}

/* ============================================
   COOKIE BANNER
   ============================================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  padding: 1.5rem 2rem;
  z-index: 9999;
  display: none;
  border-top: 3px solid var(--accent-success);
}

.cookie-banner.show {
  display: block;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 300px;
}

.cookie-text h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.125rem;
  color: var(--text-primary);
}

.cookie-text p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-size: 0.9375rem;
}

.cookie-btn-accept {
  background: var(--accent-success);
  color: white;
}

.cookie-btn-accept:hover {
  background: #047857;
  transform: translateY(-1px);
}

.cookie-btn-necessary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.cookie-btn-necessary:hover {
  background: #e5e7eb;
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */

@media (max-width: 1024px) {
  .grid-3, .grid-4 { 
    grid-template-columns: repeat(2, 1fr); 
  }
  
  .grid-2-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 768px) {
  :root { 
    --header-height: 64px; 
  }
  
  .container { 
    width: calc(100% - 2rem); 
    padding: 0 1rem; 
  }
  
  .section { 
    padding: clamp(2rem, 6vw, 3.5rem) 0; 
  }
  
  .section-header {
    margin-bottom: 2rem;
  }
  
  /* Grids auf Mobile einspurig */
  .grid-2, .grid-3, .grid-4, .grid-2-section { 
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Stats-Box Mobile */
  .stats-box {
    flex-direction: column;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem 1rem;
    max-width: 100%;
  }
  
  .stat {
    flex: 1 1 100%;
    min-width: 100%;
    width: 100%;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
  }
  
  .stat-value {
    font-size: 1.75rem;
    white-space: normal;
  }
  
  .stat-label {
    font-size: 0.8125rem;
    white-space: normal;
  }
  
  /* Buttons Mobile */
  .btn { 
    padding: 0.75rem 1.5rem; 
    font-size: 0.9375rem; 
  }
  
  .btn-large { 
    padding: 1rem 2rem; 
    font-size: 1rem; 
    width: 100%;
  }
  
  /* Cards Mobile */
  .card {
    padding: 1.5rem;
  }
  
  /* Feature Items Mobile */
  .feature-item {
    padding: 1rem;
    flex-direction: column;
    text-align: left;
  }
  
  /* Mobile Navigation anzeigen */
  .mobile-menu-toggle {
    display: flex;
  }
  
  /* Desktop Navigation ausblenden */
  nav > div > div:last-child {
    display: none !important;
  }
  
  /* Cookie Banner Mobile */
  .cookie-banner {
    padding: 1rem;
  }
  
  .cookie-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .cookie-text {
    min-width: 100%;
  }
  
  .cookie-buttons {
    width: 100%;
    flex-direction: column;
  }
  
  .cookie-btn {
    width: 100%;
  }
}

/* ============================================
   RESPONSIVE - SMALL MOBILE
   ============================================ */

@media (max-width: 480px) {
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.625rem; }
  h3 { font-size: 1.375rem; }
  
  .stat-value {
    font-size: 1.5rem;
  }
  
  .badge {
    font-size: 0.8125rem;
    padding: 0.375rem 0.875rem;
  }
}
