/* * Servermailbox Stylesheet
 * Version: 3.0 - Bootstrap Breakpoints
 * Author: Tom
 */

:root {
    --primary-orange: #f37021;
    --primary-orange-dark: #d15b15;
    --secondary-grey: #666666;
    --header-dark: #222222;
    --bg-white: #ffffff;
    --bg-light-grey: #f9f9f9;
    --text-dark: #333333;
    --error-red: #dc3545;
    
    /* Header-Höhe für Desktop (Fixed) */
    --header-height-desktop: 17.5rem; 
}

/* --- RESET & BASIC --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    /* Standard Desktop: Header (17.5rem) + Puffer */
    scroll-padding-top: 19rem; 
    font-size: 100%; 
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    /* Platzhalter für fixierten Header auf Desktop */
    padding-top: var(--header-height-desktop);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1.3rem; color: var(--header-dark); }
h2 { font-size: 2.2rem; font-weight: 700; text-align: center; margin-bottom: 1.1rem; color: var(--header-dark); }
h3 { font-size: 1.7rem; font-weight: 600; margin: 0.9rem 0; color: var(--header-dark); }
p { font-size: 1.2rem; }

h2::after { 
    content: ''; 
    display: block; 
    width: 3.75rem; 
    height: 0.1875rem; 
    background: var(--primary-orange); 
    margin: 1rem auto 0; 
}

a img { border: none; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { 
    width: 90%; 
    max-width: 75rem; /* ~1200px (Bootstrap xl container) */
    margin: 0 auto; 
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-orange);
    color: white;
    padding: 0.75rem 1.875rem; 
    border: none;
    border-radius: 0.25rem; 
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-primary:hover { background-color: var(--primary-orange-dark); transform: translateY(-0.125rem); }
.btn-block { display: block; width: 100%; text-align: center; }

/* --- HEADER (Standard: Fixed für Desktop >= 992px) --- */
#main-header {
    position: fixed; top: 0; left: 0; width: 100%;
    background-color: var(--header-dark);
    z-index: 1000;
    box-shadow: 0 0.125rem 0.625rem rgba(0,0,0,0.3);
}

.brand-row {
    display: flex; 
    flex-direction: column; 
    align-items: center;
    padding: 1rem 0 1rem; 
    border-bottom: 0.0625rem solid #333;
}

.logo-img {
    height: 9.375rem; 
    width: auto;
    margin-bottom: 0.3125rem; 
    display: block; 
}

.brand-name {
    color: var(--primary-orange); 
    font-size: 1.8rem; 
    font-weight: 700;
    letter-spacing: 0.0625rem; 
    text-transform: uppercase;
}

.nav-row { padding: 0.625rem 0; }

#main-nav ul { 
    display: flex; 
    justify-content: center; 
    gap: 2.5rem; 
}

#main-nav a { 
    color: #ffffff; 
    font-weight: 600; 
    font-size: 1.3rem; 
    transition: color 0.3s ease; 
    padding: 0.3125rem 0.625rem; 
}

#main-nav a:hover { color: var(--primary-orange); }

#main-nav a.nav-cta { 
    background-color: var(--primary-orange); 
    color: white; 
    padding: 0.5rem 1.25rem; 
    border-radius: 0.25rem; 
}
#main-nav a.nav-cta:hover { background-color: var(--primary-orange-dark); }

/* --- SECTIONS --- */
section { padding: 5rem 0; }

/* Hero */
#hero {
    background: linear-gradient(rgba(34, 34, 34, 0.85), rgba(34, 34, 34, 0.85)), url('hero.jpg') no-repeat center center/cover;
    background-color: #fff;
    color: white;
    text-align: center;
    padding: 7.5rem 0; 
}
#hero h1 { color: white; font-size: 3.5rem; }
#hero .lead { font-size: 1.5rem; font-weight: 300; margin-bottom: 2rem; }

/* Über */
.ueber-content { 
    max-width: 50rem; 
    margin: 0 auto; 
    font-size: 1.15rem; 
    text-align: center; 
    color: var(--secondary-grey); 
}
.highlight-text { color: var(--primary-orange); font-weight: 700; }

/* Service Grid */
#service { background-color: var(--bg-light-grey); }

.services-grid {
    display: grid; 
    /* Desktop Default: 3 Spalten bzw. Auto-Fit */
    grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr)); 
    gap: 2rem; 
    margin-top: 3rem;
}

