/* S-COM Business Theme - Modern & Professional */

:root {
  --primary-color: #dc0000;
  --secondary-color: #a00000;
  --accent-color: #ff3333;
  --text-dark: #1a1a1a;
  --text-light: #666;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
  --success-color: #28a745;
  --shadow: 0 2px 10px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
header {
  background: var(--bg-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--primary-color);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 70px;
  margin-right: 0;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.05);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  padding: 0.75rem 1.25rem;
  position: relative;
  border-radius: 6px;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 70%;
  height: 2px;
  background: var(--primary-color);
  transition: transform 0.3s ease;
}

nav a:hover {
  color: var(--primary-color);
  background: rgba(220, 0, 0, 0.04);
}

nav a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

nav a.active {
  color: var(--primary-color);
  background: rgba(220, 0, 0, 0.08);
}

nav a.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* Hide legal pages from navigation */
nav li:has(a[href*="/impressum"]),
nav li:has(a[href*="/datenschutz"]) {
  display: none;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 30px;
  height: 3px;
  background: var(--text-dark);
  transition: all 0.3s;
  border-radius: 2px;
}

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

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

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

/* Hero Section */
.hero {
  background: var(--bg-white);
  color: var(--text-dark);
  padding: 5rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

/* Hero Slider */
.hero-slider {
  position: relative;
  width: 100%;
  height: 31.25vw; /* 600/1920 = 31.25% - passt zu Original-Bildern 1920x600 */
  overflow: hidden;
}

.slider-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 0s 1s;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.slide:hover .slide-bg {
  transform: scale(1.02);
  transition: transform 0.6s ease;
}

/* Responsive background layers */
.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  transition: transform 0.6s ease;
}

.slide-bg-desktop {
  display: block;
}

.slide-bg-mobile {
  display: none;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 1s ease-in-out, visibility 0s 0s;
  z-index: 2;
}

.slide-content {
  text-align: center;
  color: white;
  z-index: 2;
  display: none; /* Ausgeblendet - Text ist bereits in Bildern */
}

.slide-icon {
  font-size: 5rem;
  margin-bottom: 2rem;
  animation: float 3s ease-in-out infinite;
}

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

.slide-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.slide-content p {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.slide-content .btn {
  background: var(--primary-color);
  color: white;
  font-size: 1.1rem;
  padding: 1.2rem 3rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  border: 2px solid var(--primary-color);
}

.slide-content .btn:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* Slider Navigation */
.slider-nav {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 15px;
}

.dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.dot:hover,
.dot.active {
  background: white;
  transform: scale(1.2);
}

/* Arrow Navigation */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.3);
  color: white;
  font-size: 2rem;
  padding: 1rem 1.5rem;
  cursor: pointer;
  border-radius: 5px;
  z-index: 10;
  transition: all 0.3s;
  user-select: none;
}

.prev:hover, .next:hover {
  background: rgba(255,255,255,0.5);
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  margin-left: 1rem;
}

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

/* Services Section */
.services {
  padding: 5rem 0;
  background: var(--bg-light);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--secondary-color);
}

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

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.service-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

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

.service-card p {
  color: var(--text-light);
  line-height: 1.8;
}

/* Partner Badges */
.partner-badges {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--bg-light);
  border-radius: 5px;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.9rem;
}

.badge::before {
  content: "✓";
  margin-right: 0.5rem;
  color: var(--success-color);
  font-weight: bold;
}

/* Core Competencies */
.competencies {
  padding: 5rem 0;
  background: var(--bg-white);
}

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

.competency-card {
  background: var(--bg-white);
  color: var(--text-dark);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--primary-color);
}

.competency-card h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.competency-card ul {
  list-style: none;
  margin-top: 1.5rem;
}

.competency-card li {
  padding: 0.8rem 0;
  padding-left: 2rem;
  position: relative;
}

.competency-card li::before {
  content: "▸";
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--primary-color);
}

/* References */
.references {
  padding: 5rem 0;
  background: var(--bg-light);
}

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

.reference-item {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--shadow);
}

.reference-item img {
  max-width: 150px;
  height: auto;
  margin-bottom: 1rem;
  filter: grayscale(100%);
  transition: filter 0.3s;
}

.reference-item:hover img {
  filter: grayscale(0%);
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.blog-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--primary-color);
  padding: 2rem;
}

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

.blog-content {
  padding: 0;
}

.blog-meta {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.blog-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--bg-light);
  color: var(--text-dark);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card h3 {
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-size: 1.4rem;
  line-height: 1.4;
  transition: color 0.3s;
}

