/* --- FROST THEME CSS --- */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;700&display=swap');

body {
    font-family: 'Rajdhani', sans-serif;
    background-image: url('jagdfalle-hintergrund.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-color: #0b1021;
    color: #e0f7fa;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
}

/* Hintergrund-Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 16, 33, 0.75); 
    z-index: -1;
    pointer-events: none;
}

/* WATERMARK (Wasserzeichen) */
body::after {
    content: "DevilShot0610"; /* Wasserzeichen Text */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg); /* Zentrieren und Drehen */
    font-size: 8vw; /* Große, responsive Schriftgröße */
    color: rgba(255, 255, 255, 0.08); /* Dezente Transparenz */
    pointer-events: none;
    z-index: -1; /* Unter dem Inhalt */
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 5px;
    font-family: 'Rajdhani', sans-serif;
}

/* --- HEADER & FLAGS --- */
.header-container {
    position: relative;
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 3em;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #fff;
    text-shadow: 0 0 10px #00eeff, 0 0 20px #00eeff;
    margin: 0;
    padding-top: 10px;
}

.lang-switch {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 15px;
    z-index: 100;
}

.flag-btn {
    cursor: pointer;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: none;
    border: none;
    padding: 0;
    outline: none;
    line-height: 1; 
}

.flag-btn svg {
    display: block;
    margin: 0;
}

.flag-btn:hover, .flag-btn.active {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.2);
    text-shadow: 0 0 20px rgba(255,255,255,0.8);
}

