/* ============================================================
   Landgang im Küstenwald – Design & Barrierefreiheit
   WCAG 2.1 AA / BFSG-konform
   ============================================================ */

/* ── 1. BODY & HINTERGRUND ─────────────────────────────────── */

body {
    background-color: #1a1a1a;
    background-image: url('../../../images/Luftbild_Kstenwald_800.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    color: #e8e8e8;
    font-size: 14px;
    line-height: 1.7;
}

/* ── 2. SKIP-NAVIGATION (BFSG / WCAG 2.4.1) ────────────────── */

.skip-link {
    position: absolute;
    left: -999px;
    top: -999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: -1;
    background: #CBA844;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    padding: 10px 20px;
}

.skip-link:focus {
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    overflow: visible;
    z-index: 999999;
    outline: 3px solid #000;
    outline-offset: 0;
}

/* ── 3. FOKUS-INDIKATOREN (WCAG 2.4.7 / 2.4.11) ───────────── */

a:focus,
a:focus-visible,
button:focus,
button:focus-visible,
input:focus,
select:focus,
textarea:focus,
[tabindex]:focus {
    outline: 3px solid #CBA844 !important;
    outline-offset: 2px !important;
}

/* ── 4. HEADER / LOGO ──────────────────────────────────────── */

#header-row {
    background-color: rgba(0, 0, 0, 0.82);
    padding: 12px 0;
}

#header-row #logo {
    text-align: center;
    padding: 5px 0;
}

#header-row #logo a {
    display: inline-block;
    line-height: normal;
}

#header-row #logo img {
    max-height: 80px;
    width: auto;
    max-width: 90%;
}

/* ── 5. NAVIGATION ─────────────────────────────────────────── */

#header-bottom-row {
    /* sticky: klebt oben, liegt immer über dem Slideshow-Bild */
    position: sticky;
    top: 0;
    z-index: 500;
    /* Hoher Opazitätswert → garantierter Kontrast unabhängig vom Hintergrundbild */
    background-color: rgba(10, 10, 10, 0.94);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-bottom: 3px solid #CBA844;
    padding: 0 !important;
}

#header-bottom-row .container {
    border-bottom: none !important;
    padding: 0 !important;
    position: relative;
}

#as-menu {
    padding: 0;
    display: flex;
    align-items: center;
}

/* Desktop-Menü: Flexbox statt Float */
#as-menu ul.as-menu {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

#as-menu ul.as-menu > li {
    float: none !important;
    width: auto !important;
    flex: 1 1 auto;
    text-align: center;
    margin: 0;
    padding: 0;
}

#as-menu ul.as-menu > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 8px;
    min-height: 44px;
    color: #e8e8e8;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease, background-color 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

#as-menu ul.as-menu > li > a:hover,
#as-menu ul.as-menu > li.active > a,
#as-menu ul.as-menu > li.current > a,
#as-menu ul.as-menu > li.asHover > a {
    color: #E08034;
    background-color: rgba(255, 255, 255, 0.07);
}

#as-menu ul.as-menu > li.active > a,
#as-menu ul.as-menu > li.current > a {
    border-bottom: 3px solid #E08034;
}

/* ── Burger-Button (nur mobil sichtbar) ── */
.burger-toggle {
    display: none;
    background: none;
    border: 2px solid #CBA844;
    border-radius: 4px;
    cursor: pointer;
    padding: 8px 10px;
    margin: 6px 16px 6px auto;
    min-height: 44px;
    min-width: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-shrink: 0;
}

.burger-line {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #e8e8e8;
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
}

/* X-Animation wenn offen */
.burger-toggle[aria-expanded="true"] .burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.burger-toggle[aria-expanded="true"] .burger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.burger-toggle[aria-expanded="true"] .burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── 6. SLIDESHOW ──────────────────────────────────────────── */

#camera-wrap {
    overflow: hidden;
    position: relative;
}

#camera-slideshow {
    min-height: 280px;
}

/* ── 7. INHALTSBEREICH ─────────────────────────────────────── */

#content-row {
    background-color: rgba(0, 0, 0, 0.80);
    min-height: 300px;
}

