@page {
    size: A4;
    margin: 12mm;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #212121;
    font-family: "Fira Sans", Arial, sans-serif;
    font-size: 11.5pt;
    line-height: 1.5;
}

/* A4-Dokument */

.expose {
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
    padding: 10mm 12mm;
    background: #ffffff;
}

/* Dokumenttitel */

.expose-headline {
    color: #212121;
    font-size: 20pt;
    font-weight: 400;
    margin: 0 0 16px;
}

/* Blauer Kopfbereich */

.expose-header {
    background: #0078b8;
    color: #ffffff;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    padding: 18px 18px 22px;
    margin-bottom: 20px;
}

.expose-header-text {
    flex: 1;
    padding-right: 20px;
}

.expose-header h1 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 20pt;
    font-weight: 500;
    line-height: 1.2;
}

.expose-location {
    color: #ffffff;
    font-size: 14pt;
    line-height: 1.3;
}

.expose-logo {
    flex: none;
    margin-top: -18px;
    margin-right: 10px;
}

.expose-logo img {
    display: block;
    background: #ffffff;
    padding: 10px;
    width: 190px;
    height: auto;
}

/* Bilder */

.expose-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;

    margin-bottom: 24px;
}

.expose-image img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;

    border: 1px solid #d7d7d7;
}

/* Objektdaten */

.expose-daten {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;

    margin-bottom: 20px;
}

.expose-daten table {
    width: 100%;
    border-collapse: collapse;
}

.expose-daten th,
.expose-daten td {
    text-align: left;
    vertical-align: top;
    padding: 5px 0;
}

.expose-daten th {
    width: 42%;
    padding-right: 20px;
    white-space: nowrap;

    font-weight: 400;
    color: #212121;
}

.expose-daten td {
    font-weight: 600;
}

/* Inhaltsabschnitte */

.expose-section {
    margin-top: 20px;
}

.expose-section h2 {
    color: #212121;
    font-size: 15pt;
    font-weight: 600;

    margin: 0 0 8px;
    padding-bottom: 4px;

    border-bottom: 1px solid #d9d9d9;
}

.expose-section p:first-child {
    margin-top: 0;
}

.expose-section p {
    margin-top: 0;
    margin-bottom: 8px;
}

.expose-section ul,
.expose-section ol {
    margin-top: 4px;
    margin-bottom: 8px;
}

.expose-section h3,
.expose-section h4 {
    margin-top: 10px;
    margin-bottom: 4px;
}

/* Ansprechpartner */

.expose-contact {
    width: auto;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 11pt;
}

.expose-contact th,
.expose-contact td {
    text-align: left;
    vertical-align: top;
    padding: 4px 0;
}

.expose-contact th {
    width: 100px;
    padding-right: 30px;

    white-space: nowrap;
    font-weight: 400;
}

.expose-contact td {
    text-align: left;
}

/* Footer */

.expose-footer {
    margin-top: 30px;
    padding-top: 10px;

    border-top: 1px solid #d9d9d9;

    font-size: 10pt;
    color: #666666;
}

/* Druck */

@media print {

    html,
    body {
        margin: 0;
        padding: 0;
        background: #ffffff;
    }

    .expose {
        width: auto;
        min-height: auto;
        margin: 0;
        padding: 0;
    }

    a {
        color: inherit;
        text-decoration: none;
    }
}

.expose-images,
.expose-image,
.expose-section {
    break-inside: avoid;
    page-break-inside: avoid;
}

/* Parzellierungsplan */

#parzellierungsplan circle.marker {
    fill: #D57A00;
    opacity: 0.1;
    cursor: pointer;
    transition: fill 0.3s, opacity 0.3s;
}

#parzellierungsplan #legende {
    display: none;
}

#parzellierungsplan #parzellen-tabelle .col-status {
    display: none;
}

/* Parzellenübersicht im Exposé */

#parzellen-tabelle {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 11pt;
}

#parzellen-tabelle thead {
    display: table-header-group;
}

#parzellen-tabelle th {
    background: #0078b8;
    color: #ffffff;
    text-align: left;
    padding: 10px 12px;
    font-weight: 600;
}

#parzellen-tabelle td {
    padding: 9px 12px;
    text-align: left;
    border-bottom: 1px solid #d9d9d9;
}

#parzellen-tabelle tr:nth-child(even) td {
    background: #f5f5f5;
}

#parzellen-tabelle tr:hover td {
    background: inherit;
}

/* Status-Spalte ausblenden */

.expose .col-status {
    display: none;
}