/* ==========================================================================
   Ferienwohnung Flasche – hattingen-fewo.de
   Statisches Stylesheet, abgeleitet aus dem alten DNN-Skin "fewo-hattingen"
   (portal.css / container.css / menu.css / typography.css / YAML-Grid).
   Farben:  Hintergrund #800000, Text #FFF1D9, Holz-Grafiken bg-holz.jpg (Band, 650x75) / holz.jpg (Rahmen-Textur)
   Layout:  960px-Raster, linke Spalte 25 % (240px), rechte Spalte 75 % (720px)
   ========================================================================== */

/* ---------- Basis ---------- */
html {
    background-color: #800000;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    /* Holzband liegt bei 60-135px; als deckendes JPEG statt transparentem PNG (kleiner, kein Flackern) */
    background: #800000 url(../img/bg-holz.jpg) repeat-x left 60px;
    color: #FFF1D9;
    font-family: Arial, Calibri, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
    overflow-y: scroll;
}

*, *::before, *::after {
    box-sizing: border-box;
}

img {
    border: 0;
    max-width: 100%;
    height: auto;
}

a {
    color: #FFF1D9;
    text-decoration: none;
    background-color: transparent;
}

a:hover,
a:focus {
    text-decoration: underline;
}

strong, b { font-weight: bold; }
em, i     { font-style: italic; }

p {
    margin: 5px 0;
    line-height: 1.5em;
}

ul, ol {
    margin: 1em 0 1em 1em;
    padding: 0;
    line-height: 1.5em;
}

ul    { list-style-type: disc; }
ul ul { list-style-type: circle; margin-top: 0; }

li {
    line-height: 1.5em;
}

/* Nur für Screenreader */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
    white-space: nowrap;
}

