/* ========================================
   Sven Roschen Holzgroßhandel - Stylesheet
   ======================================== */

/* open-sans-regular - latin */
/* open-sans-300 - latin */
@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/open-sans-v44-latin-300.woff2') format('woff2');
}

/* open-sans-regular - latin */
@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/open-sans-v44-latin-regular.woff2') format('woff2');
}

/* open-sans-600 - latin */
@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/open-sans-v44-latin-600.woff2') format('woff2');
}

/* open-sans-700 - latin */
@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/open-sans-v44-latin-700.woff2') format('woff2');
}

:root {
    --primary-green: #8DC63F;
    --dark-gray: #555454;
    --medium-gray: #666666;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --off-white: #eeeeee;
    --footer-bg: #2b2b2b;
    --footer-links-bg: #1e1e1e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Open Sans', 'Arial', 'Helvetica', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-variant-ligatures: common-ligatures;
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark-gray);
    background: var(--off-white);
}

a {
    color: var(--primary-green);
    text-decoration: none;
    overflow-wrap: break-word;
}

main.page-content {
    display: inherit;
}

a:hover {
    text-decoration: underline;
}

/* ========================================
   HEADER
   ======================================== */

header {
    background: #ffffffcb;
    backdrop-filter: blur(10px);
    /* Milchglas-Effekt */
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    padding-right: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.0);
    border-radius: 4px;
}

.logo a {
    display: block;
}

.logo:hover {
    box-shadow: 0 0 15px rgba(141, 198, 63, 0.7);
    transform: translateY(-1px);
    background-color: #ffffff;
}

.logo img {
    height: 58px;
    width: auto;
    display: block;
}

/* ========================================
   NAVIGATION
   ======================================== */

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 56px;
}

nav ul li a {
    color: var(--dark-gray);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.25s;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-green);
    border-bottom-color: var(--primary-green);
    text-decoration: none;
}

/* Button-Style für Kontakt-Link */
nav ul li a.nav-button {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 10px 22px;
    border-radius: 4px;
    border-bottom: none;
    transition: all 0.3s ease;
    display: inline-block;
    line-height: 1;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

nav ul li a.nav-button:hover,
nav ul li a.nav-button.active {
    color: var(--white);
    background-color: var(--primary-green);
    border-bottom: none;
    box-shadow: 0 0 15px rgba(141, 198, 63, 0.7);
    transform: translateY(-1px);
}
nav ul li a.nav-button.active {
    outline: 2px solid rgba(255, 255, 255, 1);
    outline-offset: -2px;
}


/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--dark-gray);
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    width: 2px;
    margin: auto;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ========================================
   HERO
   ======================================== */

/* Desktop-Standard */
.hero {
    position: relative;
    height: 520px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    z-index: 0;
}

@media (max-width: 480px) {
    .hero {
        height: 380px;
    }
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-shadow: 1px 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-content img.bildmarke {
    width: 170px;
    height: auto;
    margin-bottom: 0px;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 600;
    letter-spacing: 1.2px;
    line-height: normal;
    -webkit-text-stroke: 0.8px rgba(255, 255, 255, 1);
    text-stroke: 0.8px rgba(255, 255, 255, 1);
}

.hero-content p {
    font-size: 28px;
    letter-spacing: 2px;
}

/* ========================================
   SECTIONS - ALLGEMEIN
   ======================================== */

.section {
    padding: 64px 24px;
}

.section--gray {
    background: var(--light-gray);
}

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

.section-title {
    color: var(--primary-green);
    font-size: 42px;
    text-align: center;
    margin-bottom: 36px;
    font-weight: 600;
}

/* ========================================
   STARTSEITE - HOLZHANDEL TEXT
   ======================================== */

.holzhandel-text {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 32px;
    font-size: 16px;
    line-height: 1.8;
}

.holzhandel-produkte {
    text-align: center;
}

.holzhandel-produkte h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--dark-gray);
}

