:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;

    --text: #152033;
    --text-soft: #627086;
    --text-muted: #8a95a6;

    --primary: #2457f5;
    --primary-dark: #1742ca;
    --primary-soft: #edf2ff;

    --border: #e4e8ef;

    --success: #147a4b;
    --success-bg: #ecf9f2;

    --danger: #c03737;
    --danger-bg: #fff0f0;

    --warning: #9a6810;
    --warning-bg: #fff7e6;

    --shadow-sm:
        0 1px 2px rgba(16, 24, 40, 0.04),
        0 3px 10px rgba(16, 24, 40, 0.03);

    --shadow:
        0 12px 35px rgba(16, 24, 40, 0.08);

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;

    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--bg);
    color: var(--text);

    line-height: 1.6;
}

body,
button,
input,
textarea,
select {
    font-family: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font-size: 1rem;
}

button {
    cursor: pointer;
}

.container {
    width: min(calc(100% - 40px), var(--max-width));
    margin: 0 auto;
}

.narrow-container {
    max-width: 760px;
}

/* --------------------------------
   Header
-------------------------------- */

.site-header {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 30;
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: var(--primary);
    color: #fff;
    border-radius: 11px;
    font-weight: 800;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.main-nav > a:not(.nav-button) {
    color: var(--text-soft);
    transition: color 0.2s ease;
}

.main-nav > a:not(.nav-button):hover {
    color: var(--text);
}

.nav-button {
    padding: 10px 15px;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 700;
}

.back-link {
    color: var(--text-soft);
    font-size: 0.95rem;
}

/* --------------------------------
   Buttons
-------------------------------- */

.button {
    border: 1px solid transparent;
    border-radius: 11px;
    min-height: 46px;
    padding: 0 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-weight: 700;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

.button-primary {
    background: var(--primary);
    color: #fff;
}

.button-primary:hover {
    background: var(--primary-dark);
}

.button-secondary {
    background: #fff;
    color: var(--text);
    border-color: var(--border);
}

.button-secondary:hover {
    background: var(--surface-soft);
}

.button-small {
    min-height: 38px;
    padding: 0 13px;
    font-size: 0.9rem;
}

.button-full {
    width: 100%;
}

/* --------------------------------
   Hero
-------------------------------- */

.hero {
    padding: 76px 0 92px;
    background:
        radial-gradient(
            circle at top right,
            rgba(36, 87, 245, 0.08),
            transparent 40%
        ),
        var(--surface);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    align-items: center;
    gap: 70px;
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 13px;
}

.hero h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(2.7rem, 6vw, 5.5rem);
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.hero h1 span {
    display: block;
    color: var(--primary);
}

.hero-content > p {
    max-width: 690px;
    margin: 25px 0 0;
    font-size: 1.15rem;
    color: var(--text-soft);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.privacy-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    color: var(--text-soft);
    font-size: 0.88rem;
}

.privacy-icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--success-bg);
    color: var(--success);
    font-size: 0.8rem;
    font-weight: 800;
}

.hero-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 31px;
    box-shadow: var(--shadow);
}

.hero-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mini-label {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #2fb36c;
}

.hero-card-icon {
    font-size: 3rem;
    margin: 42px 0 20px;
}

