/* 1. GLOBALE RESETS & FIX FÜR DAS RECHTS ABSCHNEIDEN */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
	font-size: 1.2em;
    color: white;
    background-color: #303030;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
	text-align: left;
}

/* 2. HEADER & LAYOUT */
.header {
    background-color: #101010;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2%;
    box-shadow: 0 5px 10px rgba(0,0,0,0.5);
    position: sticky;
    top: 0;
    z-index: 1000; /* Erhöht, damit es immer über dem Inhalt liegt */
    width: 100%;
}

.logo {
    font-size: 1.6em;
    color: #ffff88;
}

/* Desktop Navigation */
.nav ul {
    display: flex;
    gap: 1rem;
    list-style: none;
}

.nav a {
    display: block;
    padding: 0.5rem 1rem;
    color: #ffff88;
    text-decoration: none;
    font-size: 1.4em;
    transition: color 0.3s;
}

.nav a:hover, .nav a.active {
    color: white;
}

/* Burger-Menü-Button (Standardmässig unsichtbar) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    height: 3px;
    width: 100%;
    background: #808080;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* 3. HAUPTINHALT & SEKTIONEN */
.content {
    flex: 1;
    padding: 2rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
	background: #303030;
    overflow-x: hidden; /* Verhindert das horizontale Scrollen/Abschneiden */
	}


.page-section {
    display: none;
    width: 100%;
}

.page-section.active {
    display: block;
    animation: fadeIn 0.4s ease;
	text-align: left;
}

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


/* Footer Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.card {
    background: #303030;
	color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    //border: 1px solid #eee;
}

/* Kontaktformular */
        .contact-container {
            background-color: #262626;
            width: 100%;
            max-width: 600px;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            border: 1px solid #404040;
        }

        h2 {
            margin-bottom: 20px;
            color: #ffff88;
            font-size: 1.8rem;
            text-align: left;
        }

        .alert {
            padding: 12px;
            //border-radius: 4px;
            margin-bottom: 20px;
            font-size: 1.2em;
        }

        .alert-error {
            background-color: red;
            color: white;
            border: 1px solid white;
        }

        .alert-success {
            background-color: green;
            color: white;
            border: 1px solid white;
        }

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

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

        input[type="text"],
        input[type="email"],
        input[type="tel"],
        textarea {
            width: 100%;
            padding: 12px;
            background-color: #404040;
            border: 1px solid #555555;
            border-radius: 4px;
            color: white;
            font-size: 1.2rem;
            font-family: inherit;
            transition: border-color 0.3s, box-shadow 0.3s;
        }

.form-group textarea {
		font-size: 1.2rem;   
		}

        input:focus, textarea:focus {
            outline: none;
            border-color: #ffff88;
            box-shadow: 0 0 5px rgba(255, 255, 136, 0.3);
        }

        /* Platzhalter-Farbe auf Grau setzen */
        ::placeholder {
            color: grey;
            opacity: 1;
        }

        .captcha-wrapper {
            display: flex;
            align-items: center;
            gap: 15px;
            flex-wrap: wrap;
        }

        .captcha-label {
            color: #ffff88;
            font-weight: bold;
            font-size: 1.2rem;
            white-space: nowrap;
        }

        .captcha-input {
            max-width: 120px;
        }

		button {
            width: 100%;
            padding: 14px;
            background-color: #ffff88;
            color: #303030;
            border: none;
            border-radius: 4px;
            font-size: 1.4rem;
            font-weight: bold;
            cursor: pointer;
            transition: background-color 0.3s;
            margin-top: 10px;
        }

        button:hover {
            background-color: #e6e677;
        }

/*        .btn {
            width: 100%;
            padding: 14px;
            background-color: #ffff88;
            color: #303030;
            border: none;
            border-radius: 4px;
            font-size: 1.4rem;
            font-weight: bold;
            cursor: pointer;
            transition: background-color 0.3s;
            margin-top: 10px;
        }

        .btn:hover {
            background-color: #e6e677;
        }*/

        /* Responsive Anpassungen */
        @media (max-width: 480px) {
            .contact-container {
                padding: 20px;
            }
            .captcha-wrapper {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }
            .captcha-input {
                max-width: 100%;
            }
        }

/* Footer */
.footer {
    background-color: #101010;
    color: #fff;
    padding: 1.5rem;
    margin-top: 2rem;
    width: 100%;
}

/* 4. STRIKTES MOBILE RESPONSIVE DESIGN (Smartphone & Tablet) */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex; /* Erzwingt die Anzeige des Burger-Icons auf Mobilgeräten */
    }

    .nav {
        display: none; /* Versteckt die Standard-Leiste */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #303030;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 999;
        
/* 1. Halbtransparente Hintergrundfarbe (ersetzt das klassische 'opacity') */
  background-color: rgba(55, 55, 55, 0.8); 
 
  
  /* 2. Der entscheidende Befehl für das Verschwimmen der Konturen darunter */
  backdrop-filter: blur(10px);
  
  /* Optional: Ein feiner Rahmen verstärkt den Glaseffekt */
  border: 4px solid rgba(155, 155, 155, 0.5);
  border-radius: 8px;
    }

    /* Diese Klasse wird per JavaScript injiziert */
    .nav.open {
        display: block !important; 
    }

    .nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
        width: 100%;
    }

    .nav a {
        padding: 1rem 5%;
font-size: 1.2em;
        //border-bottom: 1px solid #eee;
        width: 100%;
    }

    /* Burger Animation */
    .nav-toggle.open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

.content a:link  {
    color: #ffff88;
}

.logo a:link  {
    color: #ffff88;
text-decoration: none;
}

.footer a:link  {
    color: #ffff88;
}

a:visited {
    color: #ffff88;
}

/* Für Chrome, Safari, Edge und Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Für Firefox */
input[type=number] {
  -moz-appearance: textfield;
}
