/* === Custom Fonts === */
@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Raleway';
    src: url('/fonts/Raleway-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Raleway';
    src: url('/fonts/Raleway-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}


/* Base */
* {
    box-sizing: border-box;
}

html,
body {
    font-family: 'Inter', 'Raleway', Calibri, Arial, Helvetica, Calibri;
    font-size: 14px;
    line-height: 1.4;
    color: #111827;
    background: #fff;
    justify-items: center;
    align-items: center;
}

.deckblatttitle {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    width: 100%;
    gap: 8px;
    font-family: 'Raleway', 'Inter', Calibri;
    margin-bottom: 12px;
}

.deckblattLogo {
    width: 180px;
    height: auto;
    object-fit: contain;
}

.deckblatttitle h1 {
    margin: 0;
    padding: 0;
    line-height: 1.2;
    color: #56238E;
}

.deckblatt-image-wrapper {
    height: 450px;
}

.deckblatt-image {
    max-width: 100%;
    height: 450px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 10px auto;
}

/* Page wrapper (centered) */
.page {
    max-width: 820px;
    margin: 24px auto;
    padding: 0 12px;
    font-family: 'Inter', 'Raleway', Calibri;
}

/* Data box */
.data-box {
    background: #e6e6e6;
    border: 1px solid #d0d5dd;
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    font-family: 'Inter', Calibri;
}

.data-box-label {
    color: #56238E;
    font-weight: bold;
    margin-bottom: 4px;
    display: block;
    text-decoration: underline;
    font-family: 'Raleway', Calibri;
}

.data-box-value {
    word-break: break-word;
    font-family: 'Inter', Calibri;
}

@media (max-width: 600px) {
    .data-box {
        grid-template-columns: 1fr;
    }
}

/* Header block */
.header {
    margin-top: 8px;
    background: #f3f0f9;
    padding: 0px 12px;
    font-family: 'Inter', Calibri;
}

.hline {
    display: grid;
    grid-template-columns: 1fr 150px;
    gap: 8px;
    padding: 2px 0px;
    font-family: 'Inter', Calibri;
}

    .hline .right {
        text-align: right;
        white-space: nowrap;
    }

/* Checklist */
.checklist {
    padding: 0px 12px;
    border-top: 1px solid #56238E;
    margin-bottom: 10px;
    font-family: 'Inter', Calibri;
}

    .checklist hr {
        width: 100%;
    }

.checklist-row {
    display: grid;
    grid-template-columns: 1fr 100px;
    align-items: center;
    gap: 8px;
    padding: 6px 0px;
    border-bottom: 1px solid #f3f0f9;
    font-family: 'Inter', Calibri;
}

    .checklist-row .answer {
        text-align: right;
        text-transform: lowercase;
        font-weight: normal;
    }

.facts {
    padding: 0px 12px;
    border-bottom: 1px solid #56238E;
    margin-top: -10px;
    font-family: 'Inter', Calibri;
}

    .facts .row {
        display: grid;
        grid-template-columns: 1fr max-content;
        align-items: baseline;
        gap: 0 16px;
        padding: 4px 0px;
        border-bottom: 1px solid #f3f0f9;
    }

    .facts .label,
    .facts .value {
        margin: 0;
        line-height: 1.35;
        text-align: left;
        font-family: 'Inter', Calibri;
    }

    .facts .value {
        justify-self: end;
        text-align: right;
        white-space: nowrap;
        hyphens: none;
        word-break: normal;
    }


/* Flow text */
.schadenhergangText {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    font-family: 'Raleway', 'Inter', Calibri;
    position: relative;
    margin: 0 8px 0 8px;
    white-space: pre-line;
}

.doc1 {
    word-wrap: break-word;
    font-family: 'Inter', Calibri;
    margin: 0px 8px 0px 8px;
}

.pageschadenhergangText-break {
    page-break-before: always;
    break-before: page;
}

.page-break {
    page-break-before: always;
    break-before: page;
}

.schadenfeststellungenText {
    width: 100%;
    margin-bottom: 30px;
    word-wrap: break-word;
    font-family: 'Inter', Calibri;
    margin: 0px 8px 0px 8px;
}

/* === Tabellenstil modern, klar & luftig === */
.bau-standalone {
    width: 100%;
    font-family: 'Inter', 'Raleway', Arial, Calibri;
    font-size: 14px;
    color: #111827;
    isolation: isolate;
    margin-top: 12px;
}

    .bau-standalone,
    .bau-standalone * {
        box-sizing: border-box;
    }

        /* Tabellenbasis */
        .bau-standalone table {
            width: 100%;
            max-width: 100%;
            border-collapse: collapse;
            border-spacing: 0;
            font-size: 13.5px;
            overflow: hidden;
}

/* Kopfzeile */
.bau-standalone__items th {
    background-color: #86bc35;
    color: #ffffff;
    padding: 12px 10px;
    white-space: nowrap;
    font-weight: 700;
    letter-spacing: 0.2px;
    font-family: 'Inter', Calibri;
}

/* Tabellenzellen */
.bau-standalone__items td {
    padding: 11px 10px;
    color: #111827;
    word-break: break-word;
    border-bottom: 1px solid #f3f0f9;
    vertical-align: middle;
    font-family: 'Inter', Calibri;
}

/* Abwechselnde Zeilenfarben */
.bau-standalone__items tr:nth-child(odd) td {
    background-color: #ffffff;
    font-weight: 400;
}

.bau-standalone__items tr:nth-child(even) td {
    background-color: #e6e6e6;
    font-weight: 600;
}

/* Letzte Zeile ohne untere Linie */
.bau-standalone__items tr:last-child td {
    border-bottom: none;
}

/* Spaltenausrichtung */
.bau-standalone__desc {
    text-align: left;
}

.bau-standalone__amt {
    text-align: right;
}

/* === Summenbereich === */
.bau-standalone__totals {
    border-top: 2px solid #56238E;
}

    .bau-standalone__totals td {
        background-color: #ffffff;
        color: #111827;
        text-align: right;
        padding: 10px 10px;
        font-size: 13.5px;
        font-family: 'Inter', Calibri;
    }

.bau-standalone__vat td {
    background-color: #e6e6e6;
    font-weight: 600;
}

/* Gesamtbetrag */
.bau-standalone__grand td {
    font-weight: 700;
    background-color: #3899dd;
    color: #ffffff;
    text-align: right;
    padding: 12px 10px;
    font-size: 14.5px;
    border-top: 1px solid #56238E;
    font-family: 'Inter', Calibri;
}

    .bau-standalone__grand td span {
        display: inline-block;
        text-align: right;
        width: 120px;
    }

.bau-standalone__totals {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

/* Gesamtbetrag direkt anschließen lassen */
.bau-standalone__grand td {
    font-weight: 700;
    background-color: #3899dd;
    color: #ffffff;
    text-align: right;
    padding: 12px 10px;
    font-size: 14.5px;
    border-top: solid 1px #56238E;
    margin-top: 0;
    font-family: 'Inter', Calibri;
}

.infoText {
    text-align: center;
    align-items: center;
    text-decoration: underline;
    font-weight: bold;
    font-family: 'Inter', Calibri;
    color: #56238E;
}

.timeline_arrow {
    padding: 15px;
    height: 100px;
    width: 100%;
    margin-top: 48px;
}

.timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    background: #f3f0f9;
    height: 10px;
    padding: 0 30px;
}

    .timeline::after {
        content: "";
        position: absolute;
        right: -12px;
        top: 50%;
        transform: translateY(-50%);
        border-left: 20px solid #f3f0f9;
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
    }

.event {
    position: relative;
}

    .event::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 14px;
        height: 14px;
        border: 2px solid #56238E;
        border-radius: 50%;
        background: #fff;
    }

.label {
    position: absolute;
    text-align: center;
    width: max-content;
    color: #000;
}

    .label.top {
        position: relative;
        bottom: 40px;
    }

    .label.bottom {
        position: relative;
        top: 40px;
    }

    .label span {
        color: #333;
    }

}
/* Style the actual HR */
.footer-rule {
    border: 0;
    border-top: 2px solid #56238E; /* Lila Linie */
    height: 0;
    margin: 0;
    margin-left: -2cm;
    margin-right: -2cm;
}

