/* TUBA DIESEL – Shared Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --black:      #111111;
    --gold:       #C4A44A;
    --gold-light: #F5EDD5;
    --grey:       #F2F0ED;
    --mid:        #666666;
    --white:      #ffffff;
    --red:        #cc3333;
    --green:      #2d7a3a;
    --radius:     8px;
    --shadow:     0 2px 12px rgba(0,0,0,.08);
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--black);
    background: var(--grey);
    min-height: 100vh;
    line-height: 1.6;
}

/* ── Header ── */
.site-header {
    background: var(--black);
    border-bottom: 3px solid var(--gold);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .logo img {
    height: 44px;
    width: auto;
    display: block;
}
.site-header .header-badge {
    font-size: 10px;
    font-weight: 600;
    color: var(--black);
    background: var(--gold);
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .08em;
    white-space: nowrap;
}

/* ── Layout ── */
.container {
    max-width: 780px;
    margin: 0 auto;
    padding: 20px 16px 60px;
}
.container.wide { max-width: 1100px; }

/* ── Card ── */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 16px;
}
.card-header {
    background: var(--black);
    color: var(--white);
    padding: 9px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    border-left: 4px solid var(--gold);
}
.card-body { padding: 16px; }

/* ── Form ── */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.form-grid .full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 5px; }
.field label {
    font-size: 11px;
    font-weight: 600;
    color: var(--mid);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.field input,
.field select,
.field textarea {
    border: 1.5px solid #ddd;
    border-radius: var(--radius);
    padding: 10px 12px;
    font-size: 16px;
    font-family: inherit;
    color: var(--black);
    background: var(--white);
    transition: border-color .15s;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 80px; }
.field .hint { font-size: 11px; color: var(--mid); line-height: 1.4; }

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: opacity .15s, transform .1s;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.btn:active { opacity: .8; transform: scale(.98); }
.btn-primary { background: var(--black); color: var(--white); }
.btn-gold    { background: var(--gold);  color: var(--black); }
.btn-outline { background: transparent; border: 2px solid var(--black); color: var(--black); }
.btn-sm      { padding: 8px 14px; font-size: 13px; }
.btn-full    { width: 100%; display: block; }

/* ── Alerts ── */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 16px;
}
.alert-success { background: #e6f4ea; color: var(--green); border-left: 4px solid var(--green); }
.alert-error   { background: #fde8e8; color: var(--red);   border-left: 4px solid var(--red); }
.alert-info    { background: var(--gold-light); color: #7a6020; border-left: 4px solid var(--gold); }

/* ── Gig Cards (Mobile) ── */
.gig-table { display: none; }

.gig-cards { display: flex; flex-direction: column; gap: 12px; padding: 12px; }
.gig-card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: var(--radius);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.gig-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.gig-card-name { font-weight: 700; font-size: 15px; }
.gig-card-meta { font-size: 13px; color: var(--mid); }
.gig-card-actions { display: flex; gap: 8px; align-items: center; margin-top: 4px; }

/* ── Status Badge ── */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
}
.badge-ausstehend { background: #fff3cd; color: #7a6020; }
.badge-bestaetigt { background: #e6f4ea; color: var(--green); }
.badge-archiviert { background: #eee;    color: var(--mid); }

/* ── Detail Grid ── */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.detail-item { display: flex; flex-direction: column; gap: 3px; }
.detail-item .dl { font-size: 11px; font-weight: 600; color: var(--mid); text-transform: uppercase; letter-spacing: .06em; }
.detail-item .dd { font-size: 15px; color: var(--black); }

/* ── Downloads ── */
.download-list { display: flex; flex-direction: column; gap: 10px; }
.download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: var(--grey);
    border-radius: var(--radius);
    border: 1px solid #e0ddd9;
}
.download-item .file-name { font-weight: 600; font-size: 14px; }
.download-item .file-desc { font-size: 12px; color: var(--mid); }

/* ── Login ── */
.login-wrap { max-width: 360px; margin: 60px auto; padding: 0 16px; }
.login-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 24px; }
.login-card h2 { font-size: 20px; margin-bottom: 6px; }
.login-card p  { color: var(--mid); font-size: 14px; margin-bottom: 22px; }

/* ── Neuer Gig Box ── */
.new-gig-box {
    background: var(--gold-light);
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
}
.new-gig-box > p { font-size: 13px; color: #7a6020; margin-bottom: 10px; font-weight: 600; }
.new-gig-form { display: flex; flex-direction: column; gap: 8px; }
.new-gig-form input {
    border: 1.5px solid var(--gold);
    border-radius: var(--radius);
    padding: 11px 12px;
    font-size: 16px;
    font-family: inherit;
    background: var(--white);
    width: 100%;
    -webkit-appearance: none;
}
.new-gig-form input:focus { outline: none; border-color: #a07c20; }

/* ── Link Box ── */
.link-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.link-box {
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: var(--radius);
    padding: 8px 12px;
    font-size: 12px;
    word-break: break-all;
    flex: 1;
    min-width: 0;
}
.copy-btn {
    cursor: pointer;
    font-size: 12px;
    background: var(--gold-light);
    border: 1px solid var(--gold);
    color: #7a6020;
    border-radius: 4px;
    padding: 8px 14px;
    white-space: nowrap;
    font-family: inherit;
    font-weight: 600;
    -webkit-tap-highlight-color: transparent;
}

/* ── Delete Button ── */
.btn-delete {
    background: transparent;
    border: none;
    color: #cc3333;
    font-size: 13px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 4px;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}
.btn-delete:hover, .btn-delete:active { background: #fde8e8; }

/* ── Topbar ── */
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.topbar h1 { font-size: 20px; }
.filter-tabs { display: flex; gap: 6px; }
.filter-tab {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: 2px solid var(--black);
    color: var(--black);
    transition: .15s;
    -webkit-tap-highlight-color: transparent;
}
.filter-tab.active, .filter-tab:hover { background: var(--black); color: var(--white); }

/* ── Submit sticky ── */
.submit-row {
    position: sticky;
    bottom: 0;
    background: var(--white);
    padding: 14px 16px;
    margin: 0 -16px -16px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

/* ── Success Hero ── */
.success-hero {
    text-align: center;
    padding: 40px 20px 32px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}
.success-icon { font-size: 52px; line-height: 1; margin-bottom: 16px; }
.success-hero h2 { font-size: 22px; margin-bottom: 8px; color: var(--green); }
.success-hero p { font-size: 14px; color: var(--mid); max-width: 400px; margin: 0 auto; }

/* ── Section 2col ── */
.section-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Footer ── */
.site-footer {
    background: var(--black);
    color: var(--mid);
    text-align: center;
    padding: 14px;
    font-size: 12px;
    margin-top: 40px;
}
.site-footer a { color: var(--gold); text-decoration: none; }

/* ── Desktop ── */
@media (min-width: 640px) {
    .site-header .logo img { height: 50px; }

    .gig-table {
        display: table;
        width: 100%;
        border-collapse: collapse;
    }
    .gig-table th {
        background: var(--black);
        color: var(--white);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: .08em;
        text-transform: uppercase;
        padding: 10px 14px;
        text-align: left;
    }
    .gig-table td {
        padding: 12px 14px;
        border-bottom: 1px solid #eee;
        font-size: 14px;
        vertical-align: middle;
    }
    .gig-table tr:last-child td { border-bottom: none; }
    .gig-table tr:hover td { background: var(--grey); }
    .gig-table .actions-cell { display: flex; gap: 6px; align-items: center; white-space: nowrap; }
    .gig-cards { display: none; }

    .new-gig-form { flex-direction: row; }
    .new-gig-form input { flex: 1; }

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

    .submit-row {
        position: static;
        padding: 16px 0 0;
        margin: 0;
        border-top: none;
        background: transparent;
    }

    .container { padding: 28px 20px 60px; }
}

/* ── Mobile ── */
@media (max-width: 639px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .full { grid-column: 1; }
    .detail-grid { grid-template-columns: 1fr; }
    .section-2col { grid-template-columns: 1fr; }
    .download-item { flex-direction: column; align-items: flex-start; gap: 8px; }
    .download-item .btn { width: 100%; text-align: center; }
}
