:root {
    --bg: #0d1321;
    --panel: #121a2d;
    --panel-2: #17223a;
    --text: #eef3ff;
    --muted: #9fb0d0;
    --accent: #59d6a3;
    --accent-dark: #35b481;
    --danger: #ff6b6b;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(89, 214, 163, 0.16), transparent 32rem),
        radial-gradient(circle at top right, rgba(105, 146, 255, 0.16), transparent 28rem),
        var(--bg);
    min-height: 100vh;
}

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

code {
    display: inline-block;
    max-width: 100%;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 0.55rem;
    background: rgba(0, 0, 0, 0.22);
    color: #d6ffe9;
    overflow-wrap: anywhere;
}

.topbar {
    width: min(1180px, calc(100% - 2rem));
    margin: 1rem auto 0;
    padding: 0.9rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border);
    background: rgba(18, 26, 45, 0.82);
    backdrop-filter: blur(14px);
    border-radius: 1.2rem;
    box-shadow: var(--shadow);
}

.brand {
    font-weight: 800;
    letter-spacing: 0.02em;
    font-size: 1.15rem;
}

nav {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
}

nav a {
    color: var(--muted);
    font-weight: 700;
}

nav a:hover {
    color: var(--text);
}

.container {
    width: min(1180px, calc(100% - 2rem));
    margin: 2rem auto;
}

.hero {
    min-height: 470px;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 2rem;
    align-items: center;
}

.eyebrow {
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5.8rem);
    line-height: 0.95;
    margin: 0 0 1rem;
}

h2 {
    margin: 0 0 0.8rem;
}

.lead {
    max-width: 720px;
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1.7;
}

.hero-card,
.card,
.auth-box {
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(23, 34, 58, 0.94), rgba(18, 26, 45, 0.94));
    border-radius: 1.4rem;
    padding: 1.35rem;
    box-shadow: var(--shadow);
}

.hero-card {
    transform: rotate(1deg);
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.grid.two {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 1rem;
}

.card p,
.hero-card p,
.auth-box p,
.page-head p {
    color: var(--muted);
    line-height: 1.6;
}

.actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1.2rem;
}

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

.button {
    border: 0;
    border-radius: 0.9rem;
    padding: 0.85rem 1.1rem;
    color: #08120f;
    background: var(--accent);
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.button.ghost {
    color: var(--text);
    background: transparent;
    border: 1px solid var(--border);
}

.button.small {
    padding: 0.55rem 0.8rem;
    border-radius: 0.7rem;
}

.button.full {
    width: 100%;
}

.auth-page {
    display: grid;
    place-items: center;
    padding: 1rem;
}

.auth-box {
    width: min(420px, 100%);
}

.auth-box h1 {
    font-size: 2rem;
    line-height: 1.1;
}

.form {
    display: grid;
    gap: 1rem;
}

.form label {
    display: grid;
    gap: 0.4rem;
    color: var(--muted);
    font-weight: 700;
}

input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 0.8rem;
    padding: 0.85rem 0.9rem;
    background: rgba(0, 0, 0, 0.25);
    color: var(--text);
    outline: none;
}

input:focus {
    border-color: rgba(89, 214, 163, 0.7);
}

.alert {
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}

.alert.error {
    background: rgba(255, 107, 107, 0.15);
    color: #ffd0d0;
}

.alert.success {
    background: rgba(89, 214, 163, 0.15);
    color: #d9ffef;
}

.muted {
    color: var(--muted);
}

.page-head {
    margin: 2rem 0;
}

.page-head h1 {
    font-size: clamp(2rem, 5vw, 4rem);
}

.profile-list {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 0.8rem;
}

.profile-list dt {
    color: var(--muted);
    font-weight: 800;
}

.profile-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.copy-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.7rem;
}

.copy-row input {
    flex: 1;
}

.section-title {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
}

