/*
Theme Name: TUMZ Theme
Theme URI: https://tumz.de
Author: UIX Agentur
Author URI: https://uix-agentur.de
Description: Professionelles WordPress-Theme für TUMZ - Transport und Mobilität für die Zukunft. Spezialisiert auf Zertifizierungen für Taxi- und Mietwagenbetriebe.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tumz-theme
Tags: business, professional, certification, transport
*/

/* Professional color palette: Blue, Orange, Black */
:root {
  --background: #fcfcfc;
  --foreground: #262626;
  --card: #ffffff;
  --card-foreground: #262626;
  --primary: #1e40af;
  --primary-foreground: #ffffff;
  --secondary: #f1f5f9;
  --secondary-foreground: #262626;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --accent: #f97316;
  --accent-foreground: #ffffff;
  --border: #e2e8f0;
  --radius: 0.5rem;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
}

.container {
  max-width: 1300px !important;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* Verbesserung: Konsistente Container-Styles für alle Sections */
.hero-section .container,
.stats-section .container,
.content-section .container,
.site-footer .container {
  max-width: 1300px !important;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  background-color: var(--primary);
  padding: 0.5rem;
  border-radius: var(--radius);
  color: var(--primary-foreground);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

/* Mobile Menu Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--foreground);
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

/* Added submenu/dropdown styles */
.nav-menu li {
  position: relative;
}

.nav-menu a {
  text-decoration: none;
  color: var(--foreground);
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s;
  display: block;
}

.nav-menu a:hover {
  color: var(--primary);
}

/* Submenu Container */
.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 220px;
  padding: 0.5rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

/* Show submenu on hover */
.nav-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Submenu Items */
.nav-menu .sub-menu li {
  display: block;
}

.nav-menu .sub-menu a {
  padding: 0.75rem 1.25rem;
  color: var(--foreground);
  font-size: 0.875rem;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.nav-menu .sub-menu a:hover {
  background-color: var(--secondary);
  color: var(--primary);
  border-left-color: var(--primary);
}

/* Nested Submenu (3rd level) */
.nav-menu .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  margin-left: 0.25rem;
}

/* Dropdown Arrow Indicator */
.nav-menu .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.5rem;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
}

.nav-cta {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: opacity 0.2s;
}

.nav-cta:hover {
  opacity: 0.9;
  color: var(--primary-foreground);
}

/* Hero Section */
.hero-section {
  background-color: var(--primary);
  padding: 6rem 0;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  display: inline-block;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: white;
  color: var(--primary);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  background-color: transparent;
  color: white;
  border-color: white;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Stats Section */
.stats-section {
  background-color: var(--card);
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  text-align: center;
}

/* Added 4-column grid variant for certificate seal layout */
.stats-grid-four {
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.stat-certificate {
  display: flex;
  align-items: center;
  justify-content: center;
}

.certificate-seal {
  max-width: 200px;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.certificate-seal:hover {
  transform: scale(1.05);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  /* Wichtig für Zähler-Animation */
  display: inline-block;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Content Sections */
.content-section {
  padding: 6rem 0;
}

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

.section-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  display: inline-block;
}

.section-label.accent {
  color: var(--accent);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: var(--foreground);
}

.section-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 3rem;
  line-height: 1.75;
  max-width: 900px;
}

/* Added responsive two-column layout for idee section */
.idee-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.idee-image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Card Styles */
.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-content {
  padding: 2.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

/* Verbesserung: Stärkere Borders und bessere Schatten */
.card.border-left-primary {
  border-left: 6px solid var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card.border-left-accent {
  border-left: 6px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card.border-top-primary {
  border-top: 6px solid var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card.border-top-accent {
  border-top: 6px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

/* Icon Boxes */
.icon-box {
  padding: 1.25rem;
  border-radius: 0.75rem;
  width: fit-content;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 64px;
}

.icon-box.primary {
  background-color: rgba(30, 64, 175, 0.12);
  color: var(--primary);
}

.icon-box.accent {
  background-color: rgba(249, 115, 22, 0.12);
  color: var(--accent);
}

.icon-box svg {
  width: 32px;
  height: 32px;
  stroke-width: 2.5;
}

/* Footer */
.site-footer {
  background-color: var(--foreground);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo .logo-icon {
  background-color: var(--primary);
}

.footer-logo .logo-text {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    gap: 1rem;
  }

  .nav-menu.active {
    display: flex;
  }

  /* Mobile submenu styles */
  .nav-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--primary);
    margin-left: 1rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    display: none;
  }

  .nav-menu li.menu-item-has-children.open > .sub-menu {
    display: block;
  }

  .nav-menu .menu-item-has-children > a::after {
    float: right;
    transform: rotate(-90deg);
    transition: transform 0.3s ease;
  }

  .nav-menu li.menu-item-has-children.open > a::after {
    transform: rotate(0deg);
  }

  .nav-menu .sub-menu a {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  /* Added responsive layout for 4-column stats grid */
  .stats-grid-four {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .certificate-seal {
    max-width: 150px;
  }

  /* Responsive breakpoint for mobile devices */
  .idee-two-column {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .idee-image-wrapper {
    order: -1;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .stats-grid-four {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.prose {
  max-width: none;
}

.prose p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* Verbesserung: Bessere Typografie für Cards */
.card h3,
.card h4 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
  line-height: 1.3;
}

.card h3 {
  font-size: 1.5rem;
}

.card h4 {
  font-size: 1.25rem;
}

.card p {
  color: var(--muted-foreground);
  line-height: 1.8;
  font-size: 1rem;
  margin: 0;
}

/* Hinzufügen: Spacing-Utilities */
.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.space-y-8 > * + * {
  margin-top: 2rem;
}

.space-y-12 > * + * {
  margin-top: 3rem;
}
