@import url("reset.css");

/* lora-regular - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Lora';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/lora-v37-latin-regular.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* lora-italic - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Lora';
    font-style: italic;
    font-weight: 400;
    src: url('../fonts/lora-v37-latin-italic.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* lora-700 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Lora';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/lora-v37-latin-700.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* lora-700italic - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Lora';
    font-style: italic;
    font-weight: 700;
    src: url('../fonts/lora-v37-latin-700italic.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* nunito-300 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/nunito-v32-latin-300.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* nunito-300italic - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Nunito';
    font-style: italic;
    font-weight: 300;
    src: url('../fonts/nunito-v32-latin-300italic.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* nunito-600 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/nunito-v32-latin-600.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* nunito-600italic - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Nunito';
    font-style: italic;
    font-weight: 600;
    src: url('../fonts/nunito-v32-latin-600italic.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
    --text: #383838;
    --white: #fff;
    --main-color: #9cbb59;
    --bg: #e6ead5;
    --footer: #abb580;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito';
    font-weight: 300;
    font-size: 16px;
    line-height: 26px;
    color: var(--text);
}

.cta {
    text-align: center;
    text-decoration: none;
    display: block;
    margin-left: auto;
    margin-right: auto;
    color: #fff;
    background: #363636;
    font-size: 24px;
    padding: 10px;
}

.cta:hover {
    color: #191919
}

.modaloverlay h3 {
    font-size: 30px !important;
    padding-bottom: 20px;
    text-align: left;
    text-transform: inherit;
}

.modaloverlay {
    background: rgba(0, 0, 0, 0.8);
    bottom: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 0;
    text-align: left!important;
    z-index: 99999;
    display: none;
}

.modaloverlay:target {
    display: block;
    opacity: 1;
    pointer-events: auto;
    z-index: 9999;
}

.modaloverlay .modals {
    background-color: white;
    position: relative;
    padding: 3em;
    overflow-y: scroll;
    height: 45vh;
    margin-left: 5%;
    z-index: 9999;
    width: 90%;
    max-width: 800px;
    margin-top: 20vh;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#massanfertigungen iframe{
    width: 100%;
    height: 650px;
}

.modals h3 {
    color: #000;
    font-size: 40px;
}

.modals h4{
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 10px;
}

#galerie img{
    width: 100%;
    border: none;
    border-radius: 10px;
    padding-bottom: 10px;
}



.modals p {
    font-size: 16px;
    font-family: 'Roboto';
    line-height: 23px;
    color: #5f5f5f;
    text-align: left;
}

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

.modaloverlay .close {
    background-color: #000;
    color: white;
    font-size: 24px;
    padding: 8px 12px;
    position: absolute;
    right: 0;
    text-align: center;
    text-decoration: none;
    top: 0;
    z-index: 1;
}

* {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

a:hover {
    transition: 0.3s;
    opacity: 0.7;
}

nav {
    display: flex;
    align-items: center;
    padding: 10px 15%;
    background: #fff;
    position: fixed;
    top: 0;
    font-size: 16px;
    width: 100%;
    z-index: 9999;
    left: 0;
    justify-content: space-between
}

h1,
h2 {
    font-family: 'Lora';
    font-size: 50px;
    line-height: 60px;
    padding-bottom: 20px
}

.multiple-items .bg{
    background: rgba(171, 181, 128, 0.68);
    border-radius: 10px;
    padding: 40px;
    margin: 20px;
}

h3 {
    font-family: 'Lora';
    font-size: 30px;
    line-height: 40px;
    padding-bottom: 20px
}

.logo {
    width: 220px;
}

#galerie{
    background: rgba(171, 181, 128, 0.15)
}

#galerie .flex{
    align-items: flex-start;
    margin-top: 50px;
}

#galerie .box{
    background: #fff;
    padding: 30px;
    border-radius: 20px;
}

.small {
    font-family: 'Nunito';
    font-size: 20px;
    text-transform: uppercase;
    color: var(--main-color);
}

nav ul {
    display: flex;
}

nav ul li a {
    padding: 0px 15px;
    text-decoration: none;
    color: var(--text)
}

.big {
    font-family: 'Lora';
    font-size: 90px;
    line-height: 100px;
    padding-bottom: 20px
}

.parallax {
    padding: 100px 25%;
    text-align: center;
    background: url(../images/hintergrund-kuechenskizze.webp);
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center;
}

#unterseite {
    height: 600px;
    background: url(../images/rotus-esstisch-drehteller-ambiente.webp);
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center;
}

.quote {
    font-size: 24px;
    line-height: 34px;
    font-style: italic;
    padding-bottom: 20px;
}

header {
    font-size: 24px;
    line-height: 34px;
    padding: 100px 15%;
}

.button {
    border: 1px solid var(--text);
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 10px;
    display: inline-block;
    margin-top: 30px;
    font-size: 18px;
    color: var(--text)
}

.icon {
    height: 50px;
    margin-bottom: 10px;
}

.flex {
    display: flex;
    align-items: center;
    column-gap: 80px;
}

.col {
    width: 50%;
}

.claim {
    position: absolute;
    width: 50%;
}

.headerbild {
    width: 65%;
    margin-left: 35%;
}

.headerbild img {
    border-top-left-radius: 30vh;
    width: 100%;
    height: 700px;
    object-fit: cover;
}

#leistungen .row1 {
    width: 50%;
}

.rotus-rund {
    width: 150px;
    position: absolute;
    right: 12%;
    margin-top: 200px;
}


section {
    padding: 150px 15%;
}

#leistungen {
    padding-top: 50px;
    text-align: center;
}

#leistungen h3 {
    font-size: 22px;
    line-height: 32px;
    font-family: 'Lora';
    padding-bottom: 10px;
}

.column {
    padding: 30px;
    text-align: center;
    margin: 30px 20px;
    background: rgba(171, 181, 128, 0.28);
    text-align: left;
    min-height: 300px;
    display: block;
    color: var(--text);
    text-decoration: none;

}

.column:hover {
    background: rgba(171, 181, 128, 0.68);
    transition: 0.3s;
    text-align: left;

}

.column .mehr {
    display: inline-block;
    margin-top: 15px;
    font-weight: 700;
}

#leistungen .flex {
    column-gap: 0px;
    align-items: flex-start
}

#leistungen .row {
    flex: 1;
}

#leistungen p {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

#rotus,
#kontakt {
    background: var(--bg)
}

.absolute {
    position: absolute;
    margin-top: -150px;
    width: 32%;
    border-radius: 20px;
    height: 500px;
    object-fit: cover;
}

.siegel {
    text-align: center;
    font-size: 25px;
    line-height: 40px;
    background: #fff;
    border-radius: 100vh;
    padding: 5px;
    aspect-ratio: 1;
    height: 190px;
    position: absolute;
    right: 51%;
    margin-top: -140px
}

.siegel p {
    border: 1px solid;
    border-radius: 100vh;
    padding: 20px;
    height: 180px;
    aspect-ratio: 1;
    padding-top: 50px
}

.multiple-items {
    text-align: left;
    margin-top: 50px;
}

.multiple-items h3 {
    font-family: 'Lora';
    font-size: 24px;
    margin-left: 5%
}

.multiple-items a {
    border-top: 1px solid;
    margin-top: 10px;
    padding-top: 5px;
    color: var(--text);
    text-decoration: none;
    margin-left: 5%;
    display: inline-block
}

.multiple-items img {
    width: 90%;
    margin: 5%;
    height: 480px;
    max-height: 480px;
    object-fit: cover;
    border-top-left-radius: 10vh;
    border-bottom-right-radius: 10vh;
    margin-bottom: 20px;
}

.green {
    color: var(--main-color);
    font-weight: 600;
}

#massanfertigungen img,
#kontakt img {
    width: 100%;
    border-top-left-radius: 20vh;
}

footer {
    padding: 50px 15%;
    background: var(--footer);
}

footer .flex {
    justify-content: space-between;
}

footer a {
    text-decoration: none;
    color: var(--text);
    padding: 0px 10px;
}

#referenzen {
    padding: 250px 0% 0px 15% !important;
}

#referenzen .flex {
    column-gap: 30px;
}

#referenzen:-webkit-scrollbar {
    height: 14px;
}

#referenzen .wrap {
    width: 100%;
    overflow-x: scroll;
    border-top-left-radius: 20vh;
}

/* Gesamthöhe des Scrollbalkens */
#referenzen .wrap::-webkit-scrollbar {
    height: 10px;
}

