/* mofixx.de - Global Styles 
   Zentrale Design-Steuerung für alle Seiten
   Stand: 19.12.2025
*/

:root {
    /* Light Mode Farben */
    --primary: #00a2ff;
    --primary-hover: #0081cc;
    --bg-body: #f4f7f9;
    --bg-card: #ffffff;
    --bg-darker: #f9f9f9;
    --bg-highlight: #f0f9ff;
    --text-main: #2c3e50;
    --text-muted: #5a6c7d;
    --border-color: #e1e8ed;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Dark Mode Farben */
body.dark-mode {
    --bg-body: #121212;
    --bg-card: #1e1e1e;
    --bg-darker: #151515;
    --bg-highlight: #252525;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --border-color: #333333;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

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

/* --- BASIS TYPOGRAFIE & HINTERGRUND --- */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    min-height: 100vh;
}

/*body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('gfx/circuit-background.png');
    background-repeat: repeat;
    background-size: 600px;
    opacity: 0.04;
    pointer-events: none;
    z-index: -1;
    transition: opacity 0.3s ease;
}*/

body.dark-mode::before {
    opacity: 0.02;
    filter: invert(1);
}

h1,
h2,
h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.2rem;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.4rem;
}

/* --- HEADER & NAVIGATION --- */
header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

nav a:hover,
nav a.active {
    color: var(--primary);
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    background: none;
    /*background: #ffffff !important;*/
    border: none;
    padding: 5px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 32px;
    height: 32px;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: 0.3s;
}

/* --- BOXEN & LAYOUT --- */
.content-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.main-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.highlight-box,
.step-card-wide,
.legal-box,
.address-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: var(--shadow);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.feature-box {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-top: 2px solid var(--primary);
    text-align: center;
}

/* --- BUTTONS --- */
.btn-main,
.submit-button {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 800;
    transition: background 0.2s, transform 0.1s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-main:hover,
.submit-button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.theme-toggle {
    background: var(--bg-highlight);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.site-footer {
    text-align: center;
    padding: 30px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer-links .divider {
    width: 1px;
    height: 14px;
    background: var(--border-color);
}

/* --- MOBIL-STYLING (NAVIGATION & PLATZOPTIMIERUNG) --- */
@media (max-width: 768px) {

    /* 1. Platz schaffen: Ränder außen und innen reduzieren */
    .content-wrapper {
        padding: 0 10px !important;
        /* Weniger Platzverschwendung links/rechts */
        margin: 15px auto !important;
    }

    .main-card {
        padding: 20px 15px !important;
        /* Boxen innen flacher machen */
        border-radius: 8px !important;
        box-shadow: none !important;
        /* Flacheres Design wirkt am Handy breiter */
    }


    /* 2. Hamburger-Menü Logik (dein Code) */
    .hamburger-menu {
        display: flex !important;
        cursor: pointer;
        flex-direction: column;
        gap: 4px;
        width: 30px;
    }

    .hamburger-menu span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--primary);
        border-radius: 2px;
    }

    nav#nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow);
        gap: 15px;
        z-index: 999;
    }

    nav#nav-links.active {
        display: flex;
    }

}

/* --- SCROLL-TOP BUTTON FIX --- */
/* Standardmäßig für PC/Desktop IMMER versteckt */
.scroll-btn {
    display: none !important;
}

/* Nur auf Mobilgeräten erlauben */
@media (max-width: 768px) {
    .scroll-btn {
        display: flex !important;
        /* Hier wird er für das Handy aktiviert */
        position: fixed;
        bottom: 25px;
        right: 25px;
        width: 50px;
        height: 50px;
        background-color: var(--primary);
        color: white;
        border: none;
        border-radius: 50%;
        z-index: 9999;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .scroll-btn.show {
        opacity: 1;
        visibility: visible;
    }
}

/* --- Legal Pages (Datenschutz & Impressum) --- */

.legal-page h1 {
    margin-bottom: 20px;
}

.legal-page h2 {
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.legal-page p {
    margin-bottom: 12px;
    line-height: 1.55;
}

.legal-page ul {
    margin: 10px 0 15px 20px;
    line-height: 1.55;
}

.legal-page li {
    margin-bottom: 6px;
}

.legal-page a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
}

.legal-page a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Mobile Fix: Lange Überschriften (z.B. Datenschutzerklärung, AGB) */
@media (max-width: 768px) {

    .legal-page h1,
    .legal-page h2 {
        font-size: 1.4rem;
        /* etwas kleiner auf Handy */
        word-break: break-word;
        overflow-wrap: anywhere;
        hyphens: auto;
    }
}

/* FAQ – Premium Elegance Version */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 25px;
}

/* Die Karte selbst */
.faq-details {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 245, 245, 0.9) 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

/* Edler Hover-Effekt */
.faq-details:hover {
    border-color: var(--primary);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Zusammenfassung */
.faq-summary {
    cursor: pointer;
    padding: 20px 22px;
    font-weight: 600;
    color: var(--text-main);
    list-style: none;
    position: relative;
    font-size: 1.05rem;
}

/* Standard-Pfeil ausblenden */
.faq-summary::-webkit-details-marker {
    display: none;
}

/* Neuer edler Pfeil */
.faq-summary::after {
    content: "";
    position: absolute;
    right: 22px;
    top: 50%;
    width: 20px;
    /* deutlich größer */
    height: 20px;
    /* deutlich größer */
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.25s ease, opacity 0.25s ease;
    opacity: 0.9;
    /* kräftiger sichtbar */

    /* Hochwertiges Chevron-SVG */
    mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="black" xmlns="http://www.w3.org/2000/svg"><path d="M8 5l8 7-8 7"/></svg>');
    background-color: var(--primary);
}


/* Pfeil dreht sich beim Öffnen */
.faq-details[open] .faq-summary::after {
    transform: translateY(-50%) rotate(90deg);
    opacity: 1;
}

/* Inhalt */
/* FAQ – weiches Auf- und Zuklappen */
.faq-content {
    max-height: 0;
    overflow: hidden;
    padding: 10px 22px 0 22px;
    /* oben immer 10px */
    opacity: 0;
    transition:
        max-height 0.45s ease,
        opacity 0.35s ease,
        padding-bottom 0.35s ease;
}

/* Wenn geöffnet */
.faq-details[open] .faq-content {
    max-height: none;
    opacity: 1;
    padding-bottom: 20px;
}


/* Sanfte Fade-Animation */
@keyframes faqFade {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Edle Alert-Box */
.alert-box {
    background: rgba(255, 200, 0, 0.12);
    border-left: 4px solid #e0a800;
    padding: 14px 16px;
    margin-top: 14px;
    border-radius: 8px;
    font-size: 0.92rem;
    line-height: 1.55;
}

/* Tooltip Container */
.info-tool {
    position: relative;
    display: inline-block;
    color: #00a2ff;
    /* Deine Akzentfarbe */
}

/* Tooltip Text */
.info-tool::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    /* Erscheint oberhalb des Icons */
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: normal;
    width: 200px;
    /* Breite der Info-Box */
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
    font-weight: 400;
}

/* Kleiner Pfeil unter dem Tooltip */
.info-tool::before {
    content: "";
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

/* Hover-Effekt */
.info-tool:hover::after,
.info-tool:hover::before {
    opacity: 1;
    visibility: visible;
}