/* Bescheidmodul 2.0 - Gestaltung analog Sportgerichts-Datenbank */
body { margin: 0; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background-color: #f5f7fa; color: #102a43; }
.page { min-height: 100vh; box-sizing: border-box; padding: 24px 32px 48px; position: relative; }
.logo { position: absolute; top: 16px; right: 16px; }
.logo img { width: 90px; height: 90px; object-fit: contain; }
header { margin-bottom: 20px; }
header h1 { margin: 0; font-size: 24px; }
header p { margin: 4px 0 0 0; font-size: 14px; color: #627d98; }
nav.topnav { margin: 0 0 12px 0; padding: 10px 14px; background: #ffffff; border-radius: 10px; box-shadow: 0 2px 8px rgba(15,23,42,0.06); display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
nav.topnav a { color: #0b3c5d; text-decoration: none; font-size: 14px; font-weight: 500; }
nav.topnav a:hover { text-decoration: underline; }
nav.topnav .right { margin-left: auto; color: #627d98; font-size: 13px; }
nav.topnav .right a { color: #d64545; }
.messages { margin: 0 0 16px 0; padding: 0; }
.messages li { list-style: none; margin-bottom: 6px; padding: 10px 12px; border-radius: 6px; font-size: 14px; }
.messages li.success { background-color: #e3fbe3; color: #1e5b2e; }
.messages li.error { background-color: #fdeaea; color: #a42525; }
.messages li.info { background-color: #d8e2ff; color: #102a43; }
.card { background: #ffffff; border-radius: 12px; box-shadow: 0 4px 14px rgba(15,23,42,0.08); padding: 22px 24px; margin-bottom: 18px; }
h2.section { font-size: 18px; margin-top: 0; color: #0b3c5d; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 8px; }
.menu-card-link { text-decoration: none; color: inherit; }
.menu-card { background-color: #ffffff; border-radius: 12px; box-shadow: 0 4px 14px rgba(15,23,42,0.08); overflow: hidden; display: flex; flex-direction: column; height: 140px; transition: transform 0.1s ease, box-shadow 0.1s ease; }
.menu-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,23,42,0.12); }
.menu-card-image { flex: 2; background-size: cover; background-position: center; }
.menu-card-label { flex: 1; padding: 10px 12px; background-color: #0b3c5d; color: #ffffff; display: flex; align-items: center; justify-content: center; font-size: 15px; text-align: center; }
table.data { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(15,23,42,0.06); }
table.data th { background: #f1f5f9; text-align: left; font-size: 12px; text-transform: uppercase; color: #627d98; padding: 10px 12px; }
input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="time"], input[type="datetime-local"], input[type="number"], textarea, select { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 6px; border: 1px solid #cbd2d9; font-size: 14px; font-family: inherit; }
input:focus, textarea:focus, select:focus { outline: none; border-color: #2680c2; box-shadow: 0 0 0 1px #2680c2; }
.btn { display: inline-block; background-color: #2680c2; color: #ffffff; border: none; border-radius: 6px; padding: 9px 16px; font-size: 14px; cursor: pointer; text-decoration: none; }
.btn:hover { background-color: #186faf; }
.btn-secondary { background-color: #627d98; }
.btn-secondary:hover { background-color: #4a6a8a; }
.btn-danger { background-color: #d64545; }
.btn-danger:hover { background-color: #b93a3a; }
.btn-success { background-color: #2f8f4e; }
.btn-success:hover { background-color: #267a41; }
.btn-lg { padding: 14px 28px; font-size: 16px; font-weight: 600; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-green { background: #e3fbe3; color: #1e5b2e; }
.badge-red { background: #fdeaea; color: #a42525; }
.badge-amber { background: #fff4d6; color: #8a6d1a; }
.badge-blue { background: #d8e2ff; color: #0b3c5d; }
.hint { font-size: 12px; color: #627d98; }
.wizard-steps { display: flex; gap: 8px; margin: 0 0 16px 0; padding: 0; list-style: none; flex-wrap: wrap; }
.wizard-steps li { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: #ffffff; color: #627d98; box-shadow: 0 1px 4px rgba(15,23,42,0.06); }
.wizard-steps li.active { background: #0b3c5d; color: #ffffff; font-weight: 600; }
.frage-block { margin-bottom: 16px; padding: 16px 18px; border: 1px solid #e1e8ed; border-left: 5px solid #2680c2; background: #ffffff; border-radius: 0 8px 8px 0; }
.frage-text { font-weight: 600; display: block; margin-bottom: 8px; }
.option-label { display: block; margin: 6px 0; cursor: pointer; padding: 6px; border-radius: 4px; }
.option-label:hover { background: #f0f7ff; }
pre.bescheid { white-space: pre-wrap; background: #f8fafc; padding: 16px; border: 1px solid #e2e8f0; border-radius: 8px; font-family: inherit; font-size: 14px; line-height: 1.6; }
@media (max-width: 600px) { .page { padding: 16px 14px 40px; } .logo { position: static; margin-bottom: 8px; } nav.topnav .right { margin-left: 0; } }
table.data td { padding: 10px 12px; border-top: 1px solid #e2e8f0; font-size: 14px; vertical-align: top; }

/* Einheitliche Kachel-Beschriftung (dunkelblauer Bereich).
   Feste Höhe, ausgerichtet an der längsten Beschriftung (aktuelle Referenz:
   § 18 Abs. 1 Ziff. 5). Alle Kachel-Beschriftungen erhalten damit dieselbe
   Größe. Längere Texte bleiben im unsichtbaren Bereich (overflow: hidden),
   da das Unterscheidungsmerkmal bereits erkennbar ist.
   Diese Klasse ist der Standard für ALLE (auch künftige) Kacheln mit
   Beschriftung - einfach zusätzlich zur Klasse "menu-card-label" setzen. */
.menu-card-label.uniform {
    height: 145px;
    box-sizing: border-box;
    overflow: hidden;
    line-height: 1.35;
}

/* Warnhinweis bei formalen Voraussetzungen (Antwort NEIN).
   Sichtbar, aber nicht blockierend; trifft keine rechtliche Entscheidung. */
.warnhinweis {
    margin-top: 12px;
    padding: 12px 14px;
    border: 2px solid #d64545;
    border-left-width: 6px;
    border-radius: 8px;
    background-color: #fdeaea;
    color: #8a1f1f;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.45;
}
/* --- Fallakten-Modul --------------------------------------------------- */
.fa-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 4px; }
.fa-actions form { margin: 0; }
.fa-inline-form { display: flex; gap: 8px; align-items: center; margin-top: 14px; }
.fa-inline-form label { font-size: 13px; color: #0b3c5d; font-weight: 600; }
.fa-inline-form select { width: auto; min-width: 220px; }
.fa-form { margin-top: 10px; }
.fa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.field { margin-bottom: 12px; }
.field > label { display: block; font-size: 13px; font-weight: 600; color: #0b3c5d; margin-bottom: 4px; }
.subsection { font-size: 15px; color: #0b3c5d; margin: 18px 0 6px; }
.err { color: #a42525; font-size: 12px; margin: 4px 0 0; }
.mailtext { white-space: pre-wrap; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 14px 16px; font-family: 'Courier New', monospace; font-size: 13px; line-height: 1.5; }
.frage-block { padding: 14px 0; border-bottom: 1px solid #eef2f6; }
.frage-text { font-weight: 600; color: #0b3c5d; display: block; margin-bottom: 6px; }

/* --- Urteilssuche Sportgerichts-Datenbank (Overlay) ---------------------
   Globaler Einstieg in base.html. Das Overlay selbst enthaelt KEINE eigene
   Suchoberflaeche: im iframe wird die bestehende Seite des Sportgerichts 1:1
   dargestellt. Alle Klassen sind mit "us-" praefixiert, damit das uebrige
   Bescheidmodul unveraendert bleibt. */
nav.topnav button.navlink {
    background: none; border: 0; margin: 0; padding: 0;
    color: #0b3c5d; font-family: inherit; font-size: 14px; font-weight: 500;
    cursor: pointer;
}
nav.topnav button.navlink:hover { text-decoration: underline; }
.us-overlay {
    display: none; position: fixed; inset: 0; z-index: 9000;
    background: rgba(15, 23, 42, 0.72); overscroll-behavior: contain;
}
.us-overlay.us-offen { display: flex; flex-direction: column; }
.us-overlay-bar {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px; background: #0b3c5d; color: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
}
.us-overlay-title { font-size: 15px; font-weight: 600; }
.us-overlay-hinweis { margin-left: auto; font-size: 12px; color: #d8e2ff; }
.us-overlay-close {
    margin-left: 8px; background: #ffffff; color: #0b3c5d; border: 0;
    border-radius: 6px; padding: 7px 14px; font-family: inherit;
    font-size: 13px; font-weight: 600; cursor: pointer;
}
.us-overlay-close:hover { background: #e2e8f0; }
.us-overlay-body { flex: 1; min-height: 0; padding: 12px; }
.us-frame {
    display: block; width: 100%; height: 100%; border: 0;
    border-radius: 10px; background: #f5f7fa;
}
.us-download { position: absolute; width: 0; height: 0; border: 0; visibility: hidden; }
@media (max-width: 600px) {
    .us-overlay-body { padding: 6px; }
    .us-overlay-hinweis { display: none; }
}
