@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;
}

/* 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;*/
}

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%;
    height: 70vh;
    overflow: hidden;
}

.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: #fd6;/*#b8860b;#94e800;*/
    color: #4d4d4d;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
}

.btn:hover {
    background: #a07407;/*#c0392b;*/
}

/* 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: #fff8e1;
    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: #b8860b;
}

.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;
}

#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: #4d4d4d;
    width: 100vw;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
	color:#94e800;
}

.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: #fd6;/*#94e800;*/
    
    display: block;
}

.header_mobile{
	display:none;
	color: #94e800;
}

@media (max-width: 768px) {
    .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;
    }
    .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: #4d4d4d;
	color: #94e800;
}

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;
    }
}

.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;
}
