/*
 * Eigene Gestaltung des Bruckhuberhofs.
 * Aufbau: Grundregeln für alle Bildschirme, danach Anpassungen je Breakpoint:
 *   ab 992px (Desktop), 992–1299px (kleiner Desktop), bis 991px (Tablet + Smartphone), bis 767px (Smartphone).
 */

/* ---------- Schriften ---------- */
@font-face {
    font-family: 'Dancing Script';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/dancing-script-v24-latin-regular.woff2') format('woff2'),
         url('../fonts/dancing-script-v24-latin-regular.woff') format('woff');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/roboto-regular.woff') format('woff');
}

/* ---------- Grundlayout ---------- */
body {
    font-family: "Open Sans", Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: #000000;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
}

p:last-child {
    margin-bottom: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
}

.main-container {
    position: relative;
    display: block;
    margin: 0 auto;
    width: 100%;
}

.body-bg,
.animate-container {
    position: relative;
    z-index: 9;
}

.main-section {
    position: relative;
    z-index: 49;
    width: 100%;
    background-color: #ffffff;
}

.main-section-inner {
    background-color: #ffffff;
    padding-top: 30px;
    padding-bottom: 40px;
}

.main-section-container {
    display: table;
    position: relative;
    width: 100%;
}

.main-section-container ul {
    margin-left: 15px;
}

.main-section section {
    position: relative;
    min-height: 300px;
    padding: 0 40px;
}

.frame {
    margin-top: 0;
    margin-bottom: 48px;
}

.frame:last-child {
    margin-bottom: 0;
}

.thumbnail {
    margin-bottom: 0;
}

/* Bildzeilen: gleich hohe Spalten statt JavaScript-Höhenausgleich */
.image-row {
    display: flex;
    flex-wrap: wrap;
}

.image-row::before,
.image-row::after {
    display: none;
}

.image-row > [class*="col-"] {
    margin-bottom: 30px;
}

.image img {
    max-width: 100%;
    height: auto;
}

/* Bilder im Fließtext (z. B. Ausflugsziele) */
.panel-body p img {
    display: inline-block;
    max-width: 100%;
    height: auto;
    margin: 0 4px 8px 0;
}

/* ---------- Schrift ---------- */
h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 48px;
    color: #6f953a;
    padding-top: 20px;
    padding-bottom: 15px;
}

.subtitle-h1 {
    font-size: 24px;
    margin-top: -20px;
    margin-bottom: 20px;
    color: #ababab;
}

h2 {
    font-size: 25px;
    color: #665f58;
    padding-bottom: 15px;
}

/* ---------- Kopfbereich ---------- */
header {
    background-color: rgba(140, 191, 67, 0.9) !important;
    background-image: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0));
    border: none !important;
    min-height: auto !important;
    color: #ffffff !important;
    margin: 0 !important;
    width: 100% !important;
    z-index: 50;
}

header.fixed {
    z-index: 999;
}

.logo-brand .navbar-brand {
    float: inherit !important;
    padding: 0;
    font-size: 20px;
    line-height: 100px;
    height: 100px;
}

.navbar-main > li > a {
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    text-transform: none;
    padding: 0 10px !important;
}

.dropdown-menu > li > a {
    display: block;
    clear: both;
    font-weight: normal;
    line-height: 1.55;
    white-space: nowrap;
}

/* ---------- Galeriemodus und Slideshow ---------- */
.hidebutton {
    position: fixed;
    z-index: 999;
    display: table;
    bottom: 0;
    left: 50%;
    margin-left: -90px;
}

.showhidebutton {
    display: table;
    margin: 0 auto;
    padding: 5px 15px;
    border: 0;
    border-radius: 10px 10px 0 0;
    background-color: rgba(134, 179, 71, 0.9);
    box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.35);
    color: #ffffff;
    font-weight: 400;
    font-size: 13px;
}

.showhidebutton:hover,
.showhidebutton:focus {
    background-color: rgba(121, 177, 115, 1);
}

.superbuttonhide {
    display: none !important;
}

#prevslide,
#nextslide {
    position: fixed;
    z-index: 10;
    top: 50%;
    width: 43px;
    height: 43px;
    margin-top: -21px;
    opacity: 0.6;
    overflow: hidden;
    text-indent: 9999px;
    cursor: pointer;
}

#prevslide {
    left: 10px;
    background: url('../img/layout/back.png');
}

#nextslide {
    right: 10px;
    background: url('../img/layout/forward.png');
}

