/* ================= Allgemeine Stile ================= */
body {
    min-height: 100vh;
    min-height: -webkit-fill-available;
    overscroll-behavior-y: contain;
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    height: 100%;
}

/* Touch-Elemente optimieren */
button, input, textarea {
    touch-action: manipulation;
}

/* Responsive Content */
.content { 
    width: 1200px;
    margin: 0 auto;
}
.content-grid {
    display: grid;
    gap: 2rem;
}
#text-box {
    width: auto;
    height: auto;
    padding: 0px 20px;
}
.content-main {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* ================= NAVIGATION ================= */
.navbar {
    background-color: #f0f2f5;
    height: 80px;
    color: #1E1E1E;
    position: relative;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    height: -webkit-fill-available;
}

.navbar-logo {
    max-width: 150px;
    transform: translateX(20px);
    box-shadow: none;
}

/*  ================= Desktop Navigation =================  */
.navbar-menu {
    transform: none;
    z-index: 1500;
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.navbar-item {
    position: relative;
    margin-left: 0.5rem;
}

.navbar-link {
    color: #1E1E1E;
        font-size:0.9rem;
    text-decoration: none;
    padding: 0.75rem;
    display: block;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.navbar-link:hover {
    background-color: #dee2e6;
}

/*  ================= Dropdown-Menü =================  */

/* Standardzustand: unsichtbar */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #f0f2f5;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 0 0 8px 8px;
    min-width: 190px;
    z-index: 1000;
    padding: 0.5rem 0;
}
/* Sichtbar, wenn Klasse .open gesetzt */
.dropdown-menu.open {
  display: block;
}

.dropdown-item {
    color: #1E1E1E;
        font-size:0.9rem;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #5a6268;
    padding-left: 1.75rem;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-icon {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
    background-color: 5a6268;
}

/*  ================= Burger Button (nur Mobile) =================  */
.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.burger-line {
    display: block;
    width: 25px;
    height: 3px;
    background: #1E1E1E;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ================= HERO SECTION ================= */
.hero {
    height: 70vh;
    max-width: 98%;
    margin: 0 auto;
    background-image: url('/Bilder/Background_Advance.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    position: relative;
}

.hero-service {
    height: 45vh;
    max-width: 98%;
    margin: 0 auto;
    background-image: url('/Bilder/Background_Advance.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    position: relative;

}

.hero-content {
    position: relative;
    bottom:2rem;
    z-index: 2;
    color: white;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    max-width: 600px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* ================= BUTTONS ================= */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: #f8f9fa;
    color: #1E1E1E;
    border: 2px solid #1E1E1E;
}

.btn-primary:hover {
    background-color: #dee2e6;
    border-color: #1E1E1E;
}

.btn-secondary {
    background-color: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.3);
}

.btn-outline {
    background-color: transparent;
    color: #333;
    border: 2px solid #333;
}

.btn-outline:hover {
    background-color: rgba(0,0,0,0.05);
}

/* ================= FEATURES SECTION ================= */
.features {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.2rem;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

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

.feature-icon {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

.feature-link {
    color: #007bff;
    font-weight: bold;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    opacity: 1; /* Permanent sichtbar */
}

.feature-link i {
    font-size: 0.8rem;
}
/* ================= Price SECTION ================= */
.price-box {
    background: #e6f7ff;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    text-align: center;
}

.price {
    font-size: 2rem;
    font-weight: bold;
    color: #007bff;
    margin: 0.5rem 0;
}

.price span {
    font-size: 1rem;
    font-weight: normal;
    color: #666;
}

.special-price {
    color: #ff5722;
    font-weight: bold;
    font-size: 1.2rem;
}


/* ================= CTA SECTION ================= */
.cta {
    padding: 5rem 0;
    text-align: center;
    background-color: #e9ecef;
    color: #1E1E1E;
}

.cta h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* ================= TESTIMONIALS ================= */
.testimonials {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.2rem;
    color: #333;
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.testimonial-content p {
    font-style: italic;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    color: #333;
}

.testimonial-author span {
    color: #777;
    font-size: 0.9rem;
}

/* ================= CONTAINER ================= */
.container {
    max-width: 80%;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ================= FORMULARE ================= */
.form-container h1 {
    text-align: center;
    color: #333;
    margin-bottom: 1rem;
}

.form-container p {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: bold;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
    border-color: #007bff;
    outline: none;
}

.input-group small {
    display: block;
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.875rem;
}

.submit-button {
    width: 100%;
    padding: 0.75rem;
    background-color: #e6facd;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #218838;
}

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

.popup-content {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    position: relative;
}

.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.close-button:hover {
    color: #007bff;
}

/*  ================= Antwortmeldungen =================  */
#loginResponse,
#registerResponse {
    margin-top: 1.5rem;
    text-align: center;
}

.success {
    color: #28a745;
}

.error {
    color: #dc3545;
}
/* ================= FOOTER ================= */
footer {
        width: 100%;
        height: auto;
        background: #F2F2F2;
        position: relative;
        font-weight: lighter;
}

#footer-content {
        width: calc(100% - 300px);
        height: auto;
        margin: auto auto;
}

footer .box {
        height: auto;
        background: orange;
}

#footer-box {
        width: 100%;
        height: auto;
        float: left;
}

#footer-box .footer-info-location {
        width: 100%;
        height: auto;
        text-align: left;
        margin-top: 50px;
        margin-bottom: 50px;
}

#footer-box .footer-info-location > .title {
        width: 100%;
        height: auto;
        font-size: 18px;
}

#footer-box .footer-info-location > .description {
        width: 100%;
        height: auto;
        font-size: 14px;
}

#footer-box .footer-info-location > .description > a {
        text-decoration: none;
        color: black;
}

#footer-box .footer-info-location > .description > a:hover {
        text-decoration: underline;
}

#footer-box .footer-info-contact {
        width: 100%;
        height: auto;
        text-align: right;
        margin-top: 50px;
        margin-bottom: 50px;
}

