/* ===== SECUDAT Design-System =====
   Farben: Schwarz #000, Orange #FFA500, Rot #FF0000, Arial */

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #000000;
    color: #FFA500;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

/* Hintergrund als eigenes fixed-Pseudo-Element statt background-attachment: fixed.
   Grund: background-attachment: fixed bricht auf Mobilgeräten (v. a. iOS Safari)
   position:fixed-Kinder (Siegel, Header) — sie kleben dann am Dokumentende. */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('images/Secudat-Background4.jpg');
    background-position: left center;
    background-repeat: no-repeat;
    background-size: auto 100%;
    z-index: -1;
    pointer-events: none;
}

a { color: #FFA500; text-decoration: underline; }
a:hover { color: #FF0000; }

::selection { background: #FFA500; color: #000000; }

/* ===== Fixierte Kopfzeile (Navigation) ===== */
#PageHeader {
    position: fixed;
    top: 0; left: 0; right: 0;
    min-height: 100px;
    z-index: 7777;
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: 25px;
    padding: 16px 30px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.9) 75%, rgba(0,0,0,0) 100%);
}

/* Burger-Button (3 Striche) links */
.burger-btn {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 46px;
    height: 46px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(255,165,0,0.4);
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
}
.burger-btn span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #FFA500;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}
.burger-btn:hover span { background-color: #FF0000; }
.burger-btn:hover { border-color: #FF0000; }

/* Burger-Animation: 3 Linien -> X */
.burger-btn.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger-btn.open span:nth-child(2) { opacity: 0; }
.burger-btn.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Kopfzeile rechts (dezente Links Datenschutz/Impressum) */
.header-right {
    font-size: 14px;
    white-space: nowrap;
}
.header-right a { text-decoration: none; margin-left: 15px; color: #FFA500; }
.header-right a:hover { color: #FF0000; }

/* ===== Burger-Menü: Overlay-Panel (von links) ===== */
.menu-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.65);
    z-index: 7775;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.menu-backdrop.open { opacity: 1; visibility: visible; }

#menu-panel {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 260px;
    max-width: 85vw;
    z-index: 7776;
    background: #000000;
    border-right: 1px solid #2E2E2E;
    box-shadow: 4px 0 20px rgba(0,0,0,0.7);
    padding: 110px 25px 30px 25px;
    overflow-y: auto;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.35s ease, visibility 0.35s ease;
}
#menu-panel.open { transform: translateX(0); visibility: visible; }

#menu-panel a {
    display: block;
    color: #FFA500;
    font-weight: bold;
    font-size: 17px;
    text-decoration: none;
    padding: 14px 10px;
    border-bottom: 1px solid #1a1a1a;
    transition: color 0.2s ease, background-color 0.2s ease, padding-left 0.2s ease;
}
#menu-panel a:hover {
    color: #FF0000;
    background-color: rgba(255,165,0,0.08);
    padding-left: 16px;
}
/* Aktiver Menüpunkt (aktuelle Seite) */
#menu-panel a[aria-current="page"] {
    color: #FF0000;
    background-color: rgba(255,165,0,0.12);
    padding-left: 16px;
    border-left: 3px solid #FF0000;
}

/* ===== Hauptbereich ===== */
#main {
    flex: 1 0 auto;              /* wächst: drückt Footer bei wenig Inhalt nach unten */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px 80px 20px;  /* oben reduziert: Platz übernimmt der Umbau-Banner */
    text-align: center;
}

/* Unterseiten: Inhalt oben beginnen */
#main.page-content {
    justify-content: flex-start;
}

/* Seiten ohne Umbau-Banner (body.no-umbau-hinweis, z. B. Datenschutz):
   Abstand unter dem fixierten Header übernimmt #main, da das Banner
   (das diesen Platz bisher mit margin-top:100px schuf) dort fehlt. */
body.no-umbau-hinweis #main {
    padding-top: 124px;   /* Header-Höhe 100px + bisheriger Abstand 24px */
}

/* ===== eRecht24-Siegel (nur Datenschutzseite): schwebend unten rechts =====
   Lokal gespeicherte Bilder, kein externer Abruf. Bleiben beim Scrollen
   sichtbar (fixed), liegen unter Header/Menü-Overlays (z-index 700 < 7775).
   Zwei Varianten nebeneinander: dunkles links, helles rechts. */