/* Dünne Hintergrundlinie */
#referenzen .wrap::-webkit-scrollbar-track {
    background: linear-gradient(to bottom,
            transparent 5px,
            #d9d9d9 5px,
            #d9d9d9 7px,
            transparent 7px);
}

/* Dicker Fortschrittsbalken */
#referenzen .wrap::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 5px;
}

#referenzen img {
    height: 380px;
    width: 450px;
    object-fit: cover
}

#referenzen a {
    color: var(--text);
    margin: 10px 0px 40px 0px;
    display: block;
    text-decoration: none;
    font-weight: 700;
}

.dropdown {
    display: none;
}

.masonry-gallery {
    margin: 0 auto;
}


/* =====================================
   FILTER
===================================== */

.gallery-filter {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: 10px;
    margin-bottom: 40px;
}


.filter-btn {
    border: 1px solid #222;
    background: transparent;

    padding: 11px 22px;

    font-size: 15px;
    color: #222;

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}


.filter-btn:hover,
.filter-btn.active {
    background: #222;
    color: #fff;
}



/* =====================================
   MASONRY GRID
===================================== */

.gallery-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    grid-auto-rows: 8px;

    gap: 18px;

}


/* =====================================
   GALERIE ELEMENT
===================================== */

.gallery-item {

    position: relative;

    display: block;

    width: 100%;

    overflow: hidden;

    text-decoration: none;

    cursor: zoom-in;

}


