/* ==========================================================================
   1. Grundlegendes Design & Typografie (DSGVO-konform)
   ========================================================================== */
body {
    background-color: #121212;
    color: #E0E0E0;
    /* System-Fonts: Laden keine externen Daten, 100% DSGVO-konform */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0; /* Header dockt oben an */
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

h1 { 
    color: #FFFFFF; 
    font-size: 2.5rem; 
    margin: 0 0 20px 0; 
    font-weight: 700; 
    letter-spacing: -0.5px; 
}

h2 { 
    color: #FFFFFF; 
    font-size: 1.8rem; 
    margin: 50px 0 25px 0; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
    padding-bottom: 15px; 
    font-weight: 600; 
    letter-spacing: -0.3px;
}

h3 { color: #E0E0E0; font-size: 1.2rem; margin: 30px 0 15px 0; font-weight: 600; }
h4 { color: #CCCCCC; font-size: 1.1rem; margin: 20px 0 10px 0; font-weight: 600; }

/* Spezielles Styling für die Impressum-Überschriften */
.impressum-h3 { color: #FFFFFF; border-bottom: 1px solid rgba(255, 255, 255, 0.05); padding-bottom: 5px; }

p, li { font-weight: 300; margin-bottom: 15px; color: #CCCCCC; line-height: 1.8; }
ul { margin-bottom: 15px; padding-left: 20px; }
strong { font-weight: 600; color: #E0E0E0; }

a { color: #E0E0E0; text-decoration: none; transition: color 0.3s ease; }
a:hover { color: #FFFFFF; text-decoration: underline; }

hr { border: 0; height: 1px; background-color: rgba(255, 255, 255, 0.05); margin: 30px 0; width: 100%; }

/* ==========================================================================
   2. Layout & Cards (Zentrales Element)
   ========================================================================== */
.card {
    background-color: #1A1A1A;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .card {
        padding: 60px 80px; /* Mehr Weißraum auf großen Bildschirmen */
    }
}

.card-home {
    max-width: 500px;
    text-align: center;
    margin: auto; 
}

.card-page {
    max-width: 900px;
    text-align: left;
}

/* ==========================================================================
   3. Spezifische Komponenten
   ========================================================================== */
.logo { max-width: 180px; height: auto; margin-bottom: 30px; }
.slogan { font-size: 1.4rem; font-weight: 600; color: #FFFFFF; margin-bottom: 15px; }
.services { font-size: 0.85rem; font-weight: 300; letter-spacing: 1.5px; color: #999999; margin-bottom: 40px; line-height: 1.8; text-transform: uppercase; }
.contact-info { font-size: 1rem; font-weight: 400; line-height: 1.8; margin-bottom: 10px; }
.contact-info p { margin: 5px 0; }

.link-highlight { font-weight: 600; border-bottom: 1px solid #555; padding-bottom: 2px; text-decoration: none !important; }
.link-highlight:hover { border-bottom-color: #FFF; }

/* ==========================================================================
   4. Navigation, Back-Links & Footer
   ========================================================================== */
.back-link { margin-bottom: 20px; font-size: 0.9rem; display: inline-block; color: #999999; text-decoration: none; }
.back-link:hover { color: #FFFFFF; text-decoration: none; }

.footer { margin-top: 30px; font-size: 0.8rem; text-align: center; }
.footer a { color: #777777; margin: 0 15px; text-decoration: none; }
.footer a:hover { color: #BBBBBB; text-decoration: underline; }

/* ==========================================================================
   5. Header & Navigation (Glassmorphism)
   ========================================================================== */
.main-header {
    width: 100%;
    background-color: rgba(26, 26, 26, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo img {
    max-width: 120px;
    height: auto;
}

.main-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px; 
}

@media (min-width: 600px) {
    .main-nav {
        margin-top: 0;
    }
}

.main-nav a {
    color: #999999;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    color: #FFFFFF;
    border-bottom: 2px solid #FFFFFF;
    text-decoration: none;
}

.main-content {
    flex-grow: 1;
    width: 100%;
    padding: 40px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ==========================================================================
   6. Universeller Footer
   ========================================================================== */
.main-footer {
    width: 100%;
    background-color: #121212;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 20px;
    box-sizing: border-box;
    margin-top: auto;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-container p {
    margin: 0;
    font-size: 0.85rem;
    color: #777777;
}

.footer-links a {
    color: #999999;
    font-size: 0.85rem;
    margin: 0 10px;
    text-decoration: none;
}

.footer-links a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

@media (min-width: 600px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ==========================================================================
   7. Formulare & Buttons
   ========================================================================== */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #CCCCCC;
    font-size: 0.9rem;
}

input[type="text"], 
input[type="email"], 
input[type="number"], 
select, 
textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: #2A2A2A;
    border: 1px solid #444444;
    border-radius: 8px;
    color: #E0E0E0;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

input:focus, 
select:focus, 
textarea:focus {
    outline: none;
    border-color: #FFFFFF;
    background-color: #222222;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.btn {
    background-color: #FFFFFF;
    color: #121212;
    border: 1px solid #FFFFFF;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 15px;
}

.btn:hover {
    background-color: transparent;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 400;
    font-size: 0.85rem;
    cursor: pointer;
    color: #999999;
}

.checkbox-label input {
    width: auto;
    margin-top: 4px;
}

/* ==========================================================================
   8. Location Grid (Für locations.php)
   ========================================================================== */
.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.location-item {
    background: #121212;
    padding: 30px 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}

.location-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    background: #181818;
}

.location-item h3 {
    margin-top: 0;
    color: #FFFFFF;
}

.location-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: #999999;
}