/* ============================================================================
   FAKTURA ASSISTENT STYLESHEET (Jost Font, Light & Modern Gray Design)
   ============================================================================ */

/* jost-300 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Jost';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/jost-v20-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* jost-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Jost';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/jost-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* jost-600 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Jost';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/jost-v20-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


body {
    font-family: "Jost", sans-serif;
    font-weight: 300; /* Jost Light als Standard */
    background-color: #f8fafc;
    color: #1e293b;
    margin: 0;
    padding: 30px 20px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 850px;
    margin: 0 auto;
    background: #ffffff;
    padding: 36px;
    border-radius: 12px;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
    border: 1px solid #e2e8f0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Jost", sans-serif;
    color: #0f172a;
    font-weight: 600; /* Hervorhebungen in Semibold */
    letter-spacing: -0.02em;
}

h1 {
    margin-top: 0;
    font-size: 26px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 16px;
}

.badge {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.badge-preview {
    background: #fef9c3;
    color: #854d0e;
}

.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Card Selection Step 1 */
.card-group {
    display: flex;
    gap: 16px;
    margin: 24px 0;
}

.card {
    flex: 1;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    border-color: #cbd5e1;
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.card h3 {
    margin-top: 0;
    color: #334155;
    font-size: 18px;
    font-weight: 600;
}

/* Form Layouts */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.grid-no-margin {
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    font-weight: 600; /* Hervorgehoben */
    margin-bottom: 6px;
    font-size: 13px;
    color: #475569;
}

input[type="text"],
input[type="date"],
input[type="number"],
select {
    width: 100%;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: "Jost", sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: #1e293b;
    transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
select:focus {
    background: #ffffff;
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.15);
    outline: none;
}

input[readonly] {
    background: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}

/* Tabellen */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

tr:last-child td {
    border-bottom: none;
}

th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600; /* Hervorgehoben */
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.text-right {
    text-align: right;
}

/* Positionen-Spaltenbreiten */
.col-desc { width: 50%; }
.col-qty { width: 20%; }
.col-price { width: 20%; }
.col-action { width: 10%; }

/* Buttons */
.btn {
    background: #475569;
    color: #ffffff;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-family: "Jost", sans-serif;
    font-size: 14px;
    font-weight: 600; /* Hervorgehoben */
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn:hover {
    background: #334155;
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border-color: #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.btn-success {
    background: #10b981;
    color: #ffffff;
}

.btn-success:hover {
    background: #059669;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
}

.btn-delete {
    color: #ef4444;
    background: none;
    border: none;
    cursor: pointer;
    font-family: "Jost", sans-serif;
    font-size: 13px;
    font-weight: 600; /* Hervorgehoben */
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.15s ease;
}

.btn-delete:hover {
    background: #fef2f2;
}

/* Angebots-Auswahl Step 2 */
.offer-list {
    margin-bottom: 25px;
}

.offer-item {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.offer-item:hover {
    background: #ffffff;
}

/* Summary Box Step 4 */
.summary-box {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-top: 24px;
    text-align: right;
}

.summary-total {
    font-size: 20px;
    font-weight: 600; /* Hervorgehoben */
    color: #0f172a;
}

.vat-note-box {
    margin-top: 8px;
    font-size: 12px;
    color: #64748b;
}

/* Ergänzung für Formular-Beschriftungen & Inputs */
.form-group label {
    display: block;
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    max-width: 400px;
}

#items-table input {
    width: 100%;
    box-sizing: border-box;
    font-family: "Jost", sans-serif;
    font-weight: 300;
}