#footer-box .footer-info-contact > .title {
        width: 100%;
        height: auto;
        font-size: 18px;
}

#footer-box .footer-info-contact > .description {
        width: 100%;
        height: auto;
        font-size: 14px;
}

#footer-box .footer-info-contact > .description > a {
        text-decoration: none;
        color: black;
}

#footer-box .footer-info-contact > .description > a:hover {
        text-decoration: underline;
}

#footer-box .footer-location {
        width: 80%;
        height: calc(14vw);
        margin: auto;
        border-radius: 8px;
        background-image: url('/Bilder/footer/location.png');
        background-size: 100%;
}

#footer-box .copyright {
        text-align: left;
}

#footer-box .impressum {
        text-align: center;
}

#footer-box .impressum > a {
        text-decoration: none;
        color: black;
}

#footer-box .impressum > a:hover {
        text-decoration: underline;
}

#footer-box .social-media {
        width: auto;
        height: 24px;
        position: relative;
        float: right;
}

#footer-box .social-media > a > .icon {
        width: 20px;
        height: 20px;
        margin: 0px 5px;
        background-size: 100%;
        background-repeat: no-repeat;
        float: left;
}

/* ================= GRID ================= */
.grid {
        max-width: calc(100% - 20px);
        margin: 0 auto;
        width: 100%;
        padding: 40px 0px;
}

.grid:before,
.grid:after,
.row:before,
.row:after {
        content: "";
        display: table;
}

.grid:after,
.row:after {
        clear: both;
}

[class*='col-'] {
        float: left;
        min-height: 1px;
        width: 100%;
}

.col {
        background-color: white;
        border-radius: 3px;
        box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.3);
        color: turquoise;
        margin: 8em;
        padding: 1em;
        text-align: center;
}

.col-content {
        margin: 0px;
}
/* ================= MEDIA QUERIES ================= */
/* Tablet */

