@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;800&display=swap');

:root {
    --primary-glow: radial-gradient(circle at center, rgba(0, 112, 243, 0.15) 0%, transparent 70%);
    --secondary-glow: radial-gradient(rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    --background-dark: #0a0a0a;
    --text-main: #ededed;
    --accent: #0070f3;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--background-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.5;
    scroll-behavior: smooth;
}

/* Moderner Mesh-Hintergrund */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(at 0% 0%, hsla(210,100%,15%,1) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(225,100%,15%,1) 0, transparent 50%), 
        radial-gradient(at 50% 100%, hsla(200,100%,10%,1) 0, transparent 50%);
    filter: blur(100px);
    opacity: 0.6;
}

.hero-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 800;
    background: linear-gradient(to bottom right, #fff 30%, rgba(255,255,255,0.4));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    margin-bottom: 1rem;
    letter-spacing: -0.05em;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: #888;
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.cta-button {
    background: #fff;
    color: #000;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
    cursor: pointer;
    appearance: none;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,255,255,0.15);
}

.live-badge {
    background: rgba(255, 0, 0, 0.2);
    color: #ff4d4d;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ff4d4d;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

/* Twitch Status Variante C */
.status-wrapper {
    width: min(100%, 720px);
    margin: 0 auto 1.4rem;
    padding: 0;
}

.status-title {
    margin-bottom: 0.9rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #9aa4b2;
}

.live-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 1rem 1.1rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.live-card:hover {
    border-color: rgba(0, 112, 243, 0.45);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(0, 112, 243, 0.18) inset;
    transform: translateY(-2px);
}

.live-card .top {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
    color: #fff;
}

.live-card .dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    box-shadow: 0 0 14px rgba(255, 107, 107, 0.65);
}

.live-card .info {
    color: #d6dbe3;
    font-size: 0.96rem;
    line-height: 1.6;
}

.live-card .info b {
    color: #ffffff;
    font-weight: 700;
}

.live-card .viewer {
    margin-top: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.36rem 0.68rem;
    border-radius: 999px;
    background: rgba(0, 112, 243, 0.15);
    border: 1px solid rgba(0, 112, 243, 0.34);
    color: #bcd8ff;
    font-size: 0.84rem;
    font-weight: 600;
}

.live-card.is-offline {
    text-align: center;
}

.live-card.is-live {
    text-align: center;
}

.live-card.is-offline .top {
    justify-content: center;
}

.live-card.is-live .top {
    justify-content: center;
}

.live-card.is-offline .info {
    text-align: center;
}

.live-card.is-live .info {
    text-align: center;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card:hover {
    border-color: rgba(255,255,255,0.2);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-5px);
}

.feature-card h3 {
    margin-top: 0;
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #888;
    line-height: 1.6;
    margin: 0;
}

.feature-card .support-plan-btn {
    margin-top: auto;
    align-self: center;
    width: 100%;
    max-width: 320px;
    text-align: center;
}

.capabilities-section {
    background: linear-gradient(to bottom, transparent, rgba(0, 112, 243, 0.05));
    padding: 8rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

footer {
    text-align: center;
    padding: 4rem 2rem;
    color: #444;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Twitch Player Styling */
.stream-section {
    padding: 4rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.stream-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 112, 243, 0.1);
    backdrop-filter: blur(10px);
}

.stream-container #twitch-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 200px;
}

/* Fix für das injizierte Twitch-Iframe */
.stream-container #twitch-embed iframe,
.stream-container iframe {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    height: 100% !important;
    border: none;
}

.announcement-section {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title-small {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #fff;
    opacity: 0.9;
}

.announcement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.announcement-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.announcement-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--accent);
    transform: scale(1.02);
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.announcement-tag {
    background: rgba(0, 112, 243, 0.15);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.announcement-date {
    color: #555;
    font-size: 0.8rem;
}

.announcement-card h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    color: #fff;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-icon {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.social-icon:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .hero-wrapper { padding: 4rem 1.5rem; }
    .status-wrapper {
        width: 100%;
        margin-bottom: 1.1rem;
    }
    .live-card { padding: 0.95rem; }
    .stream-section { padding: 2rem 1rem; }
    .capabilities-section { padding: 4rem 0; }
    .section-title { margin-bottom: 2rem; }
    .feature-grid { grid-template-columns: 1fr !important; }
}

/* Support Form Styles */
.support-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.support-subscriptions-section {
    padding-top: 0.5rem;
    padding-bottom: 1rem;
}

