*,
*::before,
*::after {
    box-sizing: border-box;
}

.pagecontainer {
    padding: 0 5%;
    width: 100%;
}

body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: #fff;
    color: #000;
    overflow-x: hidden;
    /* Safety measure against minor overflows */
}


.hero {
    display: flex;
    min-height: 100vh;
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 100px;
}

.hero-text {
    margin-top: auto;
    margin-bottom: auto;
    flex: 1;
    max-width: 600px;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

h2 {
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-image {
    max-width: 400px;
    flex: 1;
    margin-top: auto;
    margin-bottom: auto;
}

.hero-image img {
    width: 100%;
    /* Ensures image never overflows its container */
    height: auto;
}

@media (max-width: 900px) {
    .hero-image img {
        width: 80vw;
        margin-top: 100px;
    }

    .hero-image {
        text-align: center;
    }

    .hero {
        align-items: center;
    }

    .hero-text h1 {
        margin-top: 100px;
        font-size: 3rem;
    }

    .cta-button {
        font-size: 1rem;
    }

}


.navbar {
    position: fixed;
    top: 5px;
    left: 5px;
    right: 5px;
    /* Anchors to both sides for perfect fit */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid black;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.navbar h1 {
    font-family: 'Inter', sans-serif;
    margin: 5px;
    font-size: 1.5rem;
}

.btn-primary {
    background-color: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
    font-weight: bold;
    border-radius: 0;
}

.btn-primary:hover,
.btn-primary:active {
    background-color: #333 !important;

    border-color: #333 !important;
}

.card-img-top {
    border-radius: 0 !important;
}

.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    width: 100%;
    color: white;
    padding: 60px 0 20px;
    margin-top: 100px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: white;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.footer-small {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 8px !important;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 8px 0;
}

.footer-link:hover {
    color: #ffd700;
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-section h3 {
        font-size: 1.5rem;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
    }
}

.callToActionWrapper {
    margin: 100px 0;
    background: #f8f9fa;
    border: 2px solid black;
    position: relative;
}

.cta-container {
    padding: 60px 5%;
}

.cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.cta-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
}

.cta-description {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #333;
    margin: 0;
}

.cta-example {
    background: white;
    border: 2px solid black;
    padding: 20px;
    margin: 10px 0;
}

.example-text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.example-label {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.cta-button {
    padding: 18px 40px !important;
    font-size: 1.25rem !important;
    margin-top: 10px;
    width: fit-content;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
}

.cta-media {
    position: relative;
}

@media (max-width: 1100px) {
    .cta-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-description {
        font-size: 1.1rem;
    }
    
    .cta-media {
        order: -1;
    }
}

@media (max-width: 768px) {
    .cta-container {
        padding: 40px 5%;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
    
    .cta-example {
        padding: 15px;
    }
    
    .example-text {
        font-size: 0.9rem;
    }
    
    .cta-button {
        width: 100%;
        text-align: center;
        padding: 15px 30px !important;
        font-size: 1.1rem !important;
    }
}

p {
    font-size: 1.25rem;
}

.card-title {
    font-size: 1.5rem;
}

.druckenPlayer {
    max-height: 500px;
    width: 100%;
    border: 2px solid black;
}

@media (max-width: 768px) {
    .druckenPlayer {
        max-height: 300px;
    }
}

.carousel-video-container {
    width: 100%;
    height: 595px;
    overflow: hidden;
}

.carousel-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Crops the video to fill the 600px height without distortion */
    object-position: center;
    /* Ensures the crop happens from the edges toward the center */
}

.carousel {
    border-bottom: 1px solid black;
}

.carousel-item {
    width: 100% !important;
    height: 595px !important;
    overflow: hidden !important;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Crops the video to fill the 600px height without distortion */
    object-position: center;
    /* Ensures the crop happens from the edges toward the center */
}

.text-small {
    font-size: 0.75rem;
    font-weight: normal;
}

/* Ensures all media (images/videos) have the same height and crop correctly */
.custom-carousel-media {
    height: 300px;
    object-fit: cover;
    width: 100%;
}

.card {
    transition: transform 0.2s;
}

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