/* Grundlegende Stile */
:root {
    --primary-color: #015d9b;
    --secondary-color: #e10018;
    --text-color: #333333;
    --heading-color: #27323a;
    --light-gray: #f5f5f5;
    --medium-gray: #cccccc;
    --dark-gray: #666666;
    --white: #ffffff;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Wix Madefor Text', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--heading-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

p {
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Header und Navigation */
header {
    position: relative;
    background: var(--heading-color);
    background-image: linear-gradient(rgba(39, 50, 58, 0.7), rgba(39, 50, 58, 0.7)), url('assets/img/main-bg-03-min.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 180px 20px 120px;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

/* Spezieller Header-Stil für Unterseiten */
.subpage-header {
    background: var(--heading-color) !important;
    background-image: none !important;
    padding: 100px 20px 40px !important;
    min-height: auto !important;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
    width: 100%;
    padding: 0 15px;
}

.header-content h1 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 2.8rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header-content h2 {
    color: var(--white);
    font-weight: 500;
    font-size: 1.4rem;
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.header-content h2::after {
    display: none;
}

.header-content .cta-button {
    margin-top: 15px;
    font-size: 1.05rem;
    padding: 14px 28px;
    animation: pulseSoft 2s infinite;
}

@keyframes pulseSoft {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
}

nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 0;
    z-index: 1000;
    transition: var(--transition);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: bold;
    font-size: 1.6rem;
    color: var(--white);
    display: flex;
    align-items: center;
    margin-left: 50px;
}

.navbar-logo {
    height: 96px;
    width: auto;
    display: block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--white);
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px;
    transition: var(--transition);
}

/* Sticky Navigation */
nav.sticky {
    position: fixed;
    background-color: var(--heading-color);
    box-shadow: var(--box-shadow);
    padding: 10px 0;
}

nav.sticky .navbar-logo {
    height: 72px;
    transition: height 0.3s ease;
}

/* Buttons und Links */
.cta-button, .submit-button, .link-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 5px;
    border: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.cta-button:hover, .submit-button:hover, .link-button:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Kompetenzen Abschnitt */
.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
    margin: 0 0 30px;
    display: flex;
    flex-direction: column;
    flex: 1 1 300px;
    max-width: 350px;
    min-height: 300px;
    height: auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s forwards;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.4s ease;
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--white);
    padding: 30px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.card:hover .card-image {
    opacity: 1;
    z-index: 10;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card h3, .card p {
    position: relative;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.card::before {
    display: none;
}

.card:nth-child(1)::before,
.card:nth-child(2)::before,
.card:nth-child(3)::before,
.card:nth-child(4)::before,
.card:nth-child(5)::before {
    background-image: none;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card:hover h3,
.card:hover p {
    opacity: 0;
}

/* Entferne den alten Hover-Effekt, der nicht benötigt wird */
.card::after {
    display: none;
}

/* Strahlmittel Abschnitt */
#strahlmittel {
    background-color: var(--light-gray);
    scroll-margin-top: 100px;
}

.strahlmittel-container {
    display: flex;
    flex-direction: row;
    gap: 40px;
    margin-top: 40px;
    align-items: flex-start;
    justify-content: space-between;
}

.strahlmittel-image {
    flex: 0 0 40%;
    position: sticky;
    top: 120px;
    height: fit-content;
    align-self: flex-start;
    transition: all 0.3s ease-in-out;
    display: flex;
    justify-content: center;
}

.strahlmittel-bild {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: all 0.5s ease;
    opacity: 1;
    max-width: 400px;
}

.strahlmittel-text {
    flex: 0 0 55%;
}

.strahlmittel-list {
    width: 100%;
}

.strahlmittel-item {
    background-color: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease-in-out;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-left: 5px solid transparent;
    transform: translateX(0);
}

.strahlmittel-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--heading-color);
}

.strahlmittel-item h3 {
    color: var(--heading-color);
    border-bottom: 2px solid var(--heading-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
    transition: var(--transition);
}

.strahlmittel-item.active {
    border-left: 5px solid var(--heading-color);
    transform: translateX(10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
    background-color: rgba(39, 50, 58, 0.05);
}

.strahlmittel-item.active h3 {
    color: var(--heading-color);
}

.strahlmittel-item p {
    transition: var(--transition);
}

.strahlmittel-item.active p {
    color: var(--text-color);
}

/* Anlagen Abschnitt - Neues Grid-Layout */
.machine-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.machine-item {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUpMachine 0.6s forwards;
}

.machine-item:nth-child(2) {
    animation-delay: 0.2s;
}

.machine-item:nth-child(3) {
    animation-delay: 0.4s;
}

.machine-item:nth-child(4) {
    animation-delay: 0.6s;
}

.machine-image {
    position: relative;
    overflow: hidden;
    height: 0;
    padding-top: 100%; /* Macht das Bild quadratisch */
    margin-bottom: 20px;
}

.machine-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.machine-content {
    padding: 25px;
    position: relative;
    z-index: 1;
    background-color: var(--white);
    transition: var(--transition);
}

.machine-title {
    margin-bottom: 15px;
    text-align: center;
}

.machine-title h3 {
    margin: 0;
    color: var(--heading-color);
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.machine-title h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--heading-color);
}

.machine-specs {
    font-weight: 500;
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-bottom: 12px;
    text-align: center;
}

.machine-desc {
    color: var(--text-color);
    text-align: center;
}

.machine-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.machine-item:hover .machine-image img {
    transform: scale(1.05);
}

/* Beschichtung Abschnitt */
#beschichtung {
    background-color: var(--light-gray);
    text-align: center;
    padding: 20px 0 5px 0; /* Oberer Abstand erhöht, unterer stark reduziert */
}

#beschichtung p {
    margin-bottom: 5px; /* Noch stärker reduzierter Abstand */
}

#beschichtung h2 {
    margin-bottom: 10px; /* Reduzierter Abstand */
    margin-top: 15px; /* Erhöhter Abstand zur vorherigen Sektion */
}