.hero-card h2 {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.hero-card p {
    margin: 13px 0 24px;
    color: var(--text-soft);
}

.text-link {
    color: var(--primary);
    font-weight: 750;
}

/* --------------------------------
   Sections
-------------------------------- */

.info-section {
    padding: 90px 0;
    background: var(--bg);
}

.section-heading {
    margin-bottom: 35px;
}

.section-heading.centered {
    text-align: center;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-card {
    display: flex;
    gap: 18px;
    padding: 26px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.feature-number {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 850;
    padding-top: 3px;
}

.feature-card h3 {
    margin: 0;
    font-size: 1.05rem;
}

.feature-card p {
    margin: 6px 0 0;
    color: var(--text-soft);
    font-size: 0.92rem;
}

/* --------------------------------
   Page Header
-------------------------------- */

.page-header {
    padding: 64px 0 55px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.page-header.compact {
    padding-bottom: 45px;
}

.page-header h1 {
    margin: 0;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.page-header p {
    margin: 17px 0 0;
    max-width: 650px;
    color: var(--text-soft);
    font-size: 1.08rem;
}

/* --------------------------------
   Content
-------------------------------- */

.content-section {
    padding: 45px 0 80px;
}

/* --------------------------------
   Forms
-------------------------------- */

.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 34px;
    box-shadow: var(--shadow-sm);
}

.form-header {
    display: flex;
    gap: 16px;
    align-items: center;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
}

.form-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: var(--primary-soft);
    border-radius: 13px;
    font-size: 1.35rem;
}

.form-header h2 {
    margin: 0;
    font-size: 1.45rem;
}

.form-header p {
    margin: 2px 0 0;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

.optional {
    color: var(--text-muted);
    font-size: 0.83rem;
    font-weight: 500;
    margin-left: 6px;
}

.input,
.select,
.textarea {
    width: 100%;
    border: 1px solid #d6dce6;
    background: #fff;
    color: var(--text);
    border-radius: 11px;
    padding: 12px 14px;
    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.input,
.select {
    min-height: 46px;
}

.textarea {
    min-height: 140px;
    resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(36, 87, 245, 0.10);
}

.select-full {
    display: block;
}

.field-meta {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: var(--text-muted);
    margin-top: 6px;
    font-size: 0.76rem;
}

.privacy-box {
    display: flex;
    gap: 13px;
    padding: 16px;
    margin: 8px 0 20px;
    border: 1px solid #dce8ff;
    background: #f5f8ff;
    border-radius: 13px;
}

.privacy-box-icon {
    font-size: 1.15rem;
}

.privacy-box strong {
    font-size: 0.9rem;
}

.privacy-box p {
    margin: 2px 0 0;
    color: var(--text-soft);
    font-size: 0.82rem;
}

.form-footnote {
    text-align: center;
    margin: 12px 0 0;
    color: var(--text-muted);
    font-size: 0.79rem;
}

.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --------------------------------
   Search toolbar
-------------------------------- */

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 26px;
}

.search-wrapper {
    flex: 1;
    min-width: 0;
}

.toolbar-group {
    display: flex;
    gap: 10px;
}

.toolbar-group .select {
    width: auto;
    min-width: 175px;
}

/* --------------------------------
   Suggestion Cards
-------------------------------- */

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.suggestion-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.suggestion-card-top {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 15px;
}

.suggestion-card h2 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;

    padding: 5px 9px;
    border-radius: 999px;

    background: var(--primary-soft);
    color: var(--primary);

    font-size: 0.73rem;
    font-weight: 750;
}

.suggestion-note {
    margin: 17px 0;
    color: var(--text-soft);
    min-height: 52px;
}

.suggestion-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: auto;
    padding-top: 17px;
    border-top: 1px solid var(--border);
}

.vote-count {
    color: var(--text-soft);
    font-size: 0.88rem;
    font-weight: 700;
}

.vote-button {
    min-height: 39px;
    padding: 0 13px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 10px;
    font-weight: 750;
}

.vote-button:hover {
    background: var(--primary-soft);
    color: var(--primary);
    border-color: #cad7ff;
}

.vote-button.voted {
    background: var(--success-bg);
    color: var(--success);
    border-color: #bde6d0;
}

.vote-button:disabled {
    cursor: default;
}

/* --------------------------------
   Messages
-------------------------------- */

.message-box {
    display: flex;
    flex-direction: column;
    gap: 2px;

    padding: 14px 16px;
    border-radius: 12px;

    font-size: 0.9rem;
    margin-bottom: 20px;
}

.message-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid #bfe7d2;
}

.message-error {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid #f0c3c3;
}

.empty-state {
    text-align: center;
    padding: 70px 25px;
    border: 1px dashed #ccd3df;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.6);
}

.empty-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.empty-state h2 {
    margin: 0;
}

.empty-state p {
    color: var(--text-soft);
    margin-bottom: 0;
}

.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 220px;
    color: var(--text-soft);
}

.spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #d9dfea;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --------------------------------
   Auth
-------------------------------- */

.admin-background {
    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(36, 87, 245, 0.10),
            transparent 45%
        ),
        var(--bg);
}

.auth-page {
    min-height: calc(100vh - 73px);
    display: grid;
    place-items: center;
    padding: 50px 20px;
}

.auth-card {
    width: min(100%, 450px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow);
}

.auth-logo {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;

    margin-bottom: 22px;

    border-radius: 16px;
    background: var(--primary-soft);
    font-size: 1.5rem;
}

.auth-card h1 {
    margin: 0;
    font-size: 2.15rem;
    letter-spacing: -0.04em;
}

.auth-description {
    margin: 10px 0 28px;
    color: var(--text-soft);
}

.auth-footer {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-soft);
}

.auth-footer a:hover {
    color: var(--primary);
}

/* --------------------------------
   Dashboard
-------------------------------- */

.dashboard-background {
    background: #f3f5f9;
}

.dashboard-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.dashboard-header-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.dashboard-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-email {
    color: var(--text-soft);
    font-size: 0.85rem;
}

.dashboard-main {
    min-height: calc(100vh - 68px);
}

.dashboard-top {
    padding: 45px 0 20px;
}

.dashboard-title-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 25px;
}

.dashboard-title-row h1 {
    margin: 0;
    font-size: 3rem;
    line-height: 1;
    letter-spacing: -0.055em;
}

.dashboard-title-row p {
    margin: 12px 0 0;
    color: var(--text-soft);
}

