/**
 * Impressum Generator - Base Styles
 * Grundlegende Stile für den Impressum-Generator
 * Version: 1.2.0
 * Datum der Änderung: 11.06.2025, 14:35 Uhr
 * Dateiname: base.css
 * Speicherort: assets/css/base.css
 */

/* Container-Styles */
.impressum-generator-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: inherit;
    line-height: 1.6;
    color: #333;
}

.impressum-generator-container header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

.impressum-generator-container header h1 {
    margin-bottom: 10px;
    color: #2c3e50;
}

/* Formular-Container */
.form-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-step h2 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.form-step p {
    margin-bottom: 20px;
    color: #666;
}

/* Hilfe-Icons und Tooltips - Verbesserte Version mit korrigierter Positionierung */
.help-icon {
    display: inline-block;
    margin-left: 5px;
    width: 16px;
    height: 16px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 16px;
    font-size: 12px;
    cursor: help;
    position: relative;
}

.tooltip {
    visibility: hidden;
    width: 300px;
    background-color: #f5f5f5;
    color: #333;
    text-align: left;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0px;
    opacity: 0;
    transition: opacity 0.3s;
    font-weight: normal;
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    line-height: 1.4;
    border: 1px solid #ddd;
}

/* Tooltip-Positionierung für Elemente am rechten Rand */
.form-group:last-child .tooltip,
.form-group:nth-last-child(2) .tooltip {
    left: auto;
    right: 0;
    transform: translateX(0);
}

/* Tooltip-Positionierung für Elemente am linken Rand */
.form-group:first-child .tooltip,
.form-group:nth-child(2) .tooltip {
    left: 0;
    transform: translateX(0);
}

.tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #f5f5f5 transparent transparent transparent;
}

/* Anpassung des Pfeils für verschobene Tooltips */
.form-group:last-child .tooltip::after,
.form-group:nth-last-child(2) .tooltip::after {
    left: auto;
    right: 20px;
}

.form-group:first-child .tooltip::after,
.form-group:nth-child(2) .tooltip::after {
    left: 20px;
}

.help-icon:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* Footer */
.impressum-generator-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    color: #777;
}

/* Notification */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
    display: none;
}

.notification.success {
    background-color: #2ecc71;
}

.notification.error {
    background-color: #e74c3c;
}

.notification.info {
    background-color: #3498db;
}

/* Restore Navigation Dialog */
.restore-navigation-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.restore-dialog-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
}

.restore-dialog-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

/* Card Container für die Admin-Seite */
.card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.card h2 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}