:root { --primary: #dc1c2e; --slider-threshold-color: #003da5; --bg: #fff; --text: #333; --card-bg: #fff; --border: #eee; --shadow: 0 10px 25px rgba(0,0,0,0.08); --footer-bg: #111; --footer-text: #ccc; }
[data-theme="dark"] { --bg: #121212; --text: #eee; --card-bg: #1e1e1e; --border: #333; --footer-bg: #0a0a0a; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.6; color: var(--text); background: var(--bg); display: flex; flex-direction: column; min-height: 100vh; overflow-x: hidden; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* --- HEADER & NAV --- */
header { background: var(--card-bg); padding: 15px 0; position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow); border-bottom: 1px solid var(--border); }
nav { display: flex; justify-content: space-between; align-items: center; }
.logo img { object-fit: contain; }
nav ul { display: flex; list-style: none; gap: 20px; margin:0; padding:0; align-items: center;}
nav ul li { position: relative; }
nav ul li a { text-decoration: none; color: var(--text); font-weight: 700; font-size: 14px; text-transform: uppercase; padding: 10px 0; display: block; transition: 0.2s; }
nav ul li a:hover { color: var(--primary); }
.dropdown-content { display: none; position: absolute; top: 100%; left: 0; background-color: var(--card-bg); min-width: 250px; box-shadow: var(--shadow); z-index: 1; border-top: 3px solid var(--primary); padding: 10px 0;}
nav ul li:last-child .dropdown-content, nav ul li:nth-last-child(2) .dropdown-content { left: auto; right: 0; } 
.dropdown-content a { color: var(--text); padding: 12px 20px; border-bottom: 1px solid var(--border); text-transform: none; }
.dropdown-content a:hover { background-color: #f9f9f9; color: var(--primary); padding-left: 25px; }
nav ul li:hover .dropdown-content { display: block; }
.menu-toggle { display: none; cursor: pointer; flex-direction: column; gap: 6px; z-index: 1001; }
.menu-toggle span { width: 30px; height: 3px; background-color: var(--text); transition: 0.3s; }

/* --- SEITEN-INHALT --- */
.page-content { padding: 0 0 50px 0; flex: 1; width: 100%; }
.w-100vw { width: 100vw !important; max-width: 100vw !important; margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); border-radius: 0 !important; }
.w-100 { width: 100%; max-width: 1200px; margin: 0 auto; border-radius: 12px; }
.w-80 { width: 80%; max-width: 960px; margin: 0 auto; border-radius: 12px; }
.w-60 { width: 60%; max-width: 720px; margin: 0 auto; border-radius: 12px; }

/* --- BLÖCKE --- */
.block-hero { background-size: cover; background-position: center; color: white; padding: 120px 0; text-align: center; position: relative; margin-bottom: 50px; }
.block-hero::before { content: ''; position: absolute; inset:0; background: rgba(0,0,0,0.5); }
.block-hero .container { position: relative; z-index: 2; }
.block-hero h1 { font-size: 3.5rem; margin-bottom: 15px; margin-top:0; text-shadow: 2px 2px 8px rgba(0,0,0,0.8); }
.btn-hero { display: inline-block; padding: 15px 30px; margin: 10px; border-radius: 5px; text-decoration: none; font-weight: bold; background: var(--primary); color: white; border: 2px solid var(--primary); transition:0.3s;}
.btn-hero:hover { background: transparent; color: white; }

.block-feature-contact { padding: 60px 20px; overflow: hidden; color: #fff; margin-bottom: 50px; }
.fc-container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px; max-width: 1200px; margin: 0 auto; }
.fc-left, .fc-right { opacity: 0; transition: all 1s ease-out; }
.fc-left { transform: translateX(-150px); text-align: right; flex: 1; font-size: 2.2rem; font-weight: bold; }
.fc-right { transform: translateX(150px); flex: 1; text-align: left; }
.fc-right .btn-hero { background: #fff; color: #003da5; border-color: #fff; font-size: 1.2rem; }
.fc-right .btn-hero:hover { background: transparent; color: #fff; }
.block-feature-contact.is-visible .fc-left, .block-feature-contact.is-visible .fc-right { opacity: 1; transform: translateX(0); }

/* --- HTML BLOCK FIX (100% Zentriert!) --- */
.block-html { display: block; width: 100%; text-align: center; margin: 40px auto; overflow-x: hidden; }
.block-html > div, .block-html > center { margin-left: auto !important; margin-right: auto !important; }

.block-benchmark { background: var(--card-bg); padding: 40px 0; display: flex; justify-content: center; gap: 50px; flex-wrap: wrap; text-align: center; border: 1px solid var(--border); box-shadow: var(--shadow); margin-bottom: 50px; border-radius: 8px; }
.bench-item { flex: 1; min-width: 200px; }
.bench-num { font-size: 4rem; font-weight: 800; color: var(--primary); margin-bottom: 5px; opacity: 0.1; transition: opacity 0.5s ease-in; }
.bench-txt { font-size: 1rem; text-transform: uppercase; font-weight: 700; color:#333; letter-spacing: 1px;}

.block-services { display: grid; gap: 30px; margin: 40px auto; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.service-card { background: var(--card-bg); padding: 40px 30px; border-radius: 12px; text-decoration: none; transition: 0.3s; box-shadow: var(--shadow); border: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--text); }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.service-icon { font-size: 3.5rem; margin-bottom: 20px; }
.service-card h3 { font-size: 1.6rem; margin-bottom: 15px; color: var(--text); font-weight: 800;}
.service-list { list-style: none; padding: 0; text-align: left; width: 100%; }
.service-list li { margin-bottom: 10px; position: relative; padding-left: 25px; font-size: 0.95rem; color: #444; }
.service-list li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: bold; }

.block-badges { display: flex; justify-content: center; gap: 30px; margin: 40px auto; flex-wrap: wrap; background: var(--card-bg); padding: 40px; border: 1px solid var(--border); box-shadow: var(--shadow); border-radius:8px; }
.badge-box { background: var(--bg); color: var(--text); padding: 20px 40px; border-radius: 12px; border: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; text-decoration: none; box-shadow: var(--shadow); transition: 0.3s; }
.badge-box:hover { transform: translateY(-5px); border-color: var(--primary); }
.badge-title { font-size: 1.5rem; font-weight: bold; display: flex; align-items: center; gap: 8px;}

.block-contact { background: var(--card-bg); padding: 40px; border-radius: 8px; border: 1px solid var(--border); margin: 40px auto; width: 100%; box-shadow: var(--shadow); }
.form-control { width: 100%; padding: 15px; border: 1px solid #ccc; border-radius: 4px; font-family: inherit; margin-bottom: 15px; box-sizing: border-box; font-size:16px; background: #f9f9f9;}
.dsgvo-box label { display: block; font-size: 13px; margin-bottom: 5px; color:#555; cursor:pointer;}

/* --- FOOTER --- */
footer { background: var(--footer-bg); color: var(--footer-text); padding: 60px 0 20px; margin-top: auto; width: 100%; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; max-width: 1200px; margin: 0 auto; padding: 0 20px; border-bottom: 1px solid #333; padding-bottom: 40px; margin-bottom: 20px; }
.footer-col h3 { color: #fff; margin-bottom: 20px; font-weight: 700; text-transform: uppercase; font-size: 1.1rem;}
.footer-col ul { list-style: none; padding:0; margin:0; }
.footer-col ul li { display: block; margin-bottom: 10px; }
.footer-col a { color: var(--footer-text); text-decoration: none; transition: 0.2s;}
.footer-col a:hover { color: var(--primary); }
.social-icons { margin-top: 15px; display: flex; gap: 10px; flex-wrap: wrap;}
.social-icons a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: #222; border-radius: 50%; color: #fff; text-decoration: none; transition:0.3s; }
.social-icons a:hover { background: var(--primary); transform: translateY(-3px);}
.footer-bottom { text-align: center; font-size: 14px; margin-top: 20px; }

/* --- MOBILE --- */
@media(max-width: 768px) {
    .menu-toggle { display: flex; }
    nav ul { position: fixed; top: 0; right: -100%; height: 100vh; width: 280px; background: var(--card-bg); flex-direction: column; padding-top: 80px; box-shadow: -5px 0 15px rgba(0,0,0,0.2); transition: 0.3s ease-in-out; z-index: 1000; align-items: flex-start; overflow-y: auto; }
    nav ul.nav-active { right: 0; }
    nav ul li { display: block; width: 100%; padding: 0 20px; }
    .dropdown-content { position: static; box-shadow: none; border-left: 2px solid var(--primary); border-top: none; padding-left: 15px; display: none; width: 100%; }
    nav ul li.mobile-open .dropdown-content { display: block; margin-top: 10px; margin-bottom: 10px;}
    .w-80, .w-60, .w-50 { width: 100% !important; max-width: 100% !important; padding: 0 10px !important; box-sizing: border-box !important; }
    .block-contact { padding: 20px 15px !important; margin: 20px 0 !important; width: 100% !important; }
    .fc-left, .fc-right { text-align: center !important; transform: translateY(30px) !important; opacity: 0 !important; transition: all 0.8s ease-out !important; }
    .block-feature-contact.is-visible .fc-left, .block-feature-contact.is-visible .fc-right { transform: translateY(0) !important; opacity: 1 !important; }
}
