/* Design System - Krankentransport 2000 */
:root {
  --primary: #59C900;
  --primary-dark: #45a000;
  --primary-light: #6de600;
  --text-dark: #262626;
  --text-light: #666666;
  --background: #ffffff;
  --gray-light: #f5f5f5;
  --gray-border: #e5e5e5;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--background);
}

/* Header & Navigation */
header {
  background: white;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.logo {
  height: 60px;
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s;
}

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

.language-selector {
  display: flex;
  align-items: center;
}

.language-select {
  padding: 0.4rem 2rem 0.4rem 0.75rem;
  border-radius: 0.5rem;
  border: 2px solid var(--gray-border);
  font-weight: 500;
  cursor: pointer;
  background: white url("data:image/svg+xml,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23262626'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
  appearance: none;
}

.language-select:focus {
  outline: none;
  border-color: var(--primary);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Main Content */
main {
  min-height: calc(100vh - 400px);
  padding-bottom: 100px;
}

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.hero-dark {
  background: #000000;
}

.hero-red {
  background: #ffffff;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.hero-header-image {
  max-width: 90%;
  width: 90%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-hover);
}

.hero-text-block {
  color: var(--text-dark);
  text-align: center;
}

.hero-keywords {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.hero-keywords span {
  padding: 0;
  border: none;
  background: transparent;
}

.hero-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero-phone-icon {
  font-size: 1.5rem;
}

.hero-phone-number {
  white-space: nowrap;
}

.hero-address {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-light);
}

.hero-image-section {
  padding: 0.25rem 2rem 0;
  margin-bottom: 5rem;
}

.section:first-of-type {
  padding-top: 6rem;
}

.hero-car-image {
  display: block;
  margin: -1rem auto 0;
  max-width: min(840px, 100%);
  width: 100%;
  transform: scale(1.22);
  transform-origin: center top;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-hover);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

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

.btn {
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

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

/* Social Media Section */
.social-section {
  background: var(--gray-light);
  padding: 3rem 2rem;
  text-align: center;
}

.social-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.social-icons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.social-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  text-decoration: none;
  font-size: 2rem;
}

.social-icon:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.social-icon.instagram { color: #E1306C; }
.social-icon.facebook { color: #1877F2; }
.social-icon.whatsapp { color: #25D366; }
.social-icon.twitter { color: #1DA1F2; }
.social-icon.email { color: var(--primary); }

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

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

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Cards */
.card {
  background: white;
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

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

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

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

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

/* Sections */
.section {
  padding: 4rem 2rem;
}

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

.section-subtitle {
  font-size: 1.25rem;
  text-align: center;
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* Testimonials */
.testimonial {
  background: var(--gray-light);
  padding: 2rem;
  border-radius: 0.5rem;
  border-left: 4px solid var(--primary);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.testimonial-author {
  font-weight: 600;
  color: var(--text-dark);
}

.stars {
  color: #fbbf24;
  margin-top: 0.5rem;
}

/* Contact Info */
.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary);
  margin-top: 0.25rem;
}

.contact-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.contact-content a {
  color: var(--primary);
  text-decoration: none;
}

.contact-content a:hover {
  text-decoration: underline;
}

/* Service List with Checkboxes */
.service-list {
  list-style: none;
  margin: 1rem auto 0;
  padding: 0;
  max-width: 450px;
  text-align: left;
}

.service-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--text-light);
  text-align: left;
}

.service-list li::before {
  content: "☑";
  position: absolute;
  left: 0;
  top: 0.05rem;
  color: var(--primary);
}

.billing-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.billing-box details {
  background: #ffffff;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-border);
}

.billing-box summary {
  cursor: pointer;
  font-weight: 500;
}

.billing-box summary::-webkit-details-marker {
  display: none;
}

.billing-box summary::after {
  content: "▼";
  float: right;
  font-size: 0.75rem;
  opacity: 0.6;
}

.billing-box details[open] summary::after {
  content: "▲";
}

.billing-box p {
  margin-top: 0.75rem;
  color: var(--text-light);
  text-align: left;
}

.billing-small {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-light);
}

.billing-small p {
  margin-top: 0.75rem;
}

.billing-small ul {
  margin: 0.5rem 0 0 1.25rem;
  padding: 0;
}

.billing-small li {
  margin: 0.35rem 0;
}

.billing-box details {
  text-align: left;
  width: 100%;
}

/* Footer */
footer {
  background: var(--text-dark);
  color: white;
  padding: 3rem 2rem 1rem;
}

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

.footer-section h3 {
  margin-bottom: 1rem;
  color: var(--primary);
}

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

.footer-section a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-section a:hover {
  color: var(--primary);
}

.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);
}

/* Bottom Contact Bar */
.contact-bar {
  background: #111111;
  color: white;
  padding: 0.35rem 0;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
}

.contact-bar-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Hide Facebook item in contact bar (all pages) */
.contact-bar a[href*="facebook.com"] {
  display: none !important;
}

/* Hide WhatsApp in contact bar (can be unhidden by removing this rule) */
.contact-bar a[href*="whatsapp.com"] {
  display: none !important;
}

/* Hide WhatsApp button on Contact page overlay */
.contact-buttons-overlay a[href*="whatsapp.com"] {
  display: none !important;
}

/* Larger font for service-list on home page */
.home-service-list,
.home-service-list li {
  font-size: 1.15rem;
}

/* Bold companion sentence: center alignment */
.companion-bold {
  margin-top: 1rem;
  font-weight: 700;
  text-align: center;
}

/* Billing note below companion sentence (home page) */
.billing-note {
  margin-top: 0.5rem;
  text-align: center;
}

/* Contact page: phone number at h1 size with icon */
.contact-page-phone {
  font-size: 2.5rem;
  font-weight: 700;
  margin-top: 0.5rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Services page footer: phone number headline size with icon */
.footer-phone-prominent {
  font-size: 2.5rem;
  font-weight: 700;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: white;
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.contact-bar-item:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.contact-bar-icon {
  font-size: 1.1rem;
}

/* Contact Page Image Overlay */
.contact-image-wrapper {
  text-align: center;
  margin: 2rem 0;
}

.contact-main-image {
  display: block;
  margin: 0 auto;
  max-width: 70%;
  width: 70%;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-hover);
}

.contact-buttons-overlay {
  position: relative;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
}

.contact-overlay-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.5);
  color: #FFFFFF;
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.contact-overlay-button:hover {
  background: rgba(89, 201, 0, 0.8);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Modal Contact Form */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal.open {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 2rem;
  max-width: 480px;
  width: 90%;
  box-shadow: var(--shadow-hover);
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--gray-border);
  font: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(89, 201, 0, 0.1);
}

.form-privacy-notice {
  font-size: 0.875rem;
  color: var(--text-light);
  margin: 1rem 0 0;
}

.form-privacy-notice a {
  color: var(--primary);
  text-decoration: underline;
}

.modal-content form button[type="submit"] {
  display: block;
  margin: 1.5rem auto 0;
}

/* Responsive */
@media (max-width: 768px) {
  /* Header Mobile Optimization */
  header {
    padding: 0;
  }
  
  .header-container {
    padding: 0.5rem 1rem;
    gap: 0.75rem;
    flex-wrap: nowrap;
  }
  
  nav ul {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
  }

  /* Force single-line header nav on German pages (mobile) */
  html[lang="de"] nav ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  
  html[lang="de"] nav ul::-webkit-scrollbar {
    height: 0;
  }
  
  nav a {
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
  }
  
  .language-selector {
    margin-left: auto;
  }
  
  .language-select {
    padding: 0.3rem 1.5rem 0.3rem 0.6rem;
    font-size: 0.85rem;
  }
  
  /* Footer Mobile Optimization */
  footer {
    padding: 1.5rem 1rem 0.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  
  .footer-section {
    padding: 0;
  }
  
  .footer-section h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .footer-section p,
  .footer-section ul {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
  }
  
  .footer-section a {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    padding: 0.125rem 0;
  }
  
  .footer-section ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  .footer-section ul li {
    margin: 0;
  }
  
  .footer-bottom {
    padding-top: 1rem;
    font-size: 0.75rem;
  }
  
  /* Hero Mobile */
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero {
    padding: 2rem 1rem;
  }
  
  .hero-content {
    gap: 1rem;
  }
  
  .hero-keywords {
    font-size: 1rem;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  
  /* Social Icons Mobile */
  .social-icons {
    gap: 1rem;
  }
  
  .social-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  /* Contact Bar Mobile */
  .contact-bar-container {
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
  }
  
  .contact-bar-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    gap: 0.25rem;
  }
  
  .contact-bar-icon {
    font-size: 0.9rem;
  }
  
  /* Container Mobile */
  .container {
    padding: 1rem;
  }
  
  .section {
    padding: 2rem 1rem;
  }
}