/* ---------- Fußbereich ---------- */
footer {
    position: relative;
    z-index: 49;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #686868;
}

footer a:hover,
footer a:focus {
    color: #ffffff !important;
}

.content-wrapper {
    background-color: #f5f5f5;
    padding: 30px 0;
}

.content-wrapper .image-row > [class*="col-"] {
    margin-bottom: 0;
}

.footer-section {
    border-top: none;
    color: #ffffff;
    background: #595959;
    padding: 40px 0;
}

.footer-section h3 {
    font-size: 24px;
    color: #7ea745;
    padding-bottom: 0;
}

.footer-section ul {
    padding-left: 30px;
}

.meta-section {
    color: #ffffff;
    background-color: #353535;
    padding: 12px 0;
    font-size: 14px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.meta-section a {
    font-weight: 500;
}

/* Button sieht aus wie die Links daneben */
.cookie-settings-button {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font-weight: 500;
    cursor: pointer;
}

.cookie-settings-button:hover,
.cookie-settings-button:focus {
    text-decoration: underline;
}

/* ---------- Kontakt ---------- */
.contact-data {
    font-size: 18px;
    line-height: 1.7;
}

/* ---------- Externe Inhalte (erst nach Einwilligung) ---------- */
.consent-embed iframe {
    display: block;
    width: 100%;
    border: 0;
}

.consent-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    padding: 30px 20px;
    border: 1px solid #dddddd;
    background-color: #f5f5f5;
    text-align: center;
}

.consent-placeholder-title {
    font-size: 20px;
    font-weight: 600;
    color: #665f58;
}

.consent-placeholder p {
    max-width: 640px;
    margin-bottom: 15px;
}

.consent-placeholder .btn-link {
    color: #6f953a;
}