#content-row .container {
    padding: 30px 20px 40px !important;
}

#component {
    color: #e8e8e8;
}

#component p,
#component li,
#component td,
#component dd {
    color: #e8e8e8;
    font-size: 14px;
    line-height: 1.75;
}

#component h1,
#component h2,
#component h3,
#component h4 {
    color: #CBA844;
    margin-top: 20px;
    margin-bottom: 12px;
}

#component h2.item_title {
    font-size: 22px;
    border-bottom: 1px solid rgba(203, 168, 68, 0.4);
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 24px;
}

/* Links im Inhaltsbereich */
#component a {
    color: #CBA844;
    text-decoration: underline;
    text-underline-offset: 2px;
}

#component a:hover {
    color: #fff;
    text-decoration: none;
}

/* Listen */
.item_fulltext ul,
.item_fulltext ol {
    padding-left: 22px;
    margin-bottom: 16px;
}

.item_fulltext ul li {
    list-style-type: disc;
    list-style-image: none !important;
    line-height: 1.75;
    margin-bottom: 5px;
    color: #e8e8e8;
}

.item_fulltext ol li {
    list-style-type: decimal;
    line-height: 1.75;
    margin-bottom: 5px;
    color: #e8e8e8;
}

/* Bilder im Inhalt */
#component img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
}

/* Externer-Link-Hinweis */
#component a[target="_blank"]::after {
    content: " \2197";
    font-size: 11px;
    opacity: 0.7;
}


/* ── 8. PREISTABELLE ────────────────────────────────────────── */

.preise-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: 14px;
}

.preise-table caption {
    color: #CBA844;
    font-size: 16px;
    font-weight: bold;
    text-align: left;
    padding: 0 0 10px 0;
    caption-side: top;
}

.preise-table th {
    background-color: rgba(203, 168, 68, 0.18);
    color: #CBA844;
    padding: 10px 16px;
    text-align: left;
    border-bottom: 2px solid rgba(203, 168, 68, 0.5);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preise-table td {
    padding: 9px 16px;
    color: #e8e8e8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.preise-table td.preise-wert {
    text-align: right;
    font-weight: bold;
    color: #fff;
    white-space: nowrap;
}

.preise-table tr:last-child td {
    border-bottom: none;
}

.preise-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.04);
}

.preise-section {
    margin-bottom: 28px;
}

.preise-section h3 {
    color: #CBA844;
    font-size: 15px;
    margin: 24px 0 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(203, 168, 68, 0.3);
}

/* ── 9. GALERIE (Dia-Show) ──────────────────────────────────── */

.phocagallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 20px;
}

.phocagallery-column-item {
    flex: 1 1 160px;
    max-width: 200px;
    text-align: center;
}

.phocagallery-column-item a {
    display: block;
    text-decoration: none;
    color: #e8e8e8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.phocagallery-column-item a:hover {
    border-color: #CBA844;
    box-shadow: 0 0 8px rgba(203, 168, 68, 0.3);
    color: #CBA844;
}

.phocagallery-column-item img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}

.phocagallery-column-item span {
    display: block;
    padding: 6px 4px;
    font-size: 12px;
    line-height: 1.3;
}

/* ── 10. KONTAKT / ADRESSE ──────────────────────────────────── */

address {
    font-style: normal;
    line-height: 1.8;
    color: #e8e8e8;
}

/* ── 11. FOOTER ─────────────────────────────────────────────── */

#footer-row {
    background: rgba(0, 0, 0, 0.88);
    border-top: 3px solid #E96722;
    padding: 20px 0;
}

#footer-row .container {
    padding: 16px 20px !important;
}

#footer-row p {
    color: #aaa;
    font-size: 12px;
    padding-bottom: 5px;
}

#copyright-row {
    background-color: #0a0a0a;
    text-align: center;
}

#copyright-row .container {
    padding: 12px 20px !important;
}

#copyright-row p {
    color: #888;
    font-size: 11px;
    margin-bottom: 3px;
    padding-bottom: 0;
}

#copyright-row a {
    color: #CBA844;
    text-decoration: none;
}

#copyright-row a:hover {
    text-decoration: underline;
}

