/* ============================================
   WrightGuild – Master Stylesheet
   Design, Farben und Schriften unveraendert aus 999elite.vision
   ============================================ */

:root { --gold: #D4AF37; --dark: #121212; --panel: #1f262b; }

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

body, html {
    background: var(--dark);
    color: #fff;
    font-family: sans-serif;
    overflow-x: hidden;
}

/* ── TOP SECTION / HEADER ── */
.top-section { width: 100%; background: linear-gradient(to right, #121212 0%, #121212 25%, #1f262b 100%); }

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 62px;                /* feste Hoehe – Logo passt sich an, nicht umgekehrt */
    padding: 0 50px;
}

.logo-box { display: flex; align-items: center; }
.logo-box img {
    max-height: 54px;            /* Logo sitzt IM Header, sprengt ihn nie */
    width: auto; display: block; transition: 0.3s;
}
.logo-box img:hover { opacity: 0.85; }

/* ── AUTH BUTTONS ── */
.auth-top { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.5px; }
.auth-top a { color: #fff; text-decoration: none; transition: color 0.2s; }
.auth-top a:hover { color: var(--gold); }
.auth-divider { color: #444; }

#login-trigger { background: none; border: none; color: #fff; font-family: sans-serif; font-size: 0.85rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer; padding: 0; transition: color 0.2s; }
#login-trigger:hover { color: var(--gold); }

/* ── NAVIGATION ── */
nav { width: 100%; height: 34px; display: flex; align-items: center; justify-content: center; padding-bottom: 10px; border-bottom: 1px solid #222; }
nav a { display: inline-block; color: #ffffff; text-decoration: none; margin: 0 20px; font-weight: 400; font-family: sans-serif; text-transform: uppercase; font-size: 0.9em; letter-spacing: 1.5px; opacity: 0.8; transition: 0.3s; }
nav a:hover { opacity: 1; color: var(--gold); text-shadow: 0 0 10px rgba(212,175,55,0.5); }

/* ── SLIDER ── */
.gallery-container { width: 100%; overflow: hidden; margin-top: 20px; white-space: nowrap; background: #000; padding: 10px 0; }
.slider { display: inline-block; animation: slide 60s linear infinite; }
.slider img { width: 280px; height: 190px; object-fit: cover; margin-right: 15px; filter: brightness(0.6); border: 1px solid #333; transition: 0.5s; }
.slider img:hover { filter: brightness(1); border-color: var(--gold); }
@keyframes slide { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── LAYOUT ── */
.content-wrapper { display: flex; padding: 0 30px; max-width: 1800px; margin: 0; gap: 30px; }

.left-col { width: 520px; flex-shrink: 0; margin-top: 50px; display: flex; flex-direction: row; gap: 20px; align-items: stretch; }

.left-stack { display: flex; flex-direction: column; gap: 20px; justify-content: flex-end; }
.ausschreibung-stack { flex: 1.6; }
.steuer-stack        { flex: 1; }

/* ── LIVE-UPDATE-BOX (groesser) ── */
.live-update-box {
    padding: 24px 26px;                                  /* groesseres Padding */
    background: linear-gradient(135deg, #1a1a1a 0%, #221a05 100%);
    border: 1px solid var(--gold);
    position: relative;
    animation: pulse-glow 3.5s ease-in-out infinite;
}
@keyframes pulse-glow {
    0%, 100% {
        box-shadow:
            0 0  8px rgba(212,175,55,0.15),
            0 0 16px rgba(212,175,55,0.08);
    }
    50% {
        box-shadow:
            0 0 18px rgba(212,175,55,0.35),
            0 0 36px rgba(212,175,55,0.15);
    }
}
.live-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;                                 /* mehr Abstand */
}
.live-dot {
    width: 10px;                                          /* leicht groesser */
    height: 10px;
    background: var(--gold);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 10px var(--gold);
}
.live-label {
    color: var(--gold);
    font-size: 0.9rem;                                    /* war 0.7rem */
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    flex-grow: 1;
}
.live-stand {
    color: #666;
    font-size: 0.7rem;                                    /* war 0.65 */
    text-transform: uppercase;
    letter-spacing: 1px;
}
.live-text {
    color: #ccc;
    font-size: 0.95rem;                                   /* war 0.78rem */
    line-height: 1.7;                                     /* mehr Atemraum */
}
.live-text strong { color: var(--gold); }

/* ── BOXEN ── */
.steuereinheit, .ausschreibung-box {
    padding: 22px;
    background: var(--panel);
    border: 1px solid #333;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.box-title { color: var(--gold); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 2px; border-bottom: 1px solid #333; padding-bottom: 10px; margin-bottom: 18px; font-weight: bold; }
.form-label { display: block; color: var(--gold); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.form-input { width: 100%; background: #121212; border: 1px solid #333; color: #fff; padding: 10px; font-family: sans-serif; margin-bottom: 14px; outline: none; font-size: 0.85rem; }
.form-input:focus { border-color: var(--gold); }
textarea.form-input { resize: vertical; min-height: 80px; }

.btn-meister { width: 100%; background: var(--gold); color: #121212; border: none; padding: 14px; font-family: sans-serif; font-weight: bold; text-transform: uppercase; cursor: pointer; letter-spacing: 1px; transition: 0.3s; font-size: 0.8rem; }
.btn-meister:hover { background: #fff; transform: translateY(-2px); }

.check-row { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; font-size: 0.72rem; color: #888; line-height: 1.4; }
.check-row input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; accent-color: var(--gold); }
.check-row a { color: var(--gold); text-decoration: none; }

.msg-ok  { background: #1a3a1a; border: 1px solid #2a6a2a; color: #6fcf6f; padding: 10px; font-size: 0.75rem; margin-bottom: 12px; }
.msg-err { background: #3a1a1a; border: 1px solid #6a2a2a; color: #cf6f6f; padding: 10px; font-size: 0.75rem; margin-bottom: 12px; }

/* Main Content */
.main-content { flex-grow: 1; text-align: center; margin-top: 60px; padding: 0 30px 0 0; }

/* Profil-Kacheln */
.kacheln-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; text-align: left; margin-top: 20px; }
.profil-kachel { background: #1a1a1a; border: 1px solid #333; overflow: hidden; transition: border-color 0.3s, transform 0.3s; cursor: pointer; }
.profil-kachel:hover { border-color: var(--gold); transform: translateY(-3px); }
.profil-kachel img.profil-bild { width: 100%; display: block; object-fit: cover; }
.profil-kachel .kachel-info { padding: 15px; }

.kachel-firma { font-size: 0.95rem; font-weight: bold; color: #fff; margin-bottom: 4px; }
.kachel-ort { font-size: 0.75rem; color: #888; margin-bottom: 4px; }
.kachel-distanz { font-size: 0.7rem; color: var(--gold); margin-bottom: 12px; }
.kachel-headline { font-size: 0.78rem; color: #aaa; font-style: italic; margin-bottom: 12px; line-height: 1.4; }

.btn-kontakt { display: inline-block; border: 1px solid var(--gold); color: var(--gold); padding: 8px 16px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; transition: all 0.2s; }
.btn-kontakt:hover { background: var(--gold); color: #000; }

.keine-ergebnisse { padding: 60px 20px; color: #444; font-size: 0.9rem; }
.suche-fehler { background: #3a1a1a; border: 1px solid #6a2a2a; color: #cf6f6f; padding: 15px; margin-bottom: 20px; font-size: 0.85rem; }
.suche-info { font-size: 0.78rem; color: #666; margin-bottom: 20px; text-align: left; }

/* ── LOGIN OVERLAY ── */
#login-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 999; align-items: center; justify-content: center; }
#login-overlay.active { display: flex; }
.login-box { border: 1px solid var(--gold); padding: 50px 45px; width: 360px; text-align: center; position: relative; background: var(--dark); }
.login-close { position: absolute; top: 14px; right: 16px; background: none; border: none; color: #444; font-size: 1.1rem; cursor: pointer; transition: color 0.2s; }
.login-close:hover { color: #fff; }
.login-logo { max-width: 110px; margin-bottom: 25px; opacity: 0.9; }
.login-eyebrow { font-size: 0.55rem; text-transform: uppercase; letter-spacing: 3px; color: var(--gold); margin-bottom: 28px; }
.login-label { display: block; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 2px; color: #fff; margin-bottom: 14px; }
#login-input { width: 100%; background: #000; border: 1px solid #333; color: #fff; padding: 14px; text-align: center; font-family: sans-serif; font-size: 0.9rem; letter-spacing: 2px; outline: none; transition: border-color 0.2s; }
#login-input:focus { border-color: var(--gold); }
#login-input::placeholder { color: #333; letter-spacing: 1px; }
.login-hint { margin-top: 12px; font-size: 0.55rem; color: #333; letter-spacing: 1px; text-transform: uppercase; }
.login-error-msg { background: #2a0000; border: 1px solid #6a2a2a; color: #cf6f6f; font-size: 0.7rem; padding: 10px; margin-bottom: 18px; }

/* ── COMMANDER-SPERRE ── */
.lock-box { border: 1px solid var(--gold); padding: 50px 40px; text-align: center; width: 320px; margin: 0 auto; }
.lock-box h2 { color: var(--gold); font-size: 1.4rem; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 5px; }
.lock-box p { font-size: 0.6rem; color: #444; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 35px; }
.lock-box input { width: 100%; background: #000; border: 1px solid #333; color: #fff; padding: 14px; text-align: center; font-family: sans-serif; font-size: 0.85rem; outline: none; margin-bottom: 15px; transition: border-color 0.2s; }
.lock-box input:focus { border-color: var(--gold); }
.lock-box button { width: 100%; background: var(--gold); color: #121212; border: none; padding: 14px; font-family: sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 0.75rem; cursor: pointer; transition: background 0.2s; }
.lock-box button:hover { background: #fff; }
.lock-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; }

/* ── MOBILE ── */
@media (max-width: 1024px) {
    header { flex-direction: column; height: auto; padding: 16px 20px; }
    .logo-box img { max-height: 42px; margin-bottom: 10px; }
    nav { height: auto; padding: 8px 0; }
    .auth-top { margin-bottom: 20px; }
    .content-wrapper { flex-direction: column; padding: 0 20px; }
    .left-col { width: 100%; margin-top: 20px; flex-direction: column; }
    .left-stack { justify-content: flex-start; }
    .main-content { margin-top: 30px; padding: 0; }
    nav { overflow-x: auto; white-space: nowrap; }
    .login-box { width: 90%; max-width: 360px; padding: 40px 25px; }
    .kacheln-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
