/* dc Klickdummy-Hosting — Branding nach dc Design System (Barlow, Lime, Nightblue) */

@font-face {
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/barlow-400-latin.woff2') format('woff2');
}
@font-face {
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/assets/fonts/barlow-500-latin.woff2') format('woff2');
}
@font-face {
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/assets/fonts/barlow-600-latin.woff2') format('woff2');
}

:root {
    --lime: #bccf00;
    --lime-dark: #a4b400;
    --lime-ultralight: #f3f8d8;
    --nightblue: #00121e;
    --gray-50: #f4f4f4;
    --gray-200: #dfdfdf;
    --gray-400: #979797;
    --gray-500: #757575;
    --red: #dc2626;
    --radius: 12px;
    --radius-sm: 6px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Barlow', system-ui, -apple-system, sans-serif;
    color: var(--nightblue);
    background: #fff;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3 { font-weight: 600; line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .75rem; }

.muted { color: var(--gray-500); font-size: .9rem; }
.eyebrow {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .72rem;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: .25rem;
}
.fineprint { font-size: .78rem; color: var(--gray-400); margin: 1rem 0 0; }

/* Header */
.site-header {
    background: var(--nightblue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .65rem 1.25rem;
    gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: #fff; }
.brand img { display: block; border-radius: 8px; background: #fff; }
.brand-text { font-weight: 600; font-size: 1rem; }

/* Layout */
.shell { width: 100%; max-width: 1080px; margin: 0 auto; padding: 1.75rem 1.25rem 3rem; flex: 1; }
.shell.narrow { max-width: 620px; }

.card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    background: #fff;
}
.hero { border-top: 4px solid var(--lime); }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.field { display: flex; flex-direction: column; gap: .3rem; }
.field-wide { grid-column: 1 / -1; }
label { font-size: .85rem; font-weight: 500; }
input[type=text], input[type=password], input[type=file] {
    font: inherit;
    padding: .55rem .7rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: #fff;
    color: inherit;
    width: 100%;
}
input[type=text]:focus, input[type=password]:focus {
    outline: 2px solid var(--lime);
    outline-offset: 1px;
    border-color: var(--lime);
}

.btn {
    font: inherit;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: .55rem 1.1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    background: var(--gray-50);
    color: var(--nightblue);
}
.btn-primary { background: var(--lime); color: var(--nightblue); }
.btn-primary:hover { background: var(--lime-dark); }
.btn-ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn-danger { background: transparent; border-color: var(--red); color: var(--red); margin-top: .6rem; }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-block { width: 100%; margin-top: .4rem; }

/* Alerts */
.alert { border-radius: var(--radius-sm); padding: .6rem .8rem; margin-bottom: .9rem; font-size: .9rem; }
.alert-ok { background: var(--lime-ultralight); border: 1px solid var(--lime); }
.alert-error { background: #fdecec; border: 1px solid var(--red); color: #7f1d1d; }

/* Listing */
.count {
    font-size: .8rem;
    background: var(--lime-ultralight);
    border-radius: 999px;
    padding: .1rem .55rem;
    vertical-align: middle;
}
.item { border-top: 1px solid var(--gray-200); padding: 1rem 0; }
.item:last-child { padding-bottom: 0; }
.item-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.item h3 { margin-bottom: .15rem; }
.note { font-size: .88rem; background: var(--gray-50); border-radius: var(--radius-sm); padding: .35rem .6rem; display: inline-block; }
.linkbox { margin: .5rem 0; }
.linkbox input { font-size: .85rem; background: var(--gray-50); font-variant-numeric: tabular-nums; }
details summary { cursor: pointer; font-size: .88rem; font-weight: 500; margin: .4rem 0; }
details[open] summary { margin-bottom: .8rem; }

/* Password gate */
.gate-page { background: var(--gray-50); }
.gate { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; }
.gate-card { width: 100%; max-width: 380px; margin: 0; box-shadow: 0 10px 30px rgba(0, 18, 30, .08); }
.gate-card label { margin-top: .5rem; display: block; }
.gate-logo { display: block; margin-bottom: .9rem; }

/* Footer */
.site-footer {
    border-top: 1px solid var(--gray-200);
    padding: .9rem 1.25rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: .8rem;
    color: var(--gray-500);
}

@media (max-width: 640px) {
    .form-grid { grid-template-columns: 1fr; }
    .item-head { flex-direction: column; }
}