.inline-form {
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
    margin: 1rem 0;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

th,
td {
    padding: 0.85rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 0.88rem;
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
}

.badge.ok {
    background: rgba(89, 214, 163, 0.16);
    color: #a7ffd7;
}

.badge.off {
    background: rgba(255, 107, 107, 0.16);
    color: #ffc4c4;
}

.mini-form {
    margin: 0;
}

.link-danger,
.link-good {
    background: none;
    border: 0;
    padding: 0;
    font-weight: 800;
    cursor: pointer;
}

.link-danger {
    color: var(--danger);
}

.link-good {
    color: var(--accent);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat {
    border: 1px solid var(--border);
    background: rgba(23, 34, 58, 0.9);
    border-radius: 1.2rem;
    padding: 1.2rem;
    box-shadow: var(--shadow);
}

.stat span {
    display: block;
    font-size: 2rem;
    font-weight: 900;
}

.stat small {
    color: var(--muted);
}

.footer {
    width: min(1180px, calc(100% - 2rem));
    margin: 3rem auto 1rem;
    color: var(--muted);
    text-align: center;
}

@media (max-width: 850px) {
    .hero,
    .grid.two,
    .grid,
    .stats {
        grid-template-columns: 1fr;
    }

    .inline-form {
        grid-template-columns: 1fr;
    }

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

    .profile-list {
        grid-template-columns: 1fr;
    }

    .copy-row {
        flex-direction: column;
    }
}


/* Datenschutz-Hinweis für gekürzte Zahlungsdaten */
.table-wrap code {
    white-space: nowrap;
}


.checkout-container {
    max-width: 900px;
}

.checkout-card h1 {
    font-size: clamp(2rem, 5vw, 4rem);
}

.small-lead {
    font-size: 1rem;
}

.checkout-summary {
    display: grid;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.checkout-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
}

.checkout-summary span {
    color: var(--muted);
    font-weight: 700;
}

.checkout-total strong {
    font-size: 1.35rem;
    color: var(--accent);
}

.checkout-card form {
    margin: 0;
}

@media (max-width: 700px) {
    .checkout-summary > div {
        flex-direction: column;
    }
}


.split-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.steps {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
    color: var(--muted);
    line-height: 1.7;
}

.steps li {
    margin-bottom: 0.4rem;
}

.info-band {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    gap: 1.2rem;
    align-items: center;
}

.info-band p {
    max-width: 760px;
}

@media (max-width: 850px) {
    .split-section,
    .info-band {
        grid-template-columns: 1fr;
        display: grid;
    }
}

/* BezahlFreund Logo-Einbindung im API-Kundenbereich */
.logo-download-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.logo-card {
    border: 1px solid var(--border);
    border-radius: 1.2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.14);
}

.logo-card h3 {
    margin: 0.9rem 0 0.7rem;
    font-size: 1rem;
}

.logo-preview-box {
    min-height: 120px;
    border-radius: 1rem;
    display: grid;
    place-items: center;
    padding: 1rem;
    overflow: hidden;
    border: 1px solid var(--border);
}

.logo-preview-white {
    background: #ffffff;
}

.logo-preview-black {
    background: #05070c;
}

.logo-preview-transparent {
    background:
        linear-gradient(45deg, rgba(255,255,255,0.08) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.08) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.08) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.08) 75%);
    background-size: 24px 24px;
    background-position: 0 0, 0 12px, 12px -12px, -12px 0;
    background-color: rgba(255,255,255,0.04);
}

.bf-logo-preview {
    display: block;
    width: auto;
    object-fit: contain;
}

.bf-logo-preview.logo-wide {
    max-width: 220px;
    max-height: 70px;
}

.bf-logo-preview.logo-square {
    max-width: 96px;
    max-height: 96px;
}

.logo-card .copy-row {
    margin-top: 0.6rem;
}

.logo-card .copy-row input {
    font-size: 0.82rem;
}

.logo-card .actions {
    margin-top: 0.8rem;
}

@media (max-width: 1100px) {
    .logo-download-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .logo-download-grid {
        grid-template-columns: 1fr;
    }

    .bf-logo-preview.logo-wide {
        max-width: 260px;
        max-height: 80px;
    }

    .bf-logo-preview.logo-square {
        max-width: 110px;
        max-height: 110px;
    }
}