.holzhandel-produkte p {
    font-size: 16px;
    line-height: 2;
    color: var(--medium-gray);
    word-break: keep-all;
    hyphens: none;
    /* Keine Silbentrennung */
    overflow-wrap: break-word;
}

.holzhandel-produkte span {
    color: var(--primary-green);
    font-weight: bold;
}

/* ========================================
   STARTSEITE - SLIDER (Endlos-Conveyor)
   ======================================== */

.slider-section {
    position: relative;
    height: 320px;
    overflow: hidden;
}

/* Fester diagonaler Textblock */
.slider-textblock {
    position: relative;
    width: 300px;
    height: 101%;
    clip-path: polygon(40px 0%, 100% 0%, 260px 100%, 0% 100%);
    z-index: 10;
    display: flex;
    align-items: center;
    margin: 0 40% 0 60%;
    top: -1px;
    background: #ffffffeb;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(10px);
}

.slider-textblock-inner {
    padding: 30px 50px 30px 45px;
    width: 100%;
}

.slider-textblock-inner p {
    color: var(--primary-green);
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    text-align: left;
    margin: 0;
    transition: margin-left 0.2s;
    letter-spacing: 1px;
}

.slider-textblock-inner> :nth-child(1) {
    margin-left: 32px;
}

.slider-textblock-inner> :nth-child(2) {
    margin-left: 24px;
}

.slider-textblock-inner> :nth-child(3) {
    margin-left: 16px;
}

.slider-textblock-inner> :nth-child(4) {
    margin-left: 8px;
}

.slider-textblock-inner> :nth-child(5) {
    margin-left: 0px;
}

.slider-textblock-inner hr {
    border: 5px solid #eee;
    margin: 20px 0;
    width: 170px;
}

/* Bilder-Conveyor – KEIN Leerraum mehr */
.slider-track-wrap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.slider-track {
    display: flex;
    height: 100%;
    width: max-content;
    /* passt sich der Gesamtbreite an */
    will-change: transform;
}

.slider-img {
    /* Feste Breite – an deine tatsächliche Bildbreite anpassen! */
    width: 650px;
    flex-shrink: 0;
    height: 100%;
}

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

/* ========================================
   ÜBER UNS
   ======================================== */

.about-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.portrait-wrap {
    width: 256px;
    height: 256px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 1px 2px 7px rgba(0, 0, 0, 0.3)
}

.portrait-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-name {
    color: var(--primary-green);
    font-size: 26px;
    letter-spacing: 1px;
}

.about-text {
    max-width: 960px;
    font-size: 16px;
}

.about-text p {
    margin-bottom: 16px;
}

/* ========================================
   LEISTUNGEN
   ======================================== */

.leistungen-list {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.leistung-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.leistung-item.reverse {
    direction: rtl;
}

/*.leistung-item.reverse > * {
    direction: ltr;
}*/

.leistung-img img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    display: block;
    /*   filter: blur(5px); */
    transition: filter 0.3s ease-out;
}

.leistung-img img.in-view {
    filter: blur(0px);
}

.leistung-info h3 {
    color: var(--primary-green);
    font-size: 20px;
    margin-bottom: 6px;
}

.leistung-info h4 {
    color: var(--medium-gray);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.5;
}

.leistung-info p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 6px;
}

/* ========================================
   KONTAKT
   ======================================== */

.kontakt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.kontakt-info>p:first-child {
    margin-bottom: 28px;
    color: var(--medium-gray);
    letter-spacing: 0.5px;
}

.kontakt-info h3 {
    color: var(--primary-green);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 1px;
}

.kontakt-details p {
    font-size: 16px;
    letter-spacing: 1.2px;
}

.kontakt-details .sep {
    color: var(--primary-green);
    font-weight: bold;
    margin-right: 6px;
}

.buerozeiten {
    margin-top: 24px;
}

.buerozeiten strong {
    display: block;
    margin-bottom: 4px;
}

.map-wrap {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
    height: 360px;
    display: flex;
}

