/* ========================================
   Elektro Hoffner - Main Stylesheet
   Based on original fruesteg template
   1:1 Copy of original design
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Base Styles
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
html, body {
    background: #9c9c9f url(../images/template/bodybg.jpg) repeat-x 0 0;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

body {
    font-family: 'Open Sans', Verdana, Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #222;
}

a:link, a:visited {
    color: #002e77;
    text-decoration: none;
    transition: 0.5s all;
}

a:hover, a:active {
    color: #225099;
    text-decoration: underline;
}

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

figure {
    margin: 0 0 1em 0;
}

figure img {
    width: 100%;
}

p {
    margin: 0 0 10px 0;
    line-height: 160%;
}

h1, h2, h3, h4, h5, h6 {
    color: #cc0000;
    line-height: 120%;
    margin: 0;
}

h1 {
    padding: 0 0 10px 0;
    font-size: 2.0em;
    font-weight: 600;
}

h2 {
    margin: 10px 0 4px 0;
    font-size: 1.8em;
    font-weight: 600;
}

h3 {
    margin: 10px 0 4px 0;
    font-size: 1.2em;
}

strong { color: #000; }
a strong { color: #002e77; }

ul {
    line-height: 150%;
    margin-top: 0;
    margin-bottom: 10px;
    margin-left: 0;
    padding-left: 0.7em;
}

/* Content lists with gray disc bullets */
.content ul li,
.contentwide ul li {
    padding-bottom: 2px;
    list-style: none;
}
.content ul li::before,
.contentwide ul li::before {
    content: "●";
    color: #888;
    font-size: 0.6em;
    margin-right: 6px;
    vertical-align: middle;
}


/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Layout Blocks
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.wrapper {
    box-shadow: 0px 20px 40px -20px rgba(0, 0, 0, 0.4);
}

.wrapper, #topmenubox .m_inner {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto 0 auto;
}

.topspacer {
    padding-top: 120px;
    padding-bottom: 12%;
    width: 100%;
    background: #fff url(../images/template/header.jpg) no-repeat fixed center top;
    background-size: 100% auto, auto;
}

.contentbox {
    background: #fff;
}

/* frontpage */
.frontpage .topspacer {
    padding-top: 130px;
    padding-bottom: 18%;
}

.frontpage .topspacer {
    background: #fff url(../images/template/header.jpg) no-repeat;
    background-position: center 0;
    background-size: 100% auto, auto;
}


/* ===========================================================
   Content Area
*/
.container {
    margin: 0 auto 0 auto;
    width: 100%;
    max-width: 1200px;
    padding-top: 30px;
}

.leftbox {
    margin: 0 0 0 0;
    width: 24%;
    float: left;
}


/* ====================================================
   Main content area (right of leftbox)
   1/3 grid layout
*/
.mainbox {
    width: 75%;
    float: right;
    display: inline;
}

.content {
    width: 66%;
    float: left;
    display: inline;
    margin-left: 0;
}

.mainbox .content img {
    max-width: 100%;
    height: auto !important;
}

.mainbox .contentwide {
    width: 100%;
    margin: 0 0 0 0;
}

/* right inside .contentwide */
.mainbox .contentwide .contentwidenarrow {
    width: 66%;
}

.contentnarrow {
    /* Additional narrow content styles if needed */
}


/* ===========================================================
   Right Sidebar
*/
#rightbox {
    width: 32%;
    float: right;
    display: inline;
    border-left: 1px #aaa solid;
}

#rightbox .inner {
    margin: 0 3% 3px 3%;
    font-size: 1.0em;
    line-height: 135%;
}

#rightbox .inner img {
    max-width: 100%;
    height: auto !important;
}

#rightbox h2 {
    color: #cc0000;
    font-size: 1.2em;
    margin-bottom: 10px;
}

#openrightboxswitch, #closerightboxswitch {
    display: none;
}


/* ===========================================================
   Clear and Footer
*/
.clearcontent {
    height: 60px;
    clear: both;
}

.footerbox {
    height: 80px;
    font-size: 12px;
    color: #636363;
    width: 100%;
    background: #f1f1f1;
}

.footerbox .left {
    width: 25%;
    margin: 0 0 0 0;
    float: left;
}

