* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
    background: #fff;
}

.nf-page {
    width: 100%;
    max-width: 980px;
    padding: 10px;
}

.nf-title,
.nf-search h2 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.25;
}

.nf-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 18px 24px;
    width: 100%;
}

.nf-search {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f8f8f8;
}

.nf-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.nf-search input[type="text"] {
    width: min(100%, 250px);
    min-width: 180px;
    padding: 6px 8px;
    border: 1px solid #bbb;
    border-radius: 4px;
    font-size: 14px;
}

.nf-search button,
.nf-simple-search button {
    padding: 6px 12px;
    border: 1px solid #888;
    border-radius: 4px;
    background: #e8e8e8;
    cursor: pointer;
    font-size: 14px;
}

.nf-search button:hover,
.nf-simple-search button:hover {
    background: #ddd;
}

.nf-frame {
    width: 100%;
    height: 730px;
    border: 0;
    margin-top: 16px;
    overflow: auto;
}

.nf-simple-search {
    width: 100%;
    max-width: 760px;
}

.nf-simple-search table {
    width: 100%;
    border-collapse: collapse;
}

.nf-simple-search td {
    padding: 4px 8px 8px 0;
    vertical-align: top;
}

.nf-simple-search select,
.nf-simple-search input[type="text"] {
    max-width: 100%;
    padding: 6px 8px;
}

.table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.nf-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-size: 12px;
    line-height: 1.25;
}

.nf-table th,
.nf-table td {
    padding: 4px 5px;
    border-bottom: 1px solid #999;
    text-align: left;
    vertical-align: top;
    white-space: nowrap;
}

.nf-table th {
    background: #ccc;
    font-weight: 700;
}

.nf-table tr:nth-child(even) td {
    background: #f4f4f4;
}

.is-highlight {
    color: #c00;
    font-weight: 700;
}

.nf-result-headline {
    margin: 0 0 12px;
    font-size: 13px;
}

.nf-notice {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 5px;
    font-size: 14px;
}

.nf-notice--warning {
    background: #fff7df;
    border: 1px solid #e1bf63;
}

.nf-notice--error {
    background: #ffe8e8;
    border: 1px solid #d66;
}

.nf-footnote {
    margin-top: 24px;
    font-size: 12px;
    line-height: 1.4;
}

.nf-ad {
    margin-top: 18px;
    max-width: 100%;
    overflow-x: auto;
}

@media (max-width: 700px) {
    .nf-grid {
        grid-template-columns: 1fr;
    }

    .nf-page {
        padding: 8px;
    }

    .nf-table {
        min-width: 560px;
        font-size: 11px;
    }

    .nf-table th,
    .nf-table td {
        padding: 3px 4px;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ------------------------------------------------------------
   FIX: Suchformulare auch im schmaleren iFrame zweispaltig anzeigen
   Diesen Block immer GANZ AN DAS ENDE der Datei setzen.
------------------------------------------------------------ */
.nf-page {
    width: 100%;
    max-width: 100%;
    padding: 8px;
}

.nf-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100%;
}

.nf-search {
    min-width: 0;
    padding: 7px;
}

.nf-search h2 {
    font-size: 14px;
    margin-bottom: 6px;
}

.nf-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
}

.nf-search input[type="text"] {
    width: 100%;
    min-width: 0 !important;
    max-width: 100%;
    padding: 4px 5px;
    font-size: 12px;
}

.nf-search button,
.nf-simple-search button {
    width: 100%;
    padding: 4px 6px;
    font-size: 12px;
}

/* Nur bei extrem schmalen iFrames wieder auf eine Spalte wechseln. */
@media (max-width: 340px) {
    .nf-grid {
        grid-template-columns: 1fr !important;
    }
}
