/* =========================================
   1. VARIABLEN & FARB-SCHEMA
   ========================================= */
:root {
    --primary: #222b30;
    --primary-hover: #181f23;
    --accent: #4a7b9d;
    --accent-hover: #3b6380;
    --bg-light: #eaf1f6;
    --text-dark: #2b2b2b;
    --text-muted: #555555;
    --card-bg: rgba(255, 255, 255, 0.94);
    --border-light: rgba(255, 255, 255, 0.6);
}

/* =========================================
   2. BASIS-STYLING & TYPOGRAFIE
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    background-image: url('bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-wrapper {
    max-width: 1100px;
    width: 100%;
    margin: 2rem auto;
    padding: 0 1.5rem;
    flex: 1;
}

.btn {
    display: inline-block;
    padding: 0.85rem 1.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease-in-out;
    border: none;
    cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-secondary:hover { background: var(--primary); color: #fff; }

/* =========================================
   3. NAVIGATION (HEADER)
   ========================================= */
.site-header {
    width: 100%;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 1px 0 rgba(34,43,48,0.12), 0 2px 12px rgba(0,0,0,0.06);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    gap: 1rem;
}

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.nav-logo { height: 46px; width: auto; }
.brand-text { font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; font-weight: 700; color: var(--primary); line-height: 1.1; }
.brand-text small { display: block; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 0.72rem; font-weight: 600; color: var(--accent); margin-top: 2px; }

.nav-links { display: flex; gap: 1.5rem; list-style: none; margin-left: auto; }
.nav-links a { color: var(--primary); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.nav-phone { color: #fff; background: var(--primary); text-decoration: none; font-weight: 600; font-size: 0.95rem; border-radius: 6px; padding: 0.5rem 0.9rem; white-space: nowrap; }
.nav-phone:hover { background: var(--accent); }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--primary);
    border-radius: 6px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    cursor: pointer;
}
.nav-toggle:focus-visible, .nav-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* =========================================
   4. HAUPTSEITE (HERO & SECTIONS)
   ========================================= */
.hero-card {
    background-color: #fff;
    background-image: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.96) 52%, rgba(255,255,255,0) 82%), url('images/hero.webp');
    background-size: cover;
    background-position: right center;
    padding: 3.5rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border: 1px solid var(--border-light);
    text-align: left;
    margin-bottom: 2.5rem;
}

h1 { font-size: 2.4rem; line-height: 1.2; max-width: 26ch; overflow-wrap: break-word; hyphens: auto; color: var(--primary); font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.5px; }
.hero-subtitle { font-size: 1.2rem; color: var(--accent); font-weight: 600; margin-bottom: 1.2rem; }
.hero-description { max-width: 540px; margin: 0 0 2rem 0; font-size: 1.1rem; color: var(--text-muted); }
.hero-buttons { display: flex; gap: 1rem; justify-content: flex-start; flex-wrap: wrap; }

.section-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--border-light);
    margin-bottom: 2.5rem;
}

.section-title { font-size: 1.6rem; color: var(--primary); margin-bottom: 1.5rem; text-align: left; font-weight: 700; overflow-wrap: break-word; hyphens: auto; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-box { background: #ffffff; padding: 1.8rem; border-radius: 8px; border-left: 4px solid var(--accent); box-shadow: 0 4px 12px rgba(0,0,0,0.05); transition: transform 0.2s, box-shadow 0.2s; text-decoration: none; color: inherit; display: block; }
.service-box:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.service-box h3 { font-size: 1.15rem; color: var(--primary); margin-bottom: 0.8rem; }
.service-box p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }

.service-box.featured { grid-column: 1 / -1; padding: 2.2rem; background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.96) 45%, rgba(255,255,255,0) 85%), url('images/weg.webp') right center / cover no-repeat, #fff; }
.service-box.featured h3 { font-size: 1.4rem; }
.service-box.featured p { font-size: 1rem; max-width: 52ch; }

/* =========================================
   5. SPEZIFISCHE KOMPONENTEN FÜR UNTERSEITEN
   ========================================= */
