/* HERO SECTION */
.hero-section {
    padding: 112px 0 98px; 
    display: grid; 
    grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr); 
    gap: clamp(40px, 5vw, 100px); 
    align-items: center;
}
.hero-title { font-size: clamp(3.2rem, 6.6vw, 6.8rem); line-height: 1; font-weight: 950; }
.hero-title em { font-style: normal; background: linear-gradient(135deg, var(--primary-2), var(--accent)); -webkit-background-clip: text; color: transparent; }
.hero-lead { margin: 34px 0 0; color: var(--muted); font-size: clamp(1.08rem, 1.45vw, 1.24rem); line-height: 1.86; max-width: 850px; }
.hero-actions { display: flex; gap: 16px; margin-top: 42px; flex-wrap: wrap; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; color: var(--muted); border: 1px solid var(--border);
    border-radius: 999px; padding: 9px 14px; background: var(--surface); backdrop-filter: blur(18px); margin-bottom: 30px;
}
.eyebrow span { width: 8px; height: 8px; border-radius: 999px; background: var(--success); box-shadow: 0 0 0 7px rgba(23, 201, 100, .13); }

.trust-row { margin-top: 60px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trust-row div { padding: 22px; border-radius: 28px; border: 1px solid var(--border); background: var(--surface); backdrop-filter: blur(20px); }
.trust-row strong { font-size: 1.02rem; font-weight: 920; display: block; }
.trust-row span { margin-top: 9px; color: var(--muted); font-size: .92rem; display: block; }

/* SHOWCASE SPECIFIC */
.showcase-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
}
.showcase-filters .search-input {
    flex-grow: 1;
    max-width: 400px;
}
.showcase-filters .filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.showcase-filters label {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 700;
}
.showcase-filters select {
    min-width: 120px;
}
.showcase-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

/* SECTIONS */
.section { padding: 88px 0 116px; }
.section-heading { max-width: 1000px; margin-bottom: 44px; }
.section-heading.center { text-align: center; margin-inline: auto; }
.section-heading h2 { font-size: clamp(2.35rem, 4.1vw, 4.25rem); line-height: 1.03; letter-spacing: -.05em; margin-top: 14px; }
.section-heading p { margin: 24px 0 0; color: var(--muted); line-height: 1.82; font-size: 1.1rem; }

.feature-grid, .workflow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* CATEGORY GRID */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.category-card { 
    padding: 42px; border: 1px solid var(--border); border-radius: 34px; 
    background: var(--surface); transition: .3s ease; display: flex; align-items: flex-end;
    min-height: 280px; position: relative; overflow: hidden;
}
.category-card:hover { transform: translateY(-8px); border-color: var(--primary-2); box-shadow: var(--shadow); }
.category-card h3 { font-size: 1.8rem; margin: 0; letter-spacing: -0.04em; }
.category-card p { color: var(--muted); margin: 12px 0 20px; line-height: 1.6; }
.text-link { color: var(--primary-2); font-weight: 800; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* AUTH LAYOUT */
.auth-layout {
    min-height: calc(100vh - 160px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    gap: 48px;
}
.auth-info { text-align: center; }
.auth-info h1 { font-size: clamp(2.8rem, 8vw, 4.8rem); line-height: .98; letter-spacing: -.05em; margin: 0; color: var(--text); }
.auth-info p { margin: 24px auto 0; color: var(--muted); line-height: 1.8; font-size: 1.2rem; max-width: 620px; }

.role-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 8px;
}

.role-card {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.role-card:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--muted-2); }
.role-card.is-active {
    background: rgba(108, 92, 231, 0.12);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.2);
}
.role-card svg { width: 24px; height: 24px; color: var(--muted); }
.role-card.is-active svg { color: var(--primary-2); }
.role-card span { font-size: 0.9rem; font-weight: 800; }

