/* ==================================
   Revierheim am Torbogen
================================== */

:root{
    --green:#174734;
    --green-light:#245d46;
    --gold:#c8a24d;
    --light:#f5f5f0;
    --white:#fff;
    --dark:#222;
    --grey:#efefef;
    --shadow:0 4px 16px rgba(0,0,0,.15);
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:Arial,Helvetica,sans-serif;
    background:var(--light);
    color:var(--dark);
    line-height:1.6;
}

/* ==========================
   Header
========================== */

header{
    background:var(--green);
    color:#fff;
    position:sticky;
    top:0;
    z-index:1000;
    box-shadow:var(--shadow);
}

.logo{
    text-align:center;
    padding:20px 10px 10px;
}

.logo h1{
    color:#fff;
    font-size:2rem;
}

nav{
    padding-bottom:15px;
}

nav ul{
    list-style:none;
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:10px;
    padding:0 10px;
}

nav a{
    display:block;
    padding:10px 15px;
    color:#fff;
    text-decoration:none;
    border-radius:6px;
    font-weight:bold;
    transition:.3s;
}

nav a:hover{
    background:rgba(255,255,255,.15);
}

/* ==========================
   Inhalt
========================== */

.info,
.anfrage{
    max-width:1000px;
    margin:50px auto;
    padding:0 20px;
}

.info h2,
.anfrage h2{
    text-align:center;
    color:var(--green);
    margin-bottom:20px;
}

.info p{
    margin-bottom:20px;
}

.ausstattung{
    max-width:700px;
    padding-left:30px;
    list-style:disc;
}

.ausstattung li{
    margin-bottom:10px;
}

/* ==========================
   Kalender
========================== */

#calendar,
.fc{
    max-width:1000px;
    margin:0 auto;
}

.fc-toolbar{
    flex-wrap:wrap !important;
    gap:10px;
}

.fc-scrollgrid{
    width:100% !important;
}

.kalender{
    text-align:center;
}

.kalender-legende{
    margin-top:15px;
    display:inline-block;
    white-space:nowrap;
}

.fc-daygrid-event,
.fc-event-title{
    white-space:normal !important;
}

/* ==========================
   Formulare
========================== */

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:15px;
}

.grid input,
.grid select{
    width:100%;
    background: #fff;
    color: #000;
    border: 1px solid #ccc;
}


input,
select,
textarea{
    width:100%;
    padding:12px;
    margin:20px 0;
    font-family:Arial, Helvetica, sans-serif;
    font-size:1rem;
    background: #fff;
    color: #000;
    border: 1px solid #ccc;
}

/* ==========================
   Buttons
========================== */
.btn{
    display:inline-block;
    padding:12px 24px;
    background:var(--gold);
    color:#000;
    border:none;
    border-radius:8px;
    text-decoration:none;
    font-weight:bold;
    cursor:pointer;
}

.btn:hover{
    background:#dcb460;
}

/* ==========================
   Galerie
========================== */

.gallery{
    max-width:1400px;
    margin:20px auto;
    padding:20px;
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
    gap:20px;
}

.gallery a{
    background:#fff;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 2px 8px rgba(0,0,0,.15);
    transition:transform .2s;
}

.gallery a:hover{
    transform:scale(1.03);
}

.gallery img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.caption{
    padding:10px;
    text-align:center;
}

/* ==========================
   Lightbox
========================== */

.lightbox{
    display:none;
    position:fixed;
    inset:0;
    z-index:9999;
    background:rgba(0,0,0,.9);
}

.lightbox:target{
    display:flex;
    align-items:center;
    justify-content:center;
}

.lightbox img{
    max-width:95%;
    max-height:95%;
}

/* ==========================
   Slideshow
========================== */

#slideshow{
    display:none;
    position:fixed;
    inset:0;
    z-index:10000;
    background:rgba(0,0,0,.95);
    justify-content:center;
    align-items:center;
}

.slide-content{
    width:100%;
    height:100%;
    display:flex;
    justify-content:center;
    align-items:center;
}

#slideImage{
    max-width:95vw;
    max-height:75vh;
    object-fit:contain;
}

#closeSlide{
    position:absolute;
    top:20px;
    right:30px;
    color:#fff;
    font-size:50px;
    cursor:pointer;
}

/* ==========================
   Modal Kontakt
========================== */

.modal{
    display:none;
    position:fixed;
    inset:0;
    z-index:9999;
    background:rgba(0,0,0,.5);
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 900px;
    height: 90vh;
    margin: 5vh auto;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.modal iframe {
    width: 100%;
    height: calc(100% - 40px);
    border: none;
    display: block;
}

.close{
    position:absolute;
    top:10px;
    right:15px;
    font-size:30px;
    cursor:pointer;
    z-index:10000;
    color:#000;
    background:white;
    padding:0 10px;
}

/* ==========================
   Footer
========================== */

footer{
    background:var(--green);
    color:#fff;
    text-align:center;
    padding:25px;
    margin-top:40px;
}

footer a{
    color:var(--gold);
    text-decoration:none;
}

footer a:hover{
    text-decoration:underline;
}

/* ==========================
   Mobile
========================== */

@media (max-width:768px){

    .fc-toolbar{
        flex-direction:column;
    }

    .fc-toolbar-title{
        font-size:1.2rem !important;
    }

    .fc-button{
        font-size:.85rem !important;
    }

    .grid{
        grid-template-columns:1fr;
    }

    .btn{
        width:100%;
    }

    textarea{
        min-height:180px;
        font-size:16px;
    }

    .modal-content{
        width:100%;
        height:100%;
        margin:0;
        border-radius:0;
    }
}

.grid input[type="date"],
.grid input[type="time"] {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    background: #fff;
    color: #000;
    border: 1px solid #ccc;
}
.grid label{
    display:block;
    margin-bottom:4px;
    font-weight:bold;
    color:#174734;
}
.zeilentrenner{
    grid-column:1 / -1;
    height:10px;
}
.datumzeit{
    display:flex;
    gap:10px;
    justify-content:flex-start;
    margin:10px 0;
}

.datumzeit input[type="date"]{
    width:180px;
}

.datumzeit input[type="time"]{
    width:110px;
}

img{
  max-width:100%;
  height:auto;
}
.dokumente-container{
    max-width:1000px;
    margin:40px auto;
    padding:20px;
}
.dokumentliste{
    display:flex;
    flex-direction:column;
    gap:12px;
}
.dokument{
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:#fff;
    padding:15px;
    border-radius:8px;
    box-shadow:0 2px 6px rgba(0,0,0,.15);
}
.dokument-name{
    font-weight:bold;
    word-break:break-word;
}
.buttons{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.btn-doc{
    background:#005a9c;
    color:#fff;
    padding:8px 12px;
    text-decoration:none;
    border-radius:5px;
}

.btn-doc:hover{
    background:#003f6d;
}