.gallery-item img {

    display: block;

    width: 100%;
    height: auto;

    transition:
        transform 0.45s ease,
        opacity 0.3s ease;

}


.gallery-item:hover img {

    transform: scale(1.035);

    opacity: 0.92;

}


/* Gefilterte Elemente */

.gallery-item.hidden {

    display: none;

}



/* =====================================
   LIGHTBOX
===================================== */

.lightbox {

    position: fixed;

    inset: 0;

    z-index: 99999;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 40px 80px;

    background: rgba(0, 0, 0, 0.93);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;

}


.lightbox.active {

    opacity: 1;
    visibility: visible;

}


.lightbox-content {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

}


.lightbox-image {

    display: block;

    max-width: 100%;
    max-height: 90vh;

    width: auto;
    height: auto;

    object-fit: contain;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4);

}


/* =====================================
   LIGHTBOX CLOSE
===================================== */

.lightbox-close {

    position: absolute;

    top: 20px;
    right: 30px;

    z-index: 10;

    width: 50px;
    height: 50px;

    border: 0;
    background: transparent;

    color: white;

    font-size: 42px;
    line-height: 1;

    cursor: pointer;

    transition: opacity 0.2s ease;

}


.lightbox-close:hover {

    opacity: 0.65;

}



/* =====================================
   LIGHTBOX PFEILE
===================================== */

.lightbox-prev,
.lightbox-next {

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    z-index: 10;

    width: 55px;
    height: 70px;

    border: 0;

    background: rgba(255,255,255,0.08);

    color: white;

    font-size: 32px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        opacity 0.2s ease;

}


.lightbox-prev:hover,
.lightbox-next:hover {

    background: rgba(255,255,255,0.18);

}


.lightbox-prev {

    left: 20px;

}


.lightbox-next {

    right: 20px;

}



/* =====================================
   TABLET
===================================== */

@media (max-width: 950px) {

    .gallery-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

}



/* =====================================
   SMARTPHONE
===================================== */

@media (max-width: 600px) {

    .masonry-gallery {

        padding: 30px 18px;

    }


    .gallery-filter {

        justify-content: flex-start;

        margin-bottom: 28px;

    }


    .filter-btn {

        padding: 9px 16px;

        font-size: 14px;

    }


    .gallery-grid {

        grid-template-columns: 1fr;

        gap: 14px;

    }


    .lightbox {

        padding: 60px 15px 30px;

    }


    .lightbox-prev,
    .lightbox-next {

        width: 42px;
        height: 55px;

        font-size: 24px;

    }


    .lightbox-prev {

        left: 5px;

    }


    .lightbox-next {

        right: 5px;

    }


    .lightbox-close {

        top: 10px;
        right: 15px;

    }

}

/*---------------------------------------
MEDIA Queries | Tablet | Phone
---------------------------------------*/
@media screen and (max-width: 1550px) {
    .column {
        min-height: 400px;
    }
}

@media screen and (max-width: 1280px) {
    .big {
        font-size: 65px;
        line-height: 75px;
    }

    .headerbild img {
        height: 420px;
    }

    header {
        font-size: 18px;
        line-height: 28px;
    }

    .rotus-rund {
        width: 100px;
        right: 15%;
        margin-top: 150px;
    }

    .absolute {
        width: 32%;
        height: 500px;
    }

    #referenzen img {
        height: 280px;
        width: 350px;
    }

    h1,
    h2 {
        font-size: 40px;
        line-height: 50px;
    }

    .small {
        font-size: 18px;
    }

    nav {
        padding: 10px 10%;
    }

    section {
        padding: 150px 10%;
    }

    .absolute {
        width: 38%;
        height: 500px;
    }

    .multiple-items img {
        max-height: 350px;
    }

    footer {
        padding: 50px 5%;
        background: var(--footer);
    }

    nav {
        padding: 10px 5%;
    }

    header {
        padding: 100px 10%;
    }

    .column {
        min-height: 450px;
    }
}

