| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471 |
- /* =============================================================================
- DIWO Vergleich - Global CSS
- =============================================================================
-
- Gemeinsame Stile die von allen Seiten verwendet werden:
- - CSS Custom Properties (Variablen)
- - Reset & Base Styles
- - Layout Components
- - Form Elements
- - Button Styles
- - Table Styles
- - Section Components (Collapsible Sections)
- ============================================================================= */
- /* =============================================================================
- CSS CUSTOM PROPERTIES (VARIABLEN)
- ============================================================================= */
- :root {
- /* Standard Farben mit verbessertem Kontrast */
- --rot-hell: #ffe6e6;
- --gelb-hell: #fff8db;
- --gruen-hell: #e8f5e8;
- --rot: #b30000;
- --gelb: #9d5502;
- --gruen: #004d26;
- --weiss: #ffffff;
- --schwarz: #000000;
- --grau-hell: #f7f9fa;
- --grau-stark: #d7d8d9;
- --diwo-blau: #145c9e;
- --diwo-blau-hell: #cfe8fc;
-
- /* Focus Ring Farbe für bessere Sichtbarkeit */
- --focus-color: #0066cc;
- --focus-outline: 3px solid var(--focus-color);
- }
- /* Alternative Farben mit besserem Kontrast */
- :root[data-color-scheme="alt-a"] {
- --rot-hell: #ffe6f5;
- --gelb-hell: #fff2cc;
- --gruen-hell: #e6f7ff;
- --rot: #cc0044;
- --gelb: #b8620e;
- --gruen: #0077b6;
- }
- /* Alternative B – maximale Kontrastunterscheidung */
- :root[data-color-scheme="alt-b"] {
- --rot-hell: #ffe6f0;
- --gelb-hell: #e6ebff;
- --gruen-hell: #eaf7d4;
- --rot: #d00070;
- --gelb:#0040ff ;
- --gruen: #7a9e00;
- }
- /* Alternative Pastell (ohne Ampel-Assoziation) */
- :root[data-color-scheme="alt-pastell"] {
- --rot-hell:#ffeef2 ;
- --gelb-hell:#f3e8ff;
- --gruen-hell: #e8f0ff;
- --rot: #e67891;
- --gelb: #9d6ee8;
- --gruen: #4f9df7;
- }
- /* =============================================================================
- RESET & BASE STYLES
- ============================================================================= */
- * {
- box-sizing: border-box;
- }
- body {
- margin: 0;
- padding: 16px;
- background: var(--grau-hell);
- color: var(--schwarz);
- font: 14px/1.5 system-ui, sans-serif;
- }
- h1, h2, h3 {
- margin: 0.2rem 0 0.6rem;
- line-height: 1.3;
- }
- /* Focus-Stile für bessere Keyboard-Navigation */
- *:focus {
- outline: var(--focus-outline);
- outline-offset: 2px;
- }
- button:focus,
- select:focus,
- input:focus,
- .person-row:focus,
- .section-header:focus {
- outline: var(--focus-outline);
- outline-offset: 2px;
- }
- tr:focus {
- outline: var(--focus-outline);
- outline-offset: 1px;
- position: relative;
- z-index: 1;
- }
- /* =============================================================================
- LAYOUT COMPONENTS
- ============================================================================= */
- .row {
- display: flex;
- gap: 0.5rem;
- align-items: center;
- }
- .grid-2 {
- display: grid;
- grid-template-columns: 1fr 1fr;
- gap: 12px;
- }
- .grid-2 .full {
- grid-column: 1/-1;
- }
- .error-box {
- background: var(--rot-hell);
- border-left: 4px solid var(--rot);
- padding: 0.6rem;
- margin: 0.6rem 0;
- border-radius: 4px;
- }
- /* =============================================================================
- FORM ELEMENTS
- ============================================================================= */
- textarea,
- input,
- select {
- width: 100%;
- padding: 0.5rem;
- background: var(--weiss);
- color: var(--schwarz);
- border: 2px solid var(--grau-stark);
- border-radius: 4px;
- font-size: 14px;
- }
- textarea:hover,
- input:hover,
- select:hover {
- border-color: var(--diwo-blau);
- }
- .control-group {
- display: flex;
- align-items: center;
- gap: 8px;
- }
- .control-group label {
- font-size: 13px;
- font-weight: bold;
- white-space: nowrap;
- }
- /* =============================================================================
- BUTTON STYLES
- ============================================================================= */
- button {
- padding: 0.5rem 0.9rem;
- border: 2px solid var(--grau-stark);
- background: var(--weiss);
- cursor: pointer;
- font-size: 14px;
- min-height: 44px;
- transition: all 0.2s ease;
- }
- button:hover {
- background: var(--grau-hell);
- border-color: var(--diwo-blau);
- }
- button:active {
- transform: translateY(1px);
- }
- /* =============================================================================
- TABLE STYLES
- ============================================================================= */
- table {
- width: 100%;
- border-collapse: collapse;
- background: var(--weiss);
- border: 1px solid var(--grau-stark);
- margin: 0.6rem 0 1rem;
- border-spacing: 0;
- }
- th, td {
- border: 1px solid var(--grau-stark);
- padding: 0.5rem;
- vertical-align: top;
- text-align: left;
- }
- th {
- background: var(--grau-stark);
- position: sticky;
- top: 0;
- font-weight: bold;
- color: var(--schwarz);
- }
- /* Symbol-Spalte */
- .sym {
- width: 2.5rem;
- min-width: 2.5rem;
- max-width: 2.5rem;
- text-align: center;
- font-weight: 700;
- font-size: 16px;
- }
- .sym.plus {
- color: var(--gruen);
- }
- .sym.minus {
- color: var(--rot);
- }
- .sym.warn {
- color: var(--gelb);
- }
- /* FontAwesome Icons in Symbol-Spalte */
- .sym i.fas {
- font-family: "Font Awesome 6 Free";
- font-weight: 900;
- font-style: normal;
- font-variant: normal;
- text-rendering: auto;
- line-height: 1;
- }
- .sym i.fa-plus,
- .sym i.fa-minus,
- .sym i.fa-exclamation {
- font-size: 16px;
- display: inline-block;
- }
- /* Diff-Highlighting für Tabellenzeilen */
- .diff-row-added {
- background: var(--gruen-hell);
- }
- .diff-row-removed {
- background: var(--rot-hell);
- }
- /* =============================================================================
- NEUE ICON-BASIERTE DIFF-DARSTELLUNG
- ============================================================================= */
- /* Container für den neuen Icon+Text Layout */
- .diff-content {
- display: flex;
- align-items: flex-start;
- min-height: 2.4em;
- gap: 2px;
- }
- .diff-icon {
- flex-shrink: 0;
- width: 18px; /* Größeres Icon */
- height: 18px; /* Größeres Icon */
- font-size: 16px; /* Größere Schrift für das Icon */
- display: flex;
- align-items: center;
- justify-content: center;
- margin-top: 0.1em; /* Kleinerer Abstand oben */
- position: relative;
- }
- .diff-text {
- flex: 1;
- line-height: 1.3;
- min-width: 0; /* Verhindert Overflow-Probleme */
- }
- .diff-current-value {
- display: block;
- font-weight: normal;
- word-wrap: break-word;
- overflow-wrap: break-word;
- }
- .diff-status-text {
- display: block;
- font-size: 0.85em;
- margin-top: 0.3rem;
- opacity: 0.9;
- font-style: italic;
- word-wrap: break-word;
- overflow-wrap: break-word;
- }
- /* Icon-spezifische Farben mit besserer Sichtbarkeit */
- .diff-icon.changed {
- color: var(--gelb);
- }
- .diff-icon.added {
- color: var(--gruen);
- }
- .diff-icon.deleted {
- color: var(--rot);
- }
- /* FontAwesome Icons in Diff-Icons */
- .diff-icon i.fas {
- font-family: "Font Awesome 6 Free";
- font-weight: 900;
- font-style: normal;
- font-variant: normal;
- text-rendering: auto;
- line-height: 1;
- }
- /* Hintergrundfarben für die Zellen */
- .cell-changed,
- td:has(.cell-changed) {
- background: var(--gelb-hell);
- }
- .cell-added,
- td:has(.cell-added) {
- background: var(--gruen-hell);
- }
- .cell-deleted,
- td:has(.cell-deleted) {
- background: var(--rot-hell);
- }
- /* =============================================================================
- KOPIER-BUTTONS FÜR ALTE WERTE
- ============================================================================= */
- .copy-btn {
- display: inline;
- margin-left: 0.25rem;
- padding: 0;
- font-size: 10px;
- line-height: 1;
- background: transparent;
- border: none;
- cursor: pointer;
- color: var(--schwarz);
- transition: all 0.15s ease;
- vertical-align: baseline;
- opacity: 0.6;
- height: auto;
- width: auto;
- min-height: unset !important;
- }
- .copy-btn i {
- font-size: 10px;
- line-height: 1;
- vertical-align: baseline;
- }
- .copy-btn:hover {
- opacity: 1;
- transform: scale(1.1);
- color: var(--schwarz);
- }
- .copy-btn:focus {
- outline: 1px solid var(--focus-color);
- outline-offset: 1px;
- opacity: 1;
- }
- .copy-btn:active {
- transform: scale(0.95);
- }
- /* Feedback-Stile für Kopier-Buttons */
- .copy-btn.copy-success {
- color: var(--gruen);
- opacity: 1;
- }
- .copy-btn.copy-error {
- color: var(--rot);
- opacity: 1;
- }
- /* Kopier-Buttons im neuen Diff-Layout */
- .diff-status-text .copy-btn {
- font-style: normal;
- }
- /* =============================================================================
- SECTION COMPONENTS (COLLAPSIBLE SECTIONS)
- ============================================================================= */
- .section-container {
- margin: 0.6rem 0 1rem;
- }
- .section-header {
- background: var(--grau-stark);
- padding: 12px 16px;
- border: 2px solid var(--grau-stark);
- border-radius: 4px 4px 0 0;
- cursor: pointer;
- display: flex;
- align-items: center;
- gap: 8px;
- user-select: none;
- transition: all 0.2s ease;
- min-height: 44px;
- }
- .section-header:hover {
- background: #c5c6c7;
- border-color: var(--diwo-blau);
- }
- .section-header h3 {
- margin: 0;
- font-size: 16px;
- font-weight: bold;
- }
- .toggle-icon {
- font-size: 14px;
- transition: transform 0.2s ease;
- font-weight: bold;
- }
- .toggle-icon.collapsed {
- transform: rotate(-90deg);
- }
- .section-content {
- border: 2px solid var(--grau-stark);
- border-top: none;
- border-radius: 0 0 4px 4px;
- transition: max-height 0.3s ease;
- overflow: visible;
- padding: 4px;
- }
- .section-content.collapsed {
- display: none;
- }
- .section-content table {
- margin: 0;
- border: none;
- }
|