/* ==========================================================
   projekt-mta.de – Styles
   ========================================================== */

/* ----- Schriften (lokal gehostet, kein Abruf bei Google) ----- */
/* Changa One – SIL Open Font License 1.1, siehe assets/fonts/LICENSE-ChangaOne-OFL.txt */
@font-face {
    font-family: 'Changa One';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/changa-one-latin-400-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Changa One';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/changa-one-latin-400-italic.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ----- Reset & Basis ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Changa One', Impact, sans-serif;
    background: #000;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ----- Hintergrund ----- */
.bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: url('//projekt-mta.de/bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(0,0,0,0.7) 0%, 
        rgba(0,0,0,0.85) 50%, 
        rgba(0,0,0,0.9) 100%);
}

.bg-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0,0,0,0.1) 2px,
            rgba(0,0,0,0.1) 4px
        );
    animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(20px); }
}

/* ----- Layout ----- */
.main-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* ----- Partikel-Canvas (liegt über dem Hintergrund, unter dem Inhalt) ----- */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ----- Navigations-Kacheln ----- */
.nav-wrapper {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.nav-item {
    position: relative;
    width: 400px;
    height: 250px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.nav-item:hover {
    transform: translateY(-15px) scale(1.03);
}

.nav-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(20,20,20,0.95) 0%, rgba(40,40,40,0.95) 100%);
    border: 3px solid #8dd835;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
}

.nav-item:hover .nav-inner {
    border-color: #b4ff4a;
    box-shadow: 
        0 0 30px rgba(141, 216, 53, 0.6),
        inset 0 0 30px rgba(141, 216, 53, 0.1);
}

.nav-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(141, 216, 53, 0.2), 
        transparent);
    transition: left 0.5s ease;
}

.nav-item:hover .nav-inner::before {
    left: 100%;
}