@media screen and (max-width: 980px) {
    nav ul {
        display: none;
    }

    #leistungen .flex {
        display: block;
    }

    .dropbtn {
        background-color: #fff;
        color: #383838;
        padding: 0px;
        font-size: 36px;
        border: none;
        cursor: pointer;
    }

    .column {
        min-height: 0;
    }

    #leistungen p {
        max-width: 100%;
    }

    .dropdown {
        position: fixed;
        top: 8px;
        right: 5%;
        display: inline-block;
        z-index: 99999;
        margin-left: auto;
        margin-right: auto;
    }

    .dropdown-content {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        text-align: center;
        padding-top: 15vh;
        background-color: rgba(47, 47, 47, 0.9);
        min-width: 160px;
        overflow: auto;
        box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
        z-index: 1;
    }

    .dropdown-content a {
        color: #fff;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
    }

    .dropdown a:hover {
        background-color: rgba(0, 128, 0, 0.19);
    }

    .show {
        display: block;
    }

    #referenzen img {
        height: 200px;
        width: 300px;
    }

    footer a {
        padding: 0px 0px;
        display: block;
    }

    .siegel p {
        border: 1px solid;
        padding: 11px;
        height: 140px;
        padding-top: 37px;
    }

    .siegel {
        font-size: 19px;
        line-height: 30px;
        padding: 5px;
        height: 150px;
    }

}

@media screen and (max-width: 800px) {
    .flex {
        display: block;
    }

    .col {
        width: 100%;
        padding: 20px 0px;
    }

    .absolute {
        width: 100%;
        height: auto;
        position: inherit;
        margin: 0px;
        max-width: 350px;
    }

    section {
        padding: 50px 10%;
    }

    #referenzen .flex {
        display: flex;
    }

    #referenzen {
        padding: 100px 0% 0px 15% !important;
    }

    #massanfertigungen img,
    #kontakt img {
        width: 100%;
        max-width: 350px;
        border-top-left-radius: 10vh;
    }

    .rotus-rund {
        display: none
    }

    .headerbild {
        display: none;
    }

    .claim {
        position: inherit;
        width: 100%;
        text-align: center;
        padding: 20px;
        background: rgba(255, 255, 255, 0.5);
        border-radius: 30px;
    }

    .big {
        font-size: 45px;
        line-height: 55px;
    }

    h1,
    h2 {
        font-size: 35px;
        line-height: 45px;
    }

    header {
        background: url(../images/rotus-esstisch-drehteller-ambiente.webp);
        background-attachment: fixed;
        background-size: cover;
        background-repeat: no-repeat;
        margin-top: 50px;
    }

    .landingpages {
        margin-top: 30px;
    }

    #kontakt .col:first-child {
        display: none;
    }
}

@media screen and (max-width: 550px) {
    #referenzen img {
        height: 150px;
        width: 200px;
    }

    #referenzen .wrap {
        border-top-left-radius: 10vh;
    }

    .big {
        font-size: 35px;
        line-height: 45px;
    }

    h1,
    h2 {
        font-size: 25px;
        line-height: 35px;
    }
}


/* =====================================
   REFERENZOBJEKTE
===================================== */

.referenzobjekte {
    background: #f3f5ec;
}

.referenzobjekte h2 {
    text-align: center;
    margin-bottom: 15px;
}

.ref-intro,
.galerie-intro {
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
}

.ref-list {
    max-width: 1100px;
    margin: 0 auto;
}

.ref-head,
.ref-row {
    display: grid;
    grid-template-columns: 1fr 170px 120px 90px;
    column-gap: 20px;
    align-items: center;
    padding: 18px 15px;
}

.ref-head {
    border-bottom: 1px solid #222;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #777;
}

.ref-row {
    width: 100%;
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    background: transparent;
    font: inherit;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: background 0.25s ease;
}

.ref-row:hover,
.ref-row:focus-visible {
    background: var(--bg);
}

.ref-objekt {
    font-family: 'Lora';
    font-size: 19px;
    line-height: 26px;
}

.ref-objekt small {
    display: block;
    margin-top: 3px;
    font-family: 'Nunito';
    font-size: 14px;
    line-height: 20px;
    color: #666;
}

.ref-mehr {
    font-size: 14px;
    font-weight: 700;
    text-align: right;
}


/* Popup */

