/* css/tc-partnerereignisse.css - Partnerereignisse (10.11.2026, OTS-0887): intern + Partnerportal.
   Hohe Prioritaet immer mit Symbol "!" UND Text "Hohe Prioritaet" - Farbe nie einziges Merkmal; Status als Text-Badges. */

.tc-pe-prio { display: inline-flex; align-items: center; gap: .3em; font-weight: 600; white-space: nowrap; }
.tc-pe-prio--normal { color: var(--color-text-muted, #555); font-weight: 400; }
.tc-pe-prio--hoch { color: #fff; background: var(--color-danger, #C0272D); border-radius: 4px; padding: .1em .5em; }
.tc-pe-prio-symbol, .tc-pe-prio--hoch > span[aria-hidden="true"] { display: inline-flex; align-items: center; justify-content: center; width: 1.25em; height: 1.25em; border-radius: 50%;
	background: #fff; color: var(--color-danger, #C0272D); font-weight: 800; line-height: 1; }

.tc-pe-zeile--hoch > td:first-child { box-shadow: inset 4px 0 0 var(--color-danger, #C0272D); }
/* Roman 10.11.2026: abgeschlossene Ereignisse ausgegraut, hohe Prioritaet nur noch zurueckhaltend (ohne Rot) */
.tc-pe-zeile--erledigt > td { opacity: .55; }
.tc-pe-zeile--erledigt:hover > td, .tc-pe-zeile--erledigt:focus-within > td { opacity: .85; }
.tc-pe-prio--hoch-erledigt { color: var(--color-text-muted, #555); border: 1px solid var(--color-border, #b8bdc6); border-radius: 4px; padding: .05em .45em; font-weight: 600; }
.tc-pe-kopf--hoch { border-left: 6px solid var(--color-danger, #C0272D); }
.tc-pe-chip--hoch { border-color: var(--color-danger, #C0272D) !important; }

.tc-pe-badge { display: inline-block; padding: .15em .55em; margin: .1em .2em .1em 0; border: 1px solid var(--color-border, #b8bdc6); border-radius: 999px; font-size: .9em; white-space: nowrap; }
.tc-pe-badge--neu { font-weight: 700; border-color: var(--color-primary, #1f5fa8); color: var(--color-primary, #1f5fa8); }
.tc-pe-badge--offen { font-weight: 600; border-color: #9a6700; color: #7a5200; background: #fff6dc; }
.tc-pe-badge--ok { border-color: #2c7a3f; color: #1f5e2f; background: #eaf6ec; }
.tc-pe-badge--intern { border-color: #6b4fa0; color: #4b3378; background: #f1ecfa; font-weight: 600; }

.tc-pe-status-zeile { margin: .4em 0 .8em; }
.tc-pe-daten { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .6rem 1.2rem; margin: 0 0 1rem; }
.tc-pe-daten dt { font-size: .85em; color: var(--color-text-muted, #555); }
.tc-pe-daten dd { margin: .1em 0 0; font-weight: 600; }
.tc-pe-inhalt { padding: .8rem 1rem; border-radius: 6px; background: var(--color-surface-subtle, #f4f6f9); line-height: 1.5; margin-bottom: 1rem; font-size: 1.05em; }
.tc-pe-aktionen { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.tc-pe-aktionen .button { min-height: 2.75rem; }
.tc-pe-mono { font-family: ui-monospace, Consolas, monospace; }

.tc-pe-verlauf { list-style: none; margin: 0 0 1rem; padding: 0; }
.tc-pe-verlauf-eintrag { padding: .6rem .8rem; border-left: 4px solid var(--color-border, #b8bdc6); margin-bottom: .6rem; background: var(--color-surface, #fff); }
.tc-pe-verlauf-eintrag--system { border-left-color: #9a6700; }
.tc-pe-verlauf-eintrag--partner { border-left-color: var(--color-primary, #1f5fa8); }
.tc-pe-verlauf-eintrag--intern { border-left-color: #6b4fa0; background: #f8f5fd; }
.tc-pe-verlauf-kopf { margin: 0 0 .3em; display: flex; flex-wrap: wrap; gap: .5em; align-items: baseline; }
.tc-pe-verlauf-eintrag p { margin: 0; }

.tc-pe-kz { white-space: normal; }
.tc-pe-kz a { text-decoration: none; }
.tc-pe-kz a:hover, .tc-pe-kz a:focus { text-decoration: underline; }
.tc-pe-kz--leer { color: var(--color-text-muted, #555); }
.tc-pe-kz-block { padding: .6rem 1rem; border: 1px solid var(--color-border, #d0d4db); border-radius: 6px; margin: .5rem 0 1rem; }
.tc-pe-kz-block p { margin: .25em 0; }
.tc-pe-liste { margin: 0; padding-left: 1.2em; }
.tc-pe-liste li { margin: .25em 0; }
.tc-pe-filter { margin: .5rem 0 1rem; }
.tc-pe-sicht { border: 0; padding: 0; margin: .4rem 0; }


:root[data-theme="dunkel"] .tc-pe-badge--offen { background: #3a2f12; color: #f5d27a; border-color: #b58b26; }
:root[data-theme="dunkel"] .tc-pe-badge--ok { background: #163222; color: #9ad9ad; border-color: #3f8f57; }
:root[data-theme="dunkel"] .tc-pe-badge--intern { background: #2b2140; color: #cdb8f2; border-color: #7d63b3; }
:root[data-theme="dunkel"] .tc-pe-verlauf-eintrag--intern { background: #241d33; }
:root[data-theme="dunkel"] .tc-pe-inhalt { background: rgba(255, 255, 255, .06); }
:root[data-theme="dunkel"] .tc-pe-verlauf-eintrag { background: transparent; }

/* 10.11.2026 (OTS-0890): Kennzahlenkachel "Hohe Prioritaet" rechts auf der Portal-Startseite - Rahmen + "!" + Text */
.pp-kachel.tc-pe-kachel--hoch { border-color: var(--color-danger, #C0272D); box-shadow: inset 0 0 0 1px var(--color-danger, #C0272D); } /* gleiche Groesse wie die anderen Kacheln */
.pp-kachel.tc-pe-kachel--hoch .pp-kachel-zahl { color: var(--color-danger, #C0272D); }
:root[data-theme="dunkel"] .pp-kachel.tc-pe-kachel--hoch .pp-kachel-zahl { color: #ff8a8f; }

/* 10.11.2026 (Roman): Kennzahlenkacheln mit dem Wert 0 rechts auf der Portal-Startseite verblasst; bei Fokus/Hover wieder voll */
.pp-kachel.pp-kachel--null { opacity: .45; }
.pp-kachel.pp-kachel--null:hover, .pp-kachel.pp-kachel--null:focus-visible { opacity: 1; }

/* 10.11.2026 (Roman): Kenntnisnahme/Erledigung als Funktionskachel mit Symbol und leichter Einfaerbung statt schlichtem Knopf */
.tc-pe-aktionen { gap: .8rem; }
.tc-pe-aktionen form { flex: 1 1 18rem; display: flex; margin: 0; }
.tc-pe-aktion { display: flex; align-items: center; gap: .9rem; width: 100%; min-height: 4.5rem; padding: .9rem 1.1rem; border-radius: 10px; cursor: pointer;
	text-align: left; font: inherit; color: var(--color-text, #1f2328); border: 2px solid; transition: box-shadow .15s, transform .15s; }
.tc-pe-aktion:hover, .tc-pe-aktion:focus-visible { box-shadow: 0 4px 14px rgba(0, 0, 0, .14); transform: translateY(-1px); color: var(--color-text, #1f2328); }
.tc-pe-aktion:focus-visible { outline: 3px solid var(--color-fokus-ring, #1f5fa8); outline-offset: 2px; }
.tc-pe-aktion-symbol { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; color: #fff; }
.tc-pe-aktion-symbol svg { width: 1.4rem; height: 1.4rem; }
.tc-pe-aktion-text { display: flex; flex-direction: column; gap: .15rem; }
.tc-pe-aktion-titel { font-weight: 700; font-size: 1.1em; }
.tc-pe-aktion-beschreibung { font-size: .92em; color: var(--color-text-muted, #4b5260); }
.tc-pe-aktion--kenntnis { background: #eaf2fc; border-color: #9cbfe8; }
.tc-pe-aktion--kenntnis:hover, .tc-pe-aktion--kenntnis:focus-visible { background: #dceafb; border-color: #1f5fa8; }
.tc-pe-aktion--kenntnis .tc-pe-aktion-symbol { background: #1f5fa8; }
.tc-pe-aktion--erledigt { background: #eaf6ec; border-color: #9fd0aa; }
.tc-pe-aktion--erledigt:hover, .tc-pe-aktion--erledigt:focus-visible { background: #dcf0e0; border-color: #2c7a3f; }
.tc-pe-aktion--erledigt .tc-pe-aktion-symbol { background: #2c7a3f; }
:root[data-theme="dunkel"] .tc-pe-aktion { color: #e8eaed; }
:root[data-theme="dunkel"] .tc-pe-aktion-beschreibung { color: #b8bec8; }
:root[data-theme="dunkel"] .tc-pe-aktion--kenntnis { background: #17283d; border-color: #3d6da6; }
:root[data-theme="dunkel"] .tc-pe-aktion--kenntnis:hover, :root[data-theme="dunkel"] .tc-pe-aktion--kenntnis:focus-visible { background: #1d3350; color: #fff; }
:root[data-theme="dunkel"] .tc-pe-aktion--erledigt { background: #15301f; border-color: #3f8f57; }
:root[data-theme="dunkel"] .tc-pe-aktion--erledigt:hover, :root[data-theme="dunkel"] .tc-pe-aktion--erledigt:focus-visible { background: #1b3d28; color: #fff; }

/* 10.11.2026 (Roman: "Abstaende sind verschieden"): rechte Spalte der Portal-Startseite - Ueberschrift nah an ihren Kacheln (8px),
   deutlich groesserer, ueberall gleicher Abstand zwischen den Bloecken (24px) */
.pp-start-meldungen .pp-abschnitt { margin-bottom: -4px; }
.pp-start-meldungen .pp-abschnitt:not(:first-child) { margin-top: 12px; }
.pp-body a.pp-kachel.tc-pe-kachel--hoch:hover, .pp-body a.pp-kachel.tc-pe-kachel--hoch:focus-visible { border-color: var(--color-danger, #C0272D);
	box-shadow: inset 0 0 0 1px var(--color-danger, #C0272D), 0 12px 28px rgba(31, 58, 138, .16); }
.pp-body a.pp-kachel.tc-pe-kachel--hoch:hover .pp-kachel-zahl, .pp-body a.pp-kachel.tc-pe-kachel--hoch:focus-visible .pp-kachel-zahl { color: var(--color-danger, #C0272D); }
