/* KlarHilfe – Modern, Premium, Corporate Design */

:root {
  --color-primary: #1e3a8a; /* Deep corporate blue */
  --color-primary-light: #e0e7ff;
  --color-primary-hover: #1e40af;
  --color-secondary: #0ea5e9;
  --color-accent: #f59e0b; /* Attention grabbing for CTA */
  --color-accent-hover: #d97706;
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-text: #334155;
  --color-heading: #0f172a;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --color-danger-bg: #fef2f2;
  --color-danger-border: #fca5a5;
  --color-danger-text: #991b1b;
  
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  --header-h: 70px;
  --max-w: 1100px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

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

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.text-center { text-align: center; }
.mb-4 { margin-bottom: var(--space-md); }
.mt-4 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-xs); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: var(--header-h);
  position: relative;
}

.brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header-nav {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.header-link {
  color: var(--color-text);
  font-weight: 500;
}
.header-link:hover {
  color: var(--color-primary);
}

/* Buttons */
.btn-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: white !important;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-call:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-call--lg {
  font-size: 1.125rem;
  padding: 1rem 2rem;
}

.btn-call--header {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
}

/* Hero Section */
.hero {
  padding: calc(var(--space-xl) * 1.5) 0;
  background: radial-gradient(circle at top right, #e0e7ff 0%, #f8fafc 60%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(30, 58, 138, 0.1));
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
}

.hero__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(30, 58, 138, 0.1);
  color: var(--color-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.hero__content h1 {
  font-size: 2.75rem;
  letter-spacing: -0.02em;
}

.lead {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
  font-weight: 500;
  color: var(--color-primary);
}

/* Modern Hero Image */
.hero-image-wrapper {
  position: relative;
  border-radius: 24px;
  z-index: 1;
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 20px 40px -10px rgba(30, 58, 138, 0.2);
  display: block;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.floating-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--color-surface);
  padding: 1rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 15px 30px -5px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.badge-icon {
  font-size: 2rem;
}

.badge-text strong {
  display: block;
  color: var(--color-heading);
  font-size: 1.1rem;
  line-height: 1.2;
}

.badge-text span {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* CTA Block */
.cta-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.cta-block--center {
  align-items: center;
}

.phone-number-display {
  font-size: 1.15rem;
  color: var(--color-heading);
  margin: 0.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-block--center .phone-number-display {
  justify-content: center;
}

.phone-number-display a {
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
}

.phone-number-display a:hover {
  text-decoration: underline;
  color: var(--color-primary-hover);
}

.phone-icon {
  font-size: 1.2rem;
}

.price-tag {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.legal-pre-call-short, .legal-note {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  max-width: 400px;
}

/* Services Overview */
.services-overview {
  padding: var(--space-xl) 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-xl);
}

.section-header h2 {
  font-size: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.service-card {
  background: var(--color-surface);
  padding: var(--space-md);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s;
}

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

.service-card__icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

/* Benefits Section (formerly Trust Section) */
.benefits-section {
  padding: var(--space-xl) 0;
  background: linear-gradient(to bottom, var(--color-surface), var(--color-bg));
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

/* Decorative background element */
.benefits-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 120%;
  height: 200%;
  background: radial-gradient(circle, rgba(30, 58, 138, 0.03) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.benefits-section .container {
  position: relative;
  z-index: 1;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.benefit-card {
  padding: var(--space-lg);
  border-radius: calc(var(--radius) * 1.5);
  background: var(--color-surface);
  text-align: center;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Hover effect line at top */
.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -15px rgba(30, 58, 138, 0.15);
  border-color: var(--color-primary-light);
}

.benefit-card:hover::before {
  opacity: 1;
}

.benefit-card__icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  background: var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Subtle pulse animation for icons */
.benefit-card__icon-wrapper::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  border: 2px solid var(--color-primary-light);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s ease;
}

.benefit-card:hover .benefit-card__icon-wrapper::after {
  opacity: 0.5;
  transform: scale(1);
}

.benefit-card__icon {
  font-size: 2.5rem;
  line-height: 1;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.benefit-card h3 {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.benefit-card p {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* FAQ */
.faq-section {
  padding: var(--space-xl) 0;
}

.faq-list {
  list-style: none;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: var(--space-md);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-heading);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}

.faq-question::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--color-primary);
  transition: transform 0.2s;
}

.faq-item.is-open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 var(--space-md);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--color-text-muted);
}

.faq-item.is-open .faq-answer {
  padding: 0 var(--space-md) var(--space-md);
  max-height: 500px;
}

/* Conversion */
.conversion-section {
  padding: var(--space-xl) 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

/* Disclaimers */
.disclaimer-section {
  padding: var(--space-lg) 0;
  background: var(--color-heading);
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}

.disclaimer-box {
  background: var(--color-danger-bg);
  border-left: 4px solid var(--color-danger-border);
  color: var(--color-danger-text);
  padding: var(--space-sm);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Footer */
.site-footer {
  background: var(--color-heading);
  color: rgba(255,255,255,0.7);
  padding: var(--space-lg) 0 var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-links a, .footer-cookie-btn {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.9rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.footer-links a:hover, .footer-cookie-btn:hover {
  color: white;
  text-decoration: underline;
}

/* Sticky Bar */
.sticky-call-bar {
  position: fixed;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  max-width: 90%;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  z-index: 90;
  display: none;
}

.sticky-call-bar.is-visible {
  display: block;
}

.sticky-call-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: white !important;
  padding: 0.75rem 2.5rem;
  border-radius: 50px;
  box-shadow: 0 10px 25px -5px rgba(30, 58, 138, 0.4);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sticky-call-bar a:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -5px rgba(30, 58, 138, 0.5);
}

.sticky-call-bar__action {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.sticky-call-bar__price {
  font-size: 0.75rem;
  opacity: 0.8;
  font-weight: 400;
  margin-top: 2px;
}

/* Page / About */
.page-header {
  padding: var(--space-lg) 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.content-section {
  padding: var(--space-xl) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-xl);
}

.sidebar-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero__layout, .about-grid {
    grid-template-columns: 1fr;
  }
  
  .hero__content h1 {
    font-size: 2rem;
  }
  
  .header-nav {
    display: none; /* simple mobile header */
  }
  
  .header-inner {
    justify-content: center;
  }
  
  .brand {
    position: static;
    transform: none;
  }
}


/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--color-surface);
  box-shadow: 0 -10px 25px rgba(0,0,0,0.1);
  z-index: 1000;
  padding: var(--space-md);
  border-top: 1px solid var(--color-border);
}
.cookie-banner[aria-hidden="true"] {
  display: none;
}
.cookie-banner__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  max-height: 85vh;
  overflow-y: auto;
}
.cookie-banner__title {
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}
.cookie-banner__text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}
.cookie-banner__actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 0.9rem;
}
.cookie-btn--primary {
  background: var(--color-primary);
  color: white;
}
.cookie-btn--secondary {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}
.cookie-btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
  text-decoration: underline;
}
.cookie-settings {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}
.cookie-toggle {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}
.cookie-btn--full {
  width: 100%;
  margin-top: var(--space-sm);
}
