/* ============================================================
   Anlagensteckbrief.de – Globales Stylesheet
   CI: #000033 (Navy), #FF9933 (Gold), Schrift: IBM Plex Sans
   ============================================================ */

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

html, body {
    height: 100%;
}

body {
    font-family: 'IBM Plex Sans', Arial, sans-serif;
    font-size: 14px;
    color: #000033;
    background: #f4f4f8;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: #ffffff;
    text-decoration: underline;
}

a:hover {
    color: #FF9933;
    opacity: 1;
}

/* ── Header ──────────────────────────────────────────────── */
.site-header {
    background: #000033;
    padding: 10px 24px;
}

.header-inner {
    max-width: 960px;
    margin: 0 auto;
}

.header-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.header-logo {
    height: 48px;
    width: auto;
    background: #e8e8f0;
    border: 1.5px solid #FF9933;
    border-radius: 4px;
    padding: 3px;
}

.header-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.content-box a {
    color: #000033;
    text-decoration: underline;
}

.content-box a:hover {
    color: #FF9933;
    opacity: 1;
}
.site-main {
    flex: 1;
    padding: 32px 24px;
}

.content-box {
    max-width: 960px;
    margin: 0 auto;
    background: #ffffff;
    border: 0.5px solid #ccccdd;
    padding: 32px;
    line-height: 1.7;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 8px 20px;
    font-family: 'IBM Plex Sans', Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    background: #ffffff;
    color: #000033;
    border: 1px solid #000033;
    transition: background 0.15s, color 0.15s;
}

.btn:hover {
    background: #000033;
    color: #FF9933;
    opacity: 1;
    text-decoration: none;
}

.btn-primary {
    background: #ffffff;
    color: #000033;
    border-color: #000033;
}

.btn-outline {
    background: #ffffff;
    color: #000033;
    border-color: #000033;
}

/* ── Tabellen (global) ───────────────────────────────────── */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

th {
    background: #000033;
    color: #ffffff;
    font-weight: 500;
    padding: 6px 10px;
    text-align: left;
    font-size: 12px;
}

td {
    padding: 5px 10px;
    border-bottom: 0.5px solid #ccccdd;
    vertical-align: middle;
}

tr:nth-child(even) td {
    background: #f8f8fc;
}