.footerbox .center {
    width: 50%;
    margin: 10px 0 0 0;
    float: left;
    text-align: center;
}

#gototopswitch {
    float: right;
    margin: 10px 10px 0 0;
}


/* ===========================================================
   Top Menu Box (Fixed Header)
*/
#topmenubox {
    width: 100%;
    height: 110px;
    margin: 0 0 0 0;
    position: fixed;
    z-index: 5000;
    top: 0;
    left: 0%;
    transition: 0.5s all;
}

#topmenubox .m_inner {
    position: relative;
    height: 100%;
    background: #fff;
}

#topmenubox a.logo img {
    max-height: 80%;
    max-width: 100%;
    position: absolute;
    left: 2%;
    bottom: 3px;
    transition: 0.3s all;
}

#topmenubox.reduced {
    height: 42px;
    transition: 0.5s all;
}

#topmenubox.reduced #langmenu {
    opacity: 0;
    visibility: hidden;
    height: 0;
    padding: 0;
    margin: 0;
}

#topmenubox.reduced a.logo img {
    max-height: 36px;
    bottom: 3px;
}

#topmenubox.reduced #nav {
    bottom: 0;
}

#topmenubox.reduced #nav ul li a span {
    padding: 12px 12px 13px 12px;
    line-height: 1;
}


/* ===========================================================
   Language Menu
*/
#langmenu {
    float: right;
    margin-left: auto;
    margin-right: auto;
    padding: 20px 10px 20px 10px;
    min-height: 0.6em;
    text-align: center;
    display: block;
    vertical-align: middle;
    transition: 0.3s all;
}

#langmenu a {
    text-decoration: none;
}

#langmenu a:hover {
    border: 0;
    background: none;
}

#langmenu img {
    border: 0;
    padding-right: 2px;
}

#langmenu a.default img {
    filter: alpha(opacity=100);
    -moz-opacity: 1.0;
    opacity: 1.0;
}

#langmenu a:hover img {
    filter: alpha(opacity=30);
    -moz-opacity: .3;
    opacity: .3;
}

#langmenu a.current img {
    filter: alpha(opacity=30);
    -moz-opacity: .3;
    opacity: .3;
}


/* ===========================================================
   Toggle Menu (Mobile)
*/
.toggleMenu {
    display: none;
}

#nav2, #nav2close {
    display: none;
}


/* ===========================================================
   Breadcrumbs
*/
.breadcrumbs {
    height: 30px;
    line-height: 100%;
    margin: 0 0 8px 0;
    padding: 3px 0 3px 0;
    clear: both;
}

.innerbc {
    font-size: 14px;
    margin: 10px 0 0 25%;
}

.breadcrumbs .innerbc span {
    background: transparent url(../images/template/bclink.gif) no-repeat;
    padding: 6px 2px 0px 12px;
    font-weight: normal;
}

.breadcrumbs .innerbc a {
    padding: 1px;
    border-bottom: 1px dotted #505567;
    text-decoration: none;
}

.breadcrumbs .innerbc a:hover {
    border-bottom: 1px solid #505567;
}

.breadcrumbs .innerbc .menu-current a {
    color: #000000;
}

.frontpage .breadcrumbs {
    display: none;
}


/* ===========================================================
   Navigation Menu
*/
#nav {
    position: absolute;
    right: 0;
    bottom: 0;
    border: 0;
    padding: 0;
}

#nav ul, #nav2 ul {
    list-style-type: none;
    list-style-image: none;
    margin: 0;
    padding: 0;
    width: auto;
    position: relative;
    z-index: 800;
    background: #f5f5f5;
}

#nav ul li, #nav2 ul li {
    list-style-type: none;
    list-style-image: none;
    margin: 0;
    padding: 0;
}

/* Root Level Link Formatting */
#nav ul li {
    float: left;
    display: inline;
    color: #aaa;
    text-align: left;
    font-weight: normal;
    list-style-type: none;
    list-style-image: none;
}

#nav ul li a {
    display: block;
    font-size: 16px;
    border-right: 1px #ddd solid;
    color: #666;
    text-decoration: none;
    background: #f5f5f5;
    background-repeat: no-repeat;
}