#beschichtung h2::after {
    bottom: -5px; /* Angepasst für kleineren Abstand */
}

.link-button {
    margin-top: 15px;
}

.wema-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -15px; /* Verstärkter negativer Abstand oben */
    margin-bottom: -30px; /* Verstärkter negativer Abstand unten */
    max-width: 350px; /* Noch kleinere maximale Breite */
    margin-left: auto;
    margin-right: auto;
}

.wema-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 0;
    transition: var(--transition);
    margin-top: -15px; /* Verstärkter negativer Abstand oben */
}

.wema-logo:hover {
    transform: scale(1.02);
}

.wema-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -15px; /* Verstärkter negativer Abstand oben */
    margin-bottom: -30px; /* Verstärkter negativer Abstand unten */
    max-width: 350px; /* Noch kleinere maximale Breite */
    margin-left: auto;
    margin-right: auto;
}

/* Kontakt Abschnitt */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 50px;
}

.contact-info, .contact-form {
    flex: 1 1 300px;
}

address {
    font-style: normal;
    line-height: 1.8;
    margin-bottom: 30px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--heading-color);
    box-shadow: 0 0 5px rgba(39, 50, 58, 0.3);
}

/* Map Styles */
.map-container {
    margin-top: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 400px;
}

#map {
    border-radius: 8px;
    width: 100%;
    height: 100%;
}

.map-placeholder {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    margin-top: 40px;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 8px;
    font-size: 1rem;
    color: var(--dark-gray);
}

/* Footer */
footer {
    background-color: var(--heading-color);
    color: var(--white);
    padding: 30px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: var(--white);
    margin-left: 20px;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

/* Animationen */
.hidden {
    opacity: 0.95;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.slide-in-left {
    animation: slideInLeft 1s ease forwards;
}

.slide-in-right {
    animation: slideInRight 1s ease forwards;
}

.pulse {
    animation: pulse 2s infinite;
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* Erweiterte Animation für CTA-Button */
.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.cta-button:hover::after {
    left: 100%;
}

@keyframes fadeInUpMachine {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Impressum und Datenschutz Styles */
.impressum-content,
.datenschutz-content {
    max-width: 900px;
    margin: 120px auto 60px;
    padding: 40px;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.impressum-content h1,
.datenschutz-content h1 {
    color: var(--heading-color);
    margin-bottom: 50px;
    text-align: center;
    font-size: 2.5em;
    position: relative;
    padding-bottom: 20px;
}

.impressum-content h1::after,
.datenschutz-content h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
}

.impressum-content section,
.datenschutz-content section {
    margin-bottom: 50px;
    padding: 30px;
    background-color: var(--light-gray);
    border-radius: 10px;
    transition: var(--transition);
}

.impressum-content section:hover,
.datenschutz-content section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.impressum-content h2,
.datenschutz-content h2 {
    color: var(--heading-color);
    margin-bottom: 25px;
    font-size: 1.8em;
    position: relative;
    padding-bottom: 10px;
}

.impressum-content h2::after,
.datenschutz-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--secondary-color);
}

.impressum-content h3,
.datenschutz-content h3 {
    color: var(--heading-color);
    margin: 30px 0 15px;
    font-size: 1.4em;
    font-weight: 600;
}

.impressum-content h4,
.datenschutz-content h4 {
    color: var(--heading-color);
    margin: 25px 0 12px;
    font-size: 1.2em;
    font-weight: 500;
}

.impressum-content p,
.datenschutz-content p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.05em;
}

.impressum-content a,
.datenschutz-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    padding-bottom: 2px;
}

.impressum-content a::after,
.datenschutz-content a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.impressum-content a:hover,
.datenschutz-content a:hover {
    color: var(--secondary-color);
}