.support-subscriptions-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.support-stripe-badge {
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.support-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 1rem;
}

.support-plan {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 1.2rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
    backdrop-filter: blur(8px);
}

.support-plan h3 {
    margin: 0 0 0.4rem;
}

.support-plan-price {
    margin: 0;
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
}

.support-plan-text {
    margin: 0.8rem 0 1rem;
    color: #a7b2c4;
    min-height: 48px;
}

.support-plan-btn {
    width: 100%;
    text-align: center;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.8;
}

.support-plan-btn:disabled {
    cursor: not-allowed;
}

.support-plan-bronze {
    box-shadow: inset 0 0 0 1px rgba(180, 83, 9, 0.35);
}

.support-plan-silver {
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.45);
}

.support-plan-gold {
    box-shadow: inset 0 0 0 1px rgba(234, 179, 8, 0.45);
}

.support-plan-bronze .support-plan-price { color: #f59e0b; }
.support-plan-silver .support-plan-price { color: #cbd5e1; }
.support-plan-gold .support-plan-price { color: #facc15; }

@media (max-width: 900px) {
    .support-subscriptions-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .support-plan-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-group select option {
    background-color: #1a1a1a;
    color: #fff;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(0, 112, 243, 0.2);
}

/* Success Message Styling */
.success-message {
    text-align: center;
    padding: 1.5rem 0;
    animation: fadeInScale 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-icon {
    width: 64px;
    height: 64px;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    border: 2px solid rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}

.success-message h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.success-message p {
    color: #888;
    margin-bottom: 2rem;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Equipment Specifics */
.equip-category-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 4rem auto 2rem;
    max-width: 1100px;
    padding: 0 1.5rem;
    color: var(--cat-accent, var(--accent));
    display: flex;
    align-items: center;
    gap: 15px;
}

.equip-category-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(0, 112, 243, 0.3), transparent);
}

.spec-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.spec-list li {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.spec-list li span {
    color: #fff;
    font-weight: 600;
}

/* High-End Equip Card Upgrade */
.equip-card {
    position: relative;
    overflow: hidden;
    border-color: rgba(255, 255, 255, 0.05);
}

.equip-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--item-accent);
    opacity: 0.5;
    transition: opacity 0.3s;
}

.equip-link-btn {
    display: block;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.equip-link-btn:hover {
    background: var(--item-accent);
    border-color: var(--item-accent);
    color: #000;
    transform: translateY(-2px);
}

.equip-card:hover {
    border-color: var(--item-accent);
    box-shadow: 0 10px 40px -10px var(--item-accent);
    background: rgba(255, 255, 255, 0.02);
}

.equip-card:hover::before {
    opacity: 1;
}

/* Modal System */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    z-index: 2000;
    padding: 40px 20px;
}

.modal-overlay.active { display: flex; }

.modal-content {
    background: var(--background-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: 100%;
    max-width: 600px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.close-modal {
    position: absolute;
    top: 20px; right: 20px;
    background: none; border: none;
    color: #888; font-size: 1.5rem;
    cursor: pointer; transition: color 0.3s;
}

.close-modal:hover { color: #fff; }

.modal-title { margin-bottom: 2rem; color: var(--accent); }

.news-open-trigger-card {
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.news-open-trigger-card:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.news-open-trigger-card:focus-visible {
    outline: 2px solid rgba(0, 112, 243, 0.85);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px rgba(0, 112, 243, 0.25);
}

#newsModal.modal-overlay {
    align-items: center;
}

.news-modal-content {
    max-width: 760px;
}

.news-modal-body {
    color: #d6dbe3;
    line-height: 1.7;
    white-space: pre-line;
    max-height: 65vh;
    overflow-y: auto;
    padding-right: 0.4rem;
}

.news-toolbar {
    max-width: 1500px;
    margin: 0 auto 1.4rem;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 260px));
    gap: 1rem;
}

.news-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.75rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(155deg, rgba(15, 23, 42, 0.5), rgba(2, 6, 23, 0.38));
    backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.news-filter-group label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9fb0c4;
    font-weight: 700;
}

.news-filter-select {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: linear-gradient(150deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.7));
    color: #f1f5f9;
    padding: 0.65rem 2.2rem 0.65rem 0.85rem;
    font-weight: 600;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #93c5fd 50%),
        linear-gradient(135deg, #93c5fd 50%, transparent 50%);
    background-position:
        calc(100% - 16px) calc(50% - 2px),
        calc(100% - 11px) calc(50% - 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.news-filter-select option {
    background: #0f172a;
    color: #e2e8f0;
}

.news-filter-select option:checked {
    background: #1e3a8a;
    color: #ffffff;
}

.news-filter-select:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.8);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18), 0 10px 24px rgba(2, 132, 199, 0.24);
    transform: translateY(-1px);
}

.taxonomy-modal-content {
    max-width: 980px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(155deg, rgba(10, 14, 20, 0.95), rgba(8, 10, 16, 0.98));
}

.taxonomy-modal-subtitle {
    margin-top: -0.9rem;
    margin-bottom: 1.4rem;
    color: #94a3b8;
    font-size: 0.95rem;
}

.taxonomy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.taxonomy-card {
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.015);
}

