:root {
    --bg: #050916;
    --bg-card: #0e1424;
    --accent: #6bdc5b;
    --accent-soft: rgba(107, 220, 91, 0.15);
    --text: #f7f7f7;
    --text-muted: #a2aac6;
    --border-radius: 18px;
    --shadow: 0 18px 40px rgba(0,0,0,0.45);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #182846 0, #050916 55%, #02030a 100%);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

.page {
    width: 100%;
    max-width: 1100px;
    padding: 18px 16px 32px;
    margin: auto;
}

/* Header / Branding */
header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: contain;
    background: #000;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.06);
}

.brand-title {
    font-size: 1.2rem;
    font-weight: 650;
}

.brand-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 360px;
}

/* Layout Startseite */
.layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 18px;
}

@media (max-width: 800px) {
    .layout { grid-template-columns: minmax(0, 1fr); }
    header { justify-content: center; text-align: center; }
    .tagline { max-width: 100%; }
}

/* Panels */
.panel {
    background: linear-gradient(135deg, rgba(9,16,35,0.96), rgba(7,13,28,0.98));
    border-radius: var(--border-radius);
    padding: 18px 16px 16px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.05);
}

.panel + .panel {
    box-shadow: 0 14px 30px rgba(0,0,0,0.4);
}

.panel-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.panel-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.panel-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-logo {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    object-fit: contain;
    background: #000;
}

.panel-title {
    font-size: 1.05rem;
    font-weight: 600;
}

.pill {
    font-size: 0.72rem;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    background: rgba(255,255,255,0.01);
    white-space: nowrap;
}

.hero-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

/* Link-Karten */
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.link-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 10px 11px;
    border-radius: 14px;
    background: rgba(7,13,28,0.9);
    border: 1px solid rgba(255,255,255,0.06);
    text-decoration: none;
    color: var(--text);
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0 0, rgba(107,220,91,0.18), transparent 55%);
    opacity: 0;
    transition: opacity 0.2s ease-out;
}

.link-card:hover::before { opacity: 1; }

.link-main { font-weight: 550; }

.link-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.badge {
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(107,220,91,0.4);
    margin-left: 6px;
}

.link-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.icon-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(107,220,91,0.9);
    flex-shrink: 0;
}

/* Footer */
.footer-note {
    margin-top: 16px;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
    opacity: 0.8;
}

.footer-note a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-note a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Typo / Impressum-spezifische Elemente */
h1 {
    font-size: 1.35rem;
    margin: 0 0 8px;
}

h2 {
    font-size: 1rem;
    margin: 18px 0 6px;
}

p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 4px 0 10px;
}

.small-note {
    margin-top: 16px;
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.8;
    text-align: center;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.back-link {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.85rem;
}