.impressum-content a:hover::after,
.datenschutz-content a:hover::after {
    width: 100%;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .impressum-content,
    .datenschutz-content {
        margin: 100px 20px 40px;
        padding: 20px;
        overflow-x: hidden;
    }

    .impressum-content h1,
    .datenschutz-content h1 {
        font-size: 1.8em;
        word-wrap: break-word;
    }

    .impressum-content h2,
    .datenschutz-content h2 {
        font-size: 1.5em;
        word-wrap: break-word;
    }

    .impressum-content h3,
    .datenschutz-content h3 {
        font-size: 1.3em;
        word-wrap: break-word;
    }

    .impressum-content h4,
    .datenschutz-content h4 {
        font-size: 1.1em;
        word-wrap: break-word;
    }

    .impressum-content p,
    .datenschutz-content p,
    .impressum-content ul,
    .datenschutz-content ul,
    .impressum-content address,
    .datenschutz-content address {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .impressum-content section,
    .datenschutz-content section {
        padding: 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .map-container,
    .map-placeholder {
        height: 300px !important;
        width: 100% !important;
    }
    
    #map {
        height: 300px !important;
        width: 100% !important;
    }
}

/* Dankeseite */
.thank-you-message {
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.thank-you-icon {
    font-size: 80px;
    color: #4CAF50;
    margin-bottom: 30px;
}

.thank-you-message h2 {
    color: var(--heading-color);
    margin-bottom: 20px;
}

.thank-you-message p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    header {
        padding: 160px 20px 80px;
        min-height: 50vh;
        width: 100%;
        overflow-x: hidden;
    }
    
    .header-content {
        width: 100%;
        padding: 0 10px;
    }
    
    .header-content h1 {
        font-size: 2rem;
        width: 100%;
        word-wrap: break-word;
    }
    
    .header-content h2 {
        font-size: 1.2rem;
        width: 100%;
        word-wrap: break-word;
    }
    
    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        background-color: rgba(39, 50, 58, 0.98);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        width: 70%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 999;
        padding: 100px 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }
    
    .nav-links li {
        margin: 0;
        opacity: 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        color: var(--white) !important;
        font-weight: 700;
        font-size: 1.2rem;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
        padding: 15px;
        background-color: rgba(255, 255, 255, 0.15);
        border-radius: 5px;
        display: block;
        margin: 8px 20px;
        transition: all 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .nav-links a:hover, 
    .nav-links a:focus {
        background-color: var(--secondary-color);
        transform: translateY(-3px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
    
    .nav-links {
        background-color: rgba(39, 50, 58, 0.95);
        backdrop-filter: blur(5px);
        padding-top: 120px;
    }
    
    .burger {
        display: block;
        z-index: 1000;
    }
    
    .nav-active {
        transform: translateX(0%);
    }
    
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .toggle .line2 {
        opacity: 0;
    }
    
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        margin-top: 20px;
    }
    
    .footer-links a {
        margin: 0 10px;
    }
    
    .machine-grid {
        grid-template-columns: 1fr;
    }
    
    .strahlmittel-bild {
        height: 280px;
        max-width: 280px;
    }

    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .card, .grid-item {
        padding: 20px;
    }
    
    .nav-links {
        width: 70%;
    }
    
    .strahlmittel-bild {
        height: 250px;
        max-width: 250px;
    }

    .map-container,
    .map-placeholder {
        height: 250px !important;
    }

    #map {
        height: 250px !important;
    }
}

@media screen and (max-width: 992px) {
    .strahlmittel-container {
        flex-direction: column;
        align-items: center;
    }
    
    .strahlmittel-image {
        position: sticky;
        top: 80px;
        right: auto;
        transform: none;
        margin-bottom: 30px;
        width: 100%;
        flex: 0 0 auto;
        z-index: 1;
    }
    
    .strahlmittel-text {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .strahlmittel-bild {
        height: auto;
        max-height: 300px;
        max-width: 300px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.slide-in-left {
    animation: slideInLeft 1s ease forwards;
}

.slide-in-right {
    animation: slideInRight 1s ease forwards;
}

.pulse {
    animation: pulse 2s infinite;
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* Erweiterte Animation für CTA-Button */
.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.cta-button:hover::after {
    left: 100%;
}

#ueber-uns p {
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

#ueber-uns h2 {
    text-align: center;
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--heading-color);
    color: var(--white);
    z-index: 9999;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-text h3 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.cookie-text p {
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.cookie-button.accept-all {
    background-color: var(--secondary-color);
    color: var(--white);
}

.cookie-button.accept-necessary {
    background-color: var(--white);
    color: var(--heading-color);
}

.cookie-button.settings {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

.cookie-button.save {
    background-color: var(--primary-color);
    color: var(--white);
}

.cookie-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Cookie Modal Styles */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.cookie-modal-content {
    background-color: var(--white);
    border-radius: 6px;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark-gray);
}

.cookie-options {
    margin: 20px 0;
}

.cookie-option {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--medium-gray);
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option label {
    font-weight: bold;
    margin-left: 10px;
}

.cookie-option p {
    margin-top: 5px;
    margin-left: 30px;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.cookie-modal-buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

@media screen and (max-width: 768px) {
    .cookie-content {
        padding: 15px;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-button {
        width: 100%;
    }
}

/* --- Linien unter Überschriften entfernt --- */

h2::after,
.machine-title h3::after,
.impressum-content h1::after,
.datenschutz-content h1::after {
    display: none;
}

.strahlmittel-item h3 {
    border-bottom: none;
}