h2 {
    color: #81d4fa;
    border-bottom: 1px solid rgba(129, 212, 250, 0.3);
    padding-bottom: 10px;
    margin-top: 0;
    text-shadow: 0 0 5px rgba(0, 238, 255, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bonus-badge {
    font-size: 0.7em;
    background: rgba(0, 238, 255, 0.2);
    padding: 3px 8px;
    border-radius: 4px;
    color: #fff;
    border: 1px solid rgba(0, 238, 255, 0.4);
}

.small-heading-text {
    font-size: 0.55em;
    opacity: 0.8;
    margin-left: 10px;
    padding: 3px 6px;
    border-radius: 4px;
    background: rgba(0, 238, 255, 0.1);
    border: 1px solid rgba(0, 238, 255, 0.2);
    align-self: flex-end;
    line-height: 1.2;
}

/* Card Styles */
.card {
    background: rgba(20, 30, 48, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.card.locked {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(0.8) blur(2px);
}

.card.locked::before {
    content: "🔒";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3em;
    z-index: 10;
    text-shadow: 0 0 10px black;
}

.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.input-group label { display: block; color: #b3e5fc; margin-bottom: 8px; font-size: 0.9em; letter-spacing: 1px; }

input, select {
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #00acc1;
    border-radius: 5px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1em;
    box-sizing: border-box;
    transition: 0.3s;
}
::placeholder { color: rgba(255, 255, 255, 0.3); font-style: italic; }
select option { background-color: #1b2735; color: white; }
input:focus, select:focus {
    outline: none;
    border-color: #00eeff;
    box-shadow: 0 0 10px rgba(0, 238, 255, 0.3);
    background: rgba(0, 0, 0, 0.7);
}

.divider {
    grid-column: 1 / -1;
    border-top: 1px dashed rgba(0, 255, 255, 0.3);
    margin: 15px 0 10px 0;
    padding-top: 10px;
    color: #00e676;
    font-weight: bold;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
}
.divider-small-text {
    font-size: 0.65em;
    color: #98ff98;
    margin-left: 10px;
    font-weight: normal;
}

/* BUTTON GRID FOR PERCENTAGES */
.preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.btn {
    padding: 12px 10px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    border: 1px solid #4facfe;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.btn:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.6); 
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: #000;
}

.btn.manual {
    background: linear-gradient(135deg, #434343, #000000);
    border-color: #999;
    color: #ddd;
}
.btn.manual:hover {
    background: #555;
    color: white;
}

/* TABLE STYLES */
table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 10px; font-size: 0.95em; color: #e0f7fa; }

/* STICKY HEADER */
#marchTable thead th { 
    position: sticky; 
    top: 0; 
    z-index: 5;
    background: rgba(0, 172, 193, 0.7); 
    backdrop-filter: blur(5px);
}

th { 
    color: #00eeff; 
    padding: 12px; 
    text-transform: uppercase; 
    border-bottom: 2px solid #00acc1;
}
td { padding: 10px; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
tr:hover td { background: rgba(0, 238, 255, 0.1); }
tr.hidden-row { display: none; }

.table-input { width: 60px; text-align: center; border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.1); }
.manual-cap { width: 90px; border-color: #ffd700; color: #ffd700; } 
.manual-cap::placeholder { color: rgba(255, 215, 0, 0.5); }

.percent-status-label { font-size: 0.7em; font-weight: normal; text-transform: none; color: #a0f0ff; }

/* PERCENTAGE VALIDATION DISPLAY */
.percent-status {
    font-size: 0.75em;
    margin-top: 5px;
    font-weight: bold;
}
.percent-status-ok { color: #00e676; }
.percent-status-warn { color: #ff5252; }

/* PERCENTAGE BARS */
.bar-container {
    height: 8px;
    width: 90%;
    max-width: 120px;
    margin: 5px auto 0 auto;
    border-radius: 4px;
    overflow: hidden;
    background: #444;
    display: flex;
}
.bar-inf, .bar-lan, .bar-sch {
    height: 100%;
    transition: width 0.3s ease;
}
.bar-inf { background-color: #ff5252; } 
.bar-lan { background-color: #00e676; } 
.bar-sch { background-color: #00eeff; } 

/* STATUS BOXES */
.status-box { 
    padding: 15px; 
    text-align: center; 
    border-radius: 8px; 
    font-weight: bold; 
    font-size: 1.1em;
    margin-top: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.3);
    text-shadow: 0 0 5px rgba(0,0,0,0.8);
}
.ok { color: #69f0ae; border-color: #00e676; box-shadow: 0 0 10px rgba(0, 230, 118, 0.2) inset; } 
.warn { color: #ff5252; border-color: #ff1744; box-shadow: 0 0 15px rgba(255, 23, 68, 0.3) inset; }

tfoot td { font-weight: bold; color: #fff; background: rgba(0,0,0,0.5); border-top: 2px solid #00eeff; padding-top: 15px; }

.calc-display {
    background: rgba(0,0,0,0.4);
    padding: 8px;
    border-radius: 5px;
    text-align: right;
    margin-top: 5px;
    font-size: 0.85em;
    color: #ffd700;
    font-weight: bold;
}

/* SAVE / LOAD */
.save-load-grid {
    display: flex;
    gap: 15px;
    justify-content: center;
}
.btn-save, .btn-clear {
    padding: 15px 25px;
    font-size: 1.1em;
    font-weight: 700;
    text-shadow: 0 1px 1px #000;
    transition: all 0.3s ease;
    border: 2px solid #ffd700; 
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    background: linear-gradient(145deg, #c74c4c, #e8a000); 
    color: white;
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.4);
}
.btn-save:hover, .btn-clear:hover {
    transform: translateY(-5px) scale(1.05); 
    background: linear-gradient(145deg, #e8a000, #c74c4c); 
    box-shadow: 0 5px 20px rgba(255, 165, 0, 0.8);
}

/* FOOTER STYLES */
.footer-style {
    margin-top: 50px;
    padding: 20px;
    text-align: center;
    background: rgba(20, 30, 48, 0.95);
    border-top: 1px solid rgba(0, 255, 255, 0.3);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    font-size: 0.9em;
}
.text-red-600 { color: #ef4444; }
.footer-discord-link {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 700;
}
.footer-discord-link:hover { color: #0ea5e9; }

@media (max-width: 700px) {
    .lang-switch { position: relative; justify-content: center; margin-bottom: 10px; }
    h1 { font-size: 2em; }
    .save-load-grid { flex-direction: column; }
    .small-heading-text, .divider-small-text { display: block; margin-top: 5px; margin-left: 0; }
    .divider { flex-direction: column; align-items: flex-start; }
    body::after { font-size: 15vw; }
}

/* --- DRUCK STILE (FÜR PDF) --- */
@media print {
    body { background: white; color: black; padding: 0; margin: 0; }
    body::before, body::after, #main-footer { display: none; }
    .header-container, .lang-switch, #step6 { display: none; } 
    .card { background: white; border: 1px solid #ccc; box-shadow: none; page-break-inside: avoid; }
    h1, h2, .divider { color: black !important; text-shadow: none !important; border-bottom: 1px solid #ccc !important; }
    table, th, td { border-color: #ccc !important; color: black !important; }
    th { background: #f0f0f0 !important; }
    input, select { border: 1px solid #ccc !important; background: white !important; color: black !important; }
    .status-box { border: 1px solid #ccc !important; background: #f9f9f9 !important; }
    .ok { color: green !important; }
    .warn { color: red !important; }
    .hidden-row { display: table-row !important; } 
    .bar-container { background: #ccc !important; } 
    .small-heading-text, .divider-small-text { color: black !important; background: #eee !important; border: 1px solid #ccc !important; }
}