/* LogikStrom – gemeinsames Stylesheet für alle Seiten */
:root {
    --bg-card: rgba(255, 255, 255, 0.89);
    --text-main: #0f172a;
    --text-sec: #1e293b;
    --accent-blue: #1c62b9;
    --accent-orange: #d67520;
    --linie: rgba(226, 232, 240, 0.5);
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    /* Ohne Bild (oder solange es lädt) ein ruhiges Dunkelblau */
    background-color: #10152b;
}

/* Hintergrund: zwei Ebenen, die sich sanft ineinander überblenden (js/hintergrund.js) */
.bg-ebene {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.7s ease-in-out;   /* zeit des überblenden */
    pointer-events: none;
}
.bg-ebene.sichtbar { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .bg-ebene { transition: none; }
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 5%;
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--accent-blue);
}
.logo img { width: 42px; height: 42px; object-fit: contain; }

.nav-links a {
    color: var(--text-sec);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
}
.nav-links a:hover { color: var(--accent-blue); }

/* Startseite: Hauptbereich */
.hero {
    padding: 35px 5%;
    text-align: center;
    max-width: 900px;
    margin: 60px auto;
    background-color: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid var(--linie);
}
.hero h1 { font-size: 2.3rem; margin: 0 0 10px; line-height: 1.2; }
.hero p { font-size: 1.2rem; color: var(--text-sec); margin-bottom: 25px; }

.btn {
    display: inline-block;
    background-color: var(--accent-orange);
    color: #fff;
    padding: 10px 22px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    transition: background 0.3s;
}
.btn:hover { background-color: #b86218; }

.features {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 0 5% 60px;
    flex-wrap: wrap;
}
.feature-box {
    background-color: var(--bg-card);
    padding: 20px;
    border-radius: 16px;
    width: 330px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border: 1px solid var(--linie);
}
.feature-box h3 {
    color: var(--accent-blue);
    margin-top: 0;
    border-bottom: 2px solid var(--accent-blue);
    padding-bottom: 10px;
    display: inline-block;
}

/* Unterseiten: weiße Inhaltsbox (Breite über .mittel / .breit) */
.content-box {
    background-color: var(--bg-card);
    max-width: 800px;
    margin: 60px auto;
    padding: 40px 4%;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid var(--linie);
    text-align: left;
    color: var(--text-sec);
}
.content-box.mittel { max-width: 850px; }
.content-box.breit { max-width: 950px; }

.content-box h1 { color: var(--accent-blue); margin: 0 0 5px; font-size: 2.5rem; }
.content-box.h1-linie h1 {
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(226, 232, 240, 0.8);
    padding-bottom: 10px;
}
.content-box .subtitle {
    font-style: italic;
    color: #4a5568;
    font-size: 1.1rem;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(226, 232, 240, 0.8);
    padding-bottom: 15px;
}
.content-box h2 { font-size: 1.3rem; color: var(--text-main); margin: 30px 0 10px; clear: both; }
.content-box.balken h2 { border-left: 4px solid var(--accent-blue); padding-left: 10px; }
.content-box p { margin: 0 0 15px; line-height: 1.65; }
.content-box ul { margin: 5px 0 20px; padding-left: 20px; line-height: 1.7; }
.content-box li { margin-bottom: 6px; }
.content-box a { color: var(--accent-blue); text-decoration: none; font-weight: bold; }
.content-box a:hover { text-decoration: underline; }

.address-block { line-height: 1.8; margin-bottom: 20px; }
.web-list p { margin-bottom: 5px; }

.highlight-box {
    background-color: rgba(28, 98, 185, 0.05);
    border-left: 4px solid var(--accent-blue);
    padding: 15px 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
    clear: both;
}
.highlight-box.warnung { border-left-color: var(--accent-orange); }
.content-box .highlight-box p { margin: 0; color: var(--text-main); }
.content-box .highlight-box h2 { margin-top: 0; }

.in-progress {
    background-color: rgba(214, 117, 32, 0.08);
    border-left: 4px solid var(--accent-orange);
    padding: 15px 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}
.content-box .in-progress h2 { border-left: none; padding-left: 0; color: var(--accent-orange); margin-top: 0; }

/* Über LogikStrom: Bilder im Fließtext */
.about-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    margin-bottom: 20px;
    border: 2px solid rgba(255,255,255,0.5);
}
.img-right { float: right; width: 40%; margin: 0 0 15px 25px; }
.img-left { float: left; width: 40%; margin: 0 25px 15px 0; }
.clearfix::after { content: ""; clear: both; display: table; }
@media (max-width: 600px) {
    .img-right, .img-left { float: none; width: 100%; margin: 0 0 20px; }
}

/* Impressionen: Bilder mit Text, Vollbild-Ansicht */
.content-box .subtitle.luft { margin-bottom: 40px; }
.impression-grid { display: flex; flex-direction: column; gap: 50px; }
.impression-item {
    display: flex;
    align-items: center;
    gap: 30px;
    background: rgba(255, 255, 255, 0.5);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.6);
}
.impression-item:nth-child(even) { flex-direction: row-reverse; }
.impression-img { flex: 1; max-width: 50%; }
.impression-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.1);
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.impression-img img:hover { transform: scale(1.02); box-shadow: 0 8px 25px rgba(28, 98, 185, 0.25); }
.impression-text { flex: 1; }
.impression-text h2 { font-size: 1.3rem; margin: 0 0 10px; color: var(--accent-blue); }
.impression-text p { margin: 0; }

.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.lightbox-modal img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.2);
}
.lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; font-weight: bold; cursor: pointer; transition: color 0.2s; }
.lightbox-close:hover { color: var(--accent-blue); }
@media (max-width: 768px) {
    .impression-item, .impression-item:nth-child(even) { flex-direction: column; }
    .impression-img { max-width: 100%; }
}

/* Fußzeile */
footer {
    text-align: center;
    padding: 30px 5%;
    color: #475569;
    background-color: rgba(255, 255, 255, 0.95);
    border-top: 1px solid #e2e8f0;
    margin-top: 40px;
}
footer a { color: #475569; text-decoration: none; margin: 0 10px; }
footer a:hover { color: var(--accent-blue); }

@media (max-width: 600px) {
    .nav-links a { margin: 0 12px 0 0; }
    .logo { font-size: 1.7rem; }
}
