/* =============================================================
   Einbinden in default-list-layout.html:
     <link rel="stylesheet" type="text/css"
           href="../../static/public/css/showDetail.css"
           data-th-href="@{/public/css/showDetail.css}" />
   Ablageort: src/main/resources/static/public/css/showDetail.css
   Alle Regeln sind unter .show-detail-page gekapselt,
   damit keine Kollision mit Bootstrap, theme.css oder
   springroo.css entsteht.
   ============================================================= */

.show-detail-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* ----------------------------------------------------------
   BEWERTUNGSBILDER
   src enthält '/badegewaesser-nrw/public/img/bewertung/'
   inline style muss mit !important überschrieben werden
   ---------------------------------------------------------- */

/* global: list.html, show.html, alle Seiten */
img[src*="bewertung/"] {
    width: 30px !important;
    height: 30px !important;
    vertical-align: middle;
}

/* showDetail.html EU-Galerie: größer */
.show-detail-page .sd-eu-item img[src*="bewertung/"] {
    width: 45px !important;
    height: 45px !important;
}

/* ----------------------------------------------------------
   HEADER-BOX
   ---------------------------------------------------------- */
.show-detail-page .sd-header-box {
    background: #e8f0e8;
    border: 1px solid #b8d0b8;
    border-left: 5px solid #2e7d32;
    border-radius: 4px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.show-detail-page .sd-header-box h1 {
    font-size: 1.4em;
    margin: 0 0 10px 0;
    color: #1a5c1e;
    font-weight: 600; /* min. bold damit Large-Text-Schwelle gilt */
}

.show-detail-page .sd-header-box .sd-messstelle {
    font-size: 0.9em;
    color: #555;
}

/* ----------------------------------------------------------
   INFO-TABELLE  (Profil-Link, Bewertung, Sprunglinks)
   ---------------------------------------------------------- */
.show-detail-page .sd-info-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #ccc;
    margin-bottom: 24px;
}

.show-detail-page .sd-info-table td {
    padding: 9px 14px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.95em;
    vertical-align: middle;
}

.show-detail-page .sd-info-table tr:last-child td {
    border-bottom: none;
}

/* Link-Zeilen */
.show-detail-page .sd-info-table .sd-link-row td {
    background: #f9f9f9;
}

.show-detail-page .sd-info-table .sd-link-row td a {
    color: #1a5c1e;
    text-decoration: underline;
}

.show-detail-page .sd-info-table .sd-link-row td a:hover {
    color: #0a3c0e;
}

/* Bewertung OK */
.show-detail-page .sd-info-table .sd-bewertung-ok td {
    font-weight: bold;
    color: #1a5c1e;
}

/* Badeverbot */
.show-detail-page .sd-info-table .sd-bewertung-verbot td {
    font-weight: bold;
    color: #c62828;
}

/* ----------------------------------------------------------
   EU-BEWERTUNG
   ---------------------------------------------------------- */
.show-detail-page .sd-eu-section {
    margin-bottom: 28px;
}

.show-detail-page .sd-eu-section h2 {
    font-size: 1.1em;
    border-bottom: 2px solid #2e7d32;
    padding-bottom: 6px;
    margin-bottom: 14px;
    color: #1a5c1e;
    font-weight: 600; /* bold → Large-Text-Schwelle 3:1 gilt */
}

.show-detail-page .sd-eu-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: flex-end;
}

.show-detail-page .sd-eu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.show-detail-page .sd-eu-item img {
    width: 48px;
    height: auto;
}

.show-detail-page .sd-eu-item .sd-jahr {
    font-size: 0.85em;
    font-weight: bold;
    color: #444;
    text-transform: none;
}

/* ----------------------------------------------------------
   MESSERGEBNISSE - SEKTION
   ---------------------------------------------------------- */
.show-detail-page .sd-mess-section {
    margin-bottom: 20px;
}

.show-detail-page .sd-mess-section > h2 {
    font-size: 1.1em;
    border-bottom: 2px solid #2e7d32;
    padding-bottom: 6px;
    margin-bottom: 16px;
    color: #1a5c1e;
    font-weight: 600; /* bold → Large-Text-Schwelle 3:1 gilt */
}

/* ----------------------------------------------------------
   EINZELNER PROBENAHME-BLOCK
   ---------------------------------------------------------- */
.show-detail-page .sd-probe-block {
    margin-bottom: 28px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    overflow: hidden;
}

.show-detail-page .sd-probe-block h3 {
    font-size: 1.0em;
    background: #2e7d32;
    color: #fff;
    margin: 0;
    padding: 9px 14px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
}

/* ----------------------------------------------------------
   MESS-TABELLE
   ---------------------------------------------------------- */
.show-detail-page .sd-mess-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px; /* fest in px, nicht em */
    margin-bottom: 0;
}

.show-detail-page .sd-mess-table th {
    background: #f0f4f0;
    color: #333;
    font-weight: bold;
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #c8d8c8;
    text-transform: none;
    font-size: 1em;
}

.show-detail-page .sd-mess-table td {
    padding: 7px 12px;
    border-bottom: 1px solid #ebebeb;
    vertical-align: top;
}

.show-detail-page .sd-mess-table tr:last-child td {
    border-bottom: none;
}

.show-detail-page .sd-mess-table tbody tr:nth-child(even) td {
    background: #fafafa;
}

.show-detail-page .sd-mess-table .sd-param {
    width: 35%;
}

/* Nur td-Zellen bekommen spaltenspezifische Styles */
.show-detail-page .sd-mess-table td.sd-param {
    font-weight: normal;
    color: #333;
}

.show-detail-page .sd-mess-table .sd-wert {
    text-align: right;
    width: 20%;
}

.show-detail-page .sd-mess-table td.sd-wert {
    font-family: monospace;
}

.show-detail-page .sd-mess-table .sd-massnahme {
    text-align: right;
    width: 20%;
}

.show-detail-page .sd-mess-table td.sd-massnahme {
    font-family: monospace;
    color: #666; /* #888 war 3.5:1 → FAIL; #666 = 5.74:1 → AA ✅ */
}

.show-detail-page .sd-mess-table .sd-einheit {
    width: 25%;
}

.show-detail-page .sd-mess-table td.sd-einheit {
    color: #555;
}

/* ----------------------------------------------------------
   ZURÜCK-ZUM-ANFANG-LINK
   ---------------------------------------------------------- */
.show-detail-page .sd-back-to-top {
    padding: 6px 12px;
    text-align: right;
    font-size: 0.82em;
    background: #fafafa;
    border-top: 1px solid #ebebeb;
}

.show-detail-page .sd-back-to-top a {
    color: #1a5c1e;
}

.show-detail-page .sd-back-to-top a:hover {
    color: #0a3c0e;
    text-decoration: underline;
}

/* ----------------------------------------------------------
   KEINE-DATEN-HINWEIS
   ---------------------------------------------------------- */
.show-detail-page .sd-no-data {
    color: #666; /* #888 war 3.5:1 → FAIL; #666 = 5.74:1 → AA ✅ */
    font-style: italic;
    padding: 12px 0;
}

/* ----------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 600px) {
    .show-detail-page .sd-mess-table th,
    .show-detail-page .sd-mess-table td {
        padding: 6px 8px;
    }

    .show-detail-page .sd-eu-item img {
        width: 38px;
    }
}