/* ==========================================================================
   TYMORA – DESIGN ENHANCEMENT
   Reduziert die "klassische KI-Optik" durch mehr Persönlichkeit & Dynamik
   ========================================================================== */

/* ────────────────────────────────────────────────────────────────────────
   1. NEUE FARBEN (Warmere, Lebendigere Palette)
   ──────────────────────────────────────────────────────────────────────── */
:root {
  --color-warm-copper: #C85A1A;     /* Warmes Kupfer */
  --color-warm-sand:   #F4B77D;     /* Warmer Sand */
  --color-accent-glow: #FF6B35;     /* Leuchtendes Orange */
  --color-subtle-gray: #F0F0F0;     /* Subtiler Grau-Ton */

  /* Seite ist durchgehend dunkel (siehe style.css Abschnitt 27).
     Damit ziehen auch Browser-Elemente mit: Formularfelder, Dropdowns,
     Scrollbalken und Datumsauswahl. */
  color-scheme: dark;
}

/* ────────────────────────────────────────────────────────────────────────
   1b. LANGE DEUTSCHE WOERTER: kein horizontales Scrollen auf schmalen Geraeten
   ("Datenschutzerklaerung", "Automatenloesungen" usw. sprengen sonst
   die Spalte und die ganze Seite laesst sich seitlich schieben)
   ──────────────────────────────────────────────────────────────────────── */
/* Nur umbrechen, wenn ein Wort wirklich nicht passt. Keine automatische
   Silbentrennung: die wuerde auch "Grossenhain" trennen, obwohl das Wort
   auf eine eigene Zeile passt. */
h1, h2, h3, h4, h5, h6,
p, li, .hero-stat-label, .breadcrumb-list li {
  overflow-wrap: break-word;
  hyphens: manual;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* ────────────────────────────────────────────────────────────────────────
   2. HERO-SECTION: DYNAMISCHERE GESTALTUNG
   ──────────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 680px;
}

/* Asymmetrischer Hintergrund mit Blob-Effekt */
.hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse at center, var(--color-accent-glow) 0%, transparent 70%);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  top: -100px;
  right: -150px;
  opacity: 0.08;
  z-index: 0;
  animation: blob-drift 8s ease-in-out infinite;
}

@keyframes blob-drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* Hero-Badge: mehr Persönlichkeit */
.hero-badge {
  background-color: rgba(232,83,26,0.12) !important;
  border: 2px solid rgba(232,83,26,0.35) !important;
  box-shadow: 0 4px 20px rgba(232,83,26,0.12);
  transform: rotate(-2deg);
  transition: all 0.3s ease;
}

.hero-badge:hover {
  transform: rotate(0deg) scale(1.02);
}

/* Hero-Headline: Lebendiger */
.hero h1 {
  font-weight: 900 !important;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* ────────────────────────────────────────────────────────────────────────
   3. FEATURE-CARDS: PROMINENT & BESSER ERKENNBAR (wie "Über uns")
   ──────────────────────────────────────────────────────────────────────── */
.grid-4 {
  position: relative;
}

.feature-card {
  background: var(--color-surface, var(--color-white));
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 16px;
  border: 1px solid rgba(232,83,26,0.18);
  padding: 2rem !important;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Staggered Rotation für Asymmetrie */
.feature-card:nth-child(1) { transform: rotate(-1deg); }
.feature-card:nth-child(2) { transform: rotate(0.5deg); }
.feature-card:nth-child(3) { transform: rotate(-0.8deg); }
.feature-card:nth-child(4) { transform: rotate(1.2deg); }

.feature-card:hover {
  transform: rotate(0deg) translateY(-10px) !important;
  box-shadow: 0 30px 60px rgba(232,83,26,0.2) !important;
  border-color: rgba(232,83,26,0.45);
}

/* Orange Accent-Balken auf der Seite */
.feature-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 5px;
  background: linear-gradient(to bottom, var(--color-accent), rgba(232,83,26,0.3));
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

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

/* Icon-Styling: Größer & Prominenter */
.feature-icon {
  font-size: 3.5rem !important;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  animation: icon-float 3s ease-in-out infinite;
  line-height: 1;
}

.feature-card:nth-child(1) .feature-icon { animation-delay: 0s; }
.feature-card:nth-child(2) .feature-icon { animation-delay: 0.3s; }
.feature-card:nth-child(3) .feature-icon { animation-delay: 0.6s; }
.feature-card:nth-child(4) .feature-icon { animation-delay: 0.9s; }

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

/* HEADING: Viel größer & deutlicher (wie "Über uns") */
.feature-card h3 {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: var(--color-heading, var(--color-primary)) !important;
  margin-bottom: 0.75rem !important;
  line-height: 1.2 !important;
  overflow-wrap: break-word;
}

/* Description: Besserer Kontrast */
.feature-card p {
  font-size: 0.95rem !important;
  color: var(--color-text) !important;
  line-height: 1.6 !important;
  margin-bottom: 0 !important;
}

/* ────────────────────────────────────────────────────────────────────────
   4. VALUE-CARDS: Mehr Visuelles
   ──────────────────────────────────────────────────────────────────────── */
.value-card {
  background: var(--color-surface, var(--color-white));
  padding: var(--spacing-xl) !important;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.value-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(232,83,26,0.12);
}

.value-card:hover::after {
  opacity: 0.06;
}

.value-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(232,83,26,0.1) 0%, rgba(196,90,26,0.05) 100%);
  border-radius: 12px;
  margin-inline: auto;
  margin-bottom: var(--spacing-md);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.value-card:hover .value-icon {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-warm-copper) 100%);
  transform: scale(1.1) rotate(5deg);
}