#nav ul li a span {
    display: block;
    padding: 9px 12px 12px 12px;
    transition: 0.3s padding;
    line-height: 1;
}

/* Root Level link hover */
#nav ul li a:hover,
#nav li a:focus,
#nav li a:active,
#nav ul li a.active,
#nav a.menu-current,
#nav a.menu-parent {
    color: #fff;
    background: #cc0000;
}

/* Current page Customisations */
#nav a.menu-current {
    font-weight: bold;
}


/* 2nd Child menu (Dropdown) */
#nav li ul {
    position: absolute;
    width: 200px;
    margin: -3px 0 0 -10000px;
    opacity: 0.0;
    text-transform: none;
    border-bottom: 1px solid #fff;
    font-size: 13px;
    background: #ddd url(../images/template/glitzi.png) no-repeat right 0px;
    box-shadow: 0px 10px 10px -4px rgba(0, 0, 0, 0.4);
}

#nav li ul li {
    text-align: left;
    font-weight: normal;
    margin: 0;
    padding: 0;
    line-height: 1.2em;
}

#nav li ul li a {
    width: 200px;
    height: auto;
    text-shadow: none;
    margin: 0;
    padding: 0;
    color: #333;
    border-top: 1px solid #fff;
    font-weight: normal;
    font-size: 15px;
    background: none;
}

#nav li ul li a span {
    display: block;
    padding: 8px;
}

/* 2nd Child link hover */
#nav li ul a:hover,
#nav li ul a.menu-current {
    background-color: #cc0000;
    color: #fff;
    text-shadow: 1px 2px 4px #000;
}

#nav li ul a.menu-expand {
    background: transparent url(../images/template/arr-right.png) no-repeat right 5px;
}

#nav li ul a.menu-parent {
    background: #cc0000 url(../images/template/arr-right.png) no-repeat right 5px;
}

/* Show and hide dropdowns */
#nav li:hover ul,
#nav li a:focus ul {
    margin: -3px 0 0 0;
    opacity: 1;
    transition: 0.5s opacity;
}

#nav li ul ul {
    margin-left: -10000px;
    opacity: 0.0;
    transition: 0.5s opacity;
}

#nav li:hover ul ul,
#nav li.subMenu ul ul {
    margin-left: -10000px;
    opacity: 0.0;
    transition: 0.5s opacity;
}

#nav li:hover>ul,
#nav li li:hover>ul {
    opacity: 1;
    margin-left: 0;
    transition: 0.5s opacity;
    z-index: 1000;
}

#nav ul li ul li:hover>ul {
    margin-left: -30%;
    opacity: 0.9;
}

/* 3rd Child Menu */
#nav li ul li ul {
    width: 180px;
    margin: 10px 0 0 -40%;
    z-index: 2000;
}

#nav li ul li ul li {
    width: 100%;
}

#nav li ul li ul li a {
    width: 100%;
}

/* Positioning the Pop-out Drops */
#nav li {
    position: relative;
}

#nav ul ul ul {
    position: absolute;
    top: 1px;
    left: 100%;
}

#nav li:hover {
    z-index: 1000;
    white-space: normal;
}


/* ===========================================================
   Gallery
*/
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 15px 0;
}

.gallery-item {
    display: block;
    border: 1px solid #ccc;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.gallery-item img {
    display: block;
    width: 100%;
}