.ref-modal {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(0, 0, 0, 0.75);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.ref-modal.active {
    opacity: 1;
    visibility: visible;
}

.ref-modal-box {
    position: relative;
    width: 100%;
    max-width: 1150px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
}

.ref-modal-close {
    position: absolute;
    top: 8px;
    right: 15px;
    z-index: 2;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
}

.ref-modal-body {
    padding: 50px;
}

.ref-modal-body.has-images {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
}

.ref-main {
    display: block;
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
    background: #f3f3f3;
}

.ref-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.ref-thumb {
    width: 80px;
    height: 60px;
    padding: 0;
    border: 2px solid transparent;
    background: transparent;
    cursor: pointer;
}

.ref-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ref-thumb.active {
    border-color: var(--main-color);
}

.ref-info h3 {
    margin-bottom: 20px;
    padding-right: 30px;
    font-family: 'Lora';
    font-size: 26px;
    line-height: 34px;
}

.ref-facts {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 20px;
    margin-bottom: 20px;
}

.ref-facts dt {
    font-weight: 700;
}


/* =====================================
   GALERIE: TITEL & BESCHREIBUNG
===================================== */

/* Element nur so hoch wie das Bild, damit der Titel auf dem Bild liegt */
.gallery-item {
    align-self: start;
}

.gallery-title {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 35px 15px 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover .gallery-title,
.gallery-item:focus-visible .gallery-title {
    opacity: 1;
    transform: none;
}

/* Touch-Geräte: Titel dauerhaft zeigen */
@media (hover: none) {
    .gallery-title {
        opacity: 1;
        transform: none;
    }
}

.lightbox-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
}

.lightbox-figure .lightbox-image {
    max-height: calc(100vh - 200px);
}

.lightbox-caption {
    max-width: 800px;
    margin-top: 15px;
    color: #fff;
    text-align: center;
}

.lightbox-title {
    display: block;
    margin-bottom: 4px;
    font-family: 'Lora';
    font-size: 20px;
    line-height: 28px;
}

.lightbox-description {
    display: block;
    font-size: 15px;
    line-height: 22px;
    opacity: 0.85;
}

.lightbox-ref {
    margin-top: 12px;
    padding: 8px 18px;
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.lightbox-ref:hover {
    background: #fff;
    color: #222;
}

.lightbox-ref[hidden] {
    display: none;
}


@media (max-width: 700px) {

    .ref-head {
        display: none;
    }

    .ref-row {
        grid-template-columns: auto 1fr;
        row-gap: 6px;
        padding: 15px 5px;
    }

    .ref-objekt {
        grid-column: 1 / -1;
    }

    .ref-ort,
    .ref-jahr {
        font-size: 14px;
        color: #666;
    }

    .ref-mehr {
        display: none;
    }

    .ref-modal {
        padding: 15px;
    }

    .ref-modal-body,
    .ref-modal-body.has-images {
        display: block;
        padding: 50px 20px 25px;
    }

    .ref-gallery {
        margin-bottom: 25px;
    }
}


/* =====================================
   ROTUS: TAB-BEREICH
===================================== */

.rotus-tabbereich {
    padding: 0 12% 130px;
    background: #fff;
    scroll-margin-top: 80px;
}

/* Durchgehender Trennstrich zur Einleitung darüber */
.rotus-tabbereich::before {
    content: "";
    display: block;
    width: 100%;
    max-width: 1200px;
    height: 1px;
    margin: 0 auto 100px;
    background: #d6d8cc;
}

.rotus-tabkopf {
    margin-bottom: 40px;
    text-align: center;
}

.rotus-eyebrow {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6f8a3a;
}

.rotus-tabkopf h2 {
    font-family: 'Lora';
}


/* Tab-Leiste */

.rotus-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 60px;
    padding: 6px;
    border-radius: 100vh;
    background: #f2f2ef;
}

.rotus-tab {
    padding: 13px 26px;
    border: 0;
    border-radius: 100vh;
    background: transparent;
    color: var(--text);
    font-family: 'Nunito';
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
}

.rotus-tab:hover {
    background: #e6e6e1;
}

.rotus-tab.active {
    background: var(--text);
    color: #fff;
}

.rotus-tab:focus-visible {
    outline: 2px solid var(--main-color);
    outline-offset: 2px;
}


/* Panels */

.rotus-panel {
    max-width: 1200px;
    margin: 0 auto;
}

.rotus-panel[hidden] {
    display: none;
}

.rotus-panel a:not(.rotus-zeichnung) {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--main-color);
    text-underline-offset: 3px;
}


/* Kennzahlen */

.rotus-fakten {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 50px;
}

.rotus-fakten li {
    padding: 22px 15px;
    border-radius: 14px;
    border: 1px solid #e6e6e1;
    text-align: center;
}

.rotus-fakten strong {
    display: block;
    margin-bottom: 4px;
    font-family: 'Lora';
    font-size: 28px;
    line-height: 36px;
    color: var(--text);
}

