/* ===================================
   WeißForst GbR - Global Styles
   Bereinigte und konsolidierte Version
   =================================== */

/* === GLOBAL STYLES === */
html {
    scroll-behavior: smooth;
}

body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    background-color: rgba(255, 248, 220, 0.9);
}

/* Skip-Link für Barrierefreiheit */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #556B2F;
    color: white;
    padding: 8px;
    z-index: 1000;
    transition: top 0.2s ease;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.skip-link:focus {
    top: 0;
    outline: 3px solid #FFD700;
}

/* Focus-Styles für bessere Tastaturnutzung */
a:focus, button:focus, select:focus, input:focus {
    outline: 3px solid #FFD700;
    outline-offset: 2px;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Section transitions */
section {
    transition: opacity 0.5s ease, transform 0.5s ease;
    position: relative;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === HEADER & NAVIGATION === */
header {
    position: relative;
    height: 500px; /* Erhöht für bessere Videoqualität */
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background-color: rgba(0, 0, 0, 0.8);
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    /* Hardware-Beschleunigung für Container */
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    /* Minimale CSS-Transforms für beste Qualität */
    /* Hardware-Beschleunigung ohne Qualitätsverlust */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* Keine Perspective/Will-Change die Qualität verschlechtern könnten */
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    /* Verhindert Browser-Komprimierung */
    image-rendering: auto;
    /* Verhindert Subpixel-Rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Logo */
.header-logo {
    position: absolute;
    top: 20px;
    right: 20px;
    max-width: 150px;
    z-index: 2;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

/* Navigation */
.navbar {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 0;
    display: flex;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.navbar ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.navbar li {
    margin: 0 30px;
    position: relative;
}

.navbar a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1.2em;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

/* Modern underline animation for nav links */
.navbar a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    background-color: #A9D18E;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 3px;
}

.navbar a:hover::after, 
.navbar a.active::after {
    width: 70%;
}

.navbar a:hover {
    color: #A9D18E;
    background-color: transparent;
    transform: translateY(-3px);
}

/* Mobile Navigation */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 3;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.menu-overlay.active {
    display: block;
}

/* === GALLERY STYLES === */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.gallery-item {
    width: 250px;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: rgba(255, 248, 220, 0.9); /* Hintergrund für Leerräume */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.gallery-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Zeigt das ganze Bild ohne Beschneidung */
    cursor: pointer;
}

.gallery-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Zeigt das ganze Bild */
    cursor: pointer;
    border-radius: 4px;
}

.gallery-intro {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background-color: rgba(255, 248, 220, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-intro h1 {
    color: #556B2F;
    font-size: 2.5em;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.intro-decoration {
    width: 80px;
    height: 3px;
    background-color: #89B869;
    margin: 0 auto 25px;
    border-radius: 3px;
}

.gallery-intro-text {
    font-size: 1.2em;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
}

.gallery-loader {
    text-align: center;
    padding: 30px;
    margin: 20px auto;
    color: #556B2F;
}

.loader-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid rgba(85, 107, 47, 0.2);
    border-radius: 50%;
    border-top-color: #556B2F;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 15px;
}

.gallery-error {
    padding: 20px;
    background-color: rgba(255, 235, 235, 0.9);
    border-radius: 5px;
    color: #d32f2f;
    text-align: center;
    margin: 20px auto;
    max-width: 80%;
}

/* === LIGHTBOX === */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.3);
}

.lightbox.show {
    display: flex;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #556B2F;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.close-lightbox:hover,
.close-lightbox:focus {
    background: #6B8E23;
    outline: 3px solid #FFD700;
}

/* Barrierefreie Bildwrapper */
.img-wrapper {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
}

.img-wrapper:focus {
    outline: 3px solid #FFD700;
    outline-offset: 2px;
}

.img-wrapper img {
    width: 100%;
    height: auto;
    transition: all 0.4s ease;
    display: block;
}

.img-wrapper:hover img,
.img-wrapper:focus img {
    transform: scale(1.05);
}

/* === ABOUT PAGE STYLES === */
.about-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* WEISS Slogan Section */
.weiss-slogan-section {
    padding: 50px 20px 40px;
    background-color: rgba(243, 237, 213, 0.9);
    position: relative;
    overflow: hidden;
    margin: 40px 0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.weiss-slogan-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(85, 107, 47, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.weiss-slogan-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(137, 184, 105, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.slogan-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.slogan-title {
    text-align: center;
    color: #556B2F;
    font-size: 2em;
    margin-bottom: 35px;
    font-weight: bold;
    position: relative;
    display: inline-block;
    width: 100%;
}

.slogan-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #89B869, transparent);
    border-radius: 2px;
}

.slogan-lines {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 800px;
    margin: 0 auto;
}

.slogan-line {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    background-color: rgba(255, 248, 220, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #89B869;
    position: relative;
    overflow: hidden;
}

.slogan-line::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(137, 184, 105, 0.1), transparent);
    transition: width 0.4s ease;
    z-index: 0;
}

.slogan-line:hover::before {
    width: 100%;
}

.slogan-line:hover {
    transform: translateX(10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-left-color: #556B2F;
}

.slogan-letter {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #556B2F 0%, #6B8E23 100%);
    color: white;
    font-size: 2em;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(85, 107, 47, 0.3);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.slogan-line:hover .slogan-letter {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 15px rgba(85, 107, 47, 0.4);
}

.slogan-text {
    flex: 1;
    font-size: 1.15em;
    line-height: 1.6;
    color: #333;
    position: relative;
    z-index: 1;
}

.about-intro {
    text-align: center;
    margin-bottom: 50px;
    padding: 20px;
    background-color: rgba(255, 248, 220, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-intro h1 {
    color: #556B2F;
    font-size: 2.5em;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.about-intro h1::after {
    content: '';
    position: absolute;
    width: 70%;
    height: 3px;
    bottom: -10px;
    left: 15%;
    background-color: #89B869;
    border-radius: 3px;
}

.intro-text {
    font-size: 1.2em;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 30px;
}

.about-values {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 30px;
}

.value-item {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    margin: 10px;
    background-color: rgba(243, 237, 213, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.value-item i {
    font-size: 2.5em;
    color: #556B2F;
    margin-bottom: 15px;
}

.value-item h3 {
    font-size: 1.4em;
    margin: 10px 0;
    color: #333;
}

/* Team Story Section */
.team-story {
    margin: 40px 0;
    padding: 40px 20px;
    background-color: rgba(255, 248, 220, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.team-story h2 {
    font-size: 2.2em;
    color: #556B2F;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.team-story h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #89B869, transparent);
    border-radius: 2px;
}

.team-story-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.team-image-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.team-main-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.team-image-wrapper:hover .team-main-image {
    transform: scale(1.03);
}

.team-text-content {
    background-color: rgba(243, 237, 213, 0.9);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.team-paragraph {
    font-size: 1.15em;
    line-height: 1.8;
    color: #333;
    margin-bottom: 25px;
    text-align: justify;
}

.team-paragraph:last-of-type {
    margin-bottom: 30px;
}

.team-quote {
    background: linear-gradient(135deg, rgba(85, 107, 47, 0.1) 0%, rgba(137, 184, 105, 0.1) 100%);
    padding: 25px 30px;
    border-left: 5px solid #89B869;
    border-radius: 8px;
    margin-top: 30px;
    position: relative;
}

.team-quote i {
    color: #89B869;
    font-size: 1.5em;
    margin-bottom: 10px;
    opacity: 0.7;
}

.team-quote p {
    font-size: 1.3em;
    font-style: italic;
    color: #556B2F;
    line-height: 1.6;
    margin: 10px 0 0 0;
    font-weight: 500;
}

/* Certificates section */
.certificates {
    margin: 40px 0;
    padding: 20px;
    text-align: center;
    background-color: rgba(255, 248, 220, 0.9);
}

.certificates h2 {
    color: #556B2F;
    margin-bottom: 30px;
}

.cert-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.cert-item {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    background-color: rgba(243, 237, 213, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.cert-item:hover {
    transform: translateY(-5px);
}

.cert-item i {
    font-size: 2.5em;
    color: #89B869;
    margin-bottom: 15px;
}

.cert-item h3 {
    font-size: 1.2em;
    color: #333;
}

/* === SERVICES PAGE STYLES === */
.services-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.services-intro {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px;
    background-color: rgba(255, 248, 220, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.services-intro h1 {
    color: #556B2F;
    font-size: 2.5em;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.services-intro h1::after {
    content: '';
    position: absolute;
    width: 70%;
    height: 3px;
    bottom: -10px;
    left: 15%;
    background-color: #89B869;
    border-radius: 3px;
}

.services-intro-text {
    font-size: 1.2em;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Service Cards */
.service-card {
    margin-bottom: 60px;
    padding: 20px;
    background-color: rgba(255, 248, 220, 0.9);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.service-card-content {
    display: flex;
    align-items: center;
    gap: 30px;
    background-color: rgba(243, 237, 213, 0.9);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card-content.reverse {
    flex-direction: row-reverse;
}

.service-image-container {
    flex: 1;
    max-width: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.service-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.service-image-container:hover .service-image {
    transform: scale(1.05);
}

.service-icon {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #556B2F;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.service-details {
    flex: 2;
}

.service-details h2 {
    font-size: 1.8em;
    color: #556B2F;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(85, 107, 47, 0.3);
}

.service-description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.service-features li {
    padding: 8px 0;
    margin-bottom: 8px;
    background-color: rgba(237, 231, 201, 0.8);
    border-radius: 6px;
    padding-left: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.service-features i {
    color: #556B2F;
    margin-right: 10px;
}

.service-button {
    display: inline-block;
    background-color: #556B2F;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.service-button:hover {
    background-color: #3e4f24;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Specific service card styles */
.forest-care {
    border-left: 5px solid #2e7d32;
}

.firewood {
    border-left: 5px solid #e65100;
}

.forestry {
    border-left: 5px solid #1b5e20;
}

.forestry .service-image-container {
    max-width: 500px;
}

.reforestation {
    border-left: 5px solid #7cb342;
}

/* Contact Teaser */
.contact-teaser {
    margin: 60px 0 40px;
    padding: 40px;
    text-align: center;
    background-color: rgba(243, 237, 213, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-teaser h2 {
    font-size: 2em;
    color: #556B2F;
    margin-bottom: 20px;
}

.contact-teaser p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-button {
    display: inline-block;
    background-color: #556B2F;
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.contact-button:hover {
    background-color: #3e4f24;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* === CONTACT PAGE STYLES === */
.contact-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.contact-intro {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px;
    background-color: rgba(255, 248, 220, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-intro h1 {
    color: #556B2F;
    font-size: 2.5em;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.contact-intro-text {
    font-size: 1.2em;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
    justify-content: center;
}

.contact-info-card, .contact-form-card {
    background-color: rgba(255, 248, 220, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 0;
    width: 100%;
    max-width: 500px;
    transition: transform 0.3s ease;
}

.contact-info-card:hover, .contact-form-card:hover {
    transform: translateY(-5px);
}

.card-header {
    background-color: #556B2F;
    color: white;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-header i {
    font-size: 1.8em;
}

.card-header h2 {
    margin: 0;
    font-size: 1.6em;
}

.contact-details {
    padding: 25px;
    /* Constrain text area so long strings (e.g. E-Mail) don't render under the right-side image */
    width: 50%;
    max-width: 50%;
    box-sizing: border-box;
}

.contact-detail-item {
    display: flex;
    margin-bottom: 25px;
    align-items: flex-start;
    gap: 15px;
}

.contact-detail-item > div {
    /* Allow flex children to shrink so long text can wrap instead of getting clipped */
    min-width: 0;
}

.contact-detail-item:last-child {
    margin-bottom: 0;
}

.contact-detail-item i {
    color: #556B2F;
    font-size: 1.5em;
    width: 30px;
    text-align: center;
    margin-top: 5px;
}

.contact-detail-item h3 {
    color: #556B2F;
    margin: 0 0 5px 0;
    font-size: 1.2em;
}

.contact-detail-item p {
    margin: 0;
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.contact-form-card form {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #556B2F;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.9);
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: #89B869;
    outline: none;
    box-shadow: 0 0 0 3px rgba(137, 184, 105, 0.2);
}

.submit-button {
    background-color: #556B2F;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.submit-button:hover {
    background-color: #3e4f24;
    transform: translateY(-3px);
}

.map-container {
    background-color: rgba(255, 248, 220, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    margin-bottom: 50px;
}

.map-header {
    background-color: #556B2F;
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.map-header i {
    font-size: 1.8em;
}

.map-header h2 {
    margin: 0;
    font-size: 1.6em;
}

.map-frame {
    padding: 0;
}

.map-frame iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: none;
}

/* Kontaktdetails mit Teambild */
.contact-details-wrapper {
    display: flex;
    flex-direction: row;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.contact-team-image {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.contact-team-image::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 80px;
    background: linear-gradient(to right, rgba(255, 248, 220, 0.9) 0%, rgba(255, 248, 220, 0.5) 60%, rgba(255, 248, 220, 0) 100%);
    z-index: 1;
}

.contact-team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.contact-team-image img:hover {
    transform: scale(1.02);
}

.team-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(85, 107, 47, 0.8);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-style: italic;
    text-align: center;
    max-width: 80%;
    z-index: 2;
}

/* === FOOTER === */
footer {
    background-color: #3e3e3e;
    color: white;
    padding: 20px 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content img {
    max-width: 150px;
    margin-bottom: 15px;
}

.footer-content p {
    margin: 5px 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin-top: 15px;
    gap: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #A9D18E;
    text-decoration: underline;
}

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

/* Größerer Header für bessere Video-Qualität auf großen Bildschirmen */
@media (min-width: 1200px) {
    header {
        height: 550px; /* Erhöht für bessere Qualität */
    }
}

@media (min-width: 1600px) {
    header {
        height: 600px; /* Noch größer für große Bildschirme */
    }
}

@media (min-width: 1920px) {
    header {
        height: 700px; /* Maximale Höhe für sehr große Bildschirme */
    }
}

@media (max-width: 768px) {
    .header-logo {
        top: 15px;
        right: 15px;
        max-width: 100px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .navbar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(40, 60, 30, 0.85);
        flex-direction: column;
        padding: 80px 0 20px;
        transition: left 0.3s ease;
        backdrop-filter: blur(10px);
    }
    
    .navbar.active {
        left: 0;
    }
    
    .navbar ul {
        flex-direction: column;
        align-items: center;
    }
    
    .navbar li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }
    
    .navbar a {
        display: block;
        padding: 12px 20px;
        width: 80%;
        margin: 0 auto;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* About page mobile */
    .about-values {
        flex-direction: column;
    }
    
    /* Team Story responsive */
    .team-story {
        padding: 30px 15px;
    }
    
    .team-story h2 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    
    .team-story-content {
        gap: 30px;
    }
    
    .team-text-content {
        padding: 25px;
    }
    
    .team-paragraph {
        font-size: 1.05em;
        line-height: 1.7;
        text-align: left;
    }
    
    .team-quote {
        padding: 20px;
    }
    
    .team-quote p {
        font-size: 1.15em;
    }
    
    /* WEISS Slogan responsive */
    .weiss-slogan-section {
        padding: 40px 15px;
    }
    
    .slogan-lines {
        max-width: 100%;
    }
    
    .slogan-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    
    .slogan-line {
        gap: 15px;
        padding: 15px 18px;
    }
    
    .slogan-letter {
        width: 50px;
        height: 50px;
        font-size: 1.6em;
    }
    
    .slogan-text {
        font-size: 1em;
    }
    
    .slogan-line:hover {
        transform: translateX(5px);
    }
    
    .cert-container {
        flex-direction: column;
        align-items: center;
    }
    
    .cert-item {
        width: 80%;
    }
    
    /* Team Story small screens */
    .team-paragraph {
        font-size: 1em;
    }
    
    .team-quote p {
        font-size: 1.1em;
    }
    
    .team-quote i {
        font-size: 1.2em;
    }

    /* Services page mobile */
    .service-card-content,
    .service-card-content.reverse {
        flex-direction: column;
    }
    
    .service-image-container {
        margin-bottom: 20px;
        max-width: 100%;
    }
    
    .service-icon {
        bottom: 10px;
        right: 10px;
    }
    
    .service-features li {
        padding-left: 10px;
        font-size: 0.95em;
    }
    
    .contact-teaser {
        padding: 20px;
    }

    /* Contact page mobile */
    .contact-container {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-info-card, .contact-form-card {
        max-width: 100%;
    }
    
    .card-header, .map-header {
        padding: 15px;
    }
    
    .card-header h2, .map-header h2 {
        font-size: 1.4em;
    }
    
    .contact-details, .contact-form-card form {
        padding: 20px;
    }
    
    .map-frame iframe {
        height: 350px;
    }

    .contact-team-image {
        width: 40%;
    }

    .contact-details {
        width: 60%;
        max-width: 60%;
    }
    
    .team-caption {
        font-size: 0.8em;
        padding: 5px 10px;
        bottom: 10px;
    }
    
    .contact-detail-item {
        margin-bottom: 15px;
    }
    
    .contact-detail-item i {
        font-size: 1.2em;
    }
    
    .contact-detail-item h3 {
        font-size: 1em;
    }
    
    .contact-detail-item p {
        font-size: 0.9em;
    }
}

@media (max-width: 576px) {
    .contact-team-image {
        width: 35%;
    }

    .contact-details {
        width: 65%;
        max-width: 65%;
    }
    
    .contact-team-image::before {
        width: 40px;
    }
    
    .team-caption {
        font-size: 0.7em;
        max-width: 90%;
    }
    
    .contact-detail-item {
        gap: 8px;
    }
    
    /* WEISS Slogan extra small screens */
    .slogan-title {
        font-size: 1.5em;
    }
    
    .slogan-line {
        gap: 12px;
        padding: 12px 15px;
    }
    
    .slogan-letter {
        width: 45px;
        height: 45px;
        font-size: 1.4em;
    }
    
    .slogan-text {
        font-size: 0.95em;
    }
}

/* === UTILITY CLASSES === */
.blur-background {
    filter: blur(5px);
    pointer-events: none;
    transition: filter 0.3s ease;
}

.content-box {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.main-content {
    min-height: calc(100vh - 400px);
}

.spacer {
    height: 40px;
}

/* Hide elements visually but keep for screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}