/* ── Aktions-Icons ───────────────────────────────────────── */
.actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.btn-icon {
    background: none;
    border: 0.5px solid #ccccdd;
    border-radius: 3px;
    padding: 3px 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.btn-icon:hover {
    background: #f0f0f8;
}

.btn-icon svg {
    width: 14px;
    height: 14px;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn-icon-view svg  { stroke: #185fa5; }
.btn-icon-edit svg  { stroke: #000033; }
.btn-icon-delete svg { stroke: #a32d2d; }

/* ── Formulare ───────────────────────────────────────────── */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #000033;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 7px 10px;
    font-family: 'IBM Plex Sans', Arial, sans-serif;
    font-size: 13px;
    border: 0.5px solid #aaaacc;
    border-radius: 3px;
    color: #000033;
    background: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000033;
}

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
    padding: 10px 14px;
    border-radius: 3px;
    font-size: 13px;
    margin-bottom: 16px;
    border: 0.5px solid transparent;
}

.alert-success { background: #eaf3de; border-color: #639922; color: #3b6d11; }
.alert-danger   { background: #fcebeb; border-color: #e24b4a; color: #a32d2d; }
.alert-info     { background: #e6f1fb; border-color: #378add; color: #185fa5; }
.alert-warning  { background: #faeeda; border-color: #ba7517; color: #854f0b; }

/* ── Seitentitel ─────────────────────────────────────────── */
.page-title {
    font-size: 16px;
    font-weight: 500;
    color: #000033;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 0.5px solid #ccccdd;
}

/* ── Formular-Sektionen ──────────────────────────────────── */
.form-section {
    margin-bottom: 24px;
}

.form-section-title {
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
    background: #000033;
    padding: 4px 10px;
    margin-bottom: 14px;
    display: inline-block;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

.form-group--small {
    max-width: 120px;
}

.optional {
    font-weight: 400;
    color: #888899;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 0.5px solid #ccccdd;
}

/* ── Block Subtitle ──────────────────────────────────────── */
.block-subtitle {
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
    background: #000033;
    padding: 4px 10px;
    margin: 20px 0 12px;
    display: inline-block;
}

/* ── Expert Block ────────────────────────────────────────── */
.expert-block {
    border: 0.5px solid #ccccdd;
    padding: 16px;
    margin-bottom: 12px;
    background: #f8f8fc;
}

/* ── Wizard Fortschritt ──────────────────────────────────── */
.wizard-progress {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    align-items: center;
}

.wizard-step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #000033;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    color: #000033;
    background: #ffffff;
    text-decoration: none;
}

.wizard-step.active {
    background: #000033;
    color: #ffffff;
}

.wizard-step.done {
    background: #000033;
    color: #FF9933;
    cursor: pointer;
}

.wizard-step.done:hover {
    background: #FF9933;
    color: #000033;
    border-color: #FF9933;
}

.wizard-progress {
    position: relative;
}

.wizard-step {
    position: relative;
}

.wizard-step[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 38px;
    left: 50%;
    transform: translateX(-50%);
    background: #000033;
    color: #ffffff;
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 3px;
    z-index: 100;
    pointer-events: none;
}

.wizard-step[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    top: 34px;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-bottom-color: #000033;
    z-index: 100;
    pointer-events: none;
}

/* ── Dashboard ───────────────────────────────────────────── */
.dashboard-welcome {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 0.5px solid #ccccdd;
}

.dashboard-name {
    font-size: 15px;
    font-weight: 500;
    color: #000033;
}

.dashboard-email {
    font-size: 12px;
    color: #888899;
}

.dashboard-summary {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.summary-box {
    background: #f8f8fc;
    border: 0.5px solid #ccccdd;
    padding: 12px 20px;
    flex: 1;
}

.summary-num {
    font-size: 22px;
    font-weight: 500;
    color: #000033;
}

.summary-lbl {
    font-size: 11px;
    color: #888899;
    margin-top: 2px;
}

.dashboard-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-title {
    font-size: 13px;
    font-weight: 500;
    color: #000033;
}

.btn-danger {
    background: #ffffff;
    color: #a32d2d;
    border-color: #a32d2d;
}

.btn-danger:hover {
    background: #a32d2d;
    color: #ffffff;
    opacity: 1;
}

/* ── Paginierung ─────────────────────────────────────────── */
.pagination {
    display: flex;
    gap: 6px;
    margin-top: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-page-active {
    background: #000033;
    color: #ffffff;
    border-color: #000033;
}

.btn-page-active:hover {
    background: #000033;
    color: #FF9933;
    opacity: 1;
}

/* ── Feldfehlermeldungen ─────────────────────────────────── */
.field-error {
    display: block;
    font-size: 11px;
    color: #a32d2d;
    margin-top: 3px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ── Info-Seite ──────────────────────────────────────────── */
.info-list {
    margin: 10px 0 0 20px;
    line-height: 1.9;
    font-size: 13px;
    list-style: disc;
}

.info-list li {
    display: list-item;
    padding-left: 4px;
}

.info-list.ampel-list {
    list-style: none;
    margin-left: 0;
}

.info-list.ampel-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}
    background: #f8f8fc;
    border-left: 3px solid #000033;
    padding: 16px 20px;
}

.ampel {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ampel-gruen { background: #3b6d11; }
.ampel-gelb  { background: #ba7517; }
.ampel-rot   { background: #a32d2d; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
    background: #000033;
    padding: 14px 24px;
    margin-top: auto;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
}

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

.footer-links a {
    color: #ffffff;
    font-size: 12px;
    text-decoration: none;
}

.footer-links a:hover {
    color: #FF9933;
    opacity: 1;
}

.footer-copy {
    color: #ffffff;
    font-size: 11px;
    margin-top: 10px;
}