/* Cueva del Murcielago Layout - Content nutzt rechte Sidebar-Bereich */
.mainbox.mainbox-wide .content-full {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

.cueva-layout {
    width: 100%;
    margin-bottom: 15px;
}

.cueva-layout td {
    vertical-align: top;
    padding: 0;
}

.cueva-col-left {
    width: 60%;
    padding-right: 20px !important;
}

.cueva-col-right {
    width: 40%;
}

.cueva-col-right ul {
    margin: 0;
    padding-left: 20px;
}

.cueva-col-right img {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
}

.cueva-images {
    width: 100%;
    margin: 15px 0;
}

.cueva-images td {
    width: 50%;
    padding: 5px;
}

.cueva-images img {
    width: 100%;
    height: auto;
}


/* ===========================================================
   Contact Form
*/
.contact-form {
    max-width: 500px;
}

.form-row {
    margin-bottom: 12px;
}

.form-row label {
    display: block;
    font-weight: normal;
    margin-bottom: 3px;
    color: #222;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row textarea {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #7f869c;
    background: #fff;
    color: #7f869c;
    font-size: 14px;
    font-family: inherit;
}

.form-row input:focus,
.form-row textarea:focus {
    border-color: #cc0000;
    outline: none;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-checkbox input {
    width: auto;
}

.form-checkbox label {
    margin-bottom: 0;
    font-weight: normal;
}

.form-row button {
    display: block;
    clear: both;
    padding: 2px 10px 5px 10px;
    margin: 10px 0;
    text-align: center;
    border: 2px solid #ccc;
    border-radius: 1.2em;
    transition: 0.8s all;
    background: rgba(200, 200, 200, 0.5);
    color: #222;
    font-size: 14px;
    cursor: pointer;
}

.form-row button:hover {
    background: rgba(204, 0, 0, 0.7);
    color: #fff;
    border-radius: 0.5em;
}

.form-required-note {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.form-success {
    background: #dff0d8;
    border: 1px solid #3c763d;
    color: #3c763d;
    padding: 15px;
    margin-bottom: 20px;
}

.form-alert {
    background: #f2dede;
    border: 1px solid #a94442;
    color: #a94442;
    padding: 15px;
    margin-bottom: 20px;
}

.form-alert ul {
    margin: 0;
    padding-left: 20px;
}


/* ====================================================================================================================
   Responsive Design
*/
@media screen and (min-width: 1200px) {
    /* Large screens */
}

@media screen and (min-width: 1025px) {
    .content > h1,
    .content > h2,
    .content > h3 {
        float: left;
        padding-top: 1%;
        width: 45%;
        margin-left: -50%;
    }

    .content.contentwide > h1,
    .content.contentwide > h2,
    .content.contentwide > h3 {
        width: 28%;
        margin-left: -33%;
    }
}


/* Smaller Screens */
@media screen and (max-width: 1240px) {
    .wrapper, #topmenubox .m_inner {
        width: 98%;
    }
}

/* Tablet and below */
@media screen and (max-width: 1024px) {
    .wrapper, .mainbox, #topmenubox .m_inner {
        width: 100%;
        margin: 0 0 0 0;
    }

    body {
        font-size: 14px;
    }

    .container {
        padding-top: 2px;
    }

    .leftbox, .footerbox .left {
        display: none;
    }

    .content {
        width: 63%;
        margin-left: 2%;
    }

    .mainbox .contentwide {
        width: 96%;
        margin: 0 0 0 2%;
    }

    #rightbox {
        width: 33%;
    }

    #rightbox .inner {
        margin: 0 5% 0 5%;
    }


    #topmenubox {
        height: 60px !important;
    }

    #topmenubox #nav {
        display: none;
    }

    #topmenubox a.logo img {
        max-height: 50px;
    }

    .toggleMenu {
        display: block;
        float: right;
        width: 20px;
        height: 50px;
        background: url(../images/template/menuswitch.png) no-repeat top right;
        margin: 10px 0 0 0;
    }

    .topspacer {
        position: relative;
        height: auto !important;
        margin-top: 60px;
        padding-top: 0;
        padding-bottom: 20%;
        background-position: center top;
    }

    .frontpage .topspacer {
        padding-bottom: 30%;
        background-size: 160% auto, auto;
    }


    /* Mobile Navigation */
    .breadcrumbs {
        height: 560px;
    }

    #nav2 {
        display: none;
        width: 250px;
        height: auto;
        position: fixed;
        left: 0;
        top: 100px;
        z-index: 2000;
        background: #eee url(../images/template/glitzi.png) no-repeat right 0px;
        box-shadow: 0px 10px 10px 0px rgba(0, 0, 0, 0.4);
    }

    #nav2.is-open {
        display: block;
    }

    #nav2 li {
        width: 250px;
        padding: 0 0 0 0;
    }

    #nav2 li a {
        display: block;
        padding: 12px 0 12px 20px;
        font-size: 18px;
        color: #000;
        text-decoration: none;
        border-bottom: 1px solid #fff;
    }

    #nav2 li li a {
        padding: 10px 0 10px 30px;
        font-size: 16px;
    }

    #nav2 li li li a {
        padding: 8px 0 8px 40px;
        font-size: 14px;
    }

    #nav2 li li li li a {
        padding: 6px 0 6px 50px;
        font-size: 13px;
    }

    #nav2 li ul {
        display: none;
    }

    #nav2 li.menu-parent > ul,
    #nav2 li.menu-current > ul {
        display: block;
    }

    #nav2 li.is_opened > ul,
    #nav2 li.is_opened > ul {
        display: block;
    }

    #nav2 > ul > li > a.menu-expand {
        background: transparent url(../images/template/arr-right.png) no-repeat 5px center !important;
        padding-left: 25px !important;
    }

    #nav2 > ul > li > a.menu-expand.is_opened,
    #nav2 > ul > li.is_opened > a.menu-expand,
    #nav2 > ul > li.menu-parent > a.menu-expand {
        font-weight: bold;
        background: #ddd url(../images/template/arr-down.png) no-repeat 5px center !important;
    }

    #nav2 li a.menu-current {
        color: #fff;
        background-color: #cc0000;
        text-shadow: 1px 2px 4px #000;
    }

    #nav2 > ul > li > a.menu-current.menu-expand {
        background: #cc0000 url(../images/template/arr-right.png) no-repeat 5px center !important;
    }

    #nav2 > ul > li > a.menu-current.menu-expand.is_opened,
    #nav2 > ul > li.is_opened > a.menu-current.menu-expand {
        background: #cc0000 url(../images/template/arr-down.png) no-repeat 5px center !important;
    }

    #nav2close {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1999;
    }

    #nav2close.is-open {
        display: block;
    }


    .breadcrumbs {
        width: 100%;
        height: auto;
    }

    .innerbc {
        margin: 2px 0 5px 2%;
        width: 96%;
    }

    .innerbc span {
        display: block;
        float: left;
        padding: 2px 2px 2px 12px;
        margin: 0 0 5px 0;
    }

    .innerbc b {
        display: none;
    }
}