@media screen and (min-width: 1100px) {
        .col-wd-1 {width: 8.33333%;}
        .col-wd-2 {width: 16.66667%;}
        .col-wd-3 {width: 25%;}
        .col-wd-4 {width: 33.33333%;}
        .col-wd-5 {width: 41.66667%;}
        .col-wd-6 {width: 50%;}
        .col-wd-7 {width: 58.33333%;}
        .col-wd-8 {width: 66.66667%;}
        .col-wd-9 {width: 75%;}
        .col-wd-10 {width: 83.33333%;}
        .col-wd-11 {width: 91.66667%;}
        .col-wd-12 {width: 100%;}
        .col-wd-3-watch {width: 23%; float: right;}
}
@media (max-width: 1100px) {
    .content { width: 90%; }
    
    /* Navigation für Tablet */
    .burger {
        display: block;
    }
    
    .navbar-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 200px;
        height: 100vh;
        background: #f0f2f5;
        flex-direction: column;
        padding: 80px 20px 20px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    .navbar-menu.active {
        display:flex !important;
        transform: translateX(0);
    }
    
    .burger.active .burger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .burger.active .burger-line:nth-child(2) {
        opacity: 0;
    }
    
    .burger.active .burger-line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    .navbar-item {
        margin: 0.5rem 0;
    }
    
    .navbar-link {
        padding: 1rem;
    }
    
    /* Mobile Dropdowns */
    .dropdown-menu {
        position: static;
        display: none;
        background: #dee2e6;
        box-shadow: none;
        margin: 0.5rem 0;
        padding: 0;
        border-radius: 6px;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-item {
        color: #1E1E1E;
        padding: 0.75rem 1.5rem 0.75rem 2.5rem;
    }
    
    .dropdown-item:hover {
        background: rgba(0,0,0,0.1);
    }
    
    .dropdown.active .dropdown-icon {
        transform: rotate(180deg);
    }
    
    body.no-scroll {
        overflow: hidden;
    }
        /*Footer*/
           #footer-content {
        width: calc(100% - 100px);
        height: auto;
        margin: auto auto;
    }

    #footer-box .footer-info-location {
        text-align: center;
    }

    #footer-box .footer-info-contact {
        text-align: center;
    }

    #footer-box .footer-location {
        width: 60%;
        height: calc(30vw);
    }

    #footer-box .copyright {
        text-align: center;
    }
    
    #footer-box .impressum {
        text-align: center;
    }

    #footer-box .social-media {
        width: 90px;
        margin: auto;
        float: none;
    }
}

/*  ================= Mobile (768px und kleiner) =================  */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        max-width: 100%;
    }
    
    .hero-buttons {
                /*flex-direction: column;*/
        gap: 0.8rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
        /*width: 100%;*/
        box-sizing: border-box;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .features, .cta, .testimonials {
        padding: 3rem 1rem;
    }
    
    h2 {
        font-size: 1.8rem !important;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
/* GRID*/
         .grid {
        padding: 10px 0px;
    }
/* Footer*/
         #footer-content {
        width: calc(100% - 20px);
    }

    #footer-box .footer-location {
        width: 100%;
        height: calc(30vw);
    }
}

/* =================  Extra kleine Geräte (480px und kleiner) =================  */
@media (max-width: 480px) {
    .content { width: 100%; }
    
    .hero h1 {
        font-size: 1.8rem;
        margin-top: 2rem;
    }
    
    .navbar-logo {
        font-size: 1.2rem;
    }
    
    .testimonial {
        padding: 1.5rem;
    }
    
    @media (hover: none) {
        a, button {
            min-width: 48px;
            min-height: 48px;
        }
    }
}
/*  ================= Team Page Styles =================  */
.team-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.team-member {
    display: flex;
    margin-bottom: 3rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}

.team-photo {
    flex: 0 0 300px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-photo img {
    max-width: 100%;
    height: auto;
}

.team-info {
    flex: 1;
    padding: 2rem;
}

.team-info h2 {
    color: #007bff;
    margin-top: 0;
}

.team-section {
    margin-bottom: 1.5rem;
}

.team-section h3 {
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .team-member {
        flex-direction: column;
    }
    
    .team-photo {
        flex: 0 0 auto;
        padding: 1rem;
    }
    
    .team-info {
        padding: 1.5rem;
    }
}
.logout-form .link-style {
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
    width: 100%;
    text-align: left;
    padding: 0.5rem 1rem;
    display: block;
    text-decoration: none;
    visibility: visible; /* Sicherstellen, dass der Text immer sichtbar ist */
    opacity: 1; /* Volle Sichtbarkeit */
}

.logout-form .link-style:hover {
    background-color: #f8f9fa;
    color: #16181b;
    text-decoration: none;
}

/* =================  Dropdown-Menü Stil anpassen =================  */
.dropdown-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    white-space: nowrap;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #16181b;
}

a {
        text-decoration: none;
        color: black;
}

a:hover {
        text-decoration: underline;
}

img {
        width: 100%;
        box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.4);
}

#btn-success {
        padding: 10px;
        border: 2px solid #3BA53A;
        background: #3BA53A;
        color: white;
        font-size: 12px;
        cursor: pointer;
}

#btn-success:hover {
        border: 2px solid #359134;
        background: #359134;
}
