:root { /* Standard Farben mit verbessertem Kontrast */ --rot-hell: #ffe6e6; --gelb-hell: #fff8db; --gruen-hell: #e8f5e8; --rot: #b30000; /* Verbessert von #800000 für besseren Kontrast */ --gelb: #9d5502; /* Verbessert von #784801 für besseren Kontrast */ --gruen: #004d26; /* Verbessert von #006633 für besseren Kontrast */ --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; /* Verbessert für besseren Kontrast */ --gelb: #b8620e; /* Verbessert für besseren Kontrast */ --gruen: #008a8a; /* Verbessert für besseren Kontrast */ } * { box-sizing: border-box; } body { margin: 0; padding: 16px; background: var(--grau-hell); color: var(--schwarz); font: 14px/1.5 system-ui, sans-serif; /* Verbesserte Zeilenhöhe für bessere Lesbarkeit */ } /* Focus-Stile für bessere Keyboard-Navigation */ *:focus { outline: var(--focus-outline); outline-offset: 2px; } /* Verbesserter Focus für interaktive Elemente */ button:focus, select:focus, input:focus, .person-row:focus, .section-header:focus { outline: var(--focus-outline); outline-offset: 2px; } h1, h2, h3 { margin: 0.2rem 0 0.6rem; line-height: 1.3; /* Verbesserte Zeilenhöhe für Überschriften */ } .muted { opacity: 0.8; } .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; } textarea, input, select { width: 100%; padding: 0.5rem; background: var(--weiss); color: var(--schwarz); border: 2px solid var(--grau-stark); /* Dickerer Border für bessere Sichtbarkeit */ border-radius: 4px; font-size: 14px; /* Explizite Schriftgröße für bessere Lesbarkeit */ } /* Hover-Effekte für bessere Interaktivität */ textarea:hover, input:hover, select:hover { border-color: var(--diwo-blau); } button { padding: 0.5rem 0.9rem; border: 2px solid var(--grau-stark); background: #fff; 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); } .error-box { background: var(--rot-hell); border-left: 4px solid var(--rot); padding: 0.6rem; margin: 0.6rem 0; border-radius: 4px; } /* DIWO Header Styles */ .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; margin-left: auto; } .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; } .zeitraum-controls { display: flex; align-items: center; gap: 8px; } .zeitraum-form { display: flex; align-items: center; gap: 8px; } .zeitraum-form label { font-size: 13px; font-weight: bold; white-space: nowrap; } .zeitraum-select { width: 200px; padding: 4px 8px; font-size: 13px; min-height: 32px; } .wechseln-btn { padding: 4px 8px; font-size: 12px; min-width: 32px; min-height: 32px; } /* Vergleichslegende */ .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; background: var(--diwo-blau-hell); } table { width: 100%; border-collapse: collapse; background: var(--weiss); border: 1px solid var(--grau-stark); margin: 0.6rem 0 1rem; /* Zusätzlicher Platz für Focus-Outlines innerhalb der Tabelle */ 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); } .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-row-added { background: var(--gruen-hell); } .diff-row-removed { background: var(--rot-hell); } .cell-changed, td:has(.cell-changed) { background: var(--gelb-hell); } /* Verbessertes Icon für geänderte Zellen */ .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; } .header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; } .legend { margin: 0.5rem 0 1rem; } /* Person Selection - Blue outline for selected person */ .person-selected { outline: 3px solid var(--diwo-blau); outline-offset: -3px; } /* Clickable table rows mit verbesserter Accessibility */ .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); /* Verbesserte Focus-Umrahmung für Tabellenzeilen */ outline: var(--focus-outline); outline-offset: 1px; /* Reduzierter Offset für bessere Sichtbarkeit in Tabellen */ z-index: 1; /* Stelle sicher, dass der Focus-Ring über anderen Elementen liegt */ } /* Verbesserte Focus-Styles für alle Tabellenzeilen */ tr:focus { outline: var(--focus-outline); outline-offset: 1px; position: relative; z-index: 1; } /* Skip to content für Screen Reader */ .skip-link { position: absolute; top: -40px; left: 6px; background: var(--diwo-blau); color: var(--weiss); padding: 8px; text-decoration: none; border-radius: 4px; z-index: 1000; } .skip-link:focus { top: 6px; } .table-action { padding: 0.25rem 0.5rem; border: 1px solid var(--grau-stark); background: #fff; cursor: pointer; font-size: 0.85rem; min-height: 32px; } .table-action:hover { filter: brightness(0.98); } /* Farbwahl in der Legende */ .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; } .color-scheme-select { width: 100%; padding: 6px 8px; font-size: 13px; border: 2px solid var(--grau-stark); border-radius: 4px; min-height: 32px; } /* Responsive Layout für Freibeträge und Kinderbetreuung */ .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%; } /* Bei kleinen Bildschirmen: Untereinander anordnen */ @media (max-width: 1200px) { .freibetrag-container { flex-direction: column; } .kinderbetreuung-container { max-width: 100%; } } /* Ausklappbare Sektionen */ .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; /* Geändert von hidden zu visible für Focus-Outlines */ padding: 4px; /* Zusätzlicher Platz für Focus-Outlines */ } .section-content.collapsed { display: none; } .section-content table { margin: 0; border: none; }