/* ============================================
   DOSHA Kfz-Zulassungsdienst - Main Stylesheet
   ============================================ */

/* Font Awesome Icons */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #FF8C00;
  --primary-light: #FFB84D;
  --primary-dark: #E67E00;
  --secondary-color: #1a1a1a;
  --bg-dark: #0a0a0a;
  --bg-darker: #050505;
  --text-light: #e0e0e0;
  --text-lighter: #f5f5f5;
  --accent-pink: #FF1493;
  --accent-purple: #9D4EDD;
  --accent-green: #00D084;
  --accent-cyan: #00D9FF;
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 140, 0, 0.1);
  box-shadow: 0 4px 30px rgba(255, 140, 0, 0.1);
  animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: var(--transition);
  letter-spacing: 1px;
}

.logo:hover {
  transform: scale(1.05);
  text-shadow: 0 0 20px rgba(255, 140, 0, 0.5);
}

.logo-letter {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  font-weight: 900;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  color: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.logo-text .logo-main {
  color: white;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 1px;
  font-family: 'Arial', sans-serif;
}

.logo-text .logo-sub {
  color: var(--text-light);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  font-family: 'Arial', sans-serif;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-pink));
  transition: var(--transition);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--primary-color);
}

.nav-links a.active::after {
  width: 100%;
}

.call-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.call-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 140, 0, 0.5);
}

.call-btn:active {
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 0.4rem;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  margin-top: 70px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.8), rgba(5, 5, 5, 0.9)), 
              url('../images/hero-bg.jpg') center/cover;
}

/* Für Desktop: fixed background */
@media (min-width: 769px) {
  .hero {
    background-attachment: fixed;
  }
}

/* Für Mobile: scroll background */
@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 140, 0, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(157, 78, 221, 0.1) 0%, transparent 50%);
  animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0;
  animation: float linear infinite;
}

@keyframes float {
  0% {
    opacity: 0;
    transform: translateY(100vh) translateX(0);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) translateX(100px);
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  padding: 2rem;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: clamp(3rem, 10vw, 5.5rem);
  line-height: 1.1;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 30px rgba(255, 140, 0, 0.2);
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  line-height: 1.8;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

/* ============================================
   KEY SERVICES SECTION
   ============================================ */

.key-services {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  padding: 3rem 2rem;
  background-color: var(--bg-darker);
  border-bottom: 1px solid rgba(255, 140, 0, 0.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  margin-top: -50px;
  position: relative;
  z-index: 50;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--border-radius);
}

.key-service-item {
  flex: 1;
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--border-radius);
  background: var(--secondary-color);
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.key-service-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(255, 140, 0, 0.2);
}

.key-service-item i {
  font-size: 2.8rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.key-service-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--text-lighter);
}

.key-service-item p {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.btn-secondary-small {
  background: none;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
  transition: var(--transition);
}

.btn-secondary-small:hover {
  background: var(--primary-color);
  color: var(--bg-dark);
}

/* ============================================
   SECTIONS - ORIGINAL SPACING MIT ÜBERGÄNGEN
   ============================================ */

/* URSPRÜNGLICHE ABSTÄNDE BEIBEHALTEN */
section {
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* VERBESSERTE ÜBERGÄNGE: Mehr Abstand zwischen Sektionen */
.services-section {
  padding: 6rem 2rem;
  margin-top: 2rem;
}

.docs-section {
  padding: 6rem 2rem;
  margin-top: 2rem;
}

.cta-section {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.1), rgba(157, 78, 221, 0.1));
  text-align: center;
  margin-top: 2rem;
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ============================================
   BUTTONS - OPTIMIERTE LÄNGEN
   ============================================ */

.btn {
  padding: 1.1rem 2.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  z-index: -1;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  box-shadow: 0 4px 20px rgba(255, 140, 0, 0.4);
  justify-content: center;
  text-align: center;
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(255, 140, 0, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: inset 0 0 20px rgba(255, 140, 0, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 140, 0, 0.1);
  transform: translateY(-4px);
  box-shadow: inset 0 0 20px rgba(255, 140, 0, 0.2), 0 0 20px rgba(255, 140, 0, 0.3);
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features {
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.8), rgba(5, 5, 5, 0.9)),
              url('../images/bg-features-section.jpg') center/cover;
  position: relative;
  margin-top: 2rem;
}

/* Für Desktop: fixed background */
@media (min-width: 769px) {
  .features {
    background-attachment: fixed;
  }
}

/* Für Mobile: scroll background */
@media (max-width: 768px) {
  .features {
    background-attachment: scroll;
  }
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.6);
}