.nav-icon {
    position: relative;
    z-index: 2;
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.nav-icon svg {
    width: 100%;
    height: 100%;
    fill: #8dd835;
    transition: all 0.3s ease;
}

.nav-item:hover .nav-icon svg {
    fill: #b4ff4a;
    transform: scale(1.1);
}

.nav-label {
    position: relative;
    z-index: 2;
    font-family: 'Changa One', Impact, sans-serif;
    font-size: 3rem;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 0.05em;
    color: #fff;
    text-shadow: 
        2px 2px 0 #000,
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        3px 3px 6px rgba(0,0,0,0.8);
    text-transform: uppercase;
}

.nav-desc {
    position: relative;
    z-index: 2;
    font-size: 1rem;
    color: #8dd835;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 400;
}

/* ----- Untere Leiste & Buttons ----- */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    padding: 2rem;
    text-align: center;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.info-trigger {
    background: transparent;
    border: 2px solid #8dd835;
    color: #8dd835;
    padding: 0.8rem 2rem;
    font-family: 'Changa One', Impact, sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-style: italic;
}

.info-trigger:hover {
    background: #8dd835;
    color: #000;
    box-shadow: 0 0 20px rgba(141, 216, 53, 0.6);
    transform: translateY(-2px);
}

/* ----- Overlays (Kontakt, Rechtliches, Datenschutz) ----- */
.overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.overlay-box {
    position: relative;
    background: linear-gradient(135deg, rgba(20,20,20,0.98) 0%, rgba(40,40,40,0.98) 100%);
    margin: 5% auto;
    padding: 3rem;
    border: 3px solid #8dd835;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    box-shadow: 
        0 0 50px rgba(141, 216, 53, 0.3),
        inset 0 0 50px rgba(0,0,0,0.5);
    animation: slideIn 0.4s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideIn {
    from {
        transform: translateY(-100px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.overlay-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: #8dd835;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    font-family: Arial, sans-serif;
}

.overlay-close:hover {
    color: #b4ff4a;
    transform: rotate(90deg);
    text-shadow: 0 0 20px rgba(141, 216, 53, 0.8);
}

.overlay-box h2 {
    font-family: 'Changa One', Impact, sans-serif;
    font-size: 3rem;
    color: #8dd835;
    margin-bottom: 2rem;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.overlay-box p {
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 1rem;
    font-family: Arial, sans-serif;
}

.overlay-box strong {
    color: #8dd835;
}

/* ----- Deko: Eck-Markierungen ----- */
.edge-marker {
    position: fixed;
    width: 3px;
    height: 60px;
    background: #8dd835;
    opacity: 0.3;
    z-index: 0;
}

.edge-marker.tl-v {
    top: 0;
    left: 30px;
}

.edge-marker.tr-v {
    top: 0;
    right: 30px;
}

.edge-marker.bl-v {
    bottom: 0;
    left: 30px;
}

.edge-marker.br-v {
    bottom: 0;
    right: 30px;
}

.edge-marker.horizontal {
    width: 60px;
    height: 3px;
}

.edge-marker.horizontal.tl-h {
    top: 30px;
    left: 0;
}

.edge-marker.horizontal.tr-h {
    top: 30px;
    right: 0;
}

.edge-marker.horizontal.bl-h {
    bottom: 30px;
    left: 0;
}

.edge-marker.horizontal.br-h {
    bottom: 30px;
    right: 0;
}

/* ----- Deko: Status-Anzeige ----- */
.status-display {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 100;
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 20px;
    border: 2px solid rgba(141, 216, 53, 0.5);
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.status-icon {
    width: 35px;
    height: 35px;
    position: relative;
}

.status-icon svg {
    width: 100%;
    height: 100%;
    fill: #4a4a4a;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    transition: fill 0.3s ease;
}

.status-icon.active svg {
    fill: #8dd835;
    filter: drop-shadow(0 0 10px rgba(141, 216, 53, 0.8));
    animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        filter: drop-shadow(0 0 8px rgba(141, 216, 53, 0.8));
    }
    50% {
        opacity: 0.7;
        filter: drop-shadow(0 0 4px rgba(141, 216, 53, 0.5));
    }
}

/* ----- Kontaktformular ----- */
.contact-form label {
    display: block;
    color: #8dd835;
    font-family: Arial, sans-serif;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    margin-bottom: 1.1rem;
    background: rgba(0,0,0,0.6);
    border: 2px solid #3a3a3a;
    border-radius: 5px;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea { min-height: 150px; resize: vertical; }

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #8dd835;
    box-shadow: 0 0 12px rgba(141, 216, 53, 0.4);
}

.contact-form .privacy {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    color: #ccc;
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
}

.contact-form .privacy input { margin-top: 0.25rem; accent-color: #8dd835; }

.overlay-box h3 {
    font-family: 'Changa One', Impact, sans-serif;
    color: #8dd835;
    font-size: 1.4rem;
    font-style: italic;
    margin: 1.8rem 0 0.6rem;
    letter-spacing: 0.03em;
}

.overlay-box.wide { max-width: 850px; }

.overlay-box.wide h2 { font-size: 2.4rem; }

.overlay-box a { color: #8dd835; }

.overlay-box ul { margin: 0 0 1rem 1.4rem; color: #ccc; font-family: Arial, sans-serif; line-height: 1.7; }

.req-note { font-size: 0.85rem; color: #999 !important; margin-bottom: 1rem !important; }

.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.form-msg {
    padding: 0.8rem 1rem;
    border-radius: 5px;
    margin-bottom: 1.2rem;
    font-family: Arial, sans-serif;
    line-height: 1.5;
}

.form-msg.ok  { background: rgba(141,216,53,0.15); border: 1px solid #8dd835; color: #d6ffa0; }

.form-msg.err { background: rgba(220,60,60,0.15);  border: 1px solid #dc3c3c; color: #ffb3b3; }

.contact-form .privacy label {
    color: #ccc;
    font-weight: normal;
    margin: 0;
}

.overlay-box .info-trigger {
    margin-top: 0.5rem;
}

/* ----- Responsive ----- */

@media (max-width: 768px) {
    .nav-wrapper {
        gap: 2rem;
    }

    .nav-item {
        width: 100%;
        max-width: 400px;
        height: 220px;
    }

    .overlay-box {
        padding: 2rem;
        margin: 10% auto;
    }

    .status-display {
        top: 15px;
        right: 15px;
        padding: 10px 15px;
        gap: 6px;
    }

    .status-icon {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .nav-item {
        height: 200px;
    }

    .nav-label {
        font-size: 2.5rem;
    }

    .nav-desc {
        font-size: 0.9rem;
    }

    .nav-icon {
        width: 60px;
        height: 60px;
    }

    .overlay-box h2 {
        font-size: 2.5rem;
    }

    .bottom-bar {
        padding: 1.5rem;
    }
}
