/** * ELEKTROPLANUNG - Zentrale CSS-Datei * Verwendet Dolibarr-Theme-Farben via inherit * * Copyright (C) 2026 Eduard Wisch */ /* ======================================== VARIABLEN - Nur für Akzentfarben ======================================== */ :root { --ep-primary: #b89d5b; --ep-primary-hover: #a68b4a; --ep-success: #10b981; --ep-warning: #f59e0b; --ep-danger: #ef4444; --ep-info: #3b82f6; } /* ======================================== CONTAINER & LAYOUT ======================================== */ .ep-calculator { max-width: 1200px; margin: 0 auto; padding: 0 10px; } /* ======================================== SEKTIONEN - Dolibarr-Stil ======================================== */ .ep-section { background: inherit; border: 1px solid; border-color: inherit; border-radius: 8px; padding: 15px; margin-bottom: 15px; } .ep-section-title { font-size: 15px; font-weight: 600; color: inherit; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid; border-color: inherit; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } /* ======================================== FORMULAR - MOBILE FIRST ======================================== */ .ep-form-grid { display: grid; grid-template-columns: 1fr; gap: 12px; } .ep-form-group { display: flex; flex-direction: column; } .ep-form-group label { font-size: 13px; font-weight: 500; color: inherit; opacity: 0.8; margin-bottom: 5px; } /* Input-Felder erben Dolibarr-Farben */ .ep-form-group input[type="number"], .ep-form-group input[type="text"], .ep-form-group select { padding: 12px; border: 1px solid; border-color: inherit; border-radius: 6px; font-size: 16px; /* Verhindert Zoom auf iOS */ background: inherit; color: inherit; width: 100%; box-sizing: border-box; } /* Select-Felder custom Pfeil */ .ep-form-group select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e"); background-position: right 10px center; background-repeat: no-repeat; background-size: 20px; padding-right: 40px; } .ep-form-group input:focus, .ep-form-group select:focus { outline: none; border-color: var(--ep-primary) !important; box-shadow: 0 0 0 3px rgba(184, 157, 91, 0.2); } /* Unit Label */ .ep-unit { font-size: 11px; opacity: 0.7; font-weight: normal; } /* ======================================== RADIO & CHECKBOX ======================================== */ .ep-radio-group { display: flex; gap: 15px; flex-wrap: wrap; } .ep-radio-label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 14px; color: inherit; padding: 8px 12px; background: inherit; border-radius: 6px; border: 1px solid; border-color: inherit; } .ep-radio-label:has(input:checked) { border-color: var(--ep-primary); background: rgba(184, 157, 91, 0.15); } .ep-radio-label input[type="radio"], .ep-radio-label input[type="checkbox"] { accent-color: var(--ep-primary); width: 18px; height: 18px; /* Sichtbarkeit im Dark Mode sicherstellen */ -webkit-appearance: auto; appearance: auto; } /* ======================================== TABS - MOBILE OPTIMIERT ======================================== */ .ep-tabs { display: flex; gap: 4px; margin-bottom: 15px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 2px; } .ep-tabs::-webkit-scrollbar { display: none; } .ep-tab { padding: 10px 14px; cursor: pointer; background: inherit; color: inherit; border-radius: 6px; font-weight: 500; font-size: 13px; transition: all 0.2s; white-space: nowrap; flex-shrink: 0; border: 1px solid; border-color: inherit; opacity: 0.7; } .ep-tab:hover { opacity: 1; } .ep-tab.active { background: var(--ep-primary); color: white; border-color: var(--ep-primary); opacity: 1; } .ep-tab-content { display: none; } .ep-tab-content.active { display: block; } /* ======================================== TOOLBAR ======================================== */ .ep-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 15px; } .ep-toolbar .butAction, .ep-toolbar .butActionDelete { flex: 1 1 auto; min-width: 120px; text-align: center; padding: 10px 15px; font-size: 14px; } /* ======================================== ERGEBNIS-BOXEN ======================================== */ .ep-result-box { padding: 20px; border-radius: 8px; margin-top: 15px; display: none; color: #ffffff; } .ep-result-box.show { display: block; animation: epSlideIn 0.3s ease-out; } .ep-result-box.success { background: linear-gradient(135deg, var(--ep-success) 0%, #059669 100%); } .ep-result-box.warning { background: linear-gradient(135deg, var(--ep-warning) 0%, #d97706 100%); } .ep-result-box.error { background: linear-gradient(135deg, var(--ep-danger) 0%, #dc2626 100%); } .ep-result-box.info { background: linear-gradient(135deg, var(--ep-info) 0%, #1d4ed8 100%); } @keyframes epSlideIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } .ep-result-main { font-size: 32px; font-weight: bold; text-align: center; margin-bottom: 8px; word-break: break-word; } .ep-result-status, .ep-result-label { text-align: center; font-size: 14px; margin-bottom: 15px; opacity: 0.95; } .ep-result-details { background: rgba(255,255,255,0.15); padding: 12px; border-radius: 6px; } .ep-result-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.2); font-size: 13px; gap: 10px; } .ep-result-item:last-child { border-bottom: none; } .ep-result-item span:first-child { flex-shrink: 0; } .ep-result-value { font-weight: bold; text-align: right; word-break: break-word; } /* ======================================== TABELLEN - MOBILE SCROLL ======================================== */ .ep-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -15px; padding: 0 15px; } .ep-table { width: 100%; min-width: 500px; border-collapse: collapse; font-size: 12px; background: inherit; } .ep-table th, .ep-table td { border: 1px solid; border-color: inherit; padding: 8px 10px; text-align: left; color: inherit; } .ep-table th { font-weight: 600; position: sticky; top: 0; opacity: 0.9; } /* ======================================== BADGES ======================================== */ .ep-badge { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; } .ep-badge-success { background: var(--ep-success); color: white; } .ep-badge-warning { background: var(--ep-warning); color: white; } .ep-badge-error { background: var(--ep-danger); color: white; } /* ======================================== INFO-BOX ======================================== */ .ep-info-box { background: rgba(59, 130, 246, 0.15); border-left: 4px solid var(--ep-info); padding: 12px; border-radius: 6px; margin-top: 15px; color: inherit; font-size: 13px; } .ep-info-box ul { margin: 8px 0 0 20px; padding: 0; } .ep-info-box li { margin-bottom: 5px; } /* ======================================== WARNING-BOX ======================================== */ .ep-warning-box { background: rgba(245, 158, 11, 0.15); border-left: 4px solid var(--ep-warning); padding: 12px; border-radius: 6px; margin-top: 15px; color: inherit; font-size: 13px; } /* ======================================== KETTEN-VISUALISIERUNG ======================================== */ .ep-chain { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 15px; background: inherit; border-radius: 8px; border: 1px solid; border-color: inherit; justify-content: center; } .ep-chain-item { background: inherit; border: 2px solid; border-color: inherit; border-radius: 8px; padding: 10px 15px; text-align: center; min-width: 100px; } .ep-chain-item.selektiv { border-color: var(--ep-success); background: rgba(16, 185, 129, 0.15); } .ep-chain-item.nicht-selektiv { border-color: var(--ep-danger); background: rgba(239, 68, 68, 0.15); } .ep-chain-item .typ { font-size: 10px; opacity: 0.7; text-transform: uppercase; } .ep-chain-item .wert { font-size: 18px; font-weight: bold; color: inherit; } .ep-chain-item .name { font-size: 11px; opacity: 0.7; margin-top: 3px; } .ep-chain-item select { background: inherit; color: inherit; border: 1px solid; border-color: inherit; padding: 4px; border-radius: 4px; font-size: 12px; } .ep-chain-arrow { font-size: 20px; opacity: 0.6; } .ep-chain-arrow.ok { color: var(--ep-success); opacity: 1; } .ep-chain-arrow.nok { color: var(--ep-danger); opacity: 1; } /* ======================================== FORMELN ======================================== */ .ep-formulas-section { background: inherit; border: 1px solid; border-color: inherit; border-radius: 8px; padding: 15px; margin-top: 15px; display: none; } .ep-formulas-section.show { display: block; } .ep-formula-box { background: inherit; border: 1px solid; border-color: inherit; border-left: 4px solid var(--ep-primary); padding: 12px; margin-bottom: 12px; border-radius: 6px; } .ep-formula-label { font-size: 12px; opacity: 0.8; margin-bottom: 8px; font-weight: 600; } .ep-formula-content { font-family: 'Courier New', monospace; font-size: 12px; color: inherit; line-height: 1.6; white-space: pre-wrap; word-break: break-word; background: rgba(128, 128, 128, 0.1); padding: 10px; border-radius: 4px; overflow-x: auto; } /* ======================================== SVG DIAGRAMM - Theme-kompatibel ======================================== */ .ep-pa-diagram { background: inherit; border: 1px solid; border-color: inherit; border-radius: 6px; padding: 15px; margin-top: 15px; text-align: center; overflow-x: auto; } .ep-pa-diagram svg { max-width: 100%; height: auto; min-width: 350px; } /* SVG Elemente */ .ep-svg-box { fill: rgba(128, 128, 128, 0.3); stroke: currentColor; stroke-width: 2; } .ep-svg-spd { fill: var(--ep-warning); stroke: currentColor; stroke-width: 2; } .ep-svg-pas { fill: var(--ep-success); stroke: currentColor; stroke-width: 2; } .ep-svg-text { fill: currentColor; } .ep-svg-text-dark { fill: #1f2937; } .ep-svg-text-light { fill: white; } .ep-svg-text-success { fill: var(--ep-success); } .ep-svg-line-primary { stroke: var(--ep-primary); } .ep-svg-line-success { stroke: var(--ep-success); } .ep-svg-line-earth { stroke: currentColor; } /* ======================================== RESPONSIVE - TABLET ======================================== */ @media (min-width: 600px) { .ep-calculator { padding: 0 15px; } .ep-section { padding: 20px; } .ep-form-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; } .ep-result-main { font-size: 40px; } .ep-table { font-size: 13px; } .ep-toolbar .butAction, .ep-toolbar .butActionDelete { flex: 0 1 auto; } } /* ======================================== RESPONSIVE - DESKTOP ======================================== */ @media (min-width: 900px) { .ep-form-grid { grid-template-columns: repeat(4, 1fr); } .ep-result-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 20px; } } /* ======================================== HILFSELEMENTE FÜR SELEKTIVITÄT ======================================== */ .ep-hint { opacity: 0.7; margin-bottom: 15px; font-size: 13px; } .ep-hint-small { margin-top: 10px; font-size: 12px; opacity: 0.7; } .ep-centered-hint { opacity: 0.7; text-align: center; width: 100%; } .ep-result-hint { margin-top: 15px; padding: 10px; background: rgba(128, 128, 128, 0.15); border-radius: 4px; } /* Selektivität Ketten-Item Select */ .ep-chain-item select { background: inherit; color: inherit; border: 1px solid; border-color: inherit; padding: 4px; border-radius: 4px; font-size: 12px; } .ep-chain-item select.ep-chain-wert { font-size: 16px; font-weight: bold; } .ep-chain-delete { margin-top: 5px; padding: 2px 8px; background: var(--ep-danger); color: white; border: none; border-radius: 3px; cursor: pointer; } .ep-chain-delete:hover { opacity: 0.9; } /* ======================================== PRINT STYLES ======================================== */ @media print { .ep-toolbar, .ep-tabs { display: none; } .ep-tab-content { display: block !important; } .ep-result-box { display: block !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; } }