﻿/* Friedhof 3D World CSS - Minimal */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; font-family: 'Roboto', sans-serif; background: #000; }

/* Canvas */
#main-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }

/* Controls – Steuerkreuz (Details in sektor.php / memorial-theme) */
#controls {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    width: 100%; height: 180px;
    max-width: none;
    z-index: 10040;
    display: block;
    pointer-events: none;
}
#controls > div {
    position: absolute;
    width: 54px; height: 54px;
    cursor: pointer;
    pointer-events: auto;
    -webkit-user-select: none; user-select: none; touch-action: manipulation;
}

/* Loading */
#loading { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1000; background: #1a1a2e; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; }
#loading .progress-bar { width: 300px; height: 4px; background: rgba(255,255,255,0.2); border-radius: 2px; margin-top: 20px; overflow: hidden; }
#loading .progress-fill { width: 0%; height: 100%; background: #d38d41; transition: width 0.1s; }
#loading-text { font-size: 16px; letter-spacing: 2px; }
#loading-pct { font-size: 14px; margin-top: 10px; color: #d38d41; }

/* Modals */
.modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 500; background: rgba(0,0,0,0.7); align-items: center; justify-content: center;
}
.modal[style*="block"] { display: flex; }
.modal-guts {
    background: #fff; border-radius: 12px; padding: 20px; max-width: 420px;
    width: 90%; max-height: 80vh; overflow-y: auto; position: relative;
    font-family: Verdana, sans-serif;
}
.modal-guts.window_flower { background-color: #fffcdc; }
.modal-guts.window_flower2 { background-color: #fffcdc; }

/* Modal close buttons */
#close_modal, #close_modal_2, #close_modal_3, #close_modal_4, #close_modal_5, #close_modal_6,
#close_modal_zamok, #close_modal11 {
    position: absolute; top: 10px; right: 10px; cursor: pointer; z-index: 10;
}
#close_modal img, #close_modal_2 img, #close_modal_3 img, #close_modal_4 img,
#close_modal_5 img, #close_modal_6 img, #close_modal_zamok img, #close_modal11 img {
    width: 30px; height: 30px;
}

/* Head modals */
.head_modal { text-align: center; padding: 10px 0; }
.head_modal div { text-align: center; }

/* Button styling */
.add_button_modal {
    display: inline-block; padding: 10px 24px; margin: 10px;
    background: #d38d41; color: #fff; border-radius: 20px; cursor: pointer;
    font-size: 14px; font-weight: 600; text-align: center;
}
.add_button_modal:hover { background: #b8762e; }
.save_message { display: block; margin: 10px auto; }

.del_button_modal {
    display: none; padding: 10px 24px; margin: 10px;
    background: #e74c3c; color: #fff; border-radius: 20px; cursor: pointer;
    font-size: 14px; font-weight: 600; text-align: center;
}

/* Grab-Aktionsleiste – kompakt, Icons einzeln ein-/ausblenden */
.buttons_grave {
    display: flex;
    position: fixed;
    left: 50%;
    bottom: 200px;
    transform: translateX(-50%);
    z-index: 10050;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: auto;
    height: auto;
    padding: 0;
    pointer-events: none;
}
.buttons_grave > div {
    display: none;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: background 0.2s, transform 0.15s;
}
.buttons_grave > div:hover { background: rgba(74, 111, 165, 0.85); transform: scale(1.08); }
.buttons_grave > div img { width: 40px; height: 40px; pointer-events: none; }

/* Main menu */
#main_menu { display: none; }
#main_menu i {
    background-color: rgba(0,0,0,0.3); width: 37px; height: 36px;
    padding: 6px; font-size: 25px; color: #fff; font-weight: 800;
    border-radius: 3px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* Hidden menu */
.hidden-menu {
    position: fixed; top: 0; right: -200px; width: 200px; height: 100%;
    background: rgba(0,0,0,0.85); z-index: 200; padding: 50px 20px;
    transition: right 0.3s; color: #fff; overflow-y: auto;
}
.hidden-menu a {
    display: block; color: #fff; text-decoration: none; padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 14px;
}

/* Photo / flower / candle display */
.photo_counter11 {
    position: absolute; top: 10px; left: 10px; color: #d38d41;
    font-size: 14px; font-weight: 600; z-index: 10;
}
#photo, #photo_2 {
    width: 220px; height: 220px; background-size: contain; background-repeat: no-repeat;
    background-position: center; margin: 10px auto;
}
.center_modal2 { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 260px; }
.left_button_modal, .right_button_modal {
    width: 44px; height: 44px; cursor: pointer; border-radius: 50%;
    background-color: #fff; background-repeat: no-repeat; background-position: center; background-size: 18px;
}
#photo_counter, #photo_counter_2 {
    display: none; text-align: center; font-size: 13px; color: #999; margin-top: 5px;
}

