wind_tool_standortpruefung/style.css

622 lines
11 KiB
CSS

:root {
--primary-color: #307725; /* 48 119 37 */
--primary-light: #73B076; /* 115 176 118 */
--primary-pale: #D7EAD8; /* 215 234 216 */
--accent-color: #407A95; /* 64 122 149 */
--accent-light: #97C5D4; /* 151 197 212 */
--bg-pale: #EEF5F6; /* 238 245 246 */
--text-dark: #0f172a;
--text-light: #f8fafc;
--bg-dark: #0f172a;
--glass-bg: rgba(238, 245, 246, 0.95);
--glass-border: rgba(48, 119, 37, 0.2);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
--radius-xl: 1rem;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
-webkit-tap-highlight-color: transparent;
}
body {
font-family: 'Outfit', sans-serif;
color: var(--text-dark);
background: var(--bg-dark);
height: 100vh;
width: 100vw;
overflow: hidden;
}
#app {
height: 100%;
width: 100%;
}
.main-content {
height: 100%;
width: 100%;
position: relative;
}
#map {
width: 100%;
height: 100%;
z-index: 1;
}
.top-left-logo {
position: absolute;
top: 20px;
left: 20px;
z-index: 1000;
pointer-events: auto;
display: flex;
flex-direction: column;
gap: 12px;
padding: 12px 16px;
min-width: 240px;
}
.logo-row {
display: flex;
align-items: center;
gap: 10px;
}
.logo-row img {
height: 28px;
width: auto;
}
.logo-divider {
width: 1px;
height: 18px;
background: #cbd5e1;
}
.logo-text {
font-weight: 700;
font-size: 0.85rem;
color: var(--primary-color);
letter-spacing: 0.03em;
}
.info-row {
display: flex;
align-items: center;
gap: 10px;
padding-top: 8px;
border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.info-divider {
width: 1px;
height: 12px;
background: #cbd5e1;
}
.impressum-link {
color: var(--primary-color) !important;
font-weight: 500;
text-decoration: none;
background: none;
border: none;
cursor: pointer;
padding: 0;
font-size: 0.75rem;
}
.impressum-link:hover {
text-decoration: underline;
}
.search-row {
margin-top: 4px;
width: 100%;
}
.search-row .leaflet-control-geocoder {
box-shadow: none !important;
border: 1px solid var(--glass-border) !important;
background: white !important;
width: 100% !important;
border-radius: 8px !important;
margin: 0 !important;
}
.search-row .leaflet-control-geocoder-form input {
font-family: 'Outfit', sans-serif !important;
font-size: 0.85rem !important;
padding: 8px 12px !important;
width: 100% !important;
}
.search-row .leaflet-control-geocoder-icon {
display: none !important; /* Hide search icon if we want clean look, or keep if preferred */
}
.sidebar-btn {
width: 100%;
margin-top: 8px;
padding: 0.6rem 1rem !important;
font-size: 0.85rem !important;
}
.basemap-toggle-row {
display: flex;
gap: 4px;
margin-top: 8px;
background: rgba(0, 0, 0, 0.05);
padding: 3px;
border-radius: 8px;
}
.basemap-btn {
flex: 1;
border: none;
background: none;
padding: 6px;
font-size: 0.75rem;
font-weight: 600;
border-radius: 6px;
cursor: pointer;
color: #64748b;
transition: all 0.2s;
}
.basemap-btn.active {
background: white;
color: var(--primary-color);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.primary-btn {
pointer-events: auto;
background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
color: white;
border: none;
padding: 0.8rem 1.8rem;
border-radius: 2rem;
font-weight: 600;
box-shadow: 0 4px 15px rgba(48, 119, 37, 0.3);
transition: all 0.3s ease;
cursor: pointer;
}
.primary-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(48, 119, 37, 0.4);
background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}
.primary-btn:disabled {
opacity: 0.7;
background: #94a3b8;
cursor: not-allowed;
box-shadow: none;
}
#results-area {
position: absolute;
top: 80px;
left: 50%;
transform: translateX(-50%);
width: 95%;
max-width: 800px;
z-index: 1000;
max-height: 80vh;
overflow-y: auto;
}
.glass-panel {
background: var(--glass-bg);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid var(--glass-border);
box-shadow: var(--shadow-lg);
border-radius: var(--radius-xl);
padding: 1.5rem;
}
.result-card h2 {
font-size: 1.4rem;
color: var(--primary-dark);
}
.category-block {
background: var(--bg-pale);
border-radius: 0.75rem;
padding: 0.6rem 1rem;
margin-bottom: 0.5rem;
border-left: 4px solid var(--primary-color);
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.category-block:nth-child(even) {
border-left-color: var(--accent-color);
background: #fdfdfe; /* Very slight variation */
}
.category-title {
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--primary-color);
margin-bottom: 0.3rem;
font-weight: 700;
display: flex;
align-items: center;
gap: 0.5rem;
}
.result-item {
font-size: 0.85rem;
line-height: 1.3;
color: var(--text-dark);
display: flex;
justify-content: space-between;
align-items: flex-start;
padding: 2px 0;
}
.result-item strong {
color: var(--text-dark);
font-weight: 600;
max-width: 60%;
}
.result-item span {
font-weight: 500;
text-align: right;
flex: 1;
padding-left: 1rem;
}
.text-emerald-500 {
color: var(--primary-color);
font-weight: 600;
}
.text-amber-500 {
color: #d97706; /* Branded Amber */
font-weight: 600;
}
.text-red-500 {
color: #dc2626; /* Branded Red */
font-weight: 700;
}
.text-slate-400 {
color: #64748b;
}
.report-note {
background: var(--primary-pale);
border-left: 4px solid var(--primary-color);
padding: 1rem;
margin: 1.5rem 0;
border-radius: 6px;
font-size: 0.9rem;
color: var(--text-dark);
line-height: 1.6;
}
.report-note-title {
display: block;
font-weight: 700;
margin-bottom: 0.25rem;
color: var(--primary-dark);
}
.close-btn {
background: #f1f5f9;
border: none;
font-size: 1.2rem;
width: 32px;
height: 32px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: background 0.2s;
}
.close-btn:hover {
background: #e2e8f0;
}
.export-pdf-btn {
background: white;
border: 1px solid #e2e8f0;
color: #64748b;
font-size: 0.8rem;
padding: 0.4rem 0.8rem;
border-radius: 6px;
cursor: pointer;
display: flex;
align-items: center;
transition: all 0.2s;
font-weight: 500;
}
.export-pdf-btn:hover {
background: #f8fafc;
color: var(--primary-color);
border-color: var(--primary-color);
}
/* PDF Export mode styles */
.pdf-export-mode .export-pdf-btn,
.pdf-export-mode .close-btn {
display: none !important;
}
.pdf-export-mode {
animation: none !important;
transform: none !important;
box-shadow: none !important;
border: none !important;
}
.results-hidden {
display: none;
}
.results-visible {
display: block;
animation: slideUp 0.4s cubic-bezier(0, 0, 0.2, 1);
}
@keyframes slideUp {
from {
transform: translate(-50%, 20px);
opacity: 0;
}
to {
transform: translate(-50%, 0);
opacity: 1;
}
}
.loader {
width: 40px;
height: 40px;
border: 4px solid #e2e8f0;
border-top: 4px solid var(--primary-color);
border-radius: 50%;
animation: spin 1s linear infinite;
margin: 1.5rem auto;
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.dist-tooltip-premium {
background: white !important;
border: 2px solid var(--primary-color) !important;
color: var(--primary-dark) !important;
font-weight: 700 !important;
font-size: 14px !important;
border-radius: 8px;
padding: 6px 12px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.turbine-rotor {
transform-origin: 30px 40px;
animation: rotate-turbine 3s linear infinite;
}
@keyframes rotate-turbine {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
/* Scrollbar */
#results-area::-webkit-scrollbar {
width: 6px;
}
#results-area::-webkit-scrollbar-track {
background: transparent;
}
#results-area::-webkit-scrollbar-thumb {
background: #cbd5e1;
border-radius: 10px;
}
/* Intro Overlay */
.intro-overlay {
position: absolute;
top: 80px;
left: 50%;
transform: translateX(-50%);
z-index: 1100;
width: 90%;
max-width: 400px;
pointer-events: none;
}
.hint-content {
background: white;
padding: 1rem 1.5rem;
border-radius: 12px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
border-left: 5px solid var(--primary-color);
pointer-events: auto;
animation: bounceIn 0.8s ease;
}
.hint-content p {
font-size: 0.95rem;
color: var(--text-dark);
line-height: 1.4;
}
@keyframes bounceIn {
0% {
transform: scale(0.9);
opacity: 0;
}
70% {
transform: scale(1.05);
}
100% {
transform: scale(1);
opacity: 1;
}
}
/* --- Status Indicator --- */
.status-indicator {
display: flex;
align-items: center;
gap: 6px;
background: transparent;
padding: 0;
border-radius: 0;
box-shadow: none;
font-size: 0.7rem;
font-weight: 600;
transition: all 0.3s ease;
}
.status-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: #cbd5e1;
}
.status-indicator.online .status-dot {
background: #10b981;
box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}
.status-indicator.offline .status-dot {
background: #ef4444;
}
.status-indicator.online .status-text {
color: #059669;
}
.status-indicator.offline .status-text {
color: #dc2626;
}
/* Modal Styling */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(15, 23, 42, 0.4);
backdrop-filter: blur(4px);
z-index: 2000;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
}
.modal-content {
max-width: 700px;
width: 100%;
max-height: 85vh;
overflow-y: auto;
position: relative;
animation: modalAppear 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalAppear {
from {
opacity: 0;
transform: scale(0.9) translateY(20px);
}
to {
opacity: 1;
transform: scale(1) translateY(0);
}
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
position: sticky;
top: 0;
background: var(--glass-bg);
padding-bottom: 10px;
border-bottom: 1px solid var(--glass-border);
}
.modal-header h2 {
color: var(--primary-color);
font-size: 1.5rem;
}
.close-modal-btn {
background: none;
border: none;
font-size: 2rem;
color: var(--text-dark);
cursor: pointer;
line-height: 1;
transition: color 0.2s;
}
.close-modal-btn:hover {
color: var(--primary-color);
}
.modal-body h3 {
font-size: 1.1rem;
color: var(--primary-color);
margin: 1.5rem 0 0.5rem 0;
}
.modal-body p {
font-size: 0.95rem;
line-height: 1.6;
margin-bottom: 1rem;
color: var(--text-dark);
}
.modal-body a {
color: var(--primary-color);
text-decoration: none;
font-weight: 500;
}
.modal-body a:hover {
text-decoration: underline;
}
.hidden {
display: none !important;
}