/* Eine Bild-Text-Zeile */
.image-text-row {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.image-text-photo {
    width: 60%;
    height: auto;
    display: block;
    margin: 0 0 1mm 0;
}

.image-text-content {
    width: 40%;
    display: flex;
    align-items: center;
}

    .image-text-content p {
        margin: 20px;
        font-family: 'Inter', Calibri;
    }

/* ===== Druckdarstellung (Paged-Media) ===== */
/* ===== Druckdarstellung (Paged-Media) ===== */
@media print {
    @page {
        size: A4;
        margin-top: 3cm;
        margin-left: 1.5cm;
        margin-right: 1.5cm;
        margin-bottom: 1.5cm;
        /* === Logo oben links bleibt === */
        @top-left {
            content: " ";
            background: url(../logo/FaircheckLogo.png) no-repeat left top;
            background-size: 240px auto;
            width: 240px;
            height: 70px;
            margin-top: 5px;
        }
        /* === Neuer Footer-Text statt Logo === */
        @bottom-left {
            content: "Ihr zuverlässiger Partner im Bereich Versicherungsdienstleistungen";
            font-family: 'Raleway', Calibri;
            font-size: 9.5pt;
            color: #56238E; /* Faircheck-Lila */
            text-align: center;
            font-weight: 500;
        }
        /* Seitenzahl unten rechts */
        @bottom-right {
            content: counter(page);
            font-size: 10pt;
            color: #333;
        }
    }
}


/* Section Header */
.section-header {
    background-color: #56238E; /* Hauptlila */
    color: #ffffff;
    font-weight: bold;
    padding: 2px 6px;
    margin: 8px 0 8px 0;
    font-family: 'Raleway', Calibri;
}

/* Schadenblatt */
.schaden-sheet,
.schaden-sheet * {
    box-sizing: border-box;
}

.schaden-sheet {
    width: 100%;
    margin: 0px;
    padding: 0px 12px;
    line-height: 1;
    color: #000;
    background: #fff;
    font-family: 'Inter', Calibri;
}

.schaden-row {
    display: grid;
    grid-template-columns: 1fr max-content;
    align-items: flex-start;
    align-content: center;
}

.schaden-label {
    align-items: start;
    text-align: start;
    font-family: 'Raleway', Calibri;
    color: #56238E; /* Lila Akzent */
}

.schaden-value {
    justify-self: end;
    text-align: end;
    align-content: end;
    font-family: 'Inter', Calibri;
}

.schaden-value--left {
    text-align: left;
}

.schaden-value--right {
    text-align: right;
}

.schaden-sheet hr {
    border: none;
    height: 1px;
    background: #f3f0f9;
}

/* === Timeline Farben === */
.timeline {
    background: #f3f0f9;
}

    .timeline::after {
        border-left: 20px solid #f3f0f9;
    }

.event::before {
    border: 2px solid #56238E;
}

/* === Buttons oder interaktive Elemente (optional) === */
button,
input[type="button"],
input[type="submit"] {
    background-color: #56238E;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Inter', Calibri;
}

    button:hover,
    input[type="button"]:hover,
    input[type="submit"]:hover {
        background-color: #3f1c6a;
    }

/* === Tabellenrahmen und Summenzeilen === */
.bau-standalone__totals {
    border-top: 2px solid #56238E;
}

    .bau-standalone__totals td {
        background-color: #ffffff;
    }

.bau-standalone__grand td {
    background-color: #86bc35;
    border-top: 1px solid #56238E;
}

/* === Allgemeine Linien === */
hr {
    border: 0;
    height: 1px;
    background: #f3f0f9;
}

/* === Akzentfarben für Text === */
h1, h2, h3 {
    color: #56238E;
}

a {
    color: #56238E;
    text-decoration: underline;
}

    a:hover {
        color: #3f1c6a;
    }
/* === Druckdarstellung (Fortsetzung) === */
@media print {
    @page {
        size: A4;
        margin-top: 3cm;
        margin-left: 1.5cm;
        margin-right: 1.5cm;
        margin-bottom: 1.5cm;

        @top-left {
            content: " ";
            background: url(../logo/FaircheckLogo.png) no-repeat left top;
            background-size: 240px auto;
            width: 240px;
            height: 70px;
            margin-top: 5px;
        }

        @bottom-right {
            content: counter(page);
            font-size: 10pt;
            color: #333;
        }
    }

    .footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #56238E;
        background: #fff;
        box-sizing: border-box;
    }
}