.blog-card:hover h3 {
  color: var(--primary-color);
}

.blog-excerpt {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: gap 0.3s;
}

.blog-read-more:hover {
  gap: 1rem;
}

/* Contact Form */
.contact-section {
  padding: 5rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--secondary-color);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

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

.contact-info {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 10px;
}

.contact-info h3 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.contact-item {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: start;
  gap: 1rem;
}

.contact-item i {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-top: 0.2rem;
}

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

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

.footer-section h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: white;
}

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

/* Privacy Notice & Badges */
.privacy-notice {
  margin: 3rem 0 2rem;
  padding: 2rem;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
}

.privacy-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.privacy-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255,255,255,0.1);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.privacy-badge:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.privacy-badge.highlight {
  background: linear-gradient(135deg, #dc0000 0%, #a00000 100%);
  box-shadow: 0 4px 15px rgba(220, 0, 0, 0.3);
}

.privacy-badge.highlight:hover {
  box-shadow: 0 6px 20px rgba(220, 0, 0, 0.4);
  transform: translateY(-2px);
}

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

.badge-text {
  white-space: nowrap;
}

.privacy-text {
  text-align: center;
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

.privacy-text strong {
  color: white;
  font-weight: 600;
}

.privacy-text a {
  color: white;
  text-decoration: underline;
  transition: opacity 0.3s;
}

.privacy-text a:hover {
  opacity: 0.8;
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
  /* Slider-Höhe wird durch padding-bottom gesteuert */
  
  .slide-content h1 {
    font-size: 2.5rem;
  }
  
  .slide-content p {
    font-size: 1.2rem;
  }
  
  .slide-icon {
    font-size: 4rem;
  }
}

/* Responsive */
@media (max-width: 768px) {
  /* Header Mobile */
  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: flex;
  }
  
  /* Hide navigation by default on mobile */
  nav.main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    padding-top: 80px;
  }
  
  nav.main-nav.active {
    right: 0;
  }
  
  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }
  
  nav li {
    border-bottom: 1px solid var(--border-color);
  }
  
  nav a {
    display: block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }
  
  /* Mobile overlay when menu is open */
  body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
  }
  
  /* Slider Mobile - Fully responsive via padding-bottom */
  /* Keine feste Höhe - padding-bottom von Desktop wird verwendet */
  
  /* Switch to mobile images */
  .slide-bg-desktop {
    display: none !important;
  }
  
  .slide-bg-mobile {
    display: block !important;
  }
  
  .slide-content h1 {
    font-size: 1.4rem !important; /* Kompakter */
    margin-bottom: 0.5rem;
    line-height: 1.3;
  }
  
  .slide-content p {
    font-size: 0.85rem !important; /* Kleiner für bessere Übersicht */
    padding: 0 1rem;
    margin-bottom: 1rem;
    line-height: 1.4;
  }
  
  .slide-icon {
    font-size: 2rem !important; /* Kompakter */
    margin-bottom: 0.5rem;
  }
  
  .slide-content .btn {
    font-size: 0.85rem;
    padding: 0.6rem 1.5rem;
  }
  
  /* Arrows smaller and better positioned */
  .prev, .next {
    font-size: 1.2rem;
    padding: 0.4rem 0.8rem;
    top: 45%;
  }
  
  .prev {
    left: 5px;
  }
  
  .next {
    right: 5px;
  }
  
  /* Dots smaller */
  .slider-nav {
    bottom: 15px;
  }
  
  .dot {
    width: 10px;
    height: 10px;
  }
  
  /* General Mobile */
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .contact-grid,
  .competency-grid {
    grid-template-columns: 1fr;
  }
  
  .btn-secondary {
    margin-left: 0;
    margin-top: 1rem;
  }
  
  /* Logo smaller on mobile */
  .logo img {
    height: 50px;
  }
  
  /* Service cards */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  /* Blog cards mobile */
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .blog-card {
    padding: 1.5rem;
  }
  
  .blog-card h3 {
    font-size: 1.2rem;
  }
  
  .blog-excerpt {
    font-size: 0.9rem;
  }
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

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

/* Contact Form Styles */
.contact-form form {
  background: white;
  padding: 2rem;
  border-radius: 12px;
}

.contact-form .form-group,
.contact-form .form-field {
  margin-bottom: 1.5rem;
}

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

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

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

.contact-form button[type="submit"],
.contact-form .button {
  background: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s ease;
}