.map-wrap a {
    display: block;
    width: 100%;
    height: 100%;
}

.map-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.2);
    display: block;
}

.map-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    filter: grayscale(88%) invert(85%);
}

/* ========================================
   LEGAL (Impressum, Datenschutz, AGB)
   ======================================== */

.legal-inner {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.legal-inner h3 {
    color: var(--primary-green);
    font-size: 18px;
    margin: 32px 0 10px;
}

.legal-inner p,
.legal-inner li {
    font-size: 13px;
    margin-bottom: 10px;
    line-height: normal;
}

.legal-inner p:last-of-type,
.legal-inner p.small {
    font-size: 13px;
    line-height: normal;
}

.legal-inner ul {
    margin-left: 28px;
    margin-bottom: 16px;
    width: 100%;
}

.legal-inner {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    /* bleibt für h3, p, etc. */
}

.legal-inner ul {
    list-style: none;
    text-align: left;
    /* Nur für die Liste zurücksetzen */
    display: inline-block;
    /* Damit die Liste zentriert bleibt */
    margin: 16px auto;
    padding-left: 0;
}

.legal-inner ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 8px;
    text-align: left;
}

.legal-inner ul li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: var(--primary-green);
    font-weight: bold;
    font-size: 18px;
}

/* ========================================
   FOOTER
   ======================================== */

.footer-top {
    background: var(--primary-green);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-top img {
    width: 45px;
    height: auto;
    filter: brightness(0) invert(1);
}

.footer-top p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    letter-spacing: 2px
}

.footer-bottom {
    background: var(--dark-gray);
    padding: 14px 24px;
    display: flex;
    justify-content: center;
    gap: 28px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom a:hover,
.footer-bottom a:target {
    color: var(--primary-green);
    text-decoration: none;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1000px) {
    nav ul {
        gap: calc(15px + (56 - 15) * ((100vw - 900px) / (1000 - 900)));
    }
}

@media (max-width: 900px) {
    .hero-content {
        zoom: 130%;
        line-height: normal;
    }

    /* Leistungen */
    .leistung-item,
    .leistung-item.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .leistung-img img {
        height: 220px;
    }

    /* Kontakt */
    .kontakt-grid {
        grid-template-columns: 1fr;
    }

    /* Hamburger sichtbar */
    .hamburger {
        display: flex;
    }

    .logo img {
        height: 44px;
    }

    /* Nav als Overlay */
    nav {
        display: none;
        position: fixed;
        top: 82px;
        left: 0;
        width: 100%;
        height: calc(100vh - 72px);
        z-index: 999;
        padding: 32px 14px;
    }

    nav.open {
        display: block;
        background: #fffffffb;
        backdrop-filter: blur(10px);
        /* Milchglas-Effekt */
        -webkit-backdrop-filter: blur(10px);
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav ul li {
        border-bottom: 1px solid #eee;
    }

    nav ul li a {
        display: block;
        padding: 16px 0;
        font-size: 18px;
        border-bottom: none;
    }

    nav ul li a.nav-button {
        margin: 15px 0;
        padding: 14px 7px;
        text-align: center;
        border-radius: 6px;
    }

    .hero {
        height: 300px;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .hero-content p {
        font-size: 14px;
        line-height: 15px;
    }

    .hero-content img.bildmarke {
        width: 90px;
    }

    /* Sections */
    .section {
        padding: 44px 20px;
    }

    .section-title {
        font-size: 26px;
    }

    /* Slider */
    .slider-section {
        height: 240px;
    }

    .slider-textblock {
        width: 240px;
        margin: 0 60% 0 40%;
        clip-path: polygon(40px 0%, 100% 0%, 200px 100%, 0% 100%);
    }

    .slider-textblock-inner {
        padding: 20px 55px 20px 30px;
    }

    .slider-textblock-inner p {
        font-size: 16px;
    }

    .slider-textblock-inner hr {
        margin: 15px 0;
        width: 130px;
    }

    /* Footer */
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}