@font-face {
    font-family: 'Chivo';
    src: url("fonts/Chivo-Regular.woff2") format("woff2"),
         url("fonts/Chivo-Regular.woff") format("woff"),
         url("fonts/Chivo-Regular.ttf") format("truetype"),
         url("fonts/Chivo-Regular.eot");
    font-weight: 300;
    font-style: normal;
}

.leaflet-top.leaflet-left {
  top: 63px !important; /* oder was immer die Höhe deines Menüs ist */
}


/* Allgemeine Stile */
body {
    font-family: Chivo;
    background-color: #f5f1e8;
    color: #222222;
    margin: 0;
    padding: 0;
}

/* Header */
header {
    text-align: center;
    /*background-color: #4d4d4d;
    padding: 20px;*/
}

#map {
  height: 400px;
  width: 100%;
  height: 30vh;
  position: sticky;
  top: 63px;
  z-index: 1000;  
  border-bottom: solid #d45422;
  box-shadow: 0px 10px 20px #cfc7d2;
}

header h1 {
    color: #f5f1e8;
    margin: 0;
}

header img {
	width: 100%;
	height: 100%;
    max-height: 100vh;
    object-fit: cover;
	
}
/* Hero-Bereich */
.hero {
    position: relative;
    width: 100%;
	z-index:1001;
    overflow: hidden;
	/*border-bottom: solid #d45422;*/
  	box-shadow: 0px 10px 20px #cfc7d2;
	margin-top:63px;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /*filter: brightness(130%) contrast(90%);*/

}

.hero-text {
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #94e800;
}

.hero-text h1 {
	color: #94e800;
    font-size: 2.5em;
    margin: 0;
}

.hero-text p {
    font-size: 1.2em;
    margin: 10px 0;
}

.btn {
    display: inline-block;
    background: #413025;/*#b8860b;#94e800;*/
    color: white;
	font-weight: bold;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
}

.btn:hover {
    background: #d45422;/*#c0392b;*/
}

/*filter-box*/
#filter-box.hidden {
  display: none;
}


/* Hauptinhalt */
main {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* Unterkünfte */
#listings {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.listing {
    background: linear-gradient(135deg, #4d5266, #93a4be);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
    padding: 10px;
}

.listing:hover {
	transform: translateY(-5px);
}

.listing img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.listing h3 {
    color: #371f0a;
}

.listing p {
    color: #333;
}

ul.custom-checklist {
    text-align: left;
    list-style: none;
    padding-left: 2.0em;
    padding-right:1.5em;
  }
  
ul.custom-checklist li::before {
    content: '✓';
    color: green;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Admin-Bereich */
#admin {
    margin-top: 40px;
    text-align: center;
}

#admin a {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px;
    text-decoration: none;
    background: #b8860b;
    color: white;
    border-radius: 5px;
	background-color: #413025;
	font-weight: bold;
}

#admin a:hover {
    background: #a07407;
}

/* Responsive Design */
@media (max-width: 768px) {
    #listings {
        flex-direction: column;
        align-items: center;
    }

    .listing {
        width: 90%;
    }
}