.contact-form button[type="submit"]:hover,
.contact-form .button:hover {
  background: var(--secondary-color);
}

/* Form Success/Error Messages */
.form-messages,
.alert {
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 2rem;
}

.form-messages.success,
.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-messages.error,
.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Hide default Grav form message - we show our own custom one */
.contact-form .alert,
.contact-form .form-message,
.contact-form [class*="message"] {
  display: none !important;
}

/* Success box animation */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Make sure our custom success box is always visible */
.success-box-large {
  display: block !important;
}

/* ========================================
   MEGA AUFFÄLLIGE ERFOLGSMELDUNG 
   ======================================== */

/* Style für Grav's Standard-Erfolgsnachricht */
.contact-form .notices,
.contact-form .alert,
.contact-form .alert-success,
.contact-form div[class*="success"],
.contact-form div[class*="notice"],
.contact-form div[class*="message"] {
  /* Reset alle Standard-Styles */
  all: unset !important;
  
  /* MEGA GROSSE GRÜNE BOX */
  display: block !important;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
  color: white !important;
  padding: 3rem 2rem !important;
  border-radius: 15px !important;
  margin: 0 0 3rem 0 !important;
  text-align: center !important;
  box-shadow: 0 10px 30px rgba(40,167,69,0.3) !important;
  font-size: 1.3rem !important;
  font-weight: 600 !important;
  line-height: 1.8 !important;
  position: relative !important;
  animation: slideDown 0.5s ease !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* RIESIGES Icon DAVOR */
.contact-form .notices::before,
.contact-form .alert::before,
.contact-form .alert-success::before,
.contact-form div[class*="success"]::before,
.contact-form div[class*="notice"]::before,
.contact-form div[class*="message"]::before {
  content: "✅" !important;
  display: block !important;
  font-size: 5rem !important;
  margin-bottom: 1.5rem !important;
  animation: bounce 1s ease-in-out !important;
  line-height: 1 !important;
}

/* Zusatz-Info DANACH */
.contact-form .notices::after,
.contact-form .alert::after,
.contact-form .alert-success::after,
.contact-form div[class*="success"]::after,
.contact-form div[class*="notice"]::after,
.contact-form div[class*="message"]::after {
  content: "\A\A📧 Sie erhalten in Kürze eine Bestätigungs-E-Mail" !important;
  display: block !important;
  white-space: pre !important;
  background: rgba(255,255,255,0.2) !important;
  padding: 1rem !important;
  border-radius: 8px !important;
  margin-top: 1.5rem !important;
  font-size: 1rem !important;
  font-weight: normal !important;
  line-height: 1.4 !important;
}

/* Animationen */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

/* Privacy Badges - Mobile Responsive */
@media (max-width: 768px) {
  .privacy-notice {
    padding: 1.5rem 1rem;
    margin: 2rem 0 1.5rem;
  }
  
  .privacy-badges {
    gap: 1rem;
  }
  
  .privacy-badge {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
  
  .badge-icon {
    font-size: 1rem;
  }
  
  .privacy-text {
    font-size: 0.85rem;
  }
}

/* Mobile Anpassung */
@media (max-width: 768px) {
  .contact-form .notices,
  .contact-form .alert,
  .contact-form div[class*="success"],
  .contact-form div[class*="message"] {
    padding: 2rem 1.5rem !important;
    font-size: 1.1rem !important;
  }
  
  .contact-form .notices::before,
  .contact-form .alert::before,
  .contact-form div[class*="success"]::before,
  .contact-form div[class*="message"]::before {
    font-size: 4rem !important;
  }
}

/* ========================================
   PAGE CONTENT (for text pages like Impressum, Datenschutz)
   ======================================== */
.page-content {
    padding: 4rem 0;
    background: #fff;
}

.content-article {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
}

.content-article h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
}

.content-article h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.content-article h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

.content-article p {
    line-height: 1.8;
    margin-bottom: 1.2rem;
    color: var(--text-light);
}

.content-article ul,
.content-article ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-light);
}

.content-article li {
    margin-bottom: 0.5rem;
}

.content-article a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.content-article a:hover {
    border-bottom-color: var(--primary-color);
}

.content-article strong {
    color: var(--text-dark);
    font-weight: 600;
}

.content-article table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
}

.content-article th,
.content-article td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.content-article th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .content-article {
        padding: 1rem;
    }
    
    .content-article h1 {
        font-size: 2rem;
    }
    
    .content-article h2 {
        font-size: 1.5rem;
    }
}