.taxonomy-card-title {
    margin-top: 0;
    margin-bottom: 0.9rem;
    font-size: 1.05rem;
}

.taxonomy-form {
    gap: 0.8rem;
}

.taxonomy-color-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
}

.taxonomy-color-row label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9fb0c4;
    font-weight: 700;
}

.taxonomy-color-input {
    width: 42px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.taxonomy-color-input::-webkit-color-swatch-wrapper {
    padding: 0;
    border-radius: 7px;
}

.taxonomy-color-input::-webkit-color-swatch {
    border: none;
    border-radius: 7px;
}

.taxonomy-form input[type="text"] {
    background: linear-gradient(145deg, rgba(12, 20, 32, 0.9), rgba(8, 14, 24, 0.95));
    border: 1px solid rgba(148, 163, 184, 0.28);
    color: #f8fafc;
    border-radius: 12px;
    padding: 0.85rem 0.95rem;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 6px 14px rgba(0, 0, 0, 0.18);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.taxonomy-form input[type="text"]::placeholder {
    color: #93a2b8;
}

.taxonomy-form input[type="text"]:hover {
    border-color: rgba(148, 163, 184, 0.45);
}

.taxonomy-form input[type="text"]:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.8);
    background: linear-gradient(145deg, rgba(10, 26, 42, 0.95), rgba(8, 18, 30, 0.98));
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2), 0 12px 24px rgba(2, 132, 199, 0.22);
    transform: translateY(-1px);
}

.taxonomy-add-btn {
    border: none;
    cursor: pointer;
    width: 100%;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #f8fafc;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.taxonomy-add-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.45);
    filter: brightness(1.05);
}

.taxonomy-form-category input[type="text"] {
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 6px 14px rgba(2, 132, 199, 0.16);
}

.taxonomy-form-category input[type="text"]:focus {
    border-color: rgba(56, 189, 248, 0.85);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.22), 0 12px 24px rgba(2, 132, 199, 0.24);
}

.taxonomy-form-category .taxonomy-add-btn {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

.taxonomy-form-category .taxonomy-add-btn:hover {
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.45);
}

.taxonomy-form-genre input[type="text"] {
    border-color: rgba(251, 146, 60, 0.35);
    background: linear-gradient(145deg, rgba(30, 18, 10, 0.9), rgba(22, 12, 8, 0.95));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 6px 14px rgba(194, 65, 12, 0.16);
}

.taxonomy-form-genre input[type="text"]::placeholder {
    color: #c9a38e;
}

.taxonomy-form-genre input[type="text"]:focus {
    border-color: rgba(251, 146, 60, 0.85);
    background: linear-gradient(145deg, rgba(44, 22, 10, 0.95), rgba(30, 16, 8, 0.98));
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.22), 0 12px 24px rgba(194, 65, 12, 0.28);
}

.taxonomy-form-genre .taxonomy-add-btn {
    background: linear-gradient(135deg, #fb923c, #ea580c);
    box-shadow: 0 10px 24px rgba(234, 88, 12, 0.35);
}

.taxonomy-form-genre .taxonomy-add-btn:hover {
    box-shadow: 0 14px 28px rgba(234, 88, 12, 0.46);
}

.taxonomy-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 270px;
    overflow-y: auto;
    padding-right: 0.2rem;
}

.taxonomy-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.taxonomy-edit-form {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.45rem;
    width: 100%;
    margin-bottom: 0.45rem;
}

.taxonomy-edit-form input[type="text"] {
    min-width: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: #fff;
    padding: 0.5rem 0.6rem;
    font-size: 0.85rem;
}

.taxonomy-edit-form input[type="text"]:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.7);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.18);
}

.taxonomy-color-input-sm {
    width: 36px;
    height: 34px;
}