.dashboard-section {
    padding: 22px 0 70px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.stat-card {
    padding: 21px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.stat-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.stat-card strong {
    display: block;
    margin-top: 4px;
    font-size: 2rem;
    letter-spacing: -0.04em;
}

.admin-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.panel-header {
    padding: 25px;
}

.panel-header h2 {
    margin: 0;
    font-size: 1.35rem;
}

.panel-header p {
    margin: 4px 0 0;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.admin-toolbar {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 10px;

    padding: 0 25px 22px;
    border-bottom: 1px solid var(--border);
}

.admin-suggestions-list {
    display: flex;
    flex-direction: column;
}

.admin-suggestion {
    padding: 22px 25px;
    border-bottom: 1px solid var(--border);

    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
}

.admin-suggestion:last-child {
    border-bottom: none;
}

.admin-suggestion-main {
    min-width: 0;
}

.admin-suggestion-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-suggestion h3 {
    margin: 0;
    font-size: 1.08rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;

    padding: 5px 9px;
    border-radius: 999px;

    font-size: 0.72rem;
    font-weight: 800;
}

.status-neu {
    background: #eef2f8;
    color: #59677a;
}

.status-in-pruefung {
    background: var(--warning-bg);
    color: var(--warning);
}

.status-freigegeben {
    background: var(--success-bg);
    color: var(--success);
}

.status-abgelehnt {
    background: var(--danger-bg);
    color: var(--danger);
}

.admin-suggestion-note {
    margin: 8px 0;
    color: var(--text-soft);
    max-width: 750px;
}

.admin-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-button {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    border-radius: 9px;

    min-width: 38px;
    height: 38px;

    display: grid;
    place-items: center;
    font-size: 1rem;
}

.icon-button:hover {
    background: var(--surface-soft);
}

.icon-button.danger:hover {
    color: var(--danger);
    background: var(--danger-bg);
}

/* --------------------------------
   Modal
-------------------------------- */

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 20px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(14, 20, 32, 0.48);
}

.modal-card {
    position: relative;
    width: min(100%, 650px);
    max-height: calc(100vh - 40px);
    overflow: auto;

    background: var(--surface);
    border-radius: 20px;
    padding: 28px;

    box-shadow: 0 25px 70px rgba(0,0,0,0.18);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 20px;
    margin-bottom: 25px;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.55rem;
    letter-spacing: -0.03em;
}

.modal-close {
    border: none;
    background: transparent;
    color: var(--text-soft);
    font-size: 1.7rem;
    line-height: 1;
    padding: 2px 7px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
}

/* --------------------------------
   Footer
-------------------------------- */

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.footer-inner {
    min-height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--text-soft);
    font-size: 0.86rem;
}

.footer-links {
    display: flex;
    gap: 18px;
}

.footer-links a:hover {
    color: var(--primary);
}

/* --------------------------------
   Helpers
-------------------------------- */

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------
   Responsive
-------------------------------- */

@media (max-width: 900px) {

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-card {
        max-width: 650px;
    }

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

    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .toolbar-group .select {
        width: 100%;
    }

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-title-row {
        align-items: start;
        flex-direction: column;
    }
}

@media (max-width: 650px) {

    .container {
        width: min(calc(100% - 28px), var(--max-width));
    }

    .header-inner {
        min-height: 64px;
    }

    .main-nav > a:not(.nav-button) {
        display: none;
    }

    .nav-button {
        padding: 9px 11px;
        font-size: 0.84rem;
    }

    .hero {
        padding: 55px 0 65px;
    }

    .hero h1 {
        font-size: clamp(2.45rem, 13vw, 4rem);
    }

    .hero-content > p {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-card {
        padding: 24px;
    }

    .page-header {
        padding: 48px 0 40px;
    }

    .content-section {
        padding-top: 28px;
    }

    .form-card {
        padding: 23px 18px;
    }

    .toolbar-group {
        grid-template-columns: 1fr;
    }

    .suggestion-card-top {
        flex-direction: column;
    }

    .suggestion-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .vote-button {
        width: 100%;
    }

    .auth-card {
        padding: 26px 20px;
    }

    .dashboard-header-inner {
        align-items: flex-start;
        padding: 13px 0;
        flex-direction: column;
    }

    .dashboard-user {
        width: 100%;
        justify-content: space-between;
    }

    .dashboard-title-row h1 {
        font-size: 2.5rem;
    }

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

    .stat-card strong {
        font-size: 1.65rem;
    }

    .admin-toolbar {
        grid-template-columns: 1fr;
        padding-left: 18px;
        padding-right: 18px;
    }

    .panel-header {
        padding: 20px 18px;
    }

    .admin-suggestion {
        grid-template-columns: 1fr;
        padding: 20px 18px;
    }

    .admin-actions {
        justify-content: flex-start;
    }

    .modal-card {
        padding: 22px 18px;
    }

    .modal-actions {
        flex-direction: column-reverse;
    }

    .modal-actions .button {
        width: 100%;
    }

    .footer-inner {
        padding: 18px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
    }
}