:root {
  --primary: #2C5282;
  --primary-light: #3182CE;
  --secondary: #38B2AC;
  --secondary-light: #4FD1C5;
  --dark: #1A202C;
  --dark-blue: #002856;
  --light: #F7FAFC;
  --gray: #718096;
  --gray-light: #E2E8F0;
  --error: #e53e3e;
  --success: #38a169;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
}

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

/* Header styles */
header {
  background-color: var(--dark-blue);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  color: white;
}

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

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 50px;
  margin-right: 10px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
}

.brand-slogan {
  font-size: 0.9rem;
  color: var(--secondary-light);
}

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

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.contact-btn {
  background-color: var(--secondary);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 5px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-btn:hover {
  background-color: var(--secondary-light);
}

/* Hero section */
.hero {  
  background: linear-gradient(rgba(0, 40, 86, 0.85), rgba(0, 40, 86, 0.95)), url('/img/logo.webp');
  background-size: cover;
  background-position: center;
  padding: 6rem 0;
  color: white;
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-btns {
  display: flex;
  gap: 1rem;
}

.primary-btn {
  background-color: var(--secondary);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 5px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s ease;
}

.primary-btn:hover {
  transform: translateY(-3px);
}

.secondary-btn {
  background-color: transparent;
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 5px;
  border: 1px solid white;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

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

/* Services section */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.services-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.category-btn {
  background-color: white;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-btn:hover, .category-btn.active {
  background-color: var(--primary);
  color: white;
}

.services-container {
  margin-top: 3rem;
}

.category-section {
  margin-bottom: 4rem;
}

.category-title {
  font-size: 1.8rem;
  color: var(--primary);
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--secondary-light);
  margin-bottom: 2rem;
}

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

.services-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-img {
  height: 200px;
  background-color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.service-img::before {
  content: '';
  position: absolute;
  background-image: url('/api/placeholder/400/200');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.service-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

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

.service-description {
  color: var(--gray);
  margin-bottom: 1.5rem;
  flex: 1;
}

.service-features {
  list-style-type: none;
  margin-bottom: 1.5rem;
}

.service-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--gray);
}

.service-features li::before {
  content: '✓';
  color: var(--secondary);
  position: absolute;
  left: 0;
  top: 0;
}

.service-link {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  margin-top: auto;
}

.service-link span {
  margin-left: 0.5rem;
}

.services-all-link {
  text-align: center;
  margin-top: 2rem;
}

.services-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  transition: background-color 0.3s ease;
}

.services-btn:hover {
  background-color: var(--primary-light);
  transform: translateY(-3px);
}

/* Service-Links Container für horizontale Anordnung */
.service-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

/* Basis-Styling für beide Links */
.service-link {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.service-link span {
  margin-left: 0.5rem;
}

/* Spezielles Styling für den KI-Link */
.service-link.ki-link {
  color: white;
  background-color: var(--primary);
}

.service-link.ki-link:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

/* Hover-Effekt für den normalen Link */
.service-link:not(.ki-link):hover {
  background-color: var(--gray-light);
}

/* Benefits section */
.benefits {
  background-color: var(--gray-light);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.benefit-card {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.benefit-icon {
  width: 60px;
  height: 60px;
  background-color: var(--secondary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  align-self: flex-start;
  font-size: 2.5rem;
}

.benefit-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.benefit-list {
  list-style-position: inside;
  margin-left: 0.5rem;
}

.benefit-list li {
  margin-bottom: 0.5rem;
  color: var(--gray);
  position: relative;
  padding-left: 1.5rem;
  list-style-type: none;
}

.benefit-list li::before {
  content: '✓';
  color: var(--secondary);
  position: absolute;
  left: 0;
  top: 0;
}

/* Team section */
.team-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-bottom: 3rem;
}

.team-member {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: row;
}

.team-img {
  width: 250px;
  min-width: 250px;
  height: auto;
  overflow: hidden;
}

.team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team-member:hover .team-img img {
  transform: scale(1.05);
}

.team-info {
  padding: 1.5rem;
  flex: 1;
}

.team-name {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.team-description {
  color: var(--gray);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.qualification-list {
  list-style-type: none;
  margin-bottom: 0.5rem;
}

.qualification-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--gray);
}

.qualification-list li::before {
  content: '•';
  color: var(--secondary);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

@media (max-width: 992px) {
  .services-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .team-member {
      flex-direction: column;
  }
  
  .team-img {
      width: 100%;
      height: 350px;
      min-width: unset;
  }

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

.about-text {
  max-width: 1136px;
  margin: 0 auto;
  line-height: 1.8;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--gray);
}

/* CTA section */
.cta {
  background: linear-gradient(to right, var(--dark-blue), var(--primary));
  color: white;
  text-align: center;
  padding: 4rem 0;
}

.cta-banner {
  background: linear-gradient(to right, var(--dark-blue), var(--primary));
  color: white;
  padding: 3rem 2rem;
  border-radius: 10px;
  margin: 4rem 0;
  text-align: center;
}

.cta-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.cta-text {
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btn {
  background-color: var(--secondary);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.cta-btn:hover {
  background-color: var(--secondary-light);
}

/* Footer */
footer {
  background-color: var(--dark-blue);
  color: white;
  padding: 4rem 0 2rem;
}

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

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

.footer-logo img {
  height: 40px;
  margin-right: 10px;
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-info p {
  color: var(--gray-light);
  margin-bottom: 1rem;
}

.footer-heading {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--gray-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--secondary);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icon {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.social-icon:hover {
  background-color: var(--secondary);
}

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

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background-color: white;
  margin-bottom: 5px;
  border-radius: 3px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .menu-toggle {
      display: flex;
  }
  
  .nav-links {
      position: fixed;
      top: 70px;
      left: 0;
      width: 100%;
      flex-direction: column;
      background-color: var(--dark-blue);
      padding: 2rem;
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
      transform: translateY(-150%);
      transition: transform 0.3s ease;
      text-align: center;
      gap: 1.5rem;
  }
  
  .nav-links.active {
      transform: translateY(0);
  }
  
  .hero h1 {
      font-size: 2.2rem;
  }
  
  .section-title {
      font-size: 1.8rem;
  }
  
  .hero-btns {
      flex-direction: column;
  }
  
  .brand-text {
      display: none;
  }

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

.time-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.time-list li span:first-child {
  min-width: 100px; /* sorgt für gleichmäßige Ausrichtung */
  font-weight: 500;
}

/* ########################## */
/* ##### /ENDE TEMPLATE ##### */
/* ########################## */

        /* Contact Form Section */
        .contact-section {
          padding: 5rem 0;
          background-color: var(--light);
      }
      
      .section-header {
          text-align: center;
          margin-bottom: 3rem;
      }
      
      .section-title {
          font-size: 2.2rem;
          color: var(--primary);
          margin-bottom: 1rem;
      }
      
      .section-subtitle {
          color: var(--gray);
          font-size: 1.1rem;
          max-width: 1136px;
          margin: 0 auto;
      }
      
      .contact-container {
          display: flex;
          gap: 4rem;
          margin-top: 3rem;
      }
      
      .contact-info {
          flex: 1;
      }
      
      .contact-details {
          background-color: white;
          border-radius: 10px;
          padding: 2rem;
          box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
          margin-bottom: 2rem;
      }
      
      .contact-detail {
          display: flex;
          align-items: flex-start;
          margin-bottom: 1.5rem;
      }
      
      .contact-icon {
          font-size: 1.5rem;
          color: var(--secondary);
          margin-right: 1rem;
          min-width: 24px;
      }
      
      .contact-text h4 {
          font-size: 1.1rem;
          color: var(--primary);
          margin-bottom: 0.3rem;
      }
      
      .contact-text p {
          color: var(--gray);
      }
      
      .business-hours {
          background-color: white;
          border-radius: 10px;
          padding: 2rem;
          box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
      }
      
      .business-hours h3 {
          font-size: 1.3rem;
          color: var(--primary);
          margin-bottom: 1rem;
      }
      
      .business-hours h3.mt-4 {
          margin-top: 2rem;
      }
      
      .hours-list {
          list-style: none;
      }
      
      .hours-list li {
          display: flex;
          justify-content: space-between;
          margin-bottom: 0.5rem;
          color: var(--gray);
          padding-bottom: 0.5rem;
          border-bottom: 1px dashed var(--gray-light);
      }
      
      .hours-list li:last-child {
          border-bottom: none;
      }
      
      .contact-form {
          flex: 2;
          background-color: white;
          border-radius: 10px;
          padding: 2rem;
          box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
      }
      
      .form-title {
          font-size: 1.5rem;
          color: var(--primary);
          margin-bottom: 1.5rem;
      }
      
      .form-group {
          margin-bottom: 1.5rem;
      }
      
      .form-row {
          display: flex;
          gap: 1rem;
          margin-bottom: 1.5rem;
      }
      
      .form-group label, .form-row label {
          display: block;
          font-weight: 600;
          margin-bottom: 0.5rem;
          color: var(--dark);
      }
      
      .form-group input, 
      .form-group textarea, 
      .form-group select,
      .form-row input {
          width: 100%;
          padding: 0.8rem;
          border: 1px solid var(--gray-light);
          border-radius: 5px;
          font-size: 1rem;
          transition: border-color 0.3s ease;
      }
      
      .form-group input:focus, 
      .form-group textarea:focus, 
      .form-group select:focus,
      .form-row input:focus {
          outline: none;
          border-color: var(--secondary);
      }
      
      .form-group textarea {
          min-height: 150px;
          resize: vertical;
      }
      
      .required {
          color: var(--error);
      }
      
      .captcha-container {
          margin-bottom: 1.5rem;
          background-color: var(--gray-light);
          padding: 1rem;
          border-radius: 5px;
          display: flex;
          flex-direction: column;
          align-items: center;
      }
      
      .captcha-question {
          font-weight: 600;
          margin-bottom: 0.5rem;
      }
      
      .captcha-input {
          width: 100%;
          max-width: 200px;
          padding: 0.8rem;
          border: 1px solid var(--gray-light);
          border-radius: 5px;
          font-size: 1rem;
          text-align: center;
      }
      
      .submit-btn {
          background-color: var(--primary);
          color: white;
          padding: 1rem 2rem;
          border: none;
          border-radius: 5px;
          font-size: 1.1rem;
          font-weight: 600;
          cursor: pointer;
          transition: background-color 0.3s ease;
          width: 100%;
      }
      
      .submit-btn:hover {
          background-color: var(--primary-light);
      }
      
      .form-message {
          padding: 1rem;
          margin-bottom: 1.5rem;
          border-radius: 5px;
          font-weight: 600;
      }
      
      .form-message.success {
          background-color: rgba(56, 161, 105, 0.2);
          color: var(--success);
      }
      
      .form-message.error {
          background-color: rgba(229, 62, 62, 0.2);
          color: var(--error);
      }

    .checkbox-inline {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap; /* erlaubt Umbruch bei Bedarf */
      line-height: 1.4;
    }

    .checkbox-inline input[type="checkbox"] {
      margin: 0;
      flex-shrink: 0;
    }

    .checkbox-inline span {
      display: inline;
    }

      
/* ########################## */
/* ##### /ENDE Kontakt.html ##### */
/* ########################## */

/* Verbessertes Styling für Popup-Inhalte */
.popup-content-wrapper {
  position: fixed;
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0;
  background: rgba(0, 40, 86, 0.85); /* Dunkelblauer Hintergrund passend zu eurer Farbpalette */
  z-index: 9999;
  display: none;
  align-items: flex-start; /* Änderung von center zu flex-start */
  justify-content: center;
  overflow-y: auto;
  padding: 2rem 1rem;
}

.popup-inner {
  background: white;
  padding: 2.5rem;
  max-width: 1136px; /* Wie gewünscht 1136px Breite im PC-Modus */
  width: 100%;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin: 2rem auto; /* Verringert von 4rem auf 2rem */
}

.popup-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  transition: color 0.3s ease;
}

.popup-close:hover {
  color: var(--secondary);
}

.popup-inner h2 {
  color: var(--primary);
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--secondary-light);
}

.popup-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  background-color: var(--gray-light);
  padding: 1rem;
  border-radius: 8px;
}

.popup-nav a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.popup-nav a:hover {
  background-color: var(--primary);
  color: white;
}

.popup-inner section {
  margin-bottom: 2.5rem;
  animation: fadeIn 0.5s ease-in-out;
}

.popup-inner section h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1.2rem;
}

.popup-inner section h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.6rem;
  height: 1.5rem;
  background-color: var(--secondary);
  border-radius: 2px;
}

.popup-inner section p {
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.popup-inner section ul {
  list-style: none;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.popup-inner section ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--gray);
}

.popup-inner section ul li::before {
  content: '✓';
  color: var(--secondary);
  position: absolute;
  left: 0;
  top: 0;
}

.popup-inner section ul li strong {
  color: var(--primary);
}

.document-link {
  display: inline-block;
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--secondary);
  border-radius: 5px;
  transition: all 0.3s ease;
}

.document-link:hover {
  background-color: var(--secondary);
  color: white;
}

.contact-note {
  background-color: var(--gray-light);
  padding: 1rem;
  border-radius: 5px;
  border-left: 4px solid var(--secondary);
  margin-top: 1.5rem;
  font-weight: 600;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsives Design für Tablets */
@media (max-width: 992px) {
  .popup-inner {
    padding: 2rem;
    margin: 2rem auto;
  }
  
  .popup-inner h2 {
    font-size: 1.8rem;
  }
  
  .popup-nav {
    gap: 0.5rem;
  }
  
  .popup-nav a {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
}

/* Responsives Design für Mobilgeräte */
@media (max-width: 768px) {
  .popup-content-wrapper {
    padding: 1rem;
    align-items: flex-start;
  }
  
  .popup-inner {
    padding: 1.5rem;
    margin: 1rem auto;
  }
  
  .popup-inner h2 {
    font-size: 1.5rem;
  }
  
  .popup-nav {
    flex-direction: column;
    gap: 0.3rem;
  }
  
  .popup-inner section h3 {
    font-size: 1.3rem;
  }
}

/* ########################## */
/* ##### /ENDE PopUp ##### */
/* ########################## */