/* ---------- Desktop: ab 992px ---------- */
@media (min-width: 992px) {
    header {
        position: fixed !important;
        height: 100px;
        transition: height 400ms ease;
    }

    header.scrolling {
        margin-top: 0 !important;
        height: 60px !important;
    }

    .logo-brand {
        position: relative;
        left: 0;
        top: 0;
        height: 100px;
        display: table;
        transition: all 500ms ease;
    }

    .scrolling .logo-brand {
        transform: scale(0.6);
        margin-top: -24px !important;
    }

    .scrolling .logo-brand .navbar-brand img {
        width: 100%;
        height: auto;
    }

    .navbar-mobile {
        display: none !important;
    }

    .navbar-main > li > a {
        font-weight: 400;
        font-size: 17px;
        color: #ffffff !important;
        line-height: 100px;
        transition: all 400ms ease;
    }

    .scrolling .navbar-main > li > a {
        line-height: 60px !important;
    }

    .navbar-main > li.active > a,
    .navbar-main > li > a:hover,
    .navbar-main > li > a:focus {
        background-color: #86bf58 !important;
        color: #ffffff !important;
    }

    .dropdown-menu {
        border-left: 0;
        border-bottom: 0;
        border-right: 0;
        background-color: #86bf58 !important;
    }

    .dropdown-menu > li > a {
        padding: 10px 8px !important;
        color: #ffffff;
        font-size: 14px;
    }

    .dropdown-menu > li > a:hover,
    .dropdown-menu > li > a:focus,
    .dropdown-menu > .active > a {
        color: #ffffff !important;
        text-decoration: none;
        outline: 0;
        background-color: #89b54a !important;
    }

    /* Untermenü bei Mausberührung und bei Tastaturbedienung öffnen */
    .navbar-nav > .dropdown:hover > .dropdown-menu,
    .navbar-nav > .dropdown:focus-within > .dropdown-menu {
        display: block !important;
    }

    .main-section-inner {
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* ---------- Kleiner Desktop: 992px bis 1299px ---------- */
@media (min-width: 992px) and (max-width: 1299px) {
    header {
        height: 70px;
        transition: all 400ms ease;
    }

    .logo-brand {
        height: auto;
    }

    .logo-brand .navbar-brand {
        line-height: 60px;
        height: 60px;
        margin: 0 !important;
    }

    .logo-brand .navbar-brand img {
        width: 100%;
        max-width: 230px;
        height: auto;
    }

    .scrolling .logo-brand {
        margin-top: -5px !important;
    }

    .navbar-main {
        float: right;
    }

    .navbar-main > li > a {
        font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
        font-size: 14px;
        line-height: 70px;
        padding: 0 7px !important;
    }

    h2 {
        color: #8b836c;
    }
}

/* ---------- Tablet und Smartphone: bis 991px ---------- */
@media (max-width: 991px) {
    body {
        font-size: 14px;
    }

    .hidebutton,
    #prevslide,
    #nextslide {
        display: none !important;
    }

    header {
        background-color: rgba(140, 191, 67, 1) !important;
        height: auto !important;
    }

    .navbar-toggle {
        width: 100px !important;
        padding-left: 50px;
        background-color: #ffffff;
    }

    .navbar-toggle .icon-bar {
        background-color: #333333 !important;
    }

    .navbar-toggle .menu {
        position: absolute;
        right: 11px;
        top: 2px;
        font-size: 18px;
        text-transform: uppercase;
        color: #333333;
    }

    .logo-brand {
        position: absolute;
        left: 10px;
        top: 8px;
        z-index: 60;
        display: table;
        width: 100px;
        height: 100px;
        margin: 0;
    }

    .logo-brand .navbar-brand {
        margin: 0 !important;
    }

    .logo-brand .navbar-brand img {
        max-width: 180px;
        height: auto;
    }

    .navbar-desktop {
        display: none;
    }

    .navbar-nav {
        margin: 0 -15px;
    }

    .navbar-mobile {
        padding-top: 10px;
        border: none !important;
        background-color: #ffffff;
    }

    .navbar-main > li {
        border-bottom: 1px dashed #cccccc;
    }

    .navbar-mobile > .navbar-main > li:last-child {
        border-bottom: none;
    }

    .navbar-main > li > a {
        font-weight: 500;
        font-size: 14px;
        line-height: 50px;
    }

    .navbar-main > li.active > a,
    .navbar-main > li.active > a:hover {
        color: #ffffff !important;
        background-color: #9fb941 !important;
    }

    .navbar-main > li > a:hover,
    .navbar-main > li > a:focus {
        color: #9fb941 !important;
        background-color: inherit !important;
    }

    .dropdown-menu {
        display: block;
        position: relative;
        float: none;
        width: 100%;
        background-color: #ededed;
        color: #333333;
        font-size: inherit !important;
        border: none;
        box-shadow: none;
    }

    .dropdown-menu > li > a {
        padding: 8px 20px !important;
        color: #333333;
    }

    .dropdown-menu > li > a:hover,
    .dropdown-menu > li > a:focus,
    .dropdown-menu > .active > a {
        background-color: inherit !important;
        color: #9fb941 !important;
    }

    h1 {
        font-size: 36px;
        padding-top: 0;
    }

    .subtitle-h1 {
        margin-bottom: 0;
    }

    h2 {
        font-size: 24px;
    }

    .main-section section {
        min-height: 400px;
    }

    .footer-section h3 {
        font-size: 30px;
        color: #ffffff;
        text-shadow: 1px 1px 19px #000000, 2px 1px 0 #cccccc;
    }

    .footer-section p {
        line-height: 30px;
    }
}

/* ---------- Smartphone: bis 767px ---------- */
@media (max-width: 767px) {
    .main-section-inner {
        padding-bottom: 0;
    }

    .main-section section {
        min-height: 0;
        padding: 0 10px 30px;
    }

    h1 {
        font-size: 30px;
    }

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

    h2 {
        color: #676058;
    }

    .navbar-main > li > a {
        font-size: 12px;
    }

    .navbar-main > li.active > a,
    .navbar-main > li.active > a:hover {
        background-color: #676058 !important;
    }

    .navbar-main > li > a:hover,
    .navbar-main > li > a:focus {
        color: #676058 !important;
    }

    .footer-section h3 {
        font-size: 24px;
        color: #7ea745;
        text-shadow: none;
    }

    .rand-unten {
        margin-bottom: 30px;
        padding-bottom: 5px;
        border-bottom: 1px dotted #8f8f8f;
    }

    .meta-section {
        font-size: 12px;
    }

    /* Preistabelle: jede Zeile als Karte, Personen und Preis paarweise nebeneinander */
    .table-responsive {
        border: 0;
    }

    .table-responsive .table tr {
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 15px;
        border: 1px solid #cccccc;
    }

    .table-responsive .table td {
        flex: 1 1 50%;
        border: 0;
        border-bottom: 1px solid #eeeeee;
    }

    .table-responsive .table td:first-child,
    .table-responsive .table td:last-child {
        flex-basis: 100%;
    }

    .table-responsive .table td:first-child {
        font-weight: 600;
    }

    .consent-placeholder {
        min-height: 200px;
    }
}