.features > * {
  position: relative;
  z-index: 2;
}

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

.feature-item {
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
  padding: 2rem 1.5rem;
  background: rgba(26, 26, 26, 0.6);
  border-radius: var(--border-radius);
  transition: var(--transition);
  border: 1px solid rgba(255, 140, 0, 0.1);
}

.feature-item:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 25px rgba(255, 140, 0, 0.2);
}

.feature-icon {
  font-size: 3.2rem;
  margin-bottom: 1.5rem;
}

.feature-item h4 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--primary-color);
}

.feature-item p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.6;
}

/* ============================================
   CARDS & GRID
   ============================================ */

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

.card {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(15, 15, 15, 0.8));
  border: 1px solid rgba(255, 140, 0, 0.2);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 140, 0, 0.1), transparent);
  transition: var(--transition);
}

.card:hover::before {
  left: 100%;
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 12px 35px rgba(255, 140, 0, 0.25);
}

.card-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-lighter);
}

.card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  flex-grow: 1;
  font-size: 1.05rem;
}

.card-features {
  list-style: none;
  margin: 1.5rem 0;
}

.card-features li {
  padding: 0.5rem 0;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.card-features li::before {
  content: '✓';
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

.card-price {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 1.5rem 0 1.5rem 0;
  flex-grow: 0;
}

/* KARTEN-BUTTONS: Optimierte Breite für bessere Proportionen */
.card .btn {
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  justify-content: center;
}

/* ============================================
   SERVICES CTA
   ============================================ */

.services-cta {
  text-align: center;
  margin-top: 4rem;
}

.services-cta .btn {
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
  max-width: 280px;
}

/* ============================================
   DOCS SECTION
   ============================================ */

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

.docs-downloads {
  text-align: center;
  margin-top: 3rem;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.docs-downloads .btn {
  padding: 1.1rem 2rem;
  max-width: 250px;
  width: 100%;
}

/* ============================================
   WUNSCHKENNZEICHEN SECTION
   ============================================ */

.wunschkennzeichen-section {
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid rgba(255, 140, 0, 0.2);
}

.wunschkennzeichen-title {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  font-weight: 700;
}

.wunschkennzeichen-subtitle {
  color: var(--text-light);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
  line-height: 1.7;
}

.wunschkennzeichen-cta {
  text-align: center;
}

.wunschkennzeichen-button {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  padding: 1.2rem 2.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(255, 140, 0, 0.4);
  position: relative;
  overflow: hidden;
  max-width: 350px;
  margin: 0 auto;
}

.wunschkennzeichen-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  z-index: -1;
}

.wunschkennzeichen-button:hover::before {
  left: 100%;
}

.wunschkennzeichen-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(255, 140, 0, 0.6);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-button-container {
  margin-top: 2.5rem;
}

.cta-button {
  padding: 1.3rem 3rem;
  font-size: 1.15rem;
  max-width: 320px;
  margin: 0 auto;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: linear-gradient(135deg, rgba(5, 5, 5, 0.95), rgba(10, 10, 10, 0.95));
  border-top: 1px solid rgba(255, 140, 0, 0.1);
  padding: 4rem 2rem 1.5rem;
  margin-top: 5rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-section h4 {
  color: var(--primary-color);
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.footer-section a:hover {
  color: var(--primary-color);
  margin-left: 5px;
}

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

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  display: inline;
  margin: 0;
}

/* ============================================
   ANIMATIONS & EFFECTS
   ============================================ */

.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
}

.scroll-animate.active {
  animation: fadeInUp 0.8s ease-out forwards;
}

.card.scroll-animate.active {
  animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.feature-item.scroll-animate.active {
  animation: slideUp 0.8s ease-out forwards;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .key-services {
    gap: 2rem;
    padding: 2.5rem 1.5rem;
  }
  
  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 0.8rem 1rem;
  }

  .logo {
    gap: 0.5rem;
  }

  .logo-letter {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }

  .logo-text .logo-main {
    font-size: 1.1rem;
  }

  .logo-text .logo-sub {
    font-size: 0.65rem;
  }

  .call-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    display: none;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 10, 0.98);
    padding: 2rem;
    gap: 1rem;
    border-top: 1px solid rgba(255, 140, 0, 0.1);
  }

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

  .hamburger {
    display: flex;
  }

  .hero {
    margin-top: 60px;
    min-height: 80vh;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  section {
    padding: 4rem 1rem;
  }

  .services-section,
  .docs-section,
  .cta-section {
    padding: 4rem 1rem;
  }

  .key-services {
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 0;
    border-radius: 0;
    padding: 2rem 1rem;
  }

  .key-service-item {
    margin: 0;
    padding: 1.5rem 1rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card {
    padding: 2rem;
  }

  .card-price {
    font-size: 1.5rem;
    margin: 1.5rem 0 1.2rem 0;
  }

  .btn-primary {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

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

  .card p {
    font-size: 1rem;
  }

  .card-features {
    font-size: 0.9rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .feature-item {
    padding: 1.5rem 1rem;
  }

  .feature-icon {
    font-size: 2.5rem;
  }

  .docs-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .docs-downloads {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .docs-downloads .btn {
    max-width: 280px;
  }

  .wunschkennzeichen-section {
    margin-top: 3rem;
    padding-top: 3rem;
  }
  
  .wunschkennzeichen-button {
    width: 100%;
    max-width: 300px;
    justify-content: center;
    font-size: 1rem;
    padding: 1rem 2rem;
  }

  .wunschkennzeichen-title {
    font-size: 1.7rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .call-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  /* KARTEN-BUTTONS AUF MOBILE */
  .card .btn {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  nav {
    padding: 0.8rem;
  }

  .logo {
    font-size: 1.3rem;
  }

  .logo-letter {
    font-size: 1.5rem;
  }

  .hero {
    margin-top: 50px;
    min-height: 70vh;
  }

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

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }
 
  .section-subtitle {
    font-size: 1.05rem;
    margin-bottom: 3rem;
  }

  .card {
    padding: 1.5rem;
  }

  .card-icon {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }

  .btn {
    padding: 1rem 2rem;
    font-size: 0.95rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   MOBILE TABLE OF CONTENTS (TOC) NAVIGATION
   ============================================ */

#mobile-toc-nav {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900; /* Unterhalb des Headers (1000) */
  display: none; /* Standardmäßig ausgeblendet */
  opacity: 0;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  pointer-events: none; /* Verhindert Interaktion, wenn ausgeblendet */
}

#mobile-toc-nav.visible {
  opacity: 1;
  pointer-events: auto;
}

#mobile-toc-list {
  list-style: none;
  padding: 0.5rem 0.3rem;
  margin: 0;
  background: rgba(10, 10, 10, 0.85); /* Dunkler Hintergrund */
  backdrop-filter: blur(5px);
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  border: 1px solid rgba(255, 140, 0, 0.15);
  border-right: none;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
}

#mobile-toc-list li {
  margin: 0.5rem 0;
}

#mobile-toc-list a {
  display: block;
  width: 35px;
  height: 35px;
  line-height: 35px;
  text-align: center;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 50%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  background: rgba(255, 140, 0, 0.05);
  border: 1px solid transparent;
}

#mobile-toc-list a:hover {
  background: var(--primary-color);
  color: var(--bg-dark);
  transform: scale(1.1);
}

#mobile-toc-list a.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-light);
  box-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
  transform: scale(1.1);
}

/* Tooltip-Effekt für die Beschriftung */
#mobile-toc-list a::after {
  content: attr(data-label);
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  padding: 0.3rem 0.6rem;
  margin-right: 10px;
  background: var(--primary-color);
  color: white;
  border-radius: 4px;
  font-size: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  pointer-events: none;
}

#mobile-toc-list a:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Nur auf mobilen Geräten anzeigen (max-width: 768px) */
@media (max-width: 768px) {
  #mobile-toc-nav {
    display: block; /* Auf Mobilgeräten anzeigen */
  }
}

/* Auf größeren Bildschirmen ausblenden */
@media (min-width: 769px) {
  #mobile-toc-nav {
    display: none !important;
  }
}
