/* ============================================================
   selfservice/assets/style.css
   Eigenstaendiges CSS fuer das TGS-Selfservice-Tool.
   Keine externen Abhaengigkeiten, keine Samurai backend.css.
   ============================================================ */

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: #222;
    background: #f3f5f8;
}

a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.ss-top {
    display: flex;
    align-items: center;
    background: #1f2937;
    color: #fff;
    padding: 0 18px;
    height: 52px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
/* Das Logo traegt Blau und Gelb auf durchsichtigem Grund. Auf der dunklen
   Kopfleiste bliebe es flau - deshalb steht es auf einer weissen Platte,
   so wie in Briefkopf und Signatur. */
.ss-logo-link {
    display: inline-flex;
    align-items: center;
    margin-right: 14px;
    padding: 5px 9px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.28);
}
.ss-logo-link:hover { background: #f8fafc; text-decoration: none; }
.ss-logo-img {
    height: 30px;
    width: auto;
    display: block;
}
/* Ersatz fuer das Logo, solange assets/logo.png nicht hinterlegt ist. */
.ss-logo-text {
    display: block;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    color: #fff;
    opacity: 0.85;
}
.ss-brand {
    font-weight: 600;
    font-size: 16px;
    margin-right: 32px;
    color: #fff;
}
.ss-nav { flex: 1; }
.ss-nav a {
    color: #d1d5db;
    margin-right: 18px;
    padding: 14px 0;
    display: inline-block;
    border-bottom: 2px solid transparent;
}
.ss-nav a:hover {
    color: #fff;
    text-decoration: none;
    border-bottom-color: #6b7280;
}
.ss-nav a.active {
    color: #fff;
    border-bottom-color: #60a5fa;
}
.ss-user { display: flex; align-items: center; gap: 12px; }
.ss-user span { color: #e5e7eb; }
.ss-logout {
    background: #4b5563;
    color: #fff !important;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}
.ss-logout:hover { background: #6b7280; text-decoration: none; }

/* ---------- Main / Card ---------- */
.ss-main {
    max-width: 1280px;
    margin: 20px auto;
    padding: 0 18px;
}
.ss-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 16px 18px;
    margin-bottom: 18px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.ss-card h2, .ss-card h3 {
    margin-top: 0;
    color: #1f2937;
}
.ss-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.ss-kpi {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 14px 16px;
}
.ss-kpi .lbl { font-size: 12px; color: #6b7280; }
.ss-kpi .val { font-size: 22px; font-weight: 600; color: #111827; margin-top: 4px; }

/* ---------- Tabelle ---------- */
.ss-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}
.ss-table th, .ss-table td {
    border: 1px solid #e5e7eb;
    padding: 7px 9px;
    text-align: left;
    vertical-align: top;
    font-size: 13px;
}
.ss-table th {
    background: #f9fafb;
    color: #374151;
    font-weight: 600;
}
.ss-table tbody tr:nth-child(even) td { background: #fafbfc; }
.ss-table tbody tr:hover td { background: #eff6ff; }
/* Zeile hervorheben (z.B. Bestellung nach Cutoff): am td, weil die
   Zebra-Regel darueber ebenfalls am td haengt und eine Farbe am tr ueberdeckt. */
.ss-table tbody tr.ss-row-warn td { background: #fffbeb; }
.ss-table tbody tr.ss-row-warn:hover td { background: #fef3c7; }
.ss-table td.num, .ss-table th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Form ---------- */
.ss-form label {
    display: inline-block;
    min-width: 110px;
    font-weight: 600;
    color: #374151;
    margin-top: 6px;
}
.ss-form input[type=text],
.ss-form input[type=password],
.ss-form input[type=date],
.ss-form input[type=number],
.ss-form select {
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    font-size: 13px;
    min-width: 180px;
}
.ss-form input:focus, .ss-form select:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(96,165,250,0.3);
}

/* ---------- Buttons ---------- */
.ss-btn {
    display: inline-block;
    padding: 6px 12px;
    background: #2563eb;
    color: #fff !important;
    border: 1px solid #1d4ed8;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}
.ss-btn:hover { background: #1d4ed8; text-decoration: none; }
.ss-btn.secondary {
    background: #e5e7eb;
    color: #1f2937 !important;
    border-color: #d1d5db;
}
.ss-btn.secondary:hover { background: #d1d5db; }

/* ---------- Status Badges ---------- */
.ss-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    line-height: 16px;
}
.ss-badge.s1 { background: #fef3c7; color: #92400e; }     /* offen */
.ss-badge.s2 { background: #dbeafe; color: #1e40af; }     /* Zahlung */
.ss-badge.s3 { background: #d1fae5; color: #065f46; }     /* Versendet */
.ss-badge.s5 { background: #fee2e2; color: #991b1b; }     /* storniert */
.ss-badge.s0 { background: #e5e7eb; color: #374151; }     /* default */

/* ---------- Bewertungs-Tags (Schnelldreher / Ladenhueter) ---------- */
.ss-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    line-height: 16px;
}
.ss-tag.schnelldreher { background: #d1fae5; color: #065f46; }   /* hoher Abverkauf */
/* .penner ist die alte Klasse und bleibt stehen, solange noch eine Maske aus
   der Zeit davor ausgeliefert sein koennte. */
.ss-tag.ladenhueter,
.ss-tag.penner        { background: #fde9d3; color: #a4601b; }   /* langsamer Abverkauf */
.ss-tag.neutral       { background: #e5e7eb; color: #374151; }   /* normal */
.ss-tag.neu           { background: #dbeafe; color: #1e40af; }   /* erstmals im Haus (Lieferungen) */
.ss-tag.nachcutoff    { background: #fef3c7; color: #92400e; }   /* nach Cutoff: naechster Versandtag (Bestellungen) */

/* ---------- Messages ---------- */
.ss-msg-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 10px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
}
.ss-msg-ok {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 10px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
}
.ss-msg-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    padding: 10px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
}
.ss-msg-warn {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 10px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
}

/* ---------- Login ---------- */
.ss-login-wrap {
    max-width: 380px;
    margin: 80px auto;
}
.ss-login-logo {
    display: block;
    margin: 0 auto 18px auto;
    max-width: 220px;
    height: auto;
}
.ss-login-wrap h1 {
    text-align: center;
    color: #1f2937;
    font-size: 22px;
    margin-bottom: 18px;
}
.ss-login-wrap .ss-card { padding: 24px; }
.ss-login-wrap label { display: block; margin-top: 12px; }
.ss-login-wrap input { width: 100%; }
.ss-login-wrap .ss-btn { width: 100%; margin-top: 18px; padding: 10px; font-size: 14px; }

/* ---------- Footer ---------- */
.ss-foot {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    color: #9ca3af;
    font-size: 12px;
    padding: 24px 0 36px 0;
}
.ss-foot-logo {
    height: 26px;
    width: auto;
    opacity: 0.8;
}
.ss-foot-logo:hover { opacity: 1; }

/* ---------- Pagination ---------- */
.ss-pager {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 13px;
    color: #6b7280;
}
.ss-pager .links a {
    padding: 4px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    margin: 0 2px;
    color: #2563eb;
    background: #fff;
}
.ss-pager .links a.disabled {
    color: #9ca3af;
    pointer-events: none;
    background: #f3f4f6;
}

/* ---------- Zeitabfolge / Zeitstrahl (Stil analog admin-Beispiel) ---------- */
.ss-zeitstrahl {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    margin: 30px 10px 10px;
    padding: 10px 0 0;
    border-top: 3px solid #c0c0c0;
    overflow-x: auto;
}
.ss-zp {
    position: relative;
    width: 160px;
    flex: 0 0 160px;
    text-align: center;
}
.ss-zp::before {
    content: "";
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #57BB50;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px #57BB50;
    z-index: 1;
}
.ss-zp.verzoegert::before { background: #EE1F27; box-shadow: 0 0 0 2px #EE1F27; }
.ss-zp.nicht-erreicht::before { background: #999999; box-shadow: 0 0 0 2px #999999; }
.ss-zp strong {
    display: block;
    font-weight: bold;
    font-size: 12px;
    color: #003399;
    margin-bottom: 5px;
}
.ss-zp span {
    display: block;
    font-size: 11px;
    color: #333;
    margin-top: 5px;
}
.ss-zdauer {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #666;
    white-space: nowrap;
}
.ss-zwarn {
    margin-top: 20px;
    color: #EE1F27;
    font-weight: bold;
    text-align: center;
}

/* ---------- Erreichbarkeit der API (api.php) ----------
   Eigene Klassen statt style="" im Markup: die Content-Security-Policy des
   Portals steht auf style-src 'self', also ohne 'unsafe-inline'.
   Aufbau: farbiges Statusband, darunter drei schmale Faktenfelder, darunter
   die Fussnoten. Die Farben folgen den Meldungsfarben weiter oben. */
.ss-erreichbar {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-left-width: 4px;
    border-radius: 6px;
    background: #f9fafb;
}
.ss-erreichbar .punkt {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    margin-top: 3px;
    border-radius: 50%;
    background: #9ca3af;
    box-shadow: 0 0 0 3px rgba(156,163,175,0.25);
}
.ss-erreichbar .txt { flex: 1 1 auto; min-width: 0; }
.ss-erreichbar .titel {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    color: #374151;
}
.ss-erreichbar .grund {
    margin-top: 3px;
    font-size: 13px;
    color: #4b5563;
}
.ss-erreichbar .knopf { flex: 0 0 auto; white-space: nowrap; }

.ss-erreichbar.ok            { border-color: #bbf7d0; border-left-color: #16a34a; background: #f0fdf4; }
.ss-erreichbar.ok .punkt     { background: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,0.20); }
.ss-erreichbar.ok .titel     { color: #166534; }
.ss-erreichbar.ok .grund     { color: #15803d; }

.ss-erreichbar.langsam        { border-color: #fde68a; border-left-color: #d97706; background: #fffbeb; }
.ss-erreichbar.langsam .punkt { background: #d97706; box-shadow: 0 0 0 3px rgba(217,119,6,0.20); }
.ss-erreichbar.langsam .titel { color: #92400e; }
.ss-erreichbar.langsam .grund { color: #b45309; }

.ss-erreichbar.gestoert        { border-color: #fecaca; border-left-color: #dc2626; background: #fef2f2; }
.ss-erreichbar.gestoert .punkt { background: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,0.20); }
.ss-erreichbar.gestoert .titel { color: #991b1b; }
.ss-erreichbar.gestoert .grund { color: #b91c1c; }

.ss-erreichbar.unbekannt        { border-color: #e5e7eb; border-left-color: #9ca3af; background: #f9fafb; }
.ss-erreichbar.unbekannt .titel { color: #4b5563; }

/* Faktenfelder unter dem Band */
.ss-fakten {
    display: grid;
    /* Feste Gewichte statt auto-fit: die Adresse ist der laengste Wert und
       bekommt den doppelten Anteil, die beiden Zahlenfelder bleiben gleich
       breit. Mit auto-fit haetten sie je nach Fensterbreite andere Groessen. */
    grid-template-columns: minmax(140px, 1fr) minmax(150px, 1fr) minmax(260px, 2fr);
    gap: 10px;
    margin-top: 12px;
}
.ss-fakt {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px 12px;
    background: #fff;
    min-width: 0;
}
.ss-fakt .lbl {
    font-size: 11px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #9ca3af;
}
.ss-fakt .val {
    margin-top: 2px;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    font-variant-numeric: tabular-nums;
}
.ss-fakt .val .zusatz {
    margin-left: 6px;
    font-size: 11px;
    font-weight: 400;
    color: #9ca3af;
}
.ss-fakt .val.adresse {
    font-size: 12px;
    font-weight: 400;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: #374151;
    word-break: break-all;
}

/* Fussnoten unter den Fakten */
.ss-fussnote {
    margin: 12px 0 0;
    padding-left: 10px;
    border-left: 2px solid #e5e7eb;
    font-size: 12px;
    line-height: 1.6;
    color: #6b7280;
}
.ss-fussnote code {
    background: #f3f5f8;
    padding: 1px 4px;
    border-radius: 3px;
}
.ss-fussnote.warnung {
    border-left-color: #fca5a5;
    color: #7f1d1d;
}

@media (max-width: 700px) {
    .ss-erreichbar { flex-wrap: wrap; }
    .ss-erreichbar .knopf { margin-left: 28px; }
    .ss-fakten { grid-template-columns: 1fr 1fr; }
    .ss-fakten .ss-fakt:last-child { grid-column: span 2; }
}

/* ------------------------------------------------------------------
   Artikel: Liste mit Bild, Detailseite, Galerie   (Fassung 4)
   ------------------------------------------------------------------
   Die Artikelliste hat zwoelf Spalten und passt auf schmalen Geraeten
   nicht mehr in die Breite. Sie bekommt deshalb einen eigenen
   Rollbereich - die SEITE darf nicht waagerecht rollen, eine einzelne
   Tabelle schon.
   ------------------------------------------------------------------ */
.ss-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ss-table-artikel { min-width: 1100px; }

/* Sortierbarer Spaltenkopf. Sieht aus wie Text, ist aber ein Link -
   deshalb keine Unterstreichung, aber ein Zeigerwechsel. */
.ss-table th a.ss-sort { color: inherit; text-decoration: none; display: block; }
.ss-table th a.ss-sort:hover { color: #2563eb; }

/* Vorschaubild in der Liste. Feste Groesse, damit die Zeilenhoehe nicht
   springt, waehrend die Bilder nacheinander eintreffen. */
.ss-col-bild { width: 65px; }
.ss-thumb {
    width: 55px; height: 55px; object-fit: contain;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 4px;
    display: block;
}
.ss-galerie .ss-thumb { width: 110px; height: 110px; }

/* Kopf der Detailseite: Bild links, Stammdaten rechts. Unter 700px
   untereinander - nebeneinander waere das Bild dann briefmarkengross. */
.ss-detail-kopf { display: flex; gap: 20px; flex-wrap: wrap; }
.ss-detail-bild img {
    width: 300px; height: 300px; object-fit: contain;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 6px;
}
.ss-detail-daten { flex: 1 1 340px; min-width: 300px; }
.ss-detail-tab th { width: 130px; white-space: nowrap; }
.ss-detail-tab td { width: auto; }

.ss-galerie { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 700px) {
    .ss-detail-bild img { width: 100%; height: auto; max-width: 300px; }
}

/* Hinweiszeile auf der Wartungsseite: nennt die Vorgangsnummer, mit der sich
   der Vorfall im Fehlerspeicher (fehler.php) in einem Schritt finden laesst.
   Bewusst unauffaellig - es ist eine Servicenummer, keine Fehlermeldung. */
.ss-hint {
    margin-top: 14px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
}
.ss-hint code {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 3px;
    padding: 1px 5px;
    font-size: 13px;
    letter-spacing: .5px;
}


/* ---------- Monitoring (monitoring.php) ---------- */
.ss-mon {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.ss-mon.ok       { background: #d1fae5; color: #065f46; }
.ss-mon.warning  { background: #fef3c7; color: #92400e; }
.ss-mon.critical { background: #fee2e2; color: #991b1b; }
.ss-mon.no_data  { background: #fee2e2; color: #991b1b; border: 1px dashed #f87171; }
.ss-mon.inactive { background: #e5e7eb; color: #374151; }
.ss-mon-gruppe {
    margin: 14px 0 2px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.ss-mon-gruppe:first-of-type { margin-top: 4px; }
.ss-mon-descr { font-size: 12px; color: #6b7280; margin-top: 2px; }
.ss-table-mon td a { color: #1f2937; font-weight: 600; text-decoration: none; }
.ss-table-mon td a:hover { color: #2563eb; text-decoration: underline; }


/* ---------- Info-Icons (includes/info.php) ----------
   Einheitliches "i" neben Kennzahlen, Ueberschriften und Spaltenkoepfen.
   Reines CSS auf <details>/<summary>: die CSP des Portals erlaubt kein
   JavaScript. Offen erscheint die Erlaeuterung als Karte in der
   Bildschirmmitte ueber einem abgedunkelten Hintergrund. Der Hintergrund
   ist summary::before - ein Klick darauf schliesst die Karte wieder.
   Fest positioniert (position:fixed), damit sie weder in rollenden
   Tabellen (.ss-tablewrap) abgeschnitten wird noch am rechten Rand aus
   dem Bild laeuft. */
.ss-info {
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
    font-size: 13px;
    font-weight: normal;
    font-style: normal;
    text-transform: none;
    letter-spacing: normal;
    line-height: 1;
}
.ss-info > summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
    font: italic 700 11px/1 Georgia, "Times New Roman", serif;
    cursor: pointer;
    user-select: none;
}
.ss-info > summary::-webkit-details-marker { display: none; }
.ss-info > summary::marker { content: ""; }
.ss-info > summary:hover { background: #dbeafe; border-color: #60a5fa; }
.ss-info > summary:focus { outline: none; box-shadow: 0 0 0 2px rgba(96,165,250,0.45); }
.ss-info[open] > summary { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.ss-info[open] > summary::before {
    content: "";
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 900;
    background: rgba(15,23,42,0.35);
    cursor: default;
}

.ss-info-pop {
    position: fixed;
    z-index: 901;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    max-width: calc(100vw - 32px);
    max-height: 82vh;
    overflow-y: auto;
    padding: 16px 20px 12px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-top: 4px solid #2563eb;
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(15,23,42,0.30);
    color: #1f2937;
    font-size: 13px;
    font-weight: normal;
    font-style: normal;
    line-height: 1.55;
    text-align: left;
    text-transform: none;
    letter-spacing: normal;
    white-space: normal;
    word-wrap: break-word;
    cursor: auto;
}
.ss-info-titel {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}
.ss-info-abschnitt { margin-top: 10px; }
.ss-info-kopf {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #2563eb;
    margin-bottom: 3px;
}
.ss-info-text p  { margin: 0 0 6px; }
.ss-info-text p:last-child { margin-bottom: 0; }
.ss-info-text ul { margin: 2px 0 6px; padding-left: 18px; }
.ss-info-text li { margin: 2px 0; }
.ss-info-text code {
    background: #f3f5f8;
    padding: 0 4px;
    border-radius: 3px;
    font-size: 12px;
}
.ss-info-text .formel {
    display: block;
    margin: 4px 0 6px;
    padding: 5px 9px;
    background: #f8fafc;
    border-left: 3px solid #93c5fd;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    color: #111827;
}
.ss-info-technik {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px dashed #e5e7eb;
}
.ss-info-technik .ss-info-kopf { color: #9ca3af; }
.ss-info-technik .ss-info-text { color: #6b7280; font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.ss-info-zu {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
    font-size: 11px;
    color: #9ca3af;
    text-align: right;
}

@media print {
    .ss-info { display: none; }
}

/* ---------- Problem melden (ticket.php, Kopfzeilen-Verweis mit Alt+J) ---------- */
/* Fest unten rechts statt in der Kopfzeile: dort bricht die Navigation
   sonst schon unter 1500 px Breite in eine zweite Zeile um. */
.ss-melden {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 50;
    background: #f59e0b;
    color: #1f2937 !important;
    padding: 8px 14px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.ss-melden:hover, .ss-melden.active { background: #fbbf24; text-decoration: none; }
.ss-melden kbd { font-family: inherit; font-size: 11px; font-weight: normal; opacity: 0.75; margin-left: 6px; }
@media print { .ss-melden { display: none; } }
.ss-ticket .ss-table td:first-child { white-space: nowrap; }
.ss-main { padding-bottom: 40px; }
.ss-ticket-hinweis { color: #4b5563; font-size: 13px; margin: 0 0 14px; }
.ss-ticket-form { max-width: 760px; }
.ss-ticket-zeile { margin-bottom: 12px; }
.ss-ticket-zeile > label { display: block; font-weight: 600; color: #374151; margin-bottom: 4px; }
.ss-ticket-form input[type=text],
.ss-ticket-form select,
.ss-ticket-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 7px 9px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    font-size: 13px;
    font-family: inherit;
}
.ss-ticket-form textarea { resize: vertical; min-height: 120px; }
.ss-ticket-form input:focus, .ss-ticket-form select:focus, .ss-ticket-form textarea:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(96,165,250,0.3);
}
.ss-ticket-form input[type=file] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 14px;
    border: 2px dashed #cbd5e1;
    border-radius: 4px;
    background: #f8fafc;
}
.ss-ticket-bezug { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 4px; padding: 8px 10px; margin-bottom: 12px; }
.ss-ticket-check { font-weight: normal; }
.ss-ticket-bezug code { background: #fff; padding: 1px 5px; border-radius: 3px; }
.ss-ticket-opt { font-weight: normal; color: #6b7280; }
.ss-ticket-klein { font-size: 12px; color: #6b7280; margin-top: 4px; line-height: 1.5; }
.ss-ticket-knopf .ss-btn { margin-right: 8px; }
.ss-ticket kbd {
    display: inline-block;
    padding: 0 5px;
    border: 1px solid #d1d5db;
    border-bottom-width: 2px;
    border-radius: 3px;
    background: #f9fafb;
    font-size: 11px;
    font-family: inherit;
}
