:root {
    --bg-dark: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --primary: #3b82f6;
    --accent: #fbbf24;
}

body {
    background-color: var(--bg-dark);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    margin: 0;
    line-height: 1.6;
}

/* Header & Nav */
.shared-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand a { font-size: 1.5rem; font-weight: 800; text-decoration: none; color: white; }
.brand span { color: var(--primary); }

.hub-nav a, .legal-nav a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.hub-nav a.active, .legal-nav a.active, .hub-nav a:hover {
    color: var(--primary);
}

/* Layouts */
.hub-wrapper, .legal-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.legal-container { max-width: 800px; }

.intro { text-align: center; margin-bottom: 50px; }

.grid-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

@media (max-width: 900px) { .grid-container { grid-template-columns: 1fr; } }

/* Cards */
.card, .legal-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 25px;
}

.legal-card { padding: 40px; }

.project-card {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    margin-bottom: 15px;
    transition: 0.3s;
}

.project-card:hover:not(.disabled) {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.project-card.disabled { opacity: 0.5; cursor: not-allowed; }

.icon {
    width: 50px; height: 50px; border-radius: 10px;
    background: #1e293b; display: flex; align-items: center;
    justify-content: center; margin-right: 20px; font-size: 1.2rem;
}

.icon.red { color: #ef4444; }
.icon.blue { color: var(--primary); }

/* Buttons */
.btn-primary {
    display: block; background: var(--primary); color: white;
    padding: 12px; border-radius: 8px; text-decoration: none;
    font-weight: bold; margin-top: 10px;
}

/* Hall of Fame */
.hof-title { text-align: center; margin-top: 50px; color: var(--accent); }
.supporter-badge-shared {
    padding: 10px 20px; border: 1px solid var(--border);
    border-radius: 50px; display: flex; align-items: center; gap: 10px;
}
.supporter-badge-shared.top { border-color: var(--accent); background: rgba(251, 191, 36, 0.1); }
.start-date { text-align: center; color: var(--text-muted); font-size: 0.8rem; margin-top: 20px; }

/* Footer */
.shared-footer {
    text-align: center; margin-top: 80px; padding: 40px;
    border-top: 1px solid var(--border); color: var(--text-muted);
}

/* Styling für das External-Link Icon */
.project-card {
    position: relative; /* Wichtig für die Positionierung des Icons */
    overflow: hidden;
}

.external-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.project-card:hover .external-icon {
    opacity: 1;
    color: var(--primary);
    transform: translate(2px, -2px); /* Kleiner Animationseffekt nach oben rechts */
}

/* Verhindert, dass das Icon bei deaktivierten Karten stört */
.project-card.disabled .external-icon {
    display: none;
}