/* ---------- Seitenrahmen ---------- */
.wrapper {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

/* ---------- Kopfbereich ---------- */
.site-header {
    display: flex;
    align-items: flex-start;
    color: #fff;
    font-weight: bold;
}

.header-brand {
    width: 25%;
    flex: 0 0 25%;
    text-align: center;
}

.header-stars {
    height: 40px;
    margin: 10px 0;
    overflow: hidden;
}

.header-stars img {
    width: 200px;
    height: 40px;
}

.header-logo a {
    display: inline-block;
}

.header-logo img {
    display: block;
    width: 240px;
    height: 75px;
}

.header-pictures {
    width: 75%;
    flex: 0 0 75%;
    /* 6px + 33px + 5px = Platz der ehemals leeren "infotext"-Zeile */
    padding-top: 44px;
}

.header-pictures ul {
    display: flex;
    justify-content: flex-end;
    gap: 25px;
    margin: 0;
    padding: 0;
    list-style: none;
    line-height: 0;
}

.header-pictures li {
    flex: 0 1 161px;
    min-width: 0;
    margin: 0;
}

.header-pictures img {
    display: block;
    width: 161px;
    max-width: 100%;
    aspect-ratio: 161 / 106;
    padding: 3px;
    background: url(../img/holz.jpg);
    border-radius: 2px;
}

/* ---------- Hauptbereich: Menü links, Inhalt rechts ---------- */
.site-main {
    display: flex;
    align-items: stretch;
}

.site-nav {
    width: 25%;
    flex: 0 0 25%;
}

.site-content {
    width: 75%;
    flex: 0 0 75%;
    min-width: 0;
    padding: 20px 20px 0 20px;
}

/* Menü-Schaltfläche – nur auf kleinen Bildschirmen sichtbar */
.nav-toggle {
    display: none;
}

.mainmenu {
    margin: 20px 0 0 0;
    padding: 0;
    list-style: none;
}

.mainmenu li {
    position: relative;
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid #FFF1D9;
    line-height: 1;
}

.mainmenu li:last-child {
    border-bottom: none;
}

.mainmenu li a {
    display: block;
    height: 36px;
    padding: 3px;
    font-size: 20px;
    line-height: 30px;
    color: #FFF1D9;
    text-align: center;
    text-decoration: none;
    font-weight: normal;
    cursor: pointer;
}

.mainmenu li a:hover,
.mainmenu li a:focus,
.mainmenu li.selected a {
    text-decoration: none;
}

/* ---------- Inhaltsmodule ("fewo-default" Container) ---------- */
.module {
    margin-bottom: 20px;
}

.module h1,
.module .h1 {
    display: block;
    margin: 0 0 15px 0;
    color: #FFF1D9;
    font-size: 20px;
    font-weight: bold;
    line-height: 1em;
    vertical-align: top;
}

.module h2 {
    margin: 0 0 10px 0;
    color: #FFF1D9;
    font-size: 17px;
    font-weight: bold;
}

.module h3 {
    margin: 0.86em 0 0 0;
    color: #FFF1D9;
    font-size: 17px;
    font-weight: bold;
}

.text {
    font-size: 16px;   /* einheitlich auf allen Seiten, wie die Startseite */
    color: #FFF1D9;
    letter-spacing: 0;
    text-align: justify;
}

.text a {
    color: #FFF1D9;
    text-decoration: none;
}

.text a:hover,
.text a:focus {
    text-decoration: underline;
}

.text ul {
    margin: 1em 40px 1em 0;
    padding-left: 1.4em;     /* Punkt sitzt im Einzug, Folgezeilen hängen unter dem Text */
}

.text ul ul {
    margin: 0 0 0 0;
    padding-left: 1.4em;
}

.text ul li {
    list-style-position: outside;
    text-align: left;
    padding: 0;
    margin: 0;
}

.text .underline {
    text-decoration: underline;
}

.text .center {
    text-align: center;
}

/* Holz-Rahmen um Bilder / Karten / Galerie */
.woodbackground {
    display: block;
    padding: 5px;
    background: url(../img/holz.jpg);
    border-radius: 2px;
}

img.woodbackground {
    width: 680px;      /* 670px Bild + 2 x 5px Rahmen */
    max-width: 100%;
    height: auto;
}

/* ---------- Startseite ---------- */
.home-caption {
    margin: 5px 0;
    text-align: center;
    font-size: 13px;
    font-style: italic;
}

.home-text p {
    font-size: 16px;
}

.home-text .wappen {
    float: left;
    width: 63px;
    height: 80px;
    margin: 5px 8px 0 0;
}

/* Hervorgehobene Ortsnamen: fett + kursiv, 18px */
.home-text .hl {
    font-size: 18px;
    font-weight: bold;
    font-style: italic;
}

.home-text .hl-plain {
    font-size: 16px;
    font-weight: bold;
    font-style: normal;
}

.home-text .bold-note {
    font-weight: bold;
}

/* ---------- Zweispaltige Zeilen (Preise, Links, Kontakt, Impressum) ---------- */
.row {
    display: flex;
    flex-wrap: wrap;
}

.row .col {
    width: 50%;
    flex: 0 0 50%;
    min-width: 0;
}

.row .col-right {
    text-align: right;
}

.price-table .row .col {
    padding: 1px 0;
}

.price-table .note {
    padding: 1px 0;
    text-align: center;
}

.links-table .row + .row {
    margin-top: 21px;
}

.links-table .col {
    text-align: left;
    word-break: break-word;
}

.contact-block .row {
    margin-top: 21px;
}

.contact-block .col {
    text-align: left;
}

.map {
    width: 680px;
    max-width: 100%;
    margin-top: 42px;
}

.map iframe {
    display: block;
    width: 100%;
    aspect-ratio: 670 / 400;
    border: 0;
}

.impressum .row .col {
    text-align: left;
}

/* Faktenübersicht (Startseite) und Häufige Fragen (Preise) */
.facts h2,
.faq h2 {
    font-size: 20px;
    margin: 0 0 15px 0;
}

.facts .text ul {
    margin-top: 0;
}

.facts .text a {
    text-decoration: underline;
}

.faq h3 {
    font-size: 16px;
    margin-top: 1em;
}

.faq h3 + p {
    margin-top: 2px;
}

/* Datenschutz: Aufzählungspunkt und fetter Begriff in einer Zeile */
.datenschutz li > p:first-child {
    display: inline;
}

.datenschutz li > p:first-child + p {
    margin-top: 0;
}

/* ---------- Bildergalerie (Ersatz für den alten FlexSlider) ---------- */
.gallery {
    width: 680px;
    max-width: 100%;
}

.gallery-stage {
    position: relative;
    overflow: hidden;
    /* Holzoptik auch hinter transparenten PNGs (z. B. Grundriss) */
    background: url(../img/holz.jpg);
}

.gallery-stage img {
    display: block;
    width: 100%;
    aspect-ratio: 670 / 419;
    object-fit: cover;
}

.gallery-slide {
    display: none;
}

.gallery-slide.is-active {
    display: block;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: #FFF1D9;
    font: bold 28px/38px Arial, sans-serif;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s;
}

.gallery-arrow.prev { left: 10px; }
.gallery-arrow.next { right: 10px; }

.gallery:hover .gallery-arrow,
.gallery-arrow:focus {
    opacity: 0.8;
}

.gallery-arrow:hover {
    opacity: 1;
}

.gallery-thumbs {
    display: flex;
    gap: 5px;
    margin: 5px 0 0 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    /* Scrollbar unsichtbar, Leiste bleibt per Wischen / Pfeiltasten scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.gallery-thumbs li {
    flex: 0 0 auto;
    margin: 0;
}

.gallery-thumbs button {
    display: block;
    width: 130px;
    padding: 0;
    border: 2px solid transparent;
    background: none;
    cursor: pointer;
    opacity: 0.6;
}

.gallery-thumbs button img {
    display: block;
    width: 100%;
    aspect-ratio: 670 / 419;
    object-fit: cover;
}

.gallery-thumbs button:hover,
.gallery-thumbs button.is-active {
    opacity: 1;
    border-color: #800000;
}

/* Galerie mit einem einzigen Bild braucht keine Bedienelemente */
.gallery.is-single .gallery-arrow,
.gallery.is-single .gallery-thumbs {
    display: none;
}

/* ---------- Fußzeile ---------- */
.site-footer {
    margin: 0 0 10px 0;
    padding: 0;
    text-align: right;
    font-size: 12px;
    color: #FFF1D9;
}

/* ==========================================================================
   Responsive Anpassungen
   ========================================================================== */

/* Etwas schmaler als das 960px-Raster: Kopfbilder dürfen schrumpfen */
@media screen and (max-width: 980px) {
    .wrapper {
        padding: 0 10px;
    }

    .header-pictures ul {
        gap: 12px;
    }
}

/* Tablet / kleines Notebook: Kopf untereinander, Inhalt bleibt zweispaltig */
@media screen and (max-width: 800px) {
    .site-header {
        flex-direction: column;
        align-items: center;
    }

    .header-brand,
    .header-pictures {
        width: 100%;
        flex: 0 0 auto;
    }

    .header-pictures {
        padding-top: 14px;
    }

    .header-pictures ul {
        justify-content: center;
        gap: 10px;
    }

    .site-nav {
        width: 30%;
        flex: 0 0 30%;
    }

    .site-content {
        width: 70%;
        flex: 0 0 70%;
        padding: 20px 0 0 20px;
    }
}

/* Smartphone: alles einspaltig, Menü zum Aufklappen */
@media screen and (max-width: 640px) {
    /* Logo bleibt wie am Desktop bei 60-135px, also im Holzband */
    .header-pictures {
        padding-top: 10px;
    }

    .header-pictures ul {
        gap: 6px;
    }

    .header-pictures li {
        flex: 1 1 0;
        max-width: 161px;
    }

    .header-pictures img {
        width: 100%;
        padding: 2px;
    }

    .site-main {
        flex-direction: column;
    }

    .site-nav,
    .site-content {
        width: 100%;
        flex: 0 0 auto;
    }

    .site-content {
        padding: 20px 0 0 0;
    }

    .nav-toggle {
        display: block;
        width: 100%;
        margin: 20px 0 0 0;
        padding: 10px 3px;
        border: 1px solid #FFF1D9;
        border-radius: 2px;
        background: transparent;
        color: #FFF1D9;
        font: 20px/30px Arial, Calibri, Helvetica, sans-serif;
        text-align: center;
        cursor: pointer;
        user-select: none;
        -webkit-user-select: none;
    }

    .nav-toggle::before {
        content: "\2630\00a0\00a0";  /* ☰ */
    }

    .nav-toggle[aria-expanded="true"]::before {
        content: "\2715\00a0\00a0";  /* ✕ */
    }

    /* Ohne JavaScript bleibt das Menü immer sichtbar */
    .js .mainmenu {
        display: none;
        margin-top: 0;
        border: 1px solid #FFF1D9;
        border-top: 0;
        border-radius: 0 0 2px 2px;
    }

    .js .mainmenu.is-open {
        display: block;
    }

    .js .mainmenu li {
        padding: 4px 0;
    }

    .text {
        text-align: left;
    }

    .text ul {
        margin-right: 0;
    }

    .text {
        font-size: 15px;
    }

    .home-text .hl {
        font-size: 17px;
    }

    .contact-block .row .col,
    .impressum .row .col,
    .links-table .row .col {
        width: 100%;
        flex: 0 0 100%;
    }

    .contact-block .row .col + .col,
    .impressum .row .col + .col {
        margin-top: 12px;
    }

    .links-table .row + .row {
        margin-top: 12px;
    }

    .map {
        margin-top: 24px;
    }

    .gallery-thumbs button {
        width: 96px;
    }

    .gallery-arrow {
        opacity: 0.6;
    }

    .site-footer {
        text-align: center;
    }
}

/* Sehr schmale Geräte */
@media screen and (max-width: 360px) {
    .price-table .row .col-left {
        flex: 0 0 60%;
        width: 60%;
    }

    .price-table .row .col-right {
        flex: 0 0 40%;
        width: 40%;
    }
}

/* Druck: dunkler Hintergrund weg, Menü weg */
@media print {
    html, body {
        background: #fff;
        color: #000;
    }

    .site-nav,
    .header-pictures,
    .gallery-arrow,
    .gallery-thumbs {
        display: none !important;
    }

    .site-content {
        width: 100%;
        flex: 0 0 100%;
        padding: 0;
    }

    .text, .module h1, .module .h1, .module h2, .module h3, a, .text a, .site-footer {
        color: #000;
    }
}