.rotus-fakten span {
    font-size: 14px;
    line-height: 20px;
    color: #6b6b6b;
}


/* Raster & Karten */

.rotus-grid {
    display: grid;
    gap: 28px;
}

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

.rotus-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rotus-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rotus-grid-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.rotus-karte {
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e6e6e1;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.rotus-karte:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(56, 56, 56, 0.12);
}

.rotus-karte img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.rotus-karte-text {
    padding: 28px 30px 32px;
}

.rotus-karte h3 {
    margin-bottom: 12px;
    font-family: 'Lora';
    font-size: 23px;
    line-height: 30px;
}

.rotus-karte p {
    font-size: 16px;
    line-height: 26px;
}

.rotus-karte p + p {
    margin-top: 12px;
}

.rotus-nummer {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6f8a3a;
}

.rotus-label {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 12px;
    border-radius: 100vh;
    background: #f2f2ef;
    font-size: 13px;
    font-weight: 700;
    color: #55702a;
}


/* Zwischenüberschriften, Hinweise */

.rotus-zwischenkopf {
    margin: 70px 0 28px;
    text-align: center;
}

.rotus-zwischenkopf:first-child,
.rotus-hinweis + .rotus-zwischenkopf {
    margin-top: 0;
}

.rotus-zwischenkopf h3 {
    font-family: 'Lora';
    font-size: 30px;
    line-height: 38px;
}

.rotus-zwischenkopf p {
    margin-top: 6px;
    color: #6b6b6b;
}

.rotus-hinweis {
    max-width: 900px;
    margin: 0 auto 50px;
    padding: 22px 28px;
    border-left: 4px solid var(--main-color);
    border-radius: 0 14px 14px 0;
    background: #f7f7f4;
}

.rotus-fussnote {
    margin-top: 40px;
    font-size: 15px;
    text-align: center;
    color: #6b6b6b;
}


/* Zitat-Block (Über den Tisch hinaus) */

.rotus-zitat {
    margin-bottom: 50px;
    padding: 45px 50px;
    border-radius: 16px;
    background: var(--text);
    color: #fff;
}

.rotus-zitat h3 {
    margin-bottom: 20px;
    font-family: 'Lora';
    font-size: 30px;
    line-height: 38px;
}

.rotus-zitat-spalten {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.rotus-zitat p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 27px;
}


/* Maßzeichnungen */

.rotus-zeichnung {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #e6e6e1;
    background: #fff;
    color: var(--text);
    text-decoration: none;
    transition: box-shadow 0.3s ease;
}

.rotus-zeichnung:hover {
    box-shadow: 0 14px 34px rgba(56, 56, 56, 0.12);
}

.rotus-zeichnung img {
    display: block;
    width: 100%;
    padding: 20px 20px 0;
}

.rotus-zeichnung span {
    display: block;
    padding: 14px 20px 18px;
    font-weight: 600;
    text-align: center;
}


/* Preiskarten */

.preis-karte {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e6e6e1;
}

.preis-karte img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.preis-karte h4 {
    padding: 20px 22px 10px;
    font-family: 'Lora';
    font-size: 19px;
    line-height: 26px;
}

.preis-karte ul {
    padding: 0 22px 18px;
}

.preis-karte li {
    position: relative;
    padding-left: 16px;
    font-size: 14px;
    line-height: 21px;
    color: #555;
}

.preis-karte li + li {
    margin-top: 5px;
}

.preis-karte li::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--main-color);
}

.preis-zeile {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 10px;
    margin-top: auto;
    padding: 16px 22px 20px;
    border-top: 1px solid #ececec;
}

.preis-zeile .preis {
    font-family: 'Lora';
    font-size: 24px;
    font-weight: 700;
}

.preis-zeile .artnr {
    font-size: 12px;
    color: #8a8a8a;
}


.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}


@media (prefers-reduced-motion: reduce) {

    .rotus-karte,
    .rotus-karte:hover {
        transition: none;
        transform: none;
    }
}


