* {transition: 0.2s;}

html, body {
  height: 100%;
  margin: 0;
}
body {
  display: flex;
  flex-direction: column;
}
#liste {
  flex: 1;            /* Haupt‑Content dehnt sich aus */
}
footer {
  flex-shrink: 0;     /* Footer bleibt außen vor */
}

.card a:hover {
  color: #fff;
}

.cards-grid {padding: 20px;}

@media (max-width: 374px) {
.cards-grid {  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));}
}

/* Card */
.card {
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px rgba(0,0,0,0.1);
}

/* Card Header */
.card h3 {
  font-size: 18px;
margin: 1rem;
  color: #111827;
}

/* Card Body */
.card p {
  margin: 0 1rem 1rem;
  color: #4b5563;
  line-height: 1.4;
font-size: 14px;
}

/* Status Badge */
.status {
  font-weight: 600;
  margin: 0 1rem 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  display: inline-block;
}

.status.online {
  background: #d1fae5;
  color: #047857;
}

.status.offline {
  background: #fee2e2;
  color: #b91c1c;
}

.status.teilweise {
  background-color: #FFF9C8;
  color: #746F33;
}

/* Button */
.btn-code {
  margin: auto 1rem 1rem;
  padding: 8px 12px;
  border: none;
  border-radius: 0.5rem;
  background: #393185;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
transition: 0.2s;
display: inline-block;
}

.btn-code:active {
  transform: scale(0.97);
}

/* Load More */
.load-more-container {
  text-align: center;
  margin: 2rem 0;
}

#load-more {
  padding: 0.75rem 2rem;
  border: 2px solid #3b82f6;
  border-radius: 0.5rem;
  background: transparent;
  color: #3b82f6;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
}

#load-more:hover:not(:disabled) {
  background: #3b82f6;
  color: #fff;
}

#load-more:disabled {
  opacity: 0.6;
  cursor: default;
}

#modal-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
}

.custom-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 16px;
  padding: 30px;
  max-width: 90%;
  width: 400px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  z-index: 1001;
  display: none;
  animation: slideFade 0.3s ease;
  text-align: center;
  font-family: sans-serif;
}

.modal-box h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

#modal-code-box {
  background: #e6f7ff;
  color: #007acc;
  font-weight: bold;
  font-size: 1.6rem;
  border-radius: 10px;
  padding: 12px 20px;
  margin-bottom: 20px;
  display: inline-block;
  cursor: pointer;
  position: relative;
}

#modal-code-box:hover {
  background: #d0f0ff;
}

#copy-feedback {
  font-size: 0.75rem;
  color: green;
  display: block;
  margin-top: 6px;
}

.modal-instruction {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}

.modal-phone-box {
  font-size: 1.3rem;
  font-weight: bold;
  margin: 10px 0 20px;
}

#modal-close {
  background: #4e3cc9;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-weight: bold;
  font-size: 12px;
}

#modal-close:hover {
  background: #3728a8;
}

@keyframes slideFade {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.modal-footer-note {
  font-size: 0.75rem;
  color: #999;
  margin-top: 20px;
  line-height: 1.4;
}

.modal-footer-note a {
  color: #666;
  text-decoration: underline;
}

.modal-footer-note a:hover {
  color: #333;
}

#liste {
background-color: #f4f7f9;
margin-top: 52px;
}

#liste .container {
  max-width: 1024px;
  margin: 0 auto;      /* zentriert */
  padding: 0;     /* optional, für Abstand am Seitenrand */
  box-sizing: border-box;
}

#main-header {
border-bottom: 1px solid #ddd;
position: fixed;
top: 0;
width: 100%;
background: #fff;
}

#suche .container {
padding: 20px 20px 0 20px;
}

#suche h2 {
font-size: 16px;
margin-top: 15px;
}

/* 1. Form als Positionierungs-Container */
#suche form {
  position: relative;
  width: 100%;
max-width: 306px;
}

@media (max-width: 671px) {
#suche form {max-width: 100%;}
}

/* 2. Input-Styling: volle Breite, großes Padding, abgerundete Ecken */
#suche input {
  width: 100%;
  padding: 10px 3rem 10px 1rem; /* rechts genug Platz für Button */
  border: 1px solid #ddd;
  border-radius: 9999px;        /* maximal abgerundet */
  box-sizing: border-box;
  font-size: 14px;
}

/* 3. Button absolut positioniert, transparent, ebenfalls abgerundet */
#suche button[type="submit"] {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background: var(--primary-color);
  border: none;
  padding: 0.5rem;               /* passend zur Icon-Größe */
  border-radius: 9999px;         /* rund */
  cursor: pointer;
  
  /* Icon-Farbe übernehmen */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 4. Hover-/Focus-Effekte (optional) */
#suche button[type="submit"]:hover {
  background: var(--primary-color-dark);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
#suche input:focus {
  outline: none;
  border-color: var(--primary-color);
}

#suche form {
  position: relative; /* sicherstellen */
}

.autocomplete-list {
  position: absolute;
  top: 100%; /* direkt unter dem Input */
  left: 0;
  right: 0;
  background: #fff;
border: none;
  max-height: 220px;
  overflow-y: auto;
  z-index: 1000;
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
border-radius: 10px;
}

.autocomplete-list li {
  padding: 8px 12px;
  cursor: pointer;
font-size: 14px;
}

.autocomplete-list li:hover {
  background-color: #f0f0f0;
}

.autocomplete-list:not(:empty) {
  border: 1px solid #ccc;  /* Border nur wenn Inhalte drin sind */
}

.no-results {
  text-align: center;
  font-size: 1rem;
margin: auto;
  margin-top: 2rem;
  color: #555;
  font-weight: 500;
width: 90%;
}


.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 15px;
  border-radius: 10px;
}

.card-cta {
  margin-top: 10px;
  font-weight: bold;
  color: #2563eb;
}







.badge {
  display: inline-block;
  color: #555;
  font-size: 12px;
    margin: 0px 1rem 1rem;
}






.cards-masonry {
  column-count: 3;
  column-gap: 20px;
}

.cards-masonry .card {
  break-inside: avoid;
  margin-bottom: 20px;
  display: inline-block;
  width: 100%;
}

/* Responsiv */
@media (max-width: 1000px) {
  .cards-masonry {
    column-count: 2;
  }
}
@media (max-width: 600px) {
  .cards-masonry {
    column-count: 1;
  }
}


.seo-text {
padding: 60px 20px 20px 20px;
}
.seo-text h1, .faq h2, .nearby-cities h2 {
font-size: 20px;
margin-bottom: 15px;
font-weight: bold;
}
.seo-text p {
font-size: 14px;
}
.faq {
padding: 20px;
}
.faq dt, .faq  dd {
font-size: 14px;
margin-bottom: 10px;
}
.faq dt {
font-weight: bold;
}

.nearby-cities {
padding: 20px;
}

.nearby-cities ul {
list-style-type: none;
}

.nearby-cities ul li {
margin: 2.5px 0;
}

.nearby-cities ul li a {
font-size: 14px;
}