/* =========================================
   MAIER - EDV-SYSTEME | ME-OPL STANDARD
   File: /style/main.css (STABLE VERSION)
   ========================================= */

/* --- LOKALE SCHRIFTEN: INTER --- */
@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-v20-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Farben */
    --primary: #005bb7;
    --primary-hover: #004494;
    --text-dark: #1d1d1f;
    --text-grey: #86868b;
    --bg-body: #ffffff;
    --bg-light: #f5f5f7;
    
    /* Effekte */
    --glass: rgba(255, 255, 255, 0.98);
    --glass-border: 1px solid rgba(0,0,0,0.05);
    --shadow-soft: 0 4px 24px rgba(0,0,0,0.04);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.08);
    --radius: 16px;
    
    /* Layout */
    --header-height: 120px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: var(--header-height);
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
ul { list-style: none; }

/* --- LAYOUT UTILITIES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }

/* Typografie */
h1 { font-size: 56px; font-weight: 700; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 24px; color: var(--text-dark); }
h2 { font-size: 40px; font-weight: 600; letter-spacing: -0.5px; margin-bottom: 40px; }
h3 { font-size: 22px; font-weight: 600; margin-bottom: 12px; }
p { font-size: 18px; color: var(--text-grey); font-weight: 400; margin-bottom: 20px; }
.lead { font-size: 22px; color: var(--text-dark); max-width: 700px; margin: 0 auto 30px; }

/* --- HEADER & NAVIGATION --- */
header {
    position: fixed; top: 0; left: 0; right: 0; 
    height: var(--header-height); z-index: 1000;
    background: var(--glass);
    backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: var(--glass-border);
}

.navbar {
    display: flex; justify-content: space-between; align-items: center;
    height: 100%; position: relative;
}

/* Logo (Riesig wie gewünscht) */
.logo-wrapper { z-index: 10; display: flex; align-items: center; height: 100%; }
.logo-img { height: 95px; width: auto; object-fit: contain; padding: 5px 0; }

/* Fernwartung Button (Zentral & STABIL) */
.header-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); /* Fixierte Zentrierung */
    z-index: 15;
    white-space: nowrap;
    pointer-events: none; /* Container selbst schluckt keine Klicks */
}

.btn-remote {
    pointer-events: auto; /* Nur der Button reagiert */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary);
    color: #fff;
    padding: 10px 22px; 
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px; 
    box-shadow: 0 2px 10px rgba(0, 91, 183, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-remote:hover {
    background-color: var(--primary-hover);
    /* Bewegung ohne die Zentrierung zu killen */
    transform: translateY(-3px); 
    box-shadow: 0 8px 20px rgba(0, 91, 183, 0.3);
}

/* Navigation (Rechts) */
.nav-menu.desktop-nav { display: flex; gap: 30px; z-index: 10; }
.nav-link { font-size: 15px; font-weight: 500; color: var(--text-dark); opacity: 0.8; }
.nav-link:hover, .nav-link.active { opacity: 1; color: var(--primary); }

/* --- MOBILE MENÜ --- */
.mobile-toggle { display: none; flex-direction: column; gap: 6px; cursor: pointer; z-index: 20; }
.mobile-toggle span { width: 26px; height: 2px; background: var(--text-dark); border-radius: 2px; }

.mobile-nav {
    position: fixed; top: var(--header-height); left: 0; width: 100%;
    background: #fff; padding: 20px; display: flex; flex-direction: column; gap: 15px;
    transform: translateY(-150%); transition: 0.3s ease-in-out;
    z-index: 9; box-shadow: var(--shadow-hover);
}
.mobile-nav.active { transform: translateY(0); }
.btn-remote-mobile { background: var(--primary) !important; color: #fff !important; text-align: center; border-radius: 8px; padding: 12px; }

/* --- COMPONENTS --- */
.btn { display: inline-block; padding: 12px 30px; border-radius: 50px; font-weight: 500; font-size: 16px; cursor: pointer; border: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.card { background: var(--bg-light); padding: 40px; border-radius: var(--radius); transition: 0.3s; height: 100%; }
.card:hover { transform: translateY(-5px); background: #fff; box-shadow: var(--shadow-hover); }

/* --- PORTFOLIO & TEAM --- */
.portfolio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.portfolio-card { position: relative; height: 380px; border-radius: var(--radius); background-color: #eee; background-size: cover; background-position: center; display: block; overflow: hidden; }
.portfolio-card:hover { transform: scale(1.02); }
.portfolio-overlay { position: absolute; bottom: 20px; left: 20px; right: 20px; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); padding: 20px; border-radius: 12px; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-top: 50px; }
.team-card { background: #fff; padding: 30px 20px; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow-soft); }
.team-img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 15px; filter: grayscale(100%); transition: 0.3s; }
.team-card:hover .team-img { filter: grayscale(0); }

/* --- FOOTER & COPYRIGHT (KLEIN) --- */
footer { 
    background: var(--bg-light); 
    margin-top: 100px; 
    padding: 60px 0 30px; 
    font-size: 14px; 
    color: var(--text-grey); 
    border-top: 1px solid #e1e1e5; /* Einziger Strich ganz oben */
}
.footer-grid { display: grid; grid-template-columns: 2fr 1.5fr 1fr; gap: 40px; }
.footer-col h4 { color: var(--text-dark); margin-bottom: 15px; }

.footer-copy, .footer-copy p {
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    color: #a1a1a6;
    font-size: 10px !important;
    font-weight: 400;
    letter-spacing: 0.2px;
}

/* --- KONTAKT & FORMULAR --- */
.modern-form-card { background: #fff; padding: 40px; border-radius: 20px; box-shadow: var(--shadow-soft); }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.form-input { width: 100%; padding: 14px; border: 1px solid #d2d2d7; border-radius: 10px; background: #fbfbfd; outline: none; }
.form-input:focus { border-color: var(--primary); background: #fff; }

.contact-details p { margin-bottom: 20px; line-height: 1.4; color: var(--text-dark); }

.map-placeholder { height: 450px; background-color: #eee; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* --- RESPONSIVE --- */
@media (max-width: 1250px) {
    .desktop-nav, .header-center { display: none; }
    .mobile-toggle { display: flex; }
    .logo-img { height: 60px; } 
    :root { --header-height: 90px; } 
    h1 { font-size: 36px; }
    .grid-2, .grid-3, .portfolio-grid, .footer-grid { grid-template-columns: 1fr; }
}
/* --- AGB SPEZIAL --- */
.agb-text-box {
    font-size: 14px !important; /* Kleiner für Rechtstexte */
    line-height: 1.6;
    color: var(--text-dark);
    text-align: justify; /* Blocksatz für Dokumenten-Look */
}

.agb-text-box h3 {
    font-size: 16px;
    margin: 25px 0 10px 0;
    color: var(--primary);
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.agb-text-box p {
    font-size: 14px !important;
    margin-bottom: 15px;
}