/* Grundlegende Stile */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Urbanist', sans-serif;
    background-color: #2A2A2A;
    color: #E07A00;
    width: 100%;
    overflow-x: hidden;
}

:root {
    --color-blau-hell: #7BAFD4;       /* Näherungswert für rgb(162, 202, 230) */
    --color-blau-mid: #217CA3;        /* Näherungswert für rgb(33, 158, 188) */
    --color-blau-dunkel: #002D47;     /* Näherungswert für rgb(2, 48, 71) */
    --color-orange-hell: #F2B705;     /* Näherungswert für rgb(255, 183, 3) */
    --color-orange: #E07A00;          /* Näherungswert für rgb(251, 133, 0) */
    --color-transparent: rgba(0, 0, 0, 0.5);
}

h1 { color: var(--color-blau-hell); }
h2 { color: var(--color-orange); }
h3 { color: var(--color-blau-hell); }
p { color: var(--color-blau-hell); }

/* Hauptbereiche */
section {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    text-align: center;
}

/* Header-Bar */
.header-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    padding: 0 20px;
    box-sizing: border-box;
}

.header-section {
    flex: 1;
    display: flex;
    align-items: center;
}

.header-section.left { justify-content: flex-start; }
.header-section.center { justify-content: center; }
.header-section.right { justify-content: flex-end; }

/* Navigation Icon */
#nav-icon3 {
    width: 60px;
    height: 45px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

#nav-icon3 span {
    display: block;
    position: absolute;
    height: 6px;
    width: 100%;
    background: var(--color-orange);
    border-radius: 6px;
    transition: 0.4s ease-in-out;
}

#nav-icon3 span:nth-child(1) { top: 0px; }
#nav-icon3 span:nth-child(2), #nav-icon3 span:nth-child(3) { top: 18px; }
#nav-icon3 span:nth-child(4) { top: 36px; }

#nav-icon3.open span:nth-child(1) { transform: rotate(45deg); top: 18px; }
#nav-icon3.open span:nth-child(2), #nav-icon3.open span:nth-child(3) { opacity: 0; }
#nav-icon3.open span:nth-child(4) { transform: rotate(-45deg); top: 18px; }

/* Logo und Markenname */
#logo { 
    width: 100px; 
    height: auto; 
}

#logo-link {
    display: flex;
    align-items: right;
    margin-left: auto;
}

#brand-name { 
    font-size: 4.2em;
    margin-block-end: 0.0em;
    color: var(--color-orange);
}

#slogan1 { 
    font-size: 2em;
    margin-block-start: 0.0em;
    margin-block-end: 0.0em;
}

#slogan2 { 
    font-size: 2.5em;
    margin-block-start: 0.0em;
}

/* Menü unterhalb der Header-Bar */
.side-menu {
    position: fixed;
    top: 100px;
    left: 0;
    width: 100%;
    background-color: rgba(2, 48, 71, 0.8);
    display: none; /* Startet ausgeblendet */
    flex-direction: column;
    padding: 10px 0;
    z-index: 9;
}

.side-menu.open {
    display: flex;
    animation: slideDown 0.5s ease-out forwards;
}

.side-menu.close {
    animation: slideUp 0.5s ease-out forwards;
}

.side-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
}

.side-menu li {
    margin: 10px 0;
}

.side-menu a {
    color: var(--color-orange); /* Orange Schrift */
    font-size: 1em;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    transition: background 0.3s;
}

.side-menu a:hover {
    background-color: rgba(0, 0, 0, 0.1); /* Leichter Hover-Hintergrund */
}

/* Slide-Down-Animation für das Öffnen */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide-Up-Animation für das Schließen */
@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Hero-Bereich */
header.hero-section {
    position: relative;
    width: 100vw;
    height: 70vh;
    overflow: hidden;
}

header .responsive-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-section .hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-blau-hell);
    text-align: center;
    z-index: 2;
}

/* Service-Boxen */
.service-box {
    background: linear-gradient(135deg, var(--color-blau-dunkel) 0%, var(--color-blau-mid) 100%);
    padding: 20px;
    margin: 10px;
    border-radius: 35px;
    max-width: 350px;
    min-height: 540px;
    display: inline-table;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
}

.service-box img {
    width: 120px;
    height: auto;
}

/* Preis-Text */
.price {
    color: var(--color-orange);
    font-weight: bold;
}

/* Allgemeine Button-Klasse */
.button {
    position: relative;
    border: none;
    color: var(--color-blau-dunkel); /* Ursprüngliche Textfarbe */
    background-color: var(--color-blau-hell); /* Ursprüngliche Hintergrundfarbe */
    padding: 10px 20px;
    margin: 15px 0px -25px 0px;
    border-radius: 20px;
    display: inline-block;
    overflow: hidden;
    transition: transform 0.5s ease, box-shadow 0.5s ease, opacity 0.5s ease;
    text-decoration: none;
}

/* Shiny-Effekt durch :before-Pseudo-Element in --color-orange-hell */
.button::before {
    position: absolute;
    content: '';
    display: inline-block;
    top: -180px;
    left: 0;
    width: 30px;
    height: 100%;
    background-color: var(--color-orange-hell); /* Shine in Orange */
    animation: shiny-btn1 6s ease-in-out infinite;
    transform: rotate(45deg);
}

/* Hover-Effekt für alle Buttons */
.button:hover {
    transform: translateY(-1px);
    color: var(--color-blau-dunkel);
    background-color: var(--color-blau-hell);
    box-shadow: 0px 0px 10px 4px var(--color-orange);
}