.menu-container {
    position: fixed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: linear-gradient(135deg, #4d5266, #93a4be);
    width: 100vw;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
	color:orange;
}

.menu-toggle {
    font-size: 24px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: none;
}

.menu {
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.menu li {
    padding: 10px;
}

.menu a {
    text-decoration: none;
	color: orange;/*#94e800;*/
    font-weight: bold;
    display: block;
}

.header_mobile{
	display:none;
	color: #94e800;
}

@media (max-width: 768px) {
	.hero{
		margin-top:92px;
	}
	.leaflet-top.leaflet-left {
 		 top: 92px !important; /* Höhe deines fixed Headers */
	}
	#map{ top:92px;}
    .menu {
        display: none;
        position: absolute;
        top: 50px;
        left: 0;
        background: #4d4d4d;
        border-radius: 5px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        width: 200px;
        padding: 10px;
    }
    .menu.open {
        display: flex;
	z-index:1002;
    }
    .menu ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .menu-toggle {
		color: #94e800;
        display: block;
    }
	.hero-text h1 {
		display:none;
	}
	.header_mobile{
		display:block;
		text-align: right;
		
		margin-right: 1em;
	}
}

footer {
    text-align: center;
    padding: 15px;
    background: #333333;
	color: #fff;
}

footer img{
	position: absolute;
	right:0;
	max-width:100vw	;
	width:100%;
	filter: opacity(50%);
}

.features {
            list-style: none;
            padding: 0;
        }
        .features li {
            margin: 5px 0;
            padding-left: 1em;
            position: relative;
        }
        .features li::before {
            content: "✓";
            position: absolute;
            left: 0;
            color: green;
        }

        .swiper {
            width: 100%;
            max-width: 800px;
            height: 400px;
            margin: 20px auto;
            border-radius: 10px;
            overflow: hidden;
        }

        .swiper-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        @media screen and (max-width: 768px) {
            .swiper {
                height: 250px;
            }
        }
		
/*Featueres-Filter*/		
		
#features-wrapper {
    margin-top: 10px;
}

#features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    border: 1px solid #ccc;
    background: #f9f9f9;
    border-radius: 6px;
    padding: 0 10px;
}

#features-container.visible {
    padding: 10px;
    max-height: 500px;
    overflow-y: auto;
}

/* Checkbox + Label in einer Zeile */
#features-container label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsives Scrollverhalten für Mobile */
@media (max-width: 600px) {
    #features-container {
        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
        max-height: 300px;
		overflow-y: auto;
    }
	.hero{
		margin-top:92px;
	}
	
}

.toggle-button {
    background-color: #444;
    color: white;
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
}

.toggle-button:hover {
    background-color: #666;
}

.arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}
/*ANlage neuer Unterkunft*/
.arrow.rotate {
    transform: rotate(180deg);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1rem;
}

.form-text{
min-width:350px;
}

.description-field {
    
	min-width: 350px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: .5rem;
    margin-bottom: 1rem;
}

#preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.preview-item {
    border: 1px solid #ccc;
    padding: .5rem;
    text-align: center;
}

.preview-img {
    max-width: 150px;
    max-height: 150px;
    display: block;
    margin-bottom: .5rem;
}

.detail_btn{
	text-align:center;
	padding: 25px;
}
/* Formular */
form {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
}

input, textarea, button {
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #bdc3c7;
    border-radius: 5px;
}

input{
	max-width:350px;
}

button {
    background: #4d4d4d;
    color: white;
    border: none;
    cursor: pointer;
	max-width:200px;
}

