Leonard Schulz 1 éve
szülő
commit
0a3b773719

+ 21 - 0
src/main/resources/static/css/hhm-einkommen.css

@@ -143,6 +143,27 @@
   min-width: 80px;
 }
 
+/* =============================================================================
+   DIFF-HIGHLIGHTING FÜR DETAIL-TABELLEN
+   ============================================================================= */
+/* Geänderte Zellen in Detail-Tabellen sollen gelb hervorgehoben werden */
+.details-table .cell-changed,
+.details-table td:has(.cell-changed) {
+  background: var(--gelb-hell) !important;
+}
+
+/* Hinzugefügte Zellen in Detail-Tabellen sollen grün hervorgehoben werden */
+.details-table .cell-added,
+.details-table td:has(.cell-added) {
+  background: var(--gruen-hell) !important;
+}
+
+/* Gelöschte Zellen in Detail-Tabellen sollen rot hervorgehoben werden */
+.details-table .cell-deleted,
+.details-table td:has(.cell-deleted) {
+  background: var(--rot-hell) !important;
+}
+
 /* =============================================================================
    LAYOUT FÜR FREIBETRÄGE UND KINDERBETREUUNG
    ============================================================================= */

+ 0 - 875
src/main/resources/static/styles.css

@@ -1,875 +0,0 @@
-/* =============================================================================
-   DIWO Vergleich - CSS Stylesheet
-   =============================================================================
-   
-   Inhaltsverzeichnis:
-   1. CSS Custom Properties (Variablen)
-   2. Reset & Base Styles
-   3. Layout Components
-   4. Form Elements
-   5. Button Styles
-   6. Table Styles
-   7. Section Components (Collapsible Sections)
-   8. Specific Table Types
-   9. Legend & Color Picker
-   10. Header Components
-   11. Responsive Design
-   ============================================================================= */
-
-/* =============================================================================
-   1. 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;
-  --berlin-rot: #e20613;
-  --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="alternative"] {
-  --rot-hell: #ffe6f5;
-  --gelb-hell: #ffeccc;
-  --gruen-hell: #e6f9ff;
-  --rot: #cc0044;
-  --gelb: #b8620e;
-  --gruen: #008a8a;
-}
-
-/* =============================================================================
-   2. 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;
-}
-
-/* =============================================================================
-   3. 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;
-}
-
-.freibetrag-container {
-  display: flex;
-  gap: 16px;
-  margin: 0.6rem 0 1rem;
-}
-
-.freibetrag-section {
-  flex: 1;
-  min-width: 0;
-}
-
-.freibetrag-section h3 {
-  margin: 0 0 0.6rem;
-  font-size: 16px;
-}
-
-.kinderbetreuung-container {
-  max-width: 50%;
-}
-
-.error-box {
-  background: var(--rot-hell);
-  border-left: 4px solid var(--rot);
-  padding: 0.6rem;
-  margin: 0.6rem 0;
-  border-radius: 4px;
-}
-
-/* =============================================================================
-   4. 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;
-}
-
-.vorgang-select,
-.zeitraum-select {
-  width: 200px;
-  padding: 4px 8px;
-  font-size: 13px;
-  min-height: 32px;
-}
-
-.color-scheme-select {
-  width: 100%;
-  padding: 6px 8px;
-  font-size: 13px;
-  border: 2px solid var(--grau-stark);
-  border-radius: 4px;
-  min-height: 32px;
-}
-
-/* =============================================================================
-   5. 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);
-}
-
-/* Aufklapp-Button für Personendetails */
-.expand-btn {
-  background: none;
-  border: 1px solid var(--grau-stark);
-  cursor: pointer;
-  font-size: 14px;
-  padding: 4px 6px;
-  border-radius: 3px;
-  transition: all 0.2s ease;
-  min-height: 28px;
-  min-width: 28px;
-  color: var(--diwo-blau);
-  display: flex;
-  align-items: center;
-  justify-content: center;
-}
-
-.expand-btn:hover {
-  background: var(--diwo-blau-hell);
-  border-color: var(--diwo-blau);
-}
-
-.expand-btn:focus {
-  outline: 2px solid var(--focus-color);
-  outline-offset: 1px;
-}
-
-.expand-btn span {
-  transition: transform 0.2s ease;
-  font-weight: bold;
-}
-
-.expand-btn[aria-expanded="true"] span {
-  transform: rotate(90deg);
-}
-
-.expand-btn:focus-visible {
-  outline: 3px solid var(--focus-color);
-  outline-offset: 2px;
-}
-
-/* =============================================================================
-   6. 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);
-}
-
-/* Diff-Highlighting für Tabellenzeilen */
-.diff-row-added {
-  background: var(--gruen-hell);
-}
-
-.diff-row-removed {
-  background: var(--rot-hell);
-}
-
-.cell-changed,
-td:has(.cell-changed) {
-  background: var(--gelb-hell);
-}
-
-.cell-changed:not(.sym)::before {
-  content: "! ";
-  color: var(--gelb);
-  font-weight: bold;
-  font-size: 0.9em;
-  margin-right: 4px;
-}
-
-.old {
-  display: block;
-  font-size: 0.85em;
-  margin-top: 0.2rem;
-  opacity: 0.9;
-  font-style: italic;
-}
-
-/* Klickbare Tabellenzeilen für Personenauswahl */
-.person-row {
-  cursor: pointer;
-  transition: background-color 0.2s ease;
-  position: relative;
-}
-
-.person-row:hover {
-  background-color: var(--diwo-blau-hell);
-}
-
-.person-row:focus {
-  background-color: var(--diwo-blau-hell);
-  outline: var(--focus-outline);
-  outline-offset: 1px;
-  z-index: 1;
-}
-
-/* Ausgewählte Person - nur auf HHM-Seite anzeigen */
-.person-selected {
-  outline: none;
-}
-
-.hhm-page .person-selected {
-  outline: 3px solid var(--diwo-blau);
-  outline-offset: -3px;
-}
-
-/* =============================================================================
-   7. 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;
-}
-
-/* =============================================================================
-   8. SPECIFIC TABLE TYPES
-   ============================================================================= */
-
-/* Expandable Tables für Personendetails */
-.expandable-table {
-  width: 100%;
-  border-collapse: collapse;
-  background: var(--weiss);
-  border: 1px solid var(--grau-stark);
-  margin: 0.6rem 0 1rem;
-  border-spacing: 0;
-}
-
-.expand-col {
-  width: 40px;
-  min-width: 40px;
-  max-width: 40px;
-  text-align: center;
-  padding: 0.25rem;
-}
-
-/* Detail-Zeilen für Personendetails */
-.person-details-row {
-  transition: all 0.3s ease;
-}
-
-.person-details-row.hidden {
-  display: none;
-}
-
-.details-cell {
-  padding: 16px;
-  background: var(--grau-stark) !important;
-  border-left: 4px solid var(--diwo-blau);
-}
-
-.details-container {
-  max-width: 100%;
-}
-
-.details-table {
-  width: 100%;
-  border-collapse: collapse;
-  background: var(--weiss);
-  border: 1px solid var(--grau-stark);
-  margin-top: 8px;
-  font-size: 14px;
-}
-
-.details-table td {
-  border: 1px solid var(--grau-stark);
-  padding: 6px 8px;
-  vertical-align: top;
-  background: var(--weiss);
-}
-
-.detail-label {
-  font-weight: bold;
-  background: var(--grau-hell);
-  color: var(--schwarz);
-  width: 12.5%;
-  min-width: 80px;
-}
-
-/* Wohnung Grid Table */
-.wohnung-grid-table {
-  width: 100%;
-  border-collapse: collapse;
-  background: var(--weiss);
-  border: 1px solid var(--grau-stark);
-  margin: 0;
-  font-size: 14px;
-}
-
-.wohnung-grid-table td {
-  border: 1px solid var(--grau-stark);
-  padding: 8px 12px;
-  vertical-align: middle;
-}
-
-.label-cell {
-  font-weight: bold;
-  background: var(--grau-hell);
-  color: var(--schwarz);
-  white-space: nowrap;
-}
-
-.value-cell {
-  background: var(--weiss);
-}
-
-/* Miete Grid Table */
-.miete-grid-table {
-  width: 100%;
-  border-collapse: collapse;
-  background: var(--weiss);
-  border: 1px solid var(--grau-stark);
-  margin: 0;
-  font-size: 14px;
-  table-layout: fixed;
-}
-
-.miete-grid-table td,
-.miete-grid-table th {
-  border: 1px solid var(--grau-stark);
-  padding: 8px;
-  vertical-align: middle;
-  text-align: left;
-}
-
-/* Header-Zellen in Miete-Tabelle */
-.miete-grid-table .miete-header-cell {
-  font-weight: bold;
-  background: var(--grau-stark);
-  color: var(--schwarz);
-  text-align: left;
-}
-
-/* Verschiedene Zelltypen in Miete-Tabelle */
-.miete-grid-table .label-cell {
-  font-weight: bold;
-  background: var(--grau-hell);
-  color: var(--schwarz);
-  white-space: nowrap;
-  width: 15%;
-}
-
-.miete-grid-table .value-cell {
-  background: var(--weiss);
-  text-align: left;
-  width: 15%;
-}
-
-.miete-grid-table .pauschale-cell {
-  background: var(--weiss);
-  text-align: left;
-  font-style: normal;
-  color: var(--schwarz);
-  font-size: 14px;
-  width: 15%;
-}
-
-.miete-grid-table .gewerbefläche-cell {
-  background: var(--weiss);
-  color: var(--schwarz);
-  font-weight: normal;
-  text-align: left;
-}
-
-.miete-grid-table .empty-cell {
-  background: var(--weiss);
-  width: 10%;
-}
-
-.miete-grid-table .section-header-cell {
-  font-weight: bold;
-  color: var(--diwo-blau);
-  background: var(--grau-stark);
-  text-align: left;
-}
-
-/* =============================================================================
-   9. LEGEND & COLOR PICKER
-   ============================================================================= */
-.vergleich-legende {
-  display: flex;
-  align-items: center;
-  gap: 12px;
-  margin: 12px 0;
-  padding: 8px 12px;
-  background: var(--grau-hell);
-  border: 1px solid var(--grau-stark);
-  border-radius: 4px;
-  font-size: 13px;
-}
-
-.legende-item {
-  display: flex;
-  align-items: center;
-  gap: 4px;
-  padding: 4px 8px;
-  border-radius: 3px;
-}
-
-.legende-item:has(.plus) {
-  background: var(--gruen-hell);
-  border: 1px solid var(--gruen); 
-}
-
-.legende-item:has(.minus) {
-  background: var(--rot-hell);
-  border: 1px solid var(--rot);
-}
-
-.legende-item:has(.warn) {
-  background: var(--gelb-hell);
-  border: 1px solid var(--gelb);
-}
-
-.legende-title {
-  margin-right: 8px;
-  font-size: 13px;
-}
-
-.legende-spacer {
-  color: var(--grau-stark);
-  font-weight: bold;
-}
-
-.selected-indicator-text {
-  border: 3px solid var(--diwo-blau);
-  padding: 2px 4px;
-  border-radius: 2px;
-  display: inline-block;
-}
-
-/* Legende-Item für ausgewählte Person nur auf HHM-Seite anzeigen */
-.hhm-only {
-  display: none;
-}
-
-.hhm-page .hhm-only {
-  display: flex;
-}
-
-/* Color Picker */
-.color-picker-container {
-  position: relative;
-  display: flex;
-  align-items: center;
-  gap: 4px;
-  margin-left: auto;
-}
-
-.color-picker-toggle {
-  background: none;
-  border: 2px solid var(--grau-stark);
-  cursor: pointer;
-  font-size: 16px;
-  padding: 4px;
-  border-radius: 4px;
-  transition: all 0.2s ease;
-  min-height: 32px;
-  min-width: 32px;
-}
-
-.color-picker-toggle:hover {
-  background: var(--grau-stark);
-  border-color: var(--diwo-blau);
-}
-
-.color-picker-popup {
-  position: absolute;
-  top: 100%;
-  right: 0;
-  background: var(--weiss);
-  border: 2px solid var(--grau-stark);
-  border-radius: 4px;
-  padding: 12px;
-  box-shadow: 0 4px 12px rgba(20, 92, 158, 0.2);
-  z-index: 1000;
-  font-size: 13px;
-  min-width: 160px;
-}
-
-.color-picker-popup.hidden {
-  display: none;
-}
-
-.color-picker-popup label {
-  font-weight: bold;
-  margin-bottom: 6px;
-  display: block;
-}
-
-/* =============================================================================
-   10. HEADER COMPONENTS
-   ============================================================================= */
-.diwo-header {
-  background: var(--weiss);
-  border: 1px solid var(--grau-stark);
-  padding: 12px 16px;
-  margin-bottom: 16px;
-  border-radius: 4px;
-}
-
-.header-row-1 {
-  display: flex;
-  align-items: center;
-  gap: 20px;
-  margin-bottom: 8px;
-  padding-bottom: 8px;
-  border-bottom: 1px solid var(--grau-stark);
-}
-
-.kunde-logo {
-  width: auto;
-  height: 50px;
-  display: flex;
-  align-items: center;
-  justify-content: center;
-}
-
-.kunde-logo-container {
-  display: flex;
-  align-items: center;
-  justify-content: center;
-  width: 100%;
-  height: 100%;
-}
-
-.kunde-logo-image {
-  max-width: auto;
-  max-height: 50px;
-  object-fit: contain;
-  border-radius: 4px;
-}
-
-.diwo-title {
-  display: flex;
-  flex-direction: column;
-  align-items: flex-start;
-}
-
-.diwo-title h1 {
-  font-size: 24px;
-  font-weight: bold;
-  margin: 0;
-  color: var(--diwo-blau);
-}
-
-.diwo-title h2 {
-  font-size: 18px;
-  font-weight: normal;
-  margin: 0;
-  color: var(--schwarz);
-}
-
-.page-title {
-  font-size: 16px;
-  font-weight: bold;
-  flex: 1;
-  text-align: center;
-}
-
-.header-row-2 {
-  display: grid;
-  grid-template-columns: auto 1fr auto;
-  gap: 20px;
-  margin-bottom: 8px;
-  align-items: center;
-}
-
-.aktenzeichen {
-  font-weight: bold;
-  font-size: 14px;
-}
-
-.antragsteller-info {
-  text-align: center;
-  font-weight: bold;
-}
-
-.location-info {
-  text-align: right;
-  font-size: 13px;
-}
-
-.header-row-3 {
-  display: flex;
-  justify-content: space-between;
-  align-items: center;
-  margin-top: 8px;
-  padding-top: 8px;
-  border-top: 1px solid var(--grau-stark);
-}
-
-.vorgang-info {
-  font-size: 13px;
-}
-
-/* Vergleichssteuerungen */
-.vergleich-controls {
-  display: flex;
-  align-items: center;
-}
-
-.vergleich-controls-wrapper {
-  display: flex;
-  align-items: center;
-  gap: 16px;
-}
-
-.vorgang-form,
-.zeitraum-form {
-  display: flex;
-  align-items: center;
-  gap: 8px;
-}
-
-/* =============================================================================
-   11. RESPONSIVE DESIGN
-   ============================================================================= */
-
-/* Bei kleinen Bildschirmen: Freibeträge untereinander anordnen */
-@media (max-width: 1200px) {
-  .freibetrag-container {
-    flex-direction: column;
-  }
-
-  .kinderbetreuung-container {
-    max-width: 100%;
-  }
-}
-
-/* Responsive Verhalten für Miete-Grid */
-@media (max-width: 1400px) {
-  .miete-grid-table {
-    table-layout: auto;
-    font-size: 13px;
-  }
-  
-  .miete-grid-table td,
-  .miete-grid-table th {
-    padding: 6px;
-  }
-  
-  .miete-grid-table .label-cell,
-  .miete-grid-table .value-cell,
-  .miete-grid-table .pauschale-cell,
-  .miete-grid-table .empty-cell {
-    width: auto;
-  }
-}
-
-@media (max-width: 1000px) {
-  .miete-grid-table {
-    font-size: 12px;
-  }
-  
-  .miete-grid-table td,
-  .miete-grid-table th {
-    padding: 4px;
-  }
-}
-
-@media (max-width: 800px) {
-  .miete-grid-table {
-    display: block;
-    overflow-x: auto;
-    white-space: nowrap;
-  }
-}