/* Active-Effekt für Button */
.button:active {
    box-shadow: 4px 4px 6px 0 rgba(255,255,255,0.3),
                -4px -4px 6px 0 rgba(116, 125, 136, 0.2), 
                inset -4px -4px 6px 0 rgba(255,255,255,0.2),
                inset 4px 4px 6px 0 rgba(0, 0, 0, 0.2);
}

/* Shiny-Effekt Animation */
@keyframes shiny-btn1 {
    0% { transform: scale(0) rotate(45deg); opacity: 0; }
    80% { transform: scale(0) rotate(45deg); opacity: 0.5; }
    81% { transform: scale(4) rotate(45deg); opacity: 1; }
    100% { transform: scale(50) rotate(45deg); opacity: 0; }
}

/* Portfolio */
.portfolio-grid {
    display: flex;
    justify-content: center; /* Zentriert die Portfolio-Items */
    flex-wrap: wrap; /* Erlaubt das Umbruchverhalten der Items */
    gap: 20px; /* Abstand zwischen den Portfolio-Items */
}

.portfolio-item {
    max-width: 300px;
    height: auto;
    position: relative;
    border-radius: 35px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
    display: flex;
    justify-content: center;
}

.portfolio-item video {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover video,
.portfolio-text:hover + video {
    transform: scale(1.3); /* Vergrößert das Video */
}

.portfolio-text {
    position: absolute; /* Festes Positionieren über dem Video */
    top: 10px; /* Abstand vom oberen Rand */
    left: 50%;
    transform: translateX(-50%); /* Horizontale Zentrierung */
    background: rgba(162, 202, 230, 0.7);
}

.portfolio-text.button:hover {
    left: 50%;
    transform: translateX(-50%); /* Horizontale Zentrierung */
}


/* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */

/* Grundlegende Anpassungen für Testimonials in Grid-Darstellung */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: auto;
    padding: 20px;
}

.testimonial {
    max-width: 400px;
    text-align: center;
    color: var(--color-blau-hell);
    background: linear-gradient(135deg, var(--color-blau-dunkel) 0%, var(--color-blau-mid) 100%);
    padding: 20px;
    border-radius: 35px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.testimonial img {
    width: 100px;
    height: auto;
    border-radius: 50%;
    margin-bottom: 15px;
}

.testimonial p.stars {
    font-size: 1.5em;
    color: var(--color-orange-hell);
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 183, 3, 0.6);
}

h1#kundenstimmen-title {
    font-size: 2.5em;
    color: var(--color-blau-hell);
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

h1#kundenstimmen-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--color-orange);
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    border-radius: 2px;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        max-width: 600px;
    }
    .testimonial {
        font-size: 18px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        max-width: 400px;
    }
    .testimonial {
        font-size: 16px;
        padding: 10px;
    }
}

/* Globale Box-Sizing-Eigenschaft für konsistente Größenberechnung */
*, *::before, *::after {
    box-sizing: border-box;
}

/* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */

/* Formulare */
form {
    max-width: 500px;
    margin: auto;
}

form input, form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: none;
    box-sizing: border-box;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
}

/* Datenschutzerklärung Modal */
.datenschutz-modal {
    display: none; /* Startet ausgeblendet */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 48, 71, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 15;
}

.datenschutz-content {
    background: linear-gradient(135deg, var(--color-blau-dunkel) 0%, var(--color-blau-mid) 100%);
    padding: 20px;
    border-radius: 8px;
    max-width: 900px;
    width: 80%;
    text-align: center;
}


/* Impressum Modal */
.impressum-modal {
    display: none; /* Startet ausgeblendet */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 48, 71, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 15;
}

.impressum-content {
    background: linear-gradient(135deg, var(--color-blau-dunkel) 0%, var(--color-blau-mid) 100%);
    padding: 20px;
    border-radius: 8px;
    max-width: 380px;
    width: 80%;
    text-align: center;
}

/* Datenschutz Modal */
.datenschutz-modal {
    display: none; /* Startet ausgeblendet */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 48, 71, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 15;
}

.datenschutz-content {
    background: linear-gradient(135deg, var(--color-blau-dunkel) 0%, var(--color-blau-mid) 100%);
    padding: 20px;
    border-radius: 8px;
    max-width: 380px;
    width: 80%;
    text-align: left;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5em;
    cursor: pointer;
}

/* Scroll-to-Top */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--color-blau-dunkel);
    border-radius: 50%;
    padding: 15px 23px;
    font-size: 1.5em;
    text-align: center;
    color: var(--color-orange);
    transition: 0.5s ease;
    text-decoration: none;
    box-shadow: 0px 0px 6px 2px rgba(0, 0, 0, 0.3);
}

.scroll-to-top:hover {
    background: var(--color-blau-mid);
    transform: translateY(-2px); /* Heben beim Hover */
    box-shadow: 0px 0px 6px 2px var(--color-orange);
}

/* Footer */
footer {
    background-color: var(--color-blau-dunkel);
    padding: 20px;
    text-align: center;
    color: var(--color-blau-hell);
    text-decoration: none;
}

footer a {
    color: var(--color-blau-hell); /* Setzt die Farbe auf --color-blau-hell */
    text-decoration: none; /* Entfernt die Unterstreichung */
}

footer a:hover {
    color: var(--color-orange); /* Setzt die Farbe auf --color-blau-hell */
    text-decoration: none; /* Entfernt die Unterstreichung */
}


/* Responsive Anpassungen */
@media (max-width: 768px) {
    h1 { font-size: 1.4em;}
    .header-bar { height: 100px; }
    #logo { width: 100px; }
    #brand-name { font-size: 1.6em; }
    .portfolio-grid { justify-content: center; }
    .portfolio-item { flex: 1 1 45%; max-width: 45%; }
}

@media (max-width: 480px) {
    .portfolio-item { flex: 1 1 100%; max-width: 100%; }
}