/* Import Raleway font */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600&display=swap');

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  color: #3b3b3b;
  line-height: 1.6;
  background-color: #f2f9ff;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  margin-bottom: 1rem;
}

h1 {
  color: #CA1385;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  color: #004799;
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
}

h3 {
  font-size: 1.4rem;
  color: #004799;
  margin-bottom: 0.8rem;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header and Navbar styles */
header {
  background-color: #f8f9fa;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  position: relative;
  width: 100%;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.logo-container {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 120px;
  flex-shrink: 0;
  margin-right: 1rem;
}

.logo-container img {
  max-height: 45px;
  width: auto;
  display: block;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Main navigation */
.main-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

.nav-items {
  display: flex;
  list-style: none;
  margin-right: 1rem;
}

.nav-item {
  position: relative;
  margin: 0 0.5rem;
}

.nav-link {
  display: block;
  padding: 0.8rem 1rem;
  color: #3b3b3b;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  text-align: center;
  width: 100%;
  justify-content: center;
}

.nav-link:hover {
  color: #004799;
  background-color: rgba(0, 71, 153, 0.05);
}

.nav-link.active {
  background-color: #f0f0f0;
}

/* Dropdown styles */
.dropdown-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
  justify-content: center;
  text-align: center;
}

.dropdown-toggle::after {
  content: '';
  display: inline-block;
  margin-left: 0.5rem;
  width: 0.8rem;
  height: 0.8rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23004799' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s;
  position: relative;
  top: 1px;
}

.dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  min-width: 240px;
  padding: 0.5rem 0;
  margin: 0.125rem 0 0;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s, transform 0.3s;
}

.dropdown-menu.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-container {
  display: flex;
  padding: 1rem;
  flex-direction: column;
  padding: 0.5rem;
}

.dropdown-column {
  flex: 1;
  padding: 0 1rem;
}

.dropdown-heading {
  font-weight: 600;
  color: #3b3b3b;
  margin-bottom: 0.8rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #eee;
}

.dropdown-list {
  list-style: none;
  padding-left: 0;
}

.dropdown-item {
  margin-bottom: 0.6rem;
}

.dropdown-link {
  color: #3b3b3b;
  display: block;
  padding: 0.4rem 0;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.dropdown-link:hover {
  color: #CA1385;
  text-decoration: none;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  font-size: 1.5rem;
  color: #3b3b3b;
  cursor: pointer;
  z-index: 100;
}

/* Call to action button */
.cta-button {
  background-color: #004799;
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 2rem;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.3s;
  white-space: nowrap;
}

.cta-button:hover {
  background-color: #003366;
  color: white;
}

/* Main content area */
main {
  min-height: 70vh;
 
}



/* Intro section on homepage */
.intro-section {
  margin: 2rem 0;
}

.intro-section h2 {
  text-align: center;
}

.intro-section > p {
  max-width: 800px;
  margin: 0 auto 2rem auto;
  text-align: center;
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 2rem 0;
}

.feature-item {
  flex-basis: 30%;
  background-color: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.feature-item h3 {
  color: #CA1385;
}

.example-images {
  display: flex;
  justify-content: space-between;
  margin: 2rem 0;
}

.example-images img {
  width: 48%;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Footer styles */
footer {
  background-color: #f5f5f5;
  padding: 2rem 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin-bottom: 2rem;
}

.footer-section {
  margin: 0 1rem;
  min-width: 200px;
}

.footer-section h4 {
  color: #004799;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid #e0e0e0;
  padding-top: 1.5rem;
  text-align: center;
}

.footer-meta {
  margin-top: 1rem;
}

.footer-meta a {
  margin: 0 0.5rem;
  color: #004799;
}

/* Buttons */
button {
  background-color: #004799;
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #003366;
}

/* PLZ Search component */
.plz-search-container {
  background-color: #f5f5f5;
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem 0;
}

.plz-search-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.plz-search-form {
  display: flex;
  margin: 1.5rem 0;
}

.plz-search-form input {
  flex: 1;
  padding: 0.7rem;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  font-family: 'Raleway', sans-serif;
}

.plz-search-form button {
  border-radius: 0 4px 4px 0;
}

.hotline-container {
  margin-top: 1.5rem;
}

.hotline-number {
  color: #CA1385;
  font-size: 1.5rem;
  font-weight: 500;
  display: block;
  margin-top: 0.5rem;
}

/* Accessibility and focus styles */
.nav-link:focus, 
.dropdown-link:focus, 
.cta-button:focus,
button:focus,
input:focus {
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive design */
@media (max-width: 992px) {
  /* Mobile-Nav-Show Korrektur */
  .main-nav.show {
    display: flex !important;
  }
  
  /* Mobile Menu Toggle Button anzeigen */
  .mobile-menu-toggle {
    display: block !important;
  }
  
  /* Dropdown immer zeigen bei Klick für Mobile */
  .dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    margin: 0;
    padding: 0;
    transform: none;
    opacity: 1;
  }
  
  .dropdown-menu.show {
    max-height: 1000px;
    transition: max-height 0.5s ease-in;
  }
  
  /* Logo-Position für Mobile verbessern */
  .header-container {
    position: relative;
    padding: 0.5rem 1rem;
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .logo-container {
    padding: 0.3rem 0;
    justify-content: flex-start;
    width: auto;
    margin-right: auto;
  }
  
  .mobile-menu-toggle {
    padding: 0.5rem;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    color: #3b3b3b;
    font-size: 1.2rem;
    margin-left: 1rem;
    cursor: pointer;
    display: block;
  }
  
  .main-nav {
    width: 100%;
    flex-direction: column;
    margin-top: 1rem;
    display: none;
    order: 3;
  }
  
  .nav-items {
    flex-direction: column;
    width: 100%;
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .nav-item {
    margin: 0.2rem 0;
    width: 100%;
  }
  
  .nav-link {
    text-align: center;
    width: 100%;
  }
  
  .dropdown-container {
    flex-direction: column;
    padding: 0.5rem;
  }
  
  .dropdown-column {
    margin-bottom: 1rem;
    padding: 0 0.5rem;
  }
  
  .dropdown-heading {
    margin-top: 0.5rem;
    text-align: center;
  }
  
  .dropdown-item {
    text-align: center;
  }
  
  .dropdown-link {
    text-align: center;
    padding: 0.8rem 0.5rem;
  }
  
  .cta-button {
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
}

/* iPad and tablets specific optimization */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .logo-container {
    justify-content: flex-start;
    width: auto;
  }
  
  .main-nav {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: none;
  }
  
  .header-container {
    flex-direction: row;
  }
  
  .nav-items {
    flex-direction: row;
  }
}

/* iPhone and smaller screens */
@media (max-width: 767px) {  
  .features {
    flex-direction: column;
  }
  
  .feature-item {
    flex-basis: 100%;
  }
  
  .example-images {
    flex-direction: column;
  }
  
  .example-images img {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .plz-search-form {
    flex-direction: column;
  }
  
  .plz-search-form input,
  .plz-search-form button {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 0.5rem;
  }
  
  .footer-links {
    flex-direction: column;
  }
  
  .footer-section {
    margin-bottom: 1.5rem;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  .container {
    padding: 0 0.75rem;
  }
  
  .plz-search-container {
    padding: 1.5rem 1rem;
  }
}

/* Fix for very small screens */
@media (max-width: 320px) {
  .logo-container img {
    max-height: 35px;
  }
  
  .cta-button, 
  button {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

/* Tab Styles */
.tab-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nav-tabs {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    border: none;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
    position: relative;
    border-bottom: 1px solid #E2E8F0;
}

.nav-tab {
    flex: 1;
    padding: 16px 20px;
    border: none;
    background: none;
    font-size: 1rem;
    font-weight: 500;
    color: #718096;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    text-align: center;
    font-family: 'Raleway', sans-serif;
}

.nav-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20px;
    width: calc(100% - 40px);
    height: 2px;
    background-color: #004799;
    opacity: 0;
    transform: scaleX(0);
    transition: all 0.3s ease;
}

.nav-tab:hover {
    color: #004799;
}

.nav-tab.active {
    color: #004799;
    font-weight: 600;
}

.nav-tab.active::after {
    opacity: 1;
}

.tab-content {
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 30px 25px;
}

.tab-content.active {
    display: block;
    opacity: 1;
}

/* Search Form Styling */
.search-form {
    text-align: center;
}

.search-form h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: #2D3748;
    font-weight: 600;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    margin: 10px 0;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: white;
}

.search-input:focus {
    outline: none;
    border-color: #004799;
    box-shadow: 0 0 0 3px rgba(0,71,153,0.1);
}

.hero-call-info {
    margin-top: 25px;
    text-align: center;
}

.hero-call-info p {
    margin-bottom: 8px;
    color: #718096;
    font-size: 0.9rem;
}

.hero-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #004799;
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-phone-link:hover {
    color: #003366;
}

.hero-phone-link i {
    font-size: 1.2rem;
}

.hero-call-info span {
    display: block;
    font-size: 0.85rem;
    color: #718096;
    margin-top: 8px;
}

/* Online Features Styling */
.online-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.online-features li {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #2D3748;
}

.online-features i {
    color: #CA1385;
    font-size: 1.1rem;
}

.online-call-info {
    margin: 20px 0;
    text-align: center;
}

.online-call-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #004799;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    margin: 12px 0;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.online-call-button:hover {
    background-color: #003366;
    transform: translateY(-1px);
}

.test-button {
    display: inline-block;
    background-color: #CA1385;
    color: white;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.test-button:hover {
    background-color: #a81070;
    transform: translateY(-1px);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-tabs {
        flex-direction: row;
    }

    .nav-tab {
        padding: 14px 16px;
        font-size: 0.95rem;
    }
    
    .tab-container {
        margin: 0 15px 25px;
        border-radius: 6px;
    }
    
    .search-form h3 {
        font-size: 1.15rem;
    }

    .tab-content {
        padding: 25px 20px;
    }

    .nav-tab.active::after {
        width: calc(100% - 32px);
        left: 16px;
    }
}

/* Icon Farben */
.dropdown-toggle::after,
.hero-phone-link i,
.online-features i,
.feature-item i,
.social-link i {
    color: #CA1385;
}

/* Überschriften unter Icons */
.feature-item h3,
.dropdown-heading,
.footer-section h4 {
    color: #004799;
}

.social-link i {
  color: #fff !important;
} 