@media (max-width: 1280px) {

    .rotus-grid-4,
    .rotus-grid-5 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .rotus-fakten {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {

    .rotus-tabbereich {
        padding: 0 5% 90px;
    }

    .rotus-grid-3,
    .rotus-grid-4,
    .rotus-grid-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rotus-zitat-spalten {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 600px) {

    .rotus-tabbereich {
        padding: 0 16px 70px;
    }

    .rotus-tabbereich::before {
        margin-bottom: 50px;
    }

    .rotus-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        border-radius: 18px;
    }

    .rotus-tab {
        padding: 12px 8px;
        border-radius: 14px;
        font-size: 15px;
    }

    .rotus-fakten {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rotus-grid-2,
    .rotus-grid-3,
    .rotus-grid-4,
    .rotus-grid-5 {
        grid-template-columns: 1fr;
    }

    .rotus-karte-text {
        padding: 22px 22px 26px;
    }

    .rotus-zitat {
        padding: 30px 24px;
    }
}


/* =====================================
   LANDINGPAGE (z. B. Runder Esstisch Potsdam)
===================================== */

.lp-eyebrow {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6f8a3a;
}

.lp-einleitung p + p {
    margin-top: 15px;
}

.lp-lead {
    margin-top: -10px;
    margin-bottom: 25px;
    font-family: 'Lora';
    font-size: 24px;
    line-height: 32px;
}

.lp-section {
    padding: 110px 12%;
}

.lp-bg {
    background: #f3f5ec;
}

.lp-kopf {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.lp-kopf p {
    color: #6b6b6b;
}

.lp-text-mitte {
    max-width: 850px;
    margin: 50px auto 0;
    text-align: center;
}


/* Vorteile & Holzarten */

.lp-vorteile,
.lp-holz {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.lp-vorteile li,
.lp-holz li {
    padding: 30px 28px;
    border: 1px solid #e6e6e1;
    border-radius: 16px;
    background: #fff;
}

.lp-vorteile h3,
.lp-holz h3 {
    margin-bottom: 10px;
    font-family: 'Lora';
    font-size: 22px;
    line-height: 30px;
}

.lp-vorteile p,
.lp-holz p {
    font-size: 16px;
    line-height: 25px;
}

.lp-nummer {
    display: inline-block;
    margin-bottom: 14px;
    font-family: 'Lora';
    font-size: 30px;
    color: var(--main-color);
}

.lp-holzfarbe {
    display: block;
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.lp-eiche {
    background: linear-gradient(135deg, #d9b57e, #b88a4f);
}

.lp-nussbaum {
    background: linear-gradient(135deg, #7a5238, #4a2f20);
}

.lp-buche {
    background: linear-gradient(135deg, #f0d7b2, #d8b585);
}

.lp-kirsche {
    background: linear-gradient(135deg, #c27a4e, #8e4a2a);
}


/* Bild + Text */

.lp-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.lp-split img {
    display: block;
    width: 100%;
    border-top-right-radius: 20vh;
}

.lp-split p + p {
    margin-top: 15px;
}

.lp-spalten {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto 70px;
}


/* rotus-Hinweis */

.lp-rotus {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    overflow: hidden;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 16px;
    background: var(--bg);
}

.lp-rotus > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lp-rotus > div {
    padding: 45px 50px;
    align-self: center;
}

.lp-rotus-logo {
    width: 130px;
    margin-bottom: 15px;
}

.lp-rotus h3 {
    margin-bottom: 12px;
    font-family: 'Lora';
    font-size: 26px;
    line-height: 34px;
}


@media (max-width: 1280px) {

    .lp-vorteile,
    .lp-holz {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {

    .lp-section {
        padding: 70px 5%;
    }

    .lp-split,
    .lp-spalten,
    .lp-rotus {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .lp-rotus > div {
        padding: 30px 25px;
    }
}

@media (max-width: 600px) {

    .lp-vorteile,
    .lp-holz {
        grid-template-columns: 1fr;
    }

    .lp-lead {
        font-size: 20px;
        line-height: 28px;
    }
}

/* Landingpage: Bild rechts, rotus-Kasten auf grünem Abschnitt */
.lp-split-umgekehrt img {
    order: 2;
    border-top-right-radius: 0;
    border-top-left-radius: 20vh;
}

.lp-rotus-weiss {
    border: 1px solid #e6e6e1;
    background: #fff;
}

@media (max-width: 980px) {

    .lp-split-umgekehrt img {
        order: 0;
    }
}

/* Landingpage: Ablauf in Schritten */
.lp-schritte {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    counter-reset: none;
}

.lp-schritte li {
    position: relative;
    text-align: center;
}

/* Verbindungslinie zum nächsten Schritt */
.lp-schritte li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 28px;
    left: calc(50% + 40px);
    width: calc(100% - 50px);
    height: 1px;
    background: #d6d8cc;
}

.lp-schritt-nr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--bg);
    font-family: 'Lora';
    font-size: 24px;
    color: #55702a;
}

.lp-schritte h3 {
    margin-bottom: 10px;
    font-family: 'Lora';
    font-size: 22px;
    line-height: 30px;
}

.lp-schritte p {
    font-size: 16px;
    line-height: 25px;
}


/* Landingpage: Einsatzbereiche als Bildkarten */
.lp-bereiche {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 3 Karten oben, 2 breitere unten */
.lp-bereich {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e6e6e1;
    border-radius: 16px;
    background: #fff;
    color: var(--text);
    text-decoration: none;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.lp-bereich:nth-child(n + 4) {
    grid-column: span 3;
}

.lp-bereich:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(56, 56, 56, 0.12);
}

.lp-bereich img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.lp-bereich > div {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px 26px 26px;
}

.lp-bereich h3 {
    margin-bottom: 8px;
    font-family: 'Lora';
    font-size: 22px;
    line-height: 30px;
}

.lp-bereich p {
    font-size: 16px;
    line-height: 25px;
}

.lp-mehr {
    margin-top: auto;
    padding-top: 15px;
    font-size: 15px;
    font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {

    .lp-bereich,
    .lp-bereich:hover {
        transition: none;
        transform: none;
    }
}

@media (max-width: 980px) {

    .lp-schritte {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 40px;
    }

    .lp-schritte li::after {
        display: none;
    }

    .lp-bereiche {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lp-bereich,
    .lp-bereich:nth-child(n + 4) {
        grid-column: span 1;
    }
}

@media (max-width: 600px) {

    .lp-schritte,
    .lp-bereiche {
        grid-template-columns: 1fr;
    }
}

/* Landingpage: Referenzprojekte vor Ort */
.lp-projekte {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.lp-projekt {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e6e6e1;
    border-radius: 16px;
    background: #fff;
    color: var(--text);
    text-decoration: none;
    transition: box-shadow 0.3s ease;
}

.lp-projekt:hover {
    box-shadow: 0 14px 34px rgba(56, 56, 56, 0.12);
}

.lp-projekt img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.lp-projekt > div {
    padding: 24px 26px 28px;
}

.lp-projekt-jahr {
    display: inline-block;
    margin-bottom: 10px;
    padding: 3px 12px;
    border-radius: 100vh;
    background: #f2f2ef;
    font-size: 13px;
    font-weight: 700;
    color: #55702a;
}

.lp-projekt h3 {
    margin-bottom: 8px;
    font-family: 'Lora';
    font-size: 22px;
    line-height: 30px;
}

.lp-projekt p {
    font-size: 16px;
    line-height: 25px;
}

@media (max-width: 980px) {

    .lp-projekte {
        grid-template-columns: 1fr;
    }
}


/* =====================================
   ÜBERSCHRIFTEN-HILFSKLASSE
   Semantisch h2 (korrekte Gliederung), optisch wie h3
===================================== */

h2.h3 {
    font-family: 'Lora';
    font-size: 30px;
    line-height: 40px;
    padding-bottom: 20px;
}

#leistungen h2.h3 {
    font-size: 22px;
    line-height: 32px;
    padding-bottom: 10px;
}


/* =====================================
   KONTAKT-LINKS (Telefon, E-Mail)
===================================== */

a.kontakt-link {
    color: var(--main-color);
    font-weight: 600;
    text-decoration: none;
}

a.kontakt-link:hover {
    text-decoration: underline;
}


/* =====================================
   404-FEHLERSEITE
===================================== */

.fehlerseite {
    padding: 110px 12% 130px;
    text-align: center;
}

.fehler-code {
    display: block;
    font-family: 'Lora';
    font-size: 160px;
    line-height: 1;
    color: var(--main-color);
}

.fehlerseite h1 {
    margin-top: 10px;
}

.fehler-text {
    max-width: 650px;
    margin: 0 auto;
}

.fehler-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 70px;
}

.fehler-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

.fehler-links a {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
    padding: 22px;
    border: 1px solid #e6e6e1;
    border-radius: 16px;
    background: #fff;
    color: var(--text);
    text-decoration: none;
    transition: box-shadow 0.3s ease;
}

.fehler-links a:hover {
    opacity: 1;
    box-shadow: 0 14px 34px rgba(56, 56, 56, 0.12);
}

.fehler-links img {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
}

.fehler-links span {
    font-size: 14px;
    line-height: 20px;
    color: #6b6b6b;
}

.fehler-links strong {
    display: block;
    margin-bottom: 2px;
    font-family: 'Lora';
    font-size: 19px;
    font-weight: 400;
    line-height: 26px;
    color: var(--text);
}

.fehler-kontakt {
    margin-top: 50px;
}

@media (max-width: 1280px) {

    .fehler-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {

    .fehler-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fehler-code {
        font-size: 110px;
    }
}

@media (max-width: 600px) {

    .fehlerseite {
        padding: 60px 18px 80px;
    }

    .fehler-links {
        grid-template-columns: 1fr;
    }
}