/* BezahlFreund Support-System */
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 0.8rem;
    padding: 0.85rem 0.9rem;
    background: rgba(0, 0, 0, 0.25);
    color: var(--text);
    outline: none;
    font-family: inherit;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

select:focus,
textarea:focus {
    border-color: rgba(89, 214, 163, 0.7);
}

.badge.info {
    background: rgba(105, 146, 255, 0.16);
    color: #cdd9ff;
}

.badge.warn {
    background: rgba(255, 199, 95, 0.16);
    color: #ffe3a3;
}

.support-tips h3 {
    margin: 1rem 0 0.25rem;
    color: var(--text);
}

.support-tips p {
    margin: 0;
}

.support-thread {
    display: grid;
    gap: 1rem;
    margin: 1rem 0;
}

.support-message {
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.16);
}

.support-message-admin {
    border-color: rgba(89, 214, 163, 0.35);
    background: rgba(89, 214, 163, 0.08);
}

.support-message-user {
    border-color: rgba(105, 146, 255, 0.25);
    background: rgba(105, 146, 255, 0.08);
}

.support-message-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}

.support-message-head strong {
    color: var(--text);
}

.support-message p {
    margin: 0;
    line-height: 1.6;
}

.support-reply-form {
    margin-top: 1rem;
}

small {
    color: var(--muted);
}


/* API-Endpunkt-Übersicht im Dashboard */
.api-endpoint-list {
    display: grid;
    gap: 0.9rem;
    margin-top: 0.9rem;
}

.api-endpoint-list > div {
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    padding: 0.85rem;
    background: rgba(0, 0, 0, 0.12);
}

.api-endpoint-list strong {
    display: block;
    margin-bottom: 0.45rem;
}

.api-endpoint-list .copy-row {
    margin-top: 0;
}

.api-endpoint-list input {
    font-size: 0.82rem;
}


/* Live-Startseite */
.topbar-logo {
    display: block;
    max-width: 190px;
    max-height: 54px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.live-hero h1 {
    font-size: clamp(2.6rem, 7vw, 5.4rem);
}

.trust-card {
    transform: none;
}

.hero-logo-wrap {
    display: grid;
    place-items: center;
    min-height: 110px;
    margin-bottom: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    padding: 1rem;
}

.hero-logo {
    display: block;
    max-width: 260px;
    max-height: 85px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.trust-list {
    display: grid;
    gap: 0.7rem;
    margin-top: 1rem;
}

.trust-list div {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--muted);
}

.trust-list strong {
    color: var(--accent);
    font-size: 1.15rem;
}

.feature-grid-live {
    margin-top: 1rem;
}

.live-info-band {
    margin-top: 1rem;
}

.dashboard-entry-card .button {
    margin-top: 0.8rem;
}

@media (max-width: 850px) {
    .topbar-logo {
        max-width: 170px;
        max-height: 48px;
    }

    .hero-logo {
        max-width: 240px;
        max-height: 80px;
    }
}


/* API-Key Payout-Sicherheit */
.payout-settings-form {
    min-width: 230px;
    display: grid;
    gap: 0.55rem;
}

.payout-settings-form label {
    display: grid;
    gap: 0.25rem;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.payout-settings-form input[type="number"] {
    padding: 0.55rem 0.65rem;
    border-radius: 0.65rem;
}

.checkbox-row {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 0.45rem !important;
    color: var(--text) !important;
}

.checkbox-row input[type="checkbox"] {
    width: auto;
}

.payout-settings-form small {
    color: var(--muted);
    line-height: 1.4;
}

.table-wrap table {
    min-width: 980px;
}


/* Security Upgrade 2 */
.badge.info {
    background: rgba(105, 146, 255, 0.16);
    color: #cdd9ff;
}

.admin-risk-note {
    color: var(--muted);
    font-size: 0.9rem;
}

.table-wrap small {
    color: var(--muted);
    line-height: 1.35;
    display: inline-block;
    max-width: 320px;
}