/* Flower / candle round buttons */
.button_round {
    display: inline-block; width: 40px; height: 40px; border-radius: 50%;
    background: #fff; border: 2px solid #d38d41; margin: 3px; cursor: pointer;
    vertical-align: middle;
}

/* Candle text */
.candle_header { font-weight: 600; color: #d38d41; font-size: 16px; text-align: center; margin: 10px 0 5px; }
.candle_text { color: #8b7355; font-size: 13px; text-align: center; margin-bottom: 10px; }
.candle_text_header { font-weight: 600; color: #d38d41; font-size: 13px; margin: 10px 0 5px; }
.candle_textarea {
    width: 100%; border: 2px solid #d38d41; border-radius: 8px; padding: 10px;
    font-size: 13px; resize: vertical; min-height: 80px;
}
.candle_count { font-size: 12px; color: #999; margin-top: 5px; text-align: center; }

/* Border decoration */
.border_flower2 { border-top: 1px solid #d38d41; margin: 5px 0; height: 1px; }

/* Form controls */
.form-control {
    display: block; width: 100%; padding: 10px 15px; font-size: 14px;
    border: 1px solid #ddd; border-radius: 4px; margin-bottom: 10px;
}

/* Login form */
#modal_login .modal-guts { max-width: 360px; }
#modal_login label { display: block; font-size: 13px; color: #666; margin-bottom: 4px; }
#modal_login input[type="email"],
#modal_login input[type="text"],
#modal_login input[type="password"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 2px solid #d38d41;
    border-radius: 20px;
    margin-bottom: 12px;
    font-size: 14px;
}
#modal_login .login-btn {
    display: block; width: 100%; padding: 12px; background: #d38d41; color: #fff;
    border: none; border-radius: 20px; font-size: 16px; cursor: pointer;
}

/* Drawcal panel */
#drawcals { display: none; position: fixed; bottom: 80px; left: 20px; z-index: 90; background: rgba(0,0,0,0.6); color: #fff; padding: 10px; border-radius: 8px; font-size: 12px; }

/* Lenta foto */
.lenta_foto { text-align: center; margin-bottom: 10px; }
.lenta_foto img { max-width: 100%; border-radius: 8px; }

/* Guestbook textarea */
#message_guest {
    width: 100%; border: 2px solid #d38d41; border-radius: 8px; padding: 10px;
    font-size: 13px; resize: vertical; min-height: 120px;
}

/* Cemetery select modal */
#cemetery-title1 { font-size: 15px; color: #b78e63; }
#cemetry11 { width: 100%; padding: 10px; border-radius: 8px; margin-top: 10px; }

/* Cookie modal */
#modal_cookie .modal-guts { text-align: center; }
#modal_cookie p { font-size: 14px; color: #666; margin-bottom: 15px; }

/* Antialias modal */
#modal_33 .modal-guts { text-align: center; }

/* Top-right toolbar (Musik / Vollbild / Login / Menü) */
.mg-top-btn {
    position: absolute;
    top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(20, 28, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    z-index: 10050;
    box-sizing: border-box;
}
.mg-top-btn:hover {
    background: rgba(30, 42, 62, 0.95);
    border-color: rgba(255, 255, 255, 0.5);
}
.mg-top-icon {
    display: flex;
    width: 22px;
    height: 22px;
    color: #ffffff !important;
}
.mg-top-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.mg-top-icon--on {
    color: #5eead4;
}

#set_fullscreen,
#myaudio,
#login_btn,
#menu_btn { cursor: pointer; }

/* Guestbook message input */
#message_guest { font-family: Verdana, sans-serif; }

/* flaticon font (minimal inline for icons) */
[class^="flaticon-"]:before, [class*=" flaticon-"]:before {
    font-family: 'flaticon', sans-serif !important;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
}
