Refactor ALL

This commit is contained in:
2025-09-04 14:31:17 +02:00
parent f6cd5c734f
commit eb1d713942
12 changed files with 2933 additions and 3039 deletions

386
public/css/generator.css Normal file
View File

@@ -0,0 +1,386 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
}
.container {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-radius: 20px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
padding: 40px;
max-width: 700px;
width: 100%;
position: relative;
overflow: hidden;
}
.container::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
background-size: 300% 100%;
animation: gradientShift 3s ease infinite;
}
@keyframes gradientShift {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
h1 {
text-align: center;
color: #333;
margin-bottom: 30px;
font-size: 2.2em;
font-weight: 300;
letter-spacing: -1px;
}
.form-group {
margin-bottom: 25px;
position: relative;
}
label {
display: block;
margin-bottom: 8px;
color: #555;
font-weight: 500;
font-size: 0.95em;
}
input, textarea {
width: 100%;
padding: 15px 20px;
border: 2px solid #e0e0e0;
border-radius: 12px;
font-size: 1em;
transition: all 0.3s ease;
background: #fafafa;
font-family: inherit;
}
textarea {
resize: vertical;
min-height: 80px;
}
input:focus, textarea:focus {
outline: none;
border-color: #667eea;
background: white;
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
transform: translateY(-2px);
}
input:hover, textarea:hover {
border-color: #ccc;
}
.db-config {
background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
border: 2px solid #e3f2fd;
border-radius: 12px;
padding: 20px;
margin-bottom: 25px;
opacity: 0;
transform: translateY(-20px);
transition: all 0.4s ease;
max-height: 0;
overflow: hidden;
}
.db-config.show {
opacity: 1;
transform: translateY(0);
max-height: 1000px;
}
.db-config h3 {
color: #1565c0;
margin-bottom: 15px;
font-size: 1.1em;
}
.tier-notice {
background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
border: 2px solid #ffcc02;
border-radius: 8px;
padding: 12px;
margin-top: 10px;
font-size: 0.9em;
color: #f57c00;
text-align: center;
}
.generate-btn {
width: 100%;
padding: 18px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
border-radius: 12px;
font-size: 1.1em;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
margin-top: 10px;
position: relative;
overflow: hidden;
}
.generate-btn:hover {
transform: translateY(-2px);
box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}
.generate-btn:active {
transform: translateY(0);
}
.result-section {
margin-top: 30px;
opacity: 0;
transform: translateY(20px);
transition: all 0.4s ease;
}
.result-section.show {
opacity: 1;
transform: translateY(0);
}
.license-output {
background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
border: 2px solid #e3f2fd;
border-radius: 12px;
padding: 20px;
font-family: 'Courier New', monospace;
font-size: 0.9em;
word-break: break-all;
color: #1565c0;
position: relative;
}
.license-label {
font-family: 'Segoe UI', sans-serif;
font-size: 0.85em;
color: #666;
margin-bottom: 8px;
font-weight: 500;
}
.copy-btn {
width: 100%;
padding: 12px;
background: #4caf50;
color: white;
border: none;
border-radius: 8px;
font-size: 0.95em;
font-weight: 500;
cursor: pointer;
margin-top: 15px;
transition: all 0.3s ease;
}
.copy-btn:hover {
background: #45a049;
transform: translateY(-1px);
}
.copy-btn.copied {
background: #2196f3;
animation: pulse 0.6s;
}
@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.05); }
100% { transform: scale(1); }
}
.success {
background: #e8f5e8;
color: #2e7d32;
padding: 15px;
border-radius: 8px;
margin-top: 15px;
border-left: 4px solid #4caf50;
font-size: 0.9em;
opacity: 0;
transform: translateY(-10px);
transition: all 0.3s ease;
}
.success.show {
opacity: 1;
transform: translateY(0);
}
.error {
background: #ffebee;
color: #c62828;
padding: 15px;
border-radius: 8px;
margin-top: 15px;
border-left: 4px solid #f44336;
font-size: 0.9em;
opacity: 0;
transform: translateY(-10px);
transition: all 0.3s ease;
}
.error.show {
opacity: 1;
transform: translateY(0);
}
.info-text {
text-align: center;
color: #666;
font-size: 0.85em;
margin-top: 20px;
line-height: 1.5;
}
@media (max-width: 480px) {
.container {
padding: 30px 20px;
margin: 10px;
}
h1 {
font-size: 1.8em;
}
}
.loading {
display: inline-block;
width: 20px;
height: 20px;
border: 3px solid rgba(255,255,255,.3);
border-radius: 50%;
border-top-color: #fff;
animation: spin 1s ease-in-out infinite;
margin-right: 10px;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* Standortsuche Styles */
.coordinates-display {
animation: slideDown 0.4s ease;
}
.map-container {
animation: slideDown 0.4s ease;
}
@keyframes slideDown {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
#mapFrame iframe {
border-radius: 10px;
}
.coordinates-display h4 {
display: flex;
align-items: center;
gap: 8px;
}
.coordinates-display strong {
color: #2e7d32;
}
/* Verbesserte Standortsuche Layouts */
.location-search-container {
display: flex;
gap: 10px;
align-items: stretch;
}
.location-search-container input {
flex: 1;
min-width: 0;
}
.location-search-container button {
white-space: nowrap;
min-width: 120px;
}
/* Responsive Design für Standortsuche */
@media (max-width: 600px) {
.location-search-container {
flex-direction: column;
gap: 15px;
}
.location-search-container button {
min-width: auto;
width: 100%;
}
.coordinates-display .flex-container {
flex-direction: column;
gap: 10px;
}
}
/* Interaktive Karte Styles */
#interactiveMap {
position: relative;
}
#map {
border-radius: 10px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.leaflet-container {
border-radius: 10px;
}
.leaflet-control-zoom {
border: none;
box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.leaflet-control-zoom a {
background: white;
color: #333;
border: 1px solid #ddd;
}
.leaflet-control-zoom a:hover {
background: #f8f9fa;
}