@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;700&display=swap');
* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto Condensed', sans-serif;
    margin: 0;
    background: #f5f5f5;
    font-size: 18px;
}

header {
    bbackground: #174A85;
    background: red;
    padding: 25px;
    text-align: center;
    margin-bottom: 0;
    padding-bottom: 0;
}

header h1 {
    margin: 0;
}

.container {
    max-width: 1100px;
    margin: 5px auto 30px;
    padding: 5px 15px;
}

.container > h1,
.einleitung {
    text-align: center;
}

.wohnungen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.wohnung {
    display: block;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px #0002;
    transition: transform 0.2s;
}

.wohnung:hover {
    transform: translateY(-4px);
}

.wohnung img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.wohnung h2,
.wohnung p {
    text-align: center;
    padding: 0 12px;
}

.wohnung p {
    color: #704477;
    padding-bottom: 10px;
}

.keinbild {
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
}

footer {
    background: #245580;
    color: white;
    text-align: center;
    padding: 25px;
    margin-top: 50px;
}

.kopf {
    background: #245580;
    color: white;
    padding: 12px 20px;
}

.kopf-inhalt {
    max-width: 1050px;
    margin: auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.kopf h1 {
    margin: 0;
    font-size: 24px;
}

.kopf nav {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.kopf nav a {
    color: white;
    text-decoration: none;
    padding: 7px 10px;
    border-radius: 5px;
}

.kopf nav a:hover {
    background: #ffffff33;
}
xxxbody {
    font-family: Arial, sans-serif;
    margin: 20px;
    background: #f5f5f5;
}

h2 {
    margin-top: 0px;
    margin-bottom: 15px;
    text-align: center;
}

.galerie {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.galerie img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.galerie img:hover {
    opacity: 0.8;
}


#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.96);
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 10px;
    box-sizing: border-box;
}

#grossbild {
    width: 95vw;
    height: 94vh;
    max-width: 95vw;
    max-height: 94vh;
    object-fit: contain;
    border-radius: 4px;
}

.schliessen {
    position: absolute;
    top: 10px;
    right: 25px;
    color: white;
    font-size: 45px;
    cursor: pointer;
    z-index: 2;
}

.pfeil {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 45px;
    padding: 15px;
    cursor: pointer;
    z-index: 2;
}

.pfeil.links {
    left: 10px;
}

.pfeil.rechts {
    right: 10px;
}

.galerie {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.galerie img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.galerie img:hover {
    transform: scale(1.04);
}

table {
    margin: 20px auto;
    border-collapse: collapse;
    width: 100%;
    max-width: 550px;
    background: white;
}

table th,
table td {
    padding: 9px 12px;
    border-bottom: 1px solid #ddd;
}

table th {
    background: #245580;
    color: white;
    text-align: left;
}

table td:last-child {
    text-align: right;
}


.seiten-footer {
    width: 100%;
    background: #245580;
    color: white;
    text-align: center;
    padding: 15px 10px;
    margin-top: -20px;
    font-size: 20px;
}
.footer-inhalt p {
    margin: 5px 0;
}

.seiten-footer a {
    color: white;
    text-decoration: none;
}

.seiten-footer a:hover {
    text-decoration: underline;
}
.card {
    max-width: 100%;
    margin: 20px auto;
    padding: 20px 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px #0002;
    line-height: 1.6;
}

.card h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
}

.belegungsplan th,
.belegungsplan td {
    text-align: center;
    ffont-size: 16px;
}


.belegungsplan {
    max-width: 650px;
    margin: 10px auto;
    padding: 18px;
    background: white;
}

.belegungsplan h3 {
    text-align: center;
    margin: 0 0;
    text-transform: capitalize;
}

.belegungsplan-kopf {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.belegungsplan-kopf a {
    text-decoration: none;
    font-size: 24px;
    color: #704477;
    padding: 4px 12px;
}

.belegungsplan table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.belegungsplan th {
    background: #eeeaf2;
    padding: 9px 2px;
    font-size: 16px;
    font-align: center;
    color:black;
}

.belegungsplan td {
    height: 39px;
    text-align: center;
    border: 1px solid #eee;
    font-size: 18px;
}

.belegungsplan .frei { background: #66CC66; }
.belegungsplan .belegt { background: #e99b9b; }
.belegungsplan .anreise { background: #8dc9ed; }
.belegungsplan .abreise { background: #f5d28a; }
.belegungsplan .wechsel { background: #c5a1df; }

.bbbbelegungsplan .frei {
    background: #d9efdc;
}

.belegungsplan .belegt {
    background: #e99b9b;
}

/* Anreise: links frei, rechts belegt */
.belegungsplan .anreise {
    background: linear-gradient(
        to right,
        #66CC66 50%,
        #e99b9b 50%
    );
}

/* Abreise: links belegt, rechts frei */
.belegungsplan .abreise {
    background: linear-gradient(
        to right,
        #e99b9b 50%,
        #66CC66 50%
    );
}

/* Wechsel: zwei Buchungen am selben Tag */
.belegungsplan .wechsel {
    background: linear-gradient(
        to right,
        #e99b9b 50%,
        #e99b9b 50%
    );
}


.belegungsplan .nichtverfuegbar {
    background: #eeeeee;
    color: black;
}

.belegungsplan .heute {
    outline: 2px solid #444;
    outline-offset: -2px;
}

.belegungsplan-legende {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
    font-size: 12px;
}

.belegungsplan-legende span {
    padding: 6px 9px;
    border-radius: 4px;
}

.kalender-nav {
    border: none;
    background: none;
    font-size: 24px;
    color: #704477;
    padding: 4px 12px;
    cursor: pointer;
}

.belegungsplan table th,
.belegungsplan table td {
    text-align: center !important;
    font-size: 16px;
}
.galerie {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.galerie img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.belegungsplan-legende {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.belegungsplan-legende span {
    width: 100px;
    text-align: center;
    box-sizing: border-box;
    border-radius: 0;
}

/* Abstand unter der Überschrift verkleinern */
#kalender {
    margin-top: -22px;
}

/* Monatszeile kompakter gestalten */
.belegungsplan-kopf {
    margin-top: 0;
    padding-top: 0;
}

.card a,
.card a:visited {
    color: black;
    tttext-decoration: none;
    fffont-weight:bold;
}

.card a:hover {
    tttext-decoration: underline;
}

.wohnungs-link {
    display: block;
    padding: 15px;
    margin: 10px 0;
    color: black;
    text-decoration: none;
    border-radius: 0;
    transition: background-color 0.2s;
}

.wohnungs-link:hover {
    background-color: #e0e8f5;
    color: black;
}

textarea {
    width: 1000%;
    box-sizing: border-box;
    padding: 10px;
    font: inherit;
}

.kontaktformular button {
    display: block;
    margin: 15px auto;
}

.kontaktformular textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px;
    font: inherit;
    resize: vertical;
}

.kontaktformular button {
    display: block;
    margin: 20px auto;
    padding: 12px 30px;
    font-family: inherit;
    font-size: 1.1em;
    font-weight: bold;
    color: white;
    background-color: #245580;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.kontaktformular button:hover {
    background-color: #2449a5;
}

.kontakt-button {
    display: block;
    width: fit-content;
    margin: 20px auto;
    padding: 12px 30px;
    font-family: inherit;
    font-size: 1.1em;
    font-weight: bold;
    color: white !important;
    background-color: #245580;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
}

.kontakt-button:hover {
    background-color: #2449a5;
}

.wohnungs-link {
    font-weight: normal;
}

.wohnungs-link {
    font-weight: normal;
}

.wohnungs-link strong {
    font-weight: bold;
}


/* =================================
   HANDY-ANSICHT
   ================================= */

@media (max-width: 700px) {

    body {
        font-size: 16px;
        margin: 0;
    }

    /* Kopfbereich */
    .kopf {
        padding: 12px 10px;
    }

    .kopf-inhalt {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .kopf h1 {
        font-size: 22px;
    }

    .kopf nav {
        justify-content: center;
        gap: 3px;
        width: 100%;
    }

    .kopf nav a {
        padding: 8px 9px;
        font-size: 15px;
    }

    /* Hauptbereich */
    .container {
        width: 100%;
        padding: 5px 10px;
        margin: 5px auto 20px;
    }

    .container h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 21px;
    }

    /* Wohnungsübersicht */
    .wohnungen {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 15px;
    }

    .wohnung img {
        height: 210px;
    }

    /* Karten */
    .card {
        padding: 15px 12px;
        margin: 12px auto;
        border-radius: 8px;
    }

    /* Bildergalerie */
    .galerie {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin: 12px 0;
    }

    .galerie img {
        height: 120px;
    }

    /* Großbild */
    #grossbild {
        width: 96vw;
        height: 85vh;
        max-width: 96vw;
        max-height: 85vh;
    }

    .schliessen {
        top: 5px;
        right: 12px;
        font-size: 38px;
    }

    .pfeil {
        font-size: 32px;
        padding: 8px;
    }

    .pfeil.links {
        left: 0;
    }

    .pfeil.rechts {
        right: 0;
    }

    /* Belegungskalender */
    .belegungsplan {
        width: 100%;
        padding: 8px 5px;
        margin: 10px auto;
    }

    .belegungsplan-kopf {
        margin-bottom: 5px;
    }

    .belegungsplan-kopf h3 {
        font-size: 18px;
    }

    .belegungsplan-kopf a,
    .kalender-nav {
        font-size: 22px;
        padding: 4px 8px;
    }

    .belegungsplan th {
        padding: 8px 0;
        font-size: 13px;
    }

    .belegungsplan td {
        height: 36px;
        padding: 2px 0;
        font-size: 15px;
    }

    .belegungsplan table th,
    .belegungsplan table td {
        font-size: 14px;
    }

    .belegungsplan-legende {
        gap: 5px;
        font-size: 11px;
    }

    .belegungsplan-legende span {
        width: auto;
        min-width: 85px;
        padding: 5px;
    }

    /* Tabellen */
    table {
        font-size: 14px;
    }

    table th,
    table td {
        padding: 7px 5px;
    }

    /* Kontaktformular */
    textarea {
        width: 100%;
        max-width: 100%;
    }

    .kontaktformular textarea {
        width: 100%;
    }

    .kontakt-button {
        padding: 11px 20px;
        font-size: 16px;
    }

    /* Fußbereich */
    .seiten-footer {
        padding: 15px 8px;
        font-size: 16px;
        margin-top: 15px;
    }

    footer {
        padding: 18px 10px;
        margin-top: 25px;
    }
}


/* Sehr kleine Smartphones */
@media (max-width: 380px) {

    .kopf h1 {
        font-size: 19px;
    }

    .kopf nav a {
        font-size: 13px;
        padding: 7px 6px;
    }

    .galerie img {
        height: 100px;
    }

    .belegungsplan td {
        height: 32px;
        font-size: 13px;
    }

    .belegungsplan th {
        font-size: 12px;
    }
}
