/* Apartment Tübingen – Design. Farben/Schriften hier oben anpassen. */
:root {
    --accent: #db9459;          /* Überschriften (orange) */
    --text: #222;
    --muted: #777;
    --line: #dcdcdc;
    --nav-bg: rgba(255, 255, 255, .88);
    --nav-sep: #c9c9c9;
    --hero-h: 354px;
    --font-head: "Open Sans", "Segoe UI", Helvetica, Arial, sans-serif;
    --font-body: "Lora", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font: 400 18px/1.5 var(--font-body);
    color: var(--text);
    background: #fff;
}
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }

/* ---------- Kopfbereich: Bild + Titel + Menü darüber ---------- */
.site-header { position: relative; border-bottom: 1px solid var(--line); }
.hero {
    height: var(--hero-h);
    background: #8a7a68 center / cover no-repeat;     /* Fallback-Farbe, falls Bild fehlt */
}
.bar { position: absolute; top: 9px; left: 0; right: 0; }
.bar-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }

.brand {
    font: 700 20px/34px var(--font-head);
    color: #fff;
    text-decoration: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
}

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; background: var(--nav-bg); }
.site-nav li + li { border-left: 1px solid var(--nav-sep); }
.site-nav a {
    display: block;
    padding: 0 18px;
    font: 800 11px/34px var(--font-head);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #222;
    text-decoration: none;
}
.site-nav a:hover, .site-nav a.current { background: #fff; color: var(--accent); }

.nav-toggle { display: none; }

/* ---------- Inhalt ---------- */
.main { min-height: 320px; padding: 36px 0 40px; }
.content { max-width: 680px; }
.content.wide { max-width: 980px; }
h1, h2 { font-family: var(--font-head); color: var(--accent); font-weight: 700; line-height: 1.2; }
h1 { font-size: 28px; margin: 0 0 6px; }
h2 { font-size: 20px; margin: 18px 0 8px; }
p { margin: 0 0 14px; }
.content ul { margin: 0; padding-left: 20px; }
a { color: inherit; }
address { font-style: normal; margin-bottom: 14px; }

/* Galerie */
.gallery { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px;
           grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery img { display: block; width: 100%; height: 160px; object-fit: cover; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 16px 24px; text-align: center; font-size: 13px; }
.site-footer p { max-width: 620px; margin: 0 auto; }
.site-footer .muted { color: var(--muted); }
.site-footer a { color: var(--text); }

/* ---------- Mobil ---------- */
@media (max-width: 800px) {
    :root { --hero-h: 220px; }
    .bar-inner { flex-wrap: wrap; align-items: center; }
    .site-nav { position: relative; z-index: 5; }
    .nav-toggle {
        display: block; width: 44px; height: 40px; padding: 0; border: 0; cursor: pointer;
        background: var(--nav-bg); position: relative;
    }
    .nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
        content: ""; position: absolute; left: 11px; width: 22px; height: 3px; background: #222;
        transition: transform .2s, opacity .2s, top .2s;
    }
    .nav-toggle .bars { top: 18px; }
    .nav-toggle .bars::before { top: -7px; left: 0; }
    .nav-toggle .bars::after  { top: 7px;  left: 0; }
    .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
    .nav-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
    .nav-toggle[aria-expanded="true"] .bars::after  { top: 0; transform: rotate(-45deg); }
    .nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
    .site-nav { display: none; width: 100%; margin-top: 4px; }
    .site-nav.open { display: block; }
    .site-nav ul { flex-direction: column; background: #f4f4f4; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
    .site-nav li + li { border-left: 0; border-top: 1px solid var(--nav-sep); }
    .site-nav a { padding: 0 16px; line-height: 44px; font-size: 12px; }
    /* Ohne JavaScript: Menü immer sichtbar */
    html:not(.js) .site-nav { display: block; }
    .brand { font-size: 18px; }
    body { font-size: 17px; }
}

/* Rechtstexte */
.legal h2 { font-size: 20px; margin-top: 28px; }
.legal h3 { font-family: var(--font-head); font-size: 17px; margin: 22px 0 8px; }
.legal ul { margin-bottom: 14px; }
.legal li { margin-bottom: 6px; }
.small { font-size: 13px; color: var(--muted); margin-top: 28px; }

/* ---------- Galerie-Slider (Lightbox) ---------- */
.gallery a { display: block; cursor: zoom-in; }
.gallery img { transition: opacity .15s; }
.gallery a:hover img, .gallery a:focus-visible img { opacity: .85; }
.lb-open { overflow: hidden; }
.lb {
    position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, .9);
}
.lb[hidden] { display: none; }
.lb-fig { margin: 0; max-width: calc(100% - 140px); max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb-img { display: block; max-width: 100%; max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px); object-fit: contain; }
.lb-cap { color: #ddd; font: 14px/1.4 var(--font-head); padding: 10px 0 0; text-align: center; }
.lb-btn {
    position: absolute; border: 0; background: rgba(255, 255, 255, .15); color: #fff; cursor: pointer;
    width: 48px; height: 48px; border-radius: 50%; font-size: 22px; line-height: 48px; padding: 0;
}
.lb-btn:hover, .lb-btn:focus-visible { background: rgba(255, 255, 255, .35); outline: none; }
.lb-prev { left: 16px; top: 50%; margin-top: -24px; }
.lb-next { right: 16px; top: 50%; margin-top: -24px; }
.lb-close { right: 16px; top: 16px; font-size: 30px; }
@media (max-width: 800px) {
    .lb-fig { max-width: 100%; }
    .lb-prev, .lb-next { top: auto; bottom: 12px; margin-top: 0; }
    .lb-prev { left: 12px; } .lb-next { right: 12px; }
    .lb-img { max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); }
}

.directions li { margin-bottom: 10px; }