/* ── 12. COOKIE-BANNER ─────────────────────────────────────── */

#redim-cookiehint-bottom {
    background-color: rgba(12, 12, 12, 0.97) !important;
    border-top: 2px solid #CBA844;
    padding: 14px 20px !important;
    color: #e8e8e8;
    font-size: 13px;
    line-height: 1.5;
}

.cookiehint-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.cookiehint-text {
    flex: 1 1 260px;
    color: #e8e8e8;
}

.cookiehint-btn {
    min-height: 44px;
    padding: 8px 18px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.cookiehint-btn-accept {
    background-color: #CBA844;
    color: #000;
}

.cookiehint-btn-accept:hover {
    background-color: #d9bc60;
    color: #000;
}

.cookiehint-btn-decline {
    background-color: #404040;
    color: #e8e8e8;
}

.cookiehint-btn-decline:hover {
    background-color: #505050;
    color: #fff;
}

.cookiehint-btn-info {
    background-color: transparent;
    color: #CBA844;
    text-decoration: underline;
    border: 1px solid rgba(203, 168, 68, 0.4);
    font-weight: normal;
}

.cookiehint-btn-info:hover {
    background-color: rgba(203, 168, 68, 0.1);
    color: #CBA844;
}

/* ── 13. RESPONSIVE ─────────────────────────────────────────── */

@media (max-width: 980px) {
    #as-menu ul.as-menu > li > a {
        font-size: 11px;
        padding: 12px 5px;
        letter-spacing: 0;
    }
}

@media (max-width: 991px) {
    body {
        background-attachment: scroll;
    }

    /* Nav-Balken auf mobil transparent */
    #header-bottom-row {
        background-color: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-bottom: none;
    }

    /* Burger-Button einblenden */
    .burger-toggle {
        display: flex !important;
    }

    /* Desktop-Menü: standardmäßig verborgen */
    #as-menu ul.as-menu {
        display: none !important;
        flex-direction: column !important;
        width: 100%;
        background-color: rgba(10, 10, 10, 0.97);
        border-top: 1px solid rgba(203, 168, 68, 0.3);
    }

    /* Geöffnetes Menü */
    #as-menu ul.as-menu.menu-open {
        display: flex !important;
    }

    #as-menu ul.as-menu > li {
        flex: none;
        width: 100%;
        border-bottom: 1px solid rgba(203, 168, 68, 0.15);
    }

    #as-menu ul.as-menu > li:last-child {
        border-bottom: none;
    }

    nav#header-bottom-row #as-menu ul.as-menu > li > a {
        justify-content: flex-start;
        padding: 14px 24px 14px 36px !important;
        font-size: 13px;
    }

    /* Aktiv-Indikator mobil: linke statt untere Linie */
    nav#header-bottom-row #as-menu ul.as-menu > li.active > a,
    nav#header-bottom-row #as-menu ul.as-menu > li.current > a {
        border-bottom: none;
        border-left: 4px solid #E08034;
        padding-left: 32px !important;
    }

    /* as-menu und burger nebeneinander */
    #as-menu {
        flex-wrap: wrap;
        align-items: center;
    }

    /* Slideshow */
    #camera-slideshow {
        min-height: 180px;
    }

    #header-row #logo img {
        max-height: 60px;
    }

    #content-row .container {
        padding: 20px 15px 30px !important;
    }

    .phocagallery-container {
        gap: 8px;
    }

    .phocagallery-column-item {
        flex: 1 1 130px;
        max-width: none;
    }

    .preise-table td,
    .preise-table th {
        padding: 8px 10px;
        font-size: 13px;
    }

    .cookiehint-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    #footer-row .container {
        padding: 15px !important;
    }

    #component h2.item_title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    #camera-slideshow {
        min-height: 120px;
    }

    #component h2.item_title {
        font-size: 16px;
    }

    #component h3 {
        font-size: 15px;
    }

    .phocagallery-column-item {
        flex: 1 1 calc(50% - 8px);
    }

    .preise-table {
        display: block;
        overflow-x: auto;
    }

    .cookiehint-btn {
        width: 100%;
        text-align: center;
    }

    .cookiehint-btn-info {
        width: auto;
    }
}