/* Mobile */
@media screen and (max-width: 500px) {
    .content {
        width: 96%;
        margin: 0 0 0 2%;
    }

    .mainbox .contentwide .contentwidenarrow {
        float: none;
        width: 100%;
        border-left: none;
    }

    /* Mobile sidebar - hidden by default, slides in from right */
    #rightbox {
        display: block;
        width: 240px;
        border-left: none;
        position: fixed;
        right: -240px;
        top: 280px;
        height: auto;
        max-height: 70vh;
        background: #f0f0f0;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
        z-index: 4000;
        overflow-y: auto;
        transition: right 0.3s ease-in-out;
    }

    /* Sidebar open state */
    #rightbox.is-open {
        right: 0;
    }

    #rightbox .inner {
        margin: 10px;
        padding: 10px;
    }

    .frontpage .wrapper {
        background-position: center top;
    }

    .topspacer {
        padding-bottom: 30%;
        background-size: 180% auto, auto;
    }

    .frontpage .topspacer {
        background-size: 220% auto, auto;
    }


    /* Open sidebar button (small info icon on right edge) */
    #openrightboxswitch {
        display: block;
        position: fixed;
        right: 0;
        top: 280px;
        z-index: 3999;
        width: 19px;
        height: 57px;
    }

    #openrightboxswitch img {
        width: 100%;
        height: auto;
    }

    /* Close button inside sidebar */
    #closerightboxswitch {
        display: block;
        position: absolute;
        top: 5px;
        left: 5px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .cueva-layout,
    .cueva-layout tbody,
    .cueva-layout tr,
    .cueva-layout td {
        display: block;
        width: 100%;
    }

    .cueva-col-left,
    .cueva-col-right {
        width: 100%;
        padding-right: 0 !important;
    }

    .cueva-col-right {
        margin-top: 20px;
    }

    .cueva-images,
    .cueva-images tbody,
    .cueva-images tr,
    .cueva-images td {
        display: block;
        width: 100%;
    }

    .cueva-images td {
        padding: 5px 0;
    }

    .contact-form {
        max-width: 100%;
    }
}