.service-box {
    background: white; 
    padding: 3rem 2rem; 
    border-radius: 0.5rem;
    box-shadow: 0 0.3125rem 0.9375rem rgba(0,0,0,0.05); 
    text-align: center;
    transition: transform 0.3s ease;
}
.service-box:hover { transform: translateY(-0.625rem); }

/* SVG Icons Styling */
.service-icon {
    height: 2.8125rem; 
    width: auto;
    fill: var(--primary-orange);
    margin-bottom: 1.5rem;
    display: inline-block;
}

/* --- KONTAKT FORMULAR --- */
.contact-form {
    max-width: 37.5rem; 
    margin: 0 auto; 
    background: #fff;
    padding: 2rem; 
    border-radius: 0.5rem; 
    box-shadow: 0 0.3125rem 0.9375rem rgba(0,0,0,0.05);
}
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.form-control {
    width: 100%; 
    padding: 0.75rem; 
    border: 0.0625rem solid #ddd; 
    border-radius: 0.25rem; 
    font-family: inherit; 
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-control:focus { outline: none; border-color: var(--primary-orange); }
textarea.form-control { resize: vertical; min-height: 7.5rem; }
/* Erfolgsmeldung */
.alert-box {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0.25rem;
    text-align: center;
    font-weight: 600;
}

.alert-success {
    background-color: #d1e7dd; /* Sanftes Grün */
    color: #0f5132;           /* Dunkelgrüner Text */
    border: 0.0625rem solid #badbcc;
}

/* Feedback */
.form-control:invalid:focus {
    border-color: var(--error-red);
    box-shadow: 0 0 0 0.1875rem rgba(220, 53, 69, 0.1);
}

.form-check { display: flex; gap: 0.625rem; font-size: 0.9rem; margin-bottom: 1.5rem; }
.form-check input { margin-top: 0.3125rem; accent-color: var(--primary-orange); }
.form-check a { color: var(--primary-orange); text-decoration: underline; }

.captcha-group {
    display: flex; align-items: center; gap: 0.9375rem; margin-bottom: 1.5rem;
    background: #f9f9f9; padding: 0.625rem; border: 0.0625rem solid #eee; border-radius: 0.25rem;
}
.hp-field { display: none; }

/* Legal Pages */
.legal-content { flex: 1; padding: 3.75rem 0; }
.legal-content h2 { border-bottom: none; margin-top: 2rem; text-align: left; font-size: 1.8rem; }
.legal-content h2::after { display: none; }

/* Footer */
footer {
    background-color: var(--header-dark); color: #aaaaaa;
    padding: 3.75rem 0 1.875rem; 
    text-align: center; 
    margin-top: auto;
}

.footer-logo {
    height: 5rem; 
    opacity: 0.7;
    margin-bottom: 1.5rem;
    display: inline-block; 
    transition: opacity 0.3s;
}
.footer-logo-link:hover .footer-logo { opacity: 1; }

.footer-links a { margin: 0 0.9375rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--primary-orange); }
.copyright { margin-top: 1.875rem; font-size: 0.9rem; }

/* =========================================
   BOOTSTRAP 5 STANDARD BREAKPOINTS
   ========================================= */

/* --- BREAKPOINT: < 992px (Bootstrap LG) --- 
   Tablets (Landscape), kleine Laptops.
   Hier switchen wir den Header von FIXED zu RELATIVE.
   992px = 62rem
*/
@media (max-width: 61.99rem) {
    
    /* 1. Header loslösen */
    #main-header {
        position: relative !important; 
        height: auto;
    }

    /* 2. Platzhalter entfernen */
    body {
        padding-top: 0 !important;
    }

    /* 3. Scroll-Padding minimieren */
    html {
        scroll-padding-top: 1rem !important;
    }

    /* 4. Navigation umbrechen */
    #main-nav ul { 
        flex-wrap: wrap; 
        gap: 1rem; 
    }
}

/* --- BREAKPOINT: < 768px (Bootstrap MD) --- 
   Tablets (Portrait), große Handys.
   Hier switchen wir das Grid auf 1 Spalte.
   768px = 48rem
*/
@media (max-width: 47.99rem) {
    
    /* 1. Grid einspaltig machen */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* 2. Schriftgrößen mobil leicht anpassen */
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    /* 3. Weniger Padding in Sections */
    section { padding: 3rem 0; }
    #hero { padding: 5rem 0; }
}