.accordion {
  background-color: #ffffff;
  color: #444;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: 1px solid #e5e5e5;
  text-align: left;
  outline: none;
  transition: 0.4s;
  font-size: 1.125rem; 
  font-weight: 300
}

.accordion:after {
  content: '+';
  color: #777;
  font-weight: bold;
  float: right;
  margin-left: 5px;
}

.panel {
  padding: 0 18px;
  background-color: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  border: 1px solid #e5e5e5;
  margin-bottom: 1em;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 0.9em;
  font-family: sans-serif;
  min-width: 400px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}
  
th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #dddddd;
}
  
th {
  background-color: #004488;
  color: #ffffff;
  text-align: left;
}
  
tr:nth-of-type(even) {
  background-color: #f3f3f3;
}
  
tr:last-of-type {
  border-bottom: 2px solid #004488;
}

.agency-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
}
        
.agency-card {
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 16px;
    width: 400px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
        
.agency-card img {
    width: 100%;
    height: 200px;         /* Einheitliche Höhe */
    object-fit: cover;     /* Zuschneiden statt Verzerren */
    border-radius: 8px;
    display: block;
}
        
.agency-info {
    margin-top: 12px;
}
        
.agency-name {
    font-size: 1.1875rem;
    font-weight: 700;
}
        
.agency-address, .agency-phone {
    margin-top: 8px;
}

.margin_60_5 {
  padding-top: 60px;
  padding-bottom: 5px;
}

@media (max-width: 768px) {
  .agency-card img {
    height: 150px;
  }
}

#autocomplete-list {
  max-height: 200px;
  overflow-y: auto;
  position: absolute;
  background: white;
  width: 300px;
  z-index: 1000;
}

.autocomplete-item {
  border: 1px solid #004488;
  padding: 8px;
  cursor: pointer;
  color: #000000;
  text-align: left;
}

.autocomplete-item:hover {
  border: 1px solid #004488;
  background-color: #004488;
  color: #ffffff;
}

.faq-section {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 2rem;
  width: 100%;
  padding: 2rem;
  margin-left: auto;
  margin-right: auto;
}

.faq-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: bold;
}

.faq-item {
  border-bottom: 1px solid #ddd;
}

.faq-question {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 600;
  padding: 1rem 0;
  cursor: pointer;
  position: relative;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  font-size: 1.5rem;
  transition: transform 0.2s ease;
}

.faq-question.active::after {
  content: '–';
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding-bottom: 1rem;
  font-size: 1rem;
  color: #333;
}

.faq-question:focus {
  outline: none;
  box-shadow: none;
}

.share-buttons {
    margin: 2em 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .share-buttons a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background-color: #f1f1f1;
    color: #000;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.2s ease;
  }

  .share-buttons a:hover {
    background-color: #ddd;
  }

  .share-buttons svg {
    width: 20px;
    height: 20px;
    vertical-align: middle;
  }

@media (max-width: 767.98px) {
  .content-row {
    display: flex;
    flex-direction: column;
  }

  .content-row .image-box {
    order: -1; /* Bild kommt zuerst */
    margin-bottom: 1rem;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: 1.25rem !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
  }

  .faq-section {
    padding: 1rem !important;
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
  }

  .faq-section h2 {
    font-size: 1.25rem !important;
    margin-bottom: 1rem !important;
  }

  .faq-question {
    font-size: 1rem !important;
    padding: 0.75rem 0 !important;
  }

  .faq-answer {
    font-size: 0.95rem !important;
    padding-bottom: 0.75rem !important;
  }

  .faq-item {
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
  } 
}

.content-row {
  display: flex;
  gap: 20px;
  align-items: stretch;
  flex-wrap: wrap;
}

.content-row > .inhaltsverzeichnis {
  flex: 1;
}

.inhaltsverzeichnis {
    flex: 1 1 250px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.inhaltsverzeichnis h3 {
    font-weight: 700;
    margin-top: 0;
}

.inhaltsverzeichnis ul {
    padding-left: 1.2em;
}

.inhaltsverzeichnis li {
    margin: 10px 0;
}

.inhaltsverzeichnis a {
    text-decoration: none;
    color: #0056b3;
}

.inhaltsverzeichnis a:hover {
    text-decoration: underline;
}

.image-box {
  flex: 1;
}

.image-box img {
  height: 100%;
  width: 100%;
  object-fit: cover; /* Bild wird skaliert und zugeschnitten */
  display: block;
}