/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Search Styles
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

/* Search link in header - positioned as last menu item */
#nav ul li.search-item {
    float: left;
    display: inline;
    background: #f5f5f5;
}

#nav ul li.search-item a.search-link {
    display: block;
    background: #f5f5f5;
    border-right: 1px #ddd solid;
    transition: 0.3s all;
}

#nav ul li.search-item a.search-link:hover {
    background: #cc0000;
}

#nav ul li.search-item a.search-link .search-icon {
    display: block;
    padding: 9px 14px 12px 14px;
    line-height: 0;
    text-align: center;
}

#nav ul li.search-item a.search-link img {
    width: 16px;
    height: 16px;
    opacity: 0.5;
    transition: 0.3s all;
}

#nav ul li.search-item a.search-link:hover img {
    opacity: 1;
    filter: brightness(0) invert(1);
}

#topmenubox.reduced #nav ul li.search-item a.search-link .search-icon {
    padding: 13px 14px 14px 14px;
}

#topmenubox.reduced #nav ul li.search-item a.search-link img {
    width: 14px;
    height: 14px;
}

/* Search form */
.search-form-container {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 20px;
}

.search-form .search-input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.search-form .search-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    font-size: 14px;
    font-family: 'Open Sans', Verdana, Arial, sans-serif;
}

.search-form .search-input:focus {
    outline: none;
    border-color: #cc0000;
}

.search-form .search-button {
    background: #cc0000;
    color: #fff;
    border: none;
    padding: 8px 20px;
    font-size: 14px;
    cursor: pointer;
    font-family: 'Open Sans', Verdana, Arial, sans-serif;
    transition: background 0.3s ease;
}

.search-form .search-button:hover {
    background: #aa0000;
}

.search-form .search-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.search-form .search-options label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
}

.search-form .search-options input[type="radio"] {
    margin: 0;
}

/* Search results */
.search-results {
    margin-top: 20px;
}

.search-results-header {
    color: #666;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.search-result {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dotted #ccc;
}

.search-result:last-child {
    border-bottom: none;
}

.search-result h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.search-result h3 a {
    color: #cc0000;
}

.search-result h3 a:hover {
    text-decoration: underline;
}

.search-excerpt {
    color: #555;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.search-excerpt strong {
    background: #ffff99;
    padding: 1px 2px;
}

.no-results {
    color: #666;
    font-style: italic;
}

/* Mobile search form */
@media screen and (max-width: 600px) {
    .search-form .search-input-row {
        flex-direction: column;
    }

    .search-form .search-options {
        flex-direction: column;
        gap: 10px;
    }
}

/* Gallery (z.B. Foliendecken) */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.gallery-thumb {
    width: calc(25% - 8px);
    height: 120px;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

@media screen and (max-width: 600px) {
    .gallery-thumb {
        width: calc(50% - 5px);
        height: 100px;
    }
}

/* Image Row Layout (z.B. Wärmepumpe) */
.image-row {
    display: flex;
    gap: 10px;
    margin: 20px 0 10px 0;
    height: 350px;
}

.image-row .image-wide {
    flex: 2;
    overflow: hidden;
}

.image-row .image-narrow {
    flex: 1.2;
    overflow: hidden;
}

.image-row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-full {
    margin-bottom: 20px;
}

.image-full img {
    width: 100%;
}

@media screen and (max-width: 600px) {
    .image-row {
        flex-direction: column;
        height: auto;
    }

    .image-row .image-wide,
    .image-row .image-narrow {
        height: 250px;
        flex: none;
    }

    .image-full img {
        height: auto;
    }
}

/* Lightbox */
.lightbox-trigger {
    cursor: zoom-in;
}

.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    cursor: zoom-out;
    justify-content: center;
    align-items: center;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-close:hover {
    color: #ccc;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    z-index: 10000;
    transition: color 0.2s;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #ccc;
}

/* Print Styles */
@media print {
    #topmenubox,
    #nav,
    .footerbox,
    #rightbox,
    .topspacer {
        display: none;
    }

    .content {
        width: 100%;
        float: none;
    }

    body {
        background: #fff;
    }
}