/* === Abschnitts-Header, Titel === */
.section-header {
    background-color: #56238E;
    color: #ffffff;
    font-weight: bold;
    padding: 2px 6px;
    margin: 8px 0 8px 0;
    font-family: 'Raleway', Calibri;
}

/* === Schaden-Sheet etc. === */
.schaden-sheet,
.schaden-sheet * {
    box-sizing: border-box;
}

.schaden-sheet {
    width: 100%;
    margin: 0px;
    padding: 0px 12px;
    line-height: 1;
    color: #000;
    background: #fff;
    font-family: 'Inter', Calibri;
}

.schaden-row {
    display: grid;
    grid-template-columns: 1fr max-content;
    align-items: flex-start;
    align-content: center;
}

.schaden-label {
    align-items: start;
    text-align: start;
    font-family: 'Raleway', Calibri;
    color: #56238E;
}

.schaden-value {
    justify-self: end;
    text-align: end;
    align-content: end;
    font-family: 'Inter', Calibri;
}

.schaden-value--left {
    text-align: left;
}

.schaden-value--right {
    text-align: right;
}

.schaden-sheet hr {
    border: none;
    height: 1px;
    background: #f3f0f9;
}

/* === Allgemeine Akzente === */
h1, h2, h3 {
    color: #56238E;
}

a {
    color: #56238E;
    text-decoration: underline;
}

    a:hover {
        color: #3f1c6a;
    }

hr {
    border: 0;
    height: 1px;
    background: #f3f0f9;
}

/* === Buttons (optional, für PDF-Export ignoriert) === */
button,
input[type="button"],
input[type="submit"] {
    background-color: #56238E;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Inter', Calibri;
}

    button:hover,
    input[type="button"]:hover,
    input[type="submit"]:hover {
        background-color: #3f1c6a;
    }

/* === Footer-Linien & letzte Details === */
.footer-rule {
    border: 0;
    border-top: 2px solid #56238E;
    height: 0;
    margin: 0;
    margin-left: -2cm;
    margin-right: -2cm;
}