#erecht24-siegel-container {
    position: fixed;
    top: auto;
    left: auto;
    right: 24px;               /* Kundenwunsch: Mindestabstand zum rechten Rand */
    bottom: 16px;
    display: flex;
    gap: 12px;
    z-index: 700;
    margin: 0;
}
#erecht24-siegel-container img {
    width: 90px;
    height: 140px;
    opacity: 0.92;
    transition: opacity 0.3s ease;
}
#erecht24-siegel-container img:hover {
    opacity: 1;
}

/* ===== Startseite: Hero ===== */
.logo {
    font-size: clamp(40px, 8vw, 72px);
    font-weight: bold;
    letter-spacing: 2px;
    line-height: 1.1;
}
.logo .orange { color: #FFA500; }
.logo .red { color: #FF0000; }

.tagline {
    margin-top: 10px;
    font-size: clamp(14px, 2vw, 19px);
    font-style: italic;
    color: #FFA500;
}

/* Feature-Liste unter dem Logo (gestuft: längster zuerst, +25px Einrückung) */
.feature-list {
    list-style: none;
    margin-top: 30px;
    padding: 0;
    display: inline-block;
    text-align: left;
    font-size: 19px;
    color: #FFA500;
}
.feature-list li {
    padding: 3px 0;
}
.feature-list li::before {
    content: "\2022";
    color: #FF0000;
    margin-right: 10px;
    font-weight: bold;
}
.feature-list li:nth-child(1) { margin-left: 0; }
.feature-list li:nth-child(2) { margin-left: 25px; }
.feature-list li:nth-child(3) { margin-left: 50px; }
.feature-list li:nth-child(4) { margin-left: 75px; }

/* ===== Seitentitel in der Kopfzeile (Unterseiten) ===== */
.page-title-header {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #FFA500;
    white-space: nowrap;
    user-select: none;
}
.page-title-header .secudat-logo-text { color: #FFA500; }
.page-title-header .secudat-logo-com { color: #FF0000; }

/* ===== Sektionen ===== */
section {
    max-width: 900px;
    width: 100%;
    margin: 30px auto;
    padding: 40px 30px;
    background-color: rgba(0,0,0,0.75);
    border: 1px solid #2E2E2E;
    border-radius: 8px;
    text-align: left;
}
section h2 {
    color: #FFA500;
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
}
section h2 .red { color: #FF0000; }
section h3 {
    color: #FFA500;
    font-size: 22px;
    margin: 30px 0 14px;
    border-bottom: 1px solid #2E2E2E;
    padding-bottom: 8px;
}
section h4 {
    color: #FFA500;
    font-size: 17px;
    margin: 22px 0 8px;
}
section p { color: #ddd; margin-bottom: 14px; }
section p:last-child { margin-bottom: 0; }
section ul {
    color: #ddd;
    margin: 0 0 14px 22px;
    padding: 0;
    list-style: disc;
}
section li { margin-bottom: 6px; }
section strong { color: #fff; }
section .highlight { color: #FFA500; }
section .status-hint {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 14px;
    border: 1px solid #FFA500;
    border-radius: 4px;
    color: #FFA500;
    font-size: 14px;
    font-weight: bold;
}

/* Karten-Grid */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 25px;
}
.card {
    background: #0d0d0d;
    border: 1px solid #2E2E2E;
    border-radius: 6px;
    padding: 22px;
    text-align: left;
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.card:hover { border-color: #FFA500; transform: translateY(-4px); }
.card h3 { color: #FFA500; font-size: 18px; margin-bottom: 10px; }
.card h3 .red { color: #FF0000; }
.card p { color: #bbb; font-size: 14px; }
.card ul { list-style: none; margin-top: 10px; }
.card ul li { color: #bbb; font-size: 14px; padding: 2px 0 2px 16px; position: relative; }
.card ul li::before { content: "\203A"; color: #FF0000; position: absolute; left: 0; font-weight: bold; }

/* Call-to-Action */
.cta-section {
    background: linear-gradient(180deg, rgba(255,165,0,0.12), rgba(0,0,0,0.85));
    border-color: #FFA500;
    text-align: center;
}
.cta-button {
    display: inline-block;
    margin-top: 25px;
    padding: 14px 34px;
    background-color: #FFA500;
    color: #000000;
    font-weight: bold;
    font-size: 17px;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.cta-button:hover { background-color: #FF0000; color: #FFFFFF; }

/* ===== Footer ===== */
footer {
    flex-shrink: 0;              /* Footer schrumpft nicht */
    padding: 30px 20px;
    text-align: center;
    color: #FFA500;
    font-size: 15px;
    background: rgba(0,0,0,0.8);
    border-top: 1px solid #1a1a1a;
}
footer .red { color: #FF0000; }

/* ===== Umbau-Hinweis: Banner direkt unter dem fixierten Header =====
   Im normalen Dokumentfluss direkt nach </header> eingebunden:
   scrollt mit, verdeckt NIE Inhalt (auch nicht den Footer).
   margin-top schiebt ihn unter den fixierten Header; das #main-Padding
   ist entsprechend reduziert (siehe #main). */
#umbau-hinweis {
    margin-top: 100px;                 /* Header-Höhe (fixed, min-height 100px) */
    padding: 9px 16px;
    background: rgba(0,0,0,0.9);
    border-top: 1px solid rgba(255,165,0,0.5);
    border-bottom: 1px solid rgba(255,165,0,0.5);
    color: #FFA500;
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: 0.3px;
    text-align: center;
    user-select: none;
}

/* ===== Kontaktformular ===== */
.kontakt-section {
    max-width: 640px;
    width: 100%;
    text-align: left;
}
#kontakt-form {
    margin-top: 24px;
    text-align: left;
}
.form-group {
    margin-bottom: 18px;
}
#kontakt-form label {
    display: block;
    color: #FFA500;
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 6px;
}
#kontakt-form label .hint {
    color: #aaa;
    font-weight: normal;
    font-size: 13px;
}
#kontakt-form input[type="text"],
#kontakt-form input[type="email"],
#kontakt-form textarea {
    width: 100%;
    padding: 10px 12px;
    background: #111111;
    border: 1px solid #333333;
    border-radius: 4px;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
}
#kontakt-form input:focus,
#kontakt-form textarea:focus {
    outline: none;
    border-color: #FFA500;
}
#kontakt-form textarea {
    resize: vertical;
    min-height: 120px;
}
/* Honeypot: für Menschen unsichtbar */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
}
/* Einwilligung-Checkbox */
.checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    font-weight: normal !important;
    font-size: 14px !important;
    color: #dddddd !important;
    cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: #FFA500;
    flex-shrink: 0;
}
.checkbox-label a {
    color: #FFA500;
}
/* Senden-Button (erst nach Einwilligung aktiv) */
#senden-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #FFA500;
    color: #000000;
    font-weight: bold;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}
#senden-btn:hover:not(:disabled) {
    background: #FFB733;
}
#senden-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
/* Statusmeldungen nach dem Absenden */
#form-status {
    margin: 18px 0;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 15px;
}
.form-status-ok {
    background: rgba(0, 128, 0, 0.15);
    border: 1px solid #2a7a2a;
    color: #7ddf7d;
}
.form-status-fehler {
    background: rgba(255, 0, 0, 0.12);
    border: 1px solid #a33;
    color: #ff9d9d;
}
.form-status-fehler a {
    color: #ffb3b3;
}

/* ===== Responsive ===== */
@media (max-width: 700px) {
    body::before { background-size: 55% 100%; }
    #PageHeader { padding: 10px 12px; min-height: 80px; column-gap: 12px; flex-wrap: wrap; justify-content: flex-start; }
    .header-right { font-size: 11px; margin-left: auto; }
    .header-right a { margin-left: 8px; }
    .page-title-header { font-size: 12px; letter-spacing: 0.5px; }
    #menu-panel { padding-top: 105px; }
    #main { padding-top: 24px; }
    body.no-umbau-hinweis #main { padding-top: 104px; }   /* Header-Höhe mobil ~80px + 24px */
    #umbau-hinweis {
        margin-top: 88px;            /* Header-Höhe mobil (80-84px, je nach Titel-Umbruch) */
        font-size: 11px;
        padding: 8px 12px;
    }
    #erecht24-siegel-container {
        right: 12px;
        bottom: 10px;
        gap: 8px;
    }
    #erecht24-siegel-container img {
        width: 66px;
        height: 103px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .card, .cta-button { transition: none; }
}