/* ────────────────────────────────────────────────────────────────────────
   4b. "KOSTENLOS"-BADGE: darf das Produktfoto nicht verdecken
   ──────────────────────────────────────────────────────────────────────── */
.about-badge {
  bottom: 1rem;
  left: 1rem;
  padding: 0.6rem 0.9rem;
  gap: 0.6rem;
  max-width: calc(100% - 2rem);
}

.about-badge-icon svg {
  width: 26px;
  height: 26px;
}

.about-badge-text strong {
  font-size: 1.05rem;
  line-height: 1.2;
}

.about-badge-text span {
  font-size: 0.8rem;
  line-height: 1.2;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .about-badge {
    bottom: 0.6rem;
    left: 0.6rem;
    padding: 0.5rem 0.7rem;
  }
  .about-badge-icon svg { width: 22px; height: 22px; }
  .about-badge-text strong { font-size: 0.95rem; }
  .about-badge-text span   { font-size: 0.72rem; }
}

/* ────────────────────────────────────────────────────────────────────────
   5. CTA-SECTION: Energischer & Dynamischer
   ──────────────────────────────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 50%, var(--color-warm-copper) 100%) !important;
  background-size: 200% 200%;
  animation: gradient-shift 6s ease infinite;
  position: relative;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M0,60 Q300,10 600,60 T1200,60 L1200,120 L0,120 Z' fill='%23F5F6F7'/%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
}

.cta-section h2 {
  position: relative;
  z-index: 2;
}

.cta-section p {
  position: relative;
  z-index: 2;
}

.cta-actions {
  position: relative;
  z-index: 2;
}

/* ────────────────────────────────────────────────────────────────────────
   6. BUTTONS: Mehr Persönlichkeit
   ──────────────────────────────────────────────────────────────────────── */
.btn-primary {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(232,83,26,0.2);
  font-weight: 700;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  box-shadow: 0 8px 25px rgba(232,83,26,0.35) !important;
}

/* ────────────────────────────────────────────────────────────────────────
   7. ACCENT-LINE: Lebendiger
   ──────────────────────────────────────────────────────────────────────── */
.accent-line {
  height: 3px;
  background: linear-gradient(to right, var(--color-accent), var(--color-warm-copper), var(--color-accent));
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(232,83,26,0.2);
}

.accent-line.centered {
  width: 60px;
  margin-inline: auto;
  margin-bottom: var(--spacing-md);
}

/* ────────────────────────────────────────────────────────────────────────
   8. SECTION-HEADER: Mit Dekoration
   ──────────────────────────────────────────────────────────────────────── */
.section-header {
  position: relative;
}

.section-header::before {
  content: '';
  position: absolute;
  top: -80px;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(ellipse at center, var(--color-accent) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.04;
  pointer-events: none;
}

.section-header h2 {
  position: relative;
  z-index: 2;
}

/* ────────────────────────────────────────────────────────────────────────
   9. FADE-IN ANIMATION (Bereits im Code, aber verstärkt)
   ──────────────────────────────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  animation: fade-in-up 0.7s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ────────────────────────────────────────────────────────────────────────
   10. HOVER EFFECTS: Allgemein lebendiger
   ──────────────────────────────────────────────────────────────────────── */
a {
  transition: all 0.25s ease !important;
}

/* ────────────────────────────────────────────────────────────────────────
   11. RESPONSIVE: Mobile-optimiert
   ──────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero::before {
    width: 300px;
    height: 300px;
    top: 0;
    right: -80px;
  }

  .feature-card {
    transform: rotate(0deg) !important;
    min-height: auto;
    padding: 1.75rem !important;
  }

  .feature-card:hover {
    transform: translateY(-4px) !important;
  }

  .feature-card h3 {
    font-size: 1.4rem !important;
    overflow-wrap: break-word;
  }

  .grid-4 {
    grid-template-columns: 1fr !important;
  }

  .cta-section::after {
    height: 40px;
  }
}

/* ────────────────────────────────────────────────────────────────────────
   12. EXTRA VISUELLES: Geometrische Ornamente
   ──────────────────────────────────────────────────────────────────────── */
.section {
  position: relative;
}

.section:nth-child(odd)::before {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--color-accent) 0%, transparent 70%);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  opacity: 0.04;
  top: 50px;
  left: 0;
  pointer-events: none;
}

.section:nth-child(even)::after {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  background: linear-gradient(45deg, var(--color-accent) 0%, transparent 60%);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  opacity: 0.03;
  bottom: 0;
  right: 0;
  pointer-events: none;
}