button:hover {
    background: #5c5c5c;
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

/* Unsichtbare Radio-Buttons */
.lang-switch input[type="radio"] {
  display: none;
}

/* Optional: Stil für aktivierte Sprache */
.lang-switch label {
  cursor: pointer;
  font-size: 1.2rem;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.lang-switch input[type="radio"]:checked + label {
  opacity: 1;
}

.delete-btn {
    background: #c00;
    color: #fff;
    border: none;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    border-radius: 4px;
}
.delete-btn:hover {
    background: #900;
}
.text-preview {
  display: -webkit-box;
  -webkit-line-clamp: 3;       /* nur 3 Zeilen anzeigen */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.footer {
      background-color: #333333;
      color: #fff;
      padding: 40px 20px 20px;
    }

    .footer-content {
      display: flex;
      justify-content: space-around;
      flex-wrap: wrap;
      max-width: 1000px;
      margin: 0 auto;
    }

    .footer-column {
      flex: 1 1 200px;
      margin: 10px;
    }

    .footer-column h4 {
      margin-bottom: 10px;
      font-size: 16px;
      border-bottom: 1px solid #666;
      padding-bottom: 5px;
    }

    .footer-column ul {
      list-style: none;
      padding: 0;
    }

    .footer-column ul li {
      margin-bottom: 8px;
    }

    .footer-column ul li a {
      color: #ccc;
      text-decoration: none;
    }

    .footer-column ul li a:hover {
      color: #fff;
      text-decoration: underline;
    }

    .footer-bottom {
      text-align: center;
      margin-top: 30px;
      font-size: 14px;
      color: #aaa;
    }

.news-ticker {
  background-color: #ffd700;
  color: black;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 10px 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.ticker-wrap {
  display: flex;
  white-space: nowrap;
  will-change: transform;
  animation: scroll-left 15s linear infinite;
}

.ticker-text {
	
  display: inline-block;
  padding-right: 100%; /* Wiederholung vermeiden */
}

.ticker-text a{
	text-decoration: none;
	color:red;
}

@keyframes scroll-left {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}
.services {
	display: grid;		
	grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
	gap: 20px;
	margin-top: 40px;
}
.service-box {
	background: linear-gradient(135deg, #4d5266, #93a4be);
	padding: 20px;
	border-radius: 10px;
	color:#371f0a;
	text-align: center;
}
.service-box img {
	width: 150px;
	border-radius: 10px;
	/*margin-bottom: 15px;*/
}
.service-box-home img{
		width:400px;
		border-radius:10px;
	}
/* Mobile: Alle Angebote untereinander */
@media (max-width: 768px) {
	.angebote-container {
		width: 90%;
	}
	.services {
		grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	}
	.service-box-home img{
		width:210px;
		border-radius:10px;
	}
}
#map-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: auto;
  padding: 1rem;
  box-shadow: 0 0 8px #ccc;
}

#map-container {
  width: 100%;
  height: 600px;
  overflow: hidden;
  border: 1px solid #ccc;
}

#back-button {
  position: absolute;
  top: 10px;
  left: 20px;
  z-index: 10;
  padding: 6px 12px;
  background: #413025;
  border: 1px solid #aaa;
  border-radius: 4px;
  cursor: pointer;
}
svg { width: 100%; height: 100vh; display: block; }
    path { fill: #ccc; stroke: #333; cursor: pointer; }
    path:hover { fill: #ffcc00; }
path.active {
  fill: #ff9900 !important;
  
  
}
#map-title {
  text-align: center;
  font-size: 1.4rem;
  margin: 1rem 0;
}

#tooltip {
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  z-index: 100;
}
.autocomplete-box {
  position: absolute;
  z-index: 1000;
  background: white;
  /*border: 1px solid #ccc;*/
  max-height: 200px;
  overflow-y: auto;
  width: 50%;
}
.autocomplete-box div {
  padding: 8px;
  cursor: pointer;
}
.autocomplete-box div:hover,
.autocomplete-box .active {
  background-color: #007BFF;
  color: white;
}
.highlight {
  font-weight: bold;
  background: yellow;
}
.category, .subcategory {
    cursor: pointer;
    padding: 8px 10px;
    background: #f4f4f4;
    border-radius: 4px;
    margin: 5px 0;
    font-weight: bold;
    position: relative;
}

.category::after, .subcategory::after {
    content: "▶";
    position: absolute;
    right: 10px;
    transition: transform 0.2s ease;
}

.category.open::after, .subcategory.open::after {
    transform: rotate(90deg);
}

.features {
    display: none;
    margin-left: 15px;
    animation: slideDown 0.3s ease forwards;
}

.submenu {
    list-style: none;
    padding-left: 15px;
    margin: 5px 0;
}

.submenu li {
    margin: 3px 0;
}

.feature-item {
    font-weight: normal;
}

@keyframes slideDown {
    from { opacity: 0; max-height: 0; }
    to { opacity: 1; max-height: 1000px; }
}
.features ul {
	content: "";
    list-style: none;
}
.category .content {
    display: none;
}
.category.open .content {
    display: block;
}
.features li::before{
	content: none;
}

.detail li::before{
	content: "✓";
}
.features {
  display: none;
  margin-left: 15px;
}
.detail {
	display:block; !important
}

.category.open > .features {
  display: block;
}
.subcategory.open + .features {
  display: block;
}
.category, .subcategory {
  cursor: pointer;
  padding: 5px;
  background: #f2f2f2;
  margin: 3px 0;
  border-radius: 4px;
}
.category.open, .subcategory.open {
  background: #cce5ff;
}