.taxonomy-save-btn {
    border: 1px solid rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.18);
    color: #8ef0cb;
    border-radius: 8px;
    width: 36px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.taxonomy-save-btn:hover {
    background: rgba(16, 185, 129, 0.26);
    color: #d5fff0;
}

.taxonomy-delete-form {
    margin-left: auto;
}

.taxonomy-value {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.taxonomy-value-category {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.taxonomy-delete-btn {
    border: 1px solid rgba(255, 77, 77, 0.35);
    background: rgba(255, 77, 77, 0.12);
    color: #ff7a7a;
    border-radius: 8px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.taxonomy-delete-btn:hover {
    background: rgba(255, 77, 77, 0.2);
    color: #ffd6d6;
}

/* Spezielles Raster für Equipment (3 Spalten) */
/* Spezielles Raster für Equipment/News/Commands (Dynamisch 3 bis 5 Spalten auf PC) */
.equip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1500px; /* Mehr Platz für bis zu 5 Spalten */
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (max-width: 1024px) { .equip-grid { grid-template-columns: repeat(2, 1fr); } }
.equip-grid .feature-card {
    padding: 1.8rem; /* Kompakteres Padding für bessere Ausnutzung der Breite */
}

@media (max-width: 900px) {
    .news-toolbar {
        grid-template-columns: 1fr;
        max-width: 740px;
    }

    .taxonomy-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) { .equip-grid { grid-template-columns: 1fr; } }

/* Profile Page Specific Styles */
.profile-hero-wrapper {
    min-height: 35vh;
    padding-bottom: 2rem;
}

.profile-badge {
    background: rgba(124, 92, 255, 0.1);
    color: #7c5cff;
    border-color: rgba(124, 92, 255, 0.2);
}

.profile-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
}

.profile-grid {
    grid-template-columns: 1.2fr 1fr !important; /* Override default feature-grid */
    align-items: start;
    gap: 2rem;
    max-width: 1200px;
}

.profile-card {
    padding: 3rem !important; /* Consistent padding */
}

.profile-card:first-child {
    border-top: 4px solid var(--accent);
}

.profile-card:last-child {
    border-top: 4px solid #ff4d4d; /* Red for security */
}

.profile-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 1.5rem;
}

.profile-section-header i {
    font-size: 1.5rem;
    color: var(--accent);
}

.profile-section-header.security-header i {
    color: #ff4d4d;
}

.profile-section-header h3 {
    margin: 0;
    font-size: 1.4rem;
}

.profile-avatar-upload {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2.5rem;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border: 2px solid var(--accent);
    transition: all 0.3s ease;
}

.profile-avatar-upload:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    border-color: #fff;
}

.profile-avatar-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-avatar-upload:hover .profile-avatar-overlay {
    opacity: 1;
}

.profile-avatar-input {
    display: none; /* Hide the actual file input */
}

.disabled-input label {
    opacity: 0.7;
}

.disabled-input input {
    cursor: not-allowed !important;
    background: rgba(255,255,255,0.03) !important;
    border-color: rgba(255,255,255,0.05) !important;
}

.profile-save-button {
    background: var(--accent) !important;
    color: #000 !important;
    margin-top: 2.5rem !important;
}

.profile-save-button:hover {
    background: #fff !important;
}

.profile-password-button {
    background: transparent !important;
    border: 1px solid #ff4d4d !important;
    color: #ff4d4d !important;
    margin-top: 2.5rem !important;
}

.profile-password-button:hover {
    background: rgba(255, 77, 77, 0.1) !important;
    color: #fff !important;
}

.profile-actions-bottom {
    text-align: center;
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.profile-back-button {
    background: transparent !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

.profile-back-button:hover {
    background: rgba(255,255,255,0.05) !important;
}

.profile-logout-button {
    background: rgba(255, 77, 77, 0.1) !important;
    color: #ff4d4d !important;
    border: 1px solid rgba(255, 77, 77, 0.2) !important;
}

.profile-logout-button:hover {
    background: #ff4d4d !important;
    color: #fff !important;
}

/* General message boxes for success/error */
.success-message-box {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid rgba(34, 197, 94, 0.2);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-message-box {
    background: rgba(255, 77, 77, 0.1);
    color: #ff4d4d;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 77, 77, 0.2);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Adjustments for smaller screens */
@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr !important;
    }
    .profile-avatar-upload {
        margin-bottom: 2rem;
    }
    .profile-card {
        padding: 2rem !important;
    }
    .profile-section-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    .profile-actions-bottom {
        flex-direction: column;
        gap: 10px;
    }
}