/* ========================================
   DROPDOWN NAVIGATION
   ======================================== */

/* Dropdown Container */
.main-nav li.dropdown {
    position: relative;
}

/* Dropdown Toggle */
.dropdown-toggle {
    cursor: pointer;
    position: relative;
}

.dropdown-arrow {
    font-size: 0.7em;
    margin-left: 0.3rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-top: 3px solid var(--primary-color);
    padding: 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 400;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 2rem;
}

/* Active State in Dropdown */
.dropdown-menu a.active {
    background: var(--bg-light);
    color: var(--primary-color);
    font-weight: 600;
}

/* Mobile Dropdown */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-top: none;
        border-left: 3px solid var(--primary-color);
        margin-left: 1rem;
        min-width: auto;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: rgba(255, 255, 255, 0.05);
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-arrow {
        float: right;
    }
    
    .dropdown-menu a {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }
    
    .dropdown-menu a:hover {
        padding-left: 1.5rem;
    }
}

/* Touch Device Dropdown Support */
.dropdown.touch-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ========================================
   CLICK-TO-CALL FLOATING BUTTON
   ======================================== */

/* Floating Button */
.call-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 998;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 18px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(220, 0, 0, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: pulse 2s infinite;
}

.call-floating-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 0, 0, 0.5);
}

.call-floating-btn .icon {
    font-size: 20px;
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(220, 0, 0, 0.4);
    }
    50% {
        box-shadow: 0 6px 30px rgba(220, 0, 0, 0.6);
    }
}

/* Modal Overlay */
.call-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    animation: fadeIn 0.3s ease;
}

.call-modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Content */
.call-modal {
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    position: relative;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Modal Header */
.call-modal-header {
    background: var(--primary-color);
    color: white;
    padding: 25px 30px;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.call-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.call-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.call-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Modal Body */
.call-modal-body {
    padding: 30px;
}

/* Call Options */
.call-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.call-option {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-dark);
}

.call-option:hover {
    border-color: var(--primary-color);
    background: rgba(220, 0, 0, 0.05);
    transform: translateX(5px);
}

.call-option-icon {
    font-size: 32px;
    margin-right: 20px;
    flex-shrink: 0;
}

.call-option-content h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.call-option-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.call-option-content .phone-number {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Callback Form */
.callback-form-container {
    display: none;
}

.callback-form-container.active {
    display: block;
}

.callback-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.form-submit {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.back-to-options {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
}

.back-to-options:hover {
    text-decoration: underline;
}

/* Success Message */
.form-success {
    display: none;
    text-align: center;
    padding: 30px;
}

.form-success.active {
    display: block;
}

.form-success .success-icon {
    font-size: 60px;
    color: #28a745;
    margin-bottom: 15px;
}

.form-success h4 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.form-success p {
    color: var(--text-light);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .call-floating-btn {
        bottom: 20px;
        right: 20px;
        padding: 15px 20px;
        font-size: 14px;
    }
    
    .call-modal {
        width: 95%;
    }
    
    .call-modal-header {
        padding: 20px;
    }
    
    .call-modal-header h3 {
        font-size: 1.2rem;
    }
    
    .call-modal-body {
        padding: 20px;
    }
    
    .call-option {
        padding: 15px;
    }
    
    .call-option-icon {
        font-size: 28px;
        margin-right: 15px;
    }
}

/* Hide on print */
@media print {
    .call-floating-btn,
    .call-modal-overlay {
        display: none !important;
    }
}

/* Mobile Optimization for Call Modal */
@media (max-width: 768px) {
    .call-modal {
        width: 95%;
        max-width: none;
        margin: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .call-modal-header h3 {
        font-size: 1.25rem;
    }
    
    .call-modal-body {
        padding: 20px 15px;
    }
    
    .call-options {
        flex-direction: column;
    }
    
    .call-option {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .callback-form .form-group label {
        font-size: 0.9rem;
    }
    
    .callback-form input,
    .callback-form textarea,
    .callback-form .form-submit {
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
    
    .callback-form .form-submit {
        padding: 14px;
    }
    
    .call-floating-btn {
        right: 15px;
        bottom: 15px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* ========================================
   SPAM PROTECTION
   ======================================== */

/* Honeypot Field - Completely hidden */
.honeypot-wrapper {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.honeypot-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  tabindex: -1 !important;
}

/* Form Protection Indicators */
.form-protected {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-protected::before {
  content: "🛡️";
}