.page-hero { background-color: #fff; background-image: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.96) 52%, rgba(255,255,255,0) 85%), url('images/weg.webp'); background-size: cover; background-position: right center; padding: 3.2rem 2.5rem; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.12); border: 1px solid var(--border-light); margin-bottom: 2.5rem; }
.page-hero h1 { max-width: 22ch; }
.page-hero .hero-subtitle { margin-bottom: 1rem; }
.page-hero p.lead { max-width: 540px; color: var(--text-muted); font-size: 1.05rem; margin-bottom: 1.8rem; }

.page-hero.about { background-image: none; display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 2rem; align-items: center; }
.page-hero.about .hero-mark { width: 100%; max-width: 360px; height: auto; justify-self: center; }

.wlist { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.2rem; list-style: none; }
.wlist li { background: #fff; border-left: 4px solid var(--accent); border-radius: 8px; padding: 1.3rem 1.4rem; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.wlist li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.wlist h3 { font-size: 1.05rem; color: var(--primary); margin-bottom: 0.4rem; }
.wlist p { font-size: 0.93rem; color: var(--text-muted); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.2rem; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; padding-top: 0.2rem; }
.steps li::before { content: counter(s); display: flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; margin-bottom: 0.7rem; }
.steps h3 { font-size: 1.05rem; color: var(--primary); margin-bottom: 0.3rem; }
.steps p { font-size: 0.93rem; color: var(--text-muted); }

details { background: #fff; border-radius: 8px; padding: 1rem 1.3rem; margin-bottom: 0.8rem; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
summary { font-weight: 600; color: var(--primary); cursor: pointer; }
details p { margin-top: 0.7rem; color: var(--text-muted); max-width: 75ch; }

.cta-band { background: linear-gradient(90deg, rgba(34,43,48,0.96) 0%, rgba(34,43,48,0.88) 55%, rgba(34,43,48,0.6) 100%), url('images/hero.webp') center / cover no-repeat, var(--primary); color: #fff; border-radius: 12px; padding: 2.2rem 2.5rem; display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 2.5rem; }
.cta-band h2 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.cta-band p { color: #d5dde2; max-width: 50ch; }
.cta-band .btn-light { background: #fff; color: var(--primary); }
.cta-band .btn-light:hover { background: var(--bg-light); }
.cta-band .btn-line { border: 2px solid #fff; color: #fff; background: transparent; }
.cta-band .btn-line:hover { background: #fff; color: var(--primary); }

.person { display: flex; gap: 1.2rem; align-items: center; background: #fff; border-left: 4px solid var(--accent); border-radius: 8px; padding: 1.4rem 1.6rem; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.person h3 { color: var(--primary); font-size: 1.15rem; }
.person p { color: var(--text-muted); font-size: 0.95rem; }
.person a { color: var(--accent); font-weight: 600; text-decoration: none; }

.link-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.2rem; }

/* Styling für Rechtsseiten (Impressum, Datenschutz, Danke) */
.legal {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--border-light);
    margin-bottom: 2.5rem;
}
.legal h1 { margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.3rem; color: var(--primary); margin: 1.5rem 0 0.5rem; }
.legal p { color: var(--text-muted); margin-bottom: 1rem; }
.legal a { color: var(--accent); text-decoration: underline; }

/* =========================================
   6. KONTAKTFORMULAR & INFOS
   ========================================= */
.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.contact-info-box { background: rgba(74, 123, 157, 0.08); padding: 1.8rem; border-radius: 8px; display: flex; flex-direction: column; gap: 1.2rem; }
.info-item h4 { font-size: 0.95rem; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.3rem; }
.info-item p, .info-item a { font-size: 1.05rem; color: var(--primary); font-weight: 600; text-decoration: none; }
.info-item a:hover { color: var(--accent); }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.3rem; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--primary); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea { width: 100%; padding: 0.8rem 1rem; border: 1px solid #ccc; border-radius: 6px; font-family: inherit; font-size: 0.95rem; background: #fff; transition: border-color 0.2s, box-shadow 0.2s; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(74, 123, 157, 0.2); }

.privacy-consent { font-size: 0.82rem; color: var(--text-muted); display: flex; align-items: flex-start; gap: 0.6rem; cursor: pointer; margin-top: 0.4rem; }
.privacy-consent input { margin-top: 0.2rem; cursor: pointer; }
.privacy-consent a { color: var(--accent); text-decoration: underline; }

/* =========================================
   7. FOOTER
   ========================================= */
footer {
    background: rgba(34, 43, 48, 0.95);
    color: #ffffff;
    text-align: center;
    padding: 1.8rem 1rem;
    font-size: 0.88rem;
    margin-top: auto;
}
footer a { color: #88b3d0; text-decoration: none; margin: 0 12px; font-weight: 500; }
footer a:hover { text-decoration: underline; }

/* =========================================
   8. RESPONSIVE DESIGN (MOBILGERÄTE)
   ========================================= */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-phone { margin-left: auto; font-size: 0.85rem; padding: 0.45rem 0.7rem; }
    .nav-container { padding: 0.7rem 1rem; gap: 0.6rem; }
    .nav-logo { height: 38px; }
    .brand { gap: 0.5rem; }
    .brand-text { font-size: 1.05rem; }
    .brand-text small { display: none; }
    .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-top: 1px solid rgba(34,43,48,0.12); box-shadow: 0 8px 12px rgba(0,0,0,0.08); padding: 0.5rem 1.5rem 1rem; margin-left: 0; }
    .nav-links.open { display: flex; }
    .nav-links a { display: block; padding: 0.75rem 0; font-size: 1rem; }

    h1 { font-size: 1.55rem; }
    .section-title { font-size: 1.35rem; }
    .hero-card { padding: 2.2rem 1.5rem; background-image: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), url('images/hero.webp'); }
    .section-card { padding: 1.8rem 1.2rem; }
    
    .services-grid { grid-template-columns: minmax(0, 1fr); }
    .service-box h3 { font-size: 1.05rem; }
    .service-box.featured { background: #fff; padding: 1.8rem; }
    
    .contact-split { grid-template-columns: 1fr; }

    .page-hero { padding: 2.2rem 1.5rem; background-image: linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.92)), url('images/weg.webp'); }
    .page-hero.about { background-image: none; grid-template-columns: minmax(0,1fr); }
    .page-hero.about .hero-mark { display: none; }
    
    .wlist, .steps { grid-template-columns: minmax(0,1fr); }
    .cta-band { padding: 1.8rem 1.4rem; }
    .link-cards { grid-template-columns: minmax(0,1fr); }
}