.auth-card {
    width: 100%;
    max-width: 520px;
    border: 1px solid var(--border); 
    background: var(--surface-strong); 
    backdrop-filter: blur(40px);
    border-radius: 42px; 
    padding: 48px; 
    box-shadow: var(--shadow);
    position: relative;
    text-align: left;
}

.auth-card::after {
    content: ""; position: absolute; inset: -1px; border-radius: 42px; padding: 1px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.4), transparent, rgba(0, 209, 255, 0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}

/* Password Strength */
.strength-meter { height: 4px; width: 100%; background: var(--border); margin-top: 8px; border-radius: 2px; overflow: hidden; }
.strength-bar { height: 100%; width: 0%; transition: width 0.3s ease, background 0.3s ease; }
.strength-bar.weak { width: 33.3%; background: var(--danger); }
.strength-bar.medium { width: 66.6%; background: #facc15; }
.strength-bar.strong { width: 100%; background: var(--success); }

.error-text { color: var(--danger); font-size: 0.8rem; margin-top: 4px; font-weight: 700; }

/* Password Visibility Toggle */
.password-wrapper { position: relative; width: 100%; display: grid; }
.password-wrapper input { padding-right: 50px !important; }

/* Entfernt das Standard-Browser-Auge (z.B. in Edge) */
input::-ms-reveal,
input::-ms-clear {
    display: none;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 25px; /* Zentriert im ca. 50px hohen Input */
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: color 0.2s ease;
}
.password-toggle:hover { color: var(--text); }
.password-toggle svg { width: 20px; height: 20px; pointer-events: none; }

.divider { display: flex; align-items: center; gap: 14px; color: var(--muted); margin: 24px 0; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--border); flex: 1; }

.oauth-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.oauth-grid a { 
    display: grid; place-items: center; border: 1px solid var(--border); border-radius: 17px; padding: 14px; 
    background: rgba(255,255,255,.045); font-weight: 900; transition: .22s;
}
.oauth-grid a:hover { border-color: var(--primary-2); transform: translateY(-2px); }

.switch-link { color: var(--muted); margin: 24px 0 0; text-align: center; }
.switch-link a { color: var(--primary-2); font-weight: 900; }

/* ADMIN LAYOUT */
.admin-layout { display: grid; grid-template-columns: 280px 1fr; gap: 40px; padding: 40px 0; }
.admin-sidebar { display: flex; flex-direction: column; gap: 8px; }
.admin-nav-item {
    display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 16px;
    background: transparent; border: none; color: var(--muted); cursor: pointer; width: 100%; transition: .2s;
    font-weight: 700; text-align: left;
}
.admin-nav-item:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.admin-nav-item.active { background: var(--primary); color: white; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; padding: 12px; border-bottom: 1px solid var(--border); }

/* HEADER USER INFO */
.user-header-info { display: flex; align-items: center; gap: 14px; padding-left: 20px; margin-left: 10px; border-left: 1px solid var(--border); }
.user-meta { text-align: right; line-height: 1.2; font-size: 0.85rem; }
.user-meta span { color: var(--muted); display: block; }
.user-avatar { 
    width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--accent));
    display: grid; place-items: center; font-weight: 900; color: white;
}
.logout-btn { color: var(--muted); transition: .2s; }
.logout-btn:hover { color: var(--danger); }

/* DYNAMIC DASHBOARD LINKS */
.nav-special {
    padding: 6px 14px !important;
    border-radius: 12px;
    font-weight: 850 !important;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.nav-admin {
    background: rgba(235, 77, 75, 0.1);
    color: #ff7675 !important;
    border: 1px solid rgba(235, 77, 75, 0.2);
}
.nav-admin:hover, .nav-admin.is-active {
    background: #d63031;
    color: white !important;
}

.nav-creator {
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary-2) !important;
    border: 1px solid rgba(108, 92, 231, 0.2);
}
.nav-creator:hover, .nav-creator.is-active {
    background: var(--primary-2);
    color: white !important;
}

/* PROJECT DETAIL VIEW */
.showcase-card-link { text-decoration: none; color: inherit; display: block; transition: transform 0.3s ease; }
.showcase-card-link:hover { transform: translateY(-8px); }

.project-hero-image { 
    width: 100%; height: 450px; border-radius: 42px; background-size: cover; 
    background-position: center; margin-bottom: 30px; border: 1px solid var(--border);
}
.project-header h1 { font-size: 3.5rem; margin: 15px 0; letter-spacing: -0.03em; }
.project-grid-layout { display: grid; grid-template-columns: 1fr 320px; gap: 30px; margin-top: 40px; }
.no-margin { max-width: 100% !important; width: 100% !important; margin: 0 !important; }
.project-description-text { line-height: 1.8; color: var(--muted); white-space: pre-wrap; }

.creator-profile-card { 
    display: flex; flex-direction: column; align-items: center; gap: 15px; padding: 20px 0; 
    text-align: center;
}
.creator-profile-card strong { font-size: 1.2rem; }
.back-nav { margin-bottom: 30px; }

/* PROJECT SPECS & LINKS */
.project-specs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; margin-top: 15px; }
.spec-item { display: flex; flex-direction: column; gap: 4px; }
.spec-item span { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; font-weight: 800; }
.spec-item strong { font-size: 1rem; color: var(--text); }

.project-links-list { display: flex; flex-direction: column; gap: 10px; margin-top: 15px; }
.project-links-list .btn { justify-content: flex-start; gap: 12px; }
.project-links-list .btn svg { opacity: 0.7; }

/* ADMIN DASHBOARD ADVANCED */
.admin-sys-grid { display: grid; gap: 20px; margin-top: 20px; }
.sys-item { display: flex; justify-content: space-between; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.sys-item span { color: var(--muted); font-size: 0.9rem; }

.activity-feed { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.activity-item { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,0.02); }
.activity-icon { width: 10px; height: 10px; border-radius: 50%; }
.activity-icon.user { background: var(--primary-2); box-shadow: 0 0 10px var(--primary-2); }
.activity-icon.project { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.activity-info { flex: 1; }
.activity-info p { margin: 0; font-size: 0.95rem; }
.activity-info span { font-size: 0.75rem; color: var(--muted); }
.activity-time { font-size: 0.75rem; color: var(--muted-2); }

/* CREATOR CARDS */
.creator-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 32px;
    padding: 30px; text-align: center; transition: .3s ease;
}
.creator-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); border-color: var(--primary-2); }
.creator-card-header { position: relative; margin-bottom: 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.avatar.large { width: 80px; height: 80px; font-size: 2rem; border-radius: 24px; }
.creator-card-body h3 { font-size: 1.4rem; margin: 0 0 10px; }
.creator-stats {
    display: flex; justify-content: center; gap: 20px; margin-top: 15px;
    padding-top: 15px; border-top: 1px solid var(--border);
}
.creator-stats strong { display: block; font-size: 1.2rem; color: var(--text); }
.creator-stats span { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; font-weight: 800; }

/* FORM ELEMENTS */
.form { display: grid; gap: 16px; }
input, textarea, select {
    width: 100%; border: 1px solid var(--border); border-radius: 18px; padding: 15px 16px;
    background: rgba(255,255,255,.06); color: var(--text); outline: none;
}

@media (max-width: 760px) {
    .hero-section, .auth-layout { grid-template-columns: 1fr; gap: 58px; }
    .hero-title { font-size: clamp(2.85rem, 14vw, 4.35rem); }
    .hero-actions { display: grid; }
    .trust-row, .feature-grid, .workflow-grid, .oauth-grid { grid-template-columns: 1fr; }
    .showcase-card { transform: none; }
    .showcase-cover { height: 230px; } /* Already exists, just keeping it here */
    .showcase-filters {
        flex-direction: column;
        align-items: stretch;
    }
}