/* mapvis-selector.css */

.mapvis-selector-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.mapvis-controls {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Nummerierte Überschriften mit schwarzen Kreisen */
.mapvis-controls h3,
.mapvis-info h4,
.mapvis-formular h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0;
    color: #333;
    font-size: 1.3em;
}

.mapvis-controls h3::before {
    content: "2";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #000;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9em;
    flex-shrink: 0;
}

.mapvis-info > h4:first-of-type::before {
    content: "3";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #000;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9em;
    flex-shrink: 0;
}

.mapvis-info > h4:first-of-type {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mapvis-formular h3::before {
    content: "4";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #000;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9em;
    flex-shrink: 0;
}

.ortssuche {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    position: relative;
}

/* Autocomplete Dropdown */

.autocomplete-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: #f8f9fa;
}

.autocomplete-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.autocomplete-name {
    flex: 1;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.result-badge {
    font-size: 12px;
    opacity: 0.7;
    margin-left: auto;
}

/* Ortssuche Input - ELEMENTOR-RESISTENT */
.mapvis-selector-wrapper .ortssuche #ortssuche-input-container {
    flex: 1 !important;
    width: 100% !important;
}

.mapvis-selector-wrapper .ortssuche #ortssuche-input {
    flex: 1 !important;
    width: 100% !important;
    padding: 10px 15px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    background: white !important;
    color: #333 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 42px !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
}

#ortssuche-btn {
    padding: 10px 25px;
    background: #FFA600;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

#ortssuche-btn:hover {
    background: #e69500;
}

.hinweis {
    color: #666;
    font-size: 0.95em;
    margin: 10px 0 0 0;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 4px;
    border-left: 4px solid #FFA600;
}

/* POI Controls */
.poi-controls {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    align-items: center;
    flex-wrap: wrap;
}

#toggle-poi-mode.active {
    background: #28a745;
}

#toggle-poi-mode.active:hover {
    background: #218838;
}

.delete-poi-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    margin-top: 8px;
    transition: background 0.2s;
}

.delete-poi-btn:hover {
    background: #c82333;
}

/* POI Anzeige */
.poi-display-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.poi-display-list li {
    padding: 10px;
    background: #f8f9fa;
    border-left: 3px solid #52B7C1;
    margin-bottom: 8px;
    border-radius: 4px;
}

.poi-number {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: #52B7C1;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-weight: 600;
    font-size: 0.9em;
}

.poi-desc {
    color: #666;
    font-size: 0.9em;
    font-style: italic;
    display: block;
    margin: 4px 0;
}

.poi-coords {
    color: #6c757d;
    font-size: 0.85em;
    font-family: monospace;
}

/* SVG POI Icons auf Karte */
.mapvis-poi-icon {
    background: transparent !important;
    border: none !important;
    text-align: center;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 30px !important;
    height: 40px !important;
}

.mapvis-poi-icon svg {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.2s;
}

.mapvis-poi-icon:hover svg {
    transform: scale(1.1);
}

.poi-popup {
    font-size: 14px;
}

.poi-popup strong {
    color: #2c3e50;
    font-size: 1.1em;
    display: block;
    margin-bottom: 5px;
}

.poi-description {
    color: #666;
    font-style: italic;
    display: block;
    margin: 5px 0;
}

#map-container {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

/* Eckpunkt Marker Styling */
.corner-marker {
    background: transparent;
    border: none;
}

.corner-handle {
    width: 20px;
    height: 20px;
    background: #FFA600;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    cursor: move;
    transition: transform 0.2s, background 0.2s;
}

.corner-handle:hover {
    background: #ffb733;
    transform: scale(1.2);
}

/* Koordinaten Anzeige */
.mapvis-info {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.mapvis-info h4 {
    margin-top: 0;
    color: #333;
    padding-bottom: 10px;
}

.koordinaten-anzeige {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.koordinaten-anzeige p {
    margin: 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
    border-bottom: 2px solid #efefef
}

.koordinaten-anzeige strong {
    color: #666;
    display: inline-block;
    min-width: 60px;
}

.koordinaten-anzeige span {
    color: #52B7C1;
    font-weight: 200;
    font-family: monospace;
}

/* Fläche & Maßstab unterhalb der Koordinaten - GLEICH WIE KOORDINATEN */
.area-scale-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 10px;
    padding-top: 10px;
}

.area-scale-info p {
    margin: 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
    border-bottom: 2px solid #efefef;
}

.area-scale-info strong {
    color: #666;
    display: inline-block;
    min-width: 60px;
}

.area-scale-info span {
    color: #52B7C1;
    font-weight: 200;
    font-family: monospace;
}

/* Icon Buttons mit SVG im Font Awesome Stil */
.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: #52B7C1;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s, transform 0.2s;
}

.icon-button:hover {
    background: #459aa3;
    transform: translateY(-1px);
}

.icon-button:active {
    transform: translateY(0);
}

.icon-button svg {
    width: 16px;
    height: 16px;
    fill: white;
}

/* Spezifische Button-Varianten */
.icon-button.copy-button {
    background: #52B7C1;
}

.icon-button.copy-button:hover {
    background: #459aa3;
}

.icon-button.download-button {
    background: #FFA600;
}

.icon-button.download-button:hover {
    background: #e69500;
}

.icon-button.reset-button {
    background: #6c757d;
}

.icon-button.reset-button:hover {
    background: #5a6268;
}

.icon-button.save-button {
    background: #28a745;
}

.icon-button.save-button:hover {
    background: #218838;
}

/* Koordinaten Actions mit Icons */
.coordinate-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Formular Styling */
.mapvis-formular {
    background: #f5f5f5;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mapvis-formular h3 {
    margin-top: 0;
    color: #333;
    padding-bottom: 10px;
}

/* Form Elements - ELEMENTOR-RESISTENT */
.mapvis-selector-wrapper .form-row {
    margin-bottom: 20px !important;
}

.mapvis-selector-wrapper .form-row label {
    display: block !important;
    margin-bottom: 8px !important;
    color: #333 !important;
    font-weight: 600 !important;
}

.mapvis-selector-wrapper .form-row input[type="text"],
.mapvis-selector-wrapper .form-row input[type="email"],
.mapvis-selector-wrapper .form-row select,
.mapvis-selector-wrapper .form-row textarea {
    width: 100% !important;
    padding: 10px 15px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-family: inherit !important;
    transition: border-color 0.3s !important;
    background: white !important;
    color: #333 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 42px !important;
    box-sizing: border-box !important;
    appearance: auto !important;
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;
}

.form-row input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
}

.form-row input[type="file"]:hover {
    border-color: #FFA600;
    background: #fff;
}

.file-hint {
    font-size: 0.85em;
    color: #666;
    margin: 5px 0 10px 0;
    font-style: italic;
}

.file-list {
    margin-top: 10px;
}

.uploaded-files {
    list-style: none;
    padding: 0;
    margin: 0;
}

.uploaded-files li {
    padding: 8px 12px;
    background: #f0f8ff;
    border-left: 3px solid #FFA600;
    margin-bottom: 5px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-icon {
    font-size: 16px;
}

.file-name {
    flex: 1;
    color: #2c3e50;
    font-weight: 500;
}

.file-size {
    color: #6c757d;
    font-size: 0.9em;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #52B7C1;
}

.form-row textarea {
    resize: vertical;
    min-height: 100px;
}

.button-primary {
    background: #FFA600;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.button-primary:hover {
    background: #e69500;
    transform: translateY(-2px);
}

.button-primary:active {
    transform: translateY(0);
}

.button-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Nachrichten */
#form-message {
    margin-top: 20px;
}

.notice {
    padding: 15px;
    border-radius: 4px;
    margin: 10px 0;
}

.notice-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.notice-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Button Secondary (alte Version für Kompatibilität) */
.button-secondary {
    background: #6c757d;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s, transform 0.2s;
}

.button-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.button-secondary:active {
    transform: translateY(0);
}

/* POI Überschrift - kein Kreis, ist Unterpunkt */
#poi-info h5,
#saved-selections-container h5 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1em;
    font-weight: 600;
    display: block;
}

/* Legacy h4 Support falls noch verwendet */
#poi-info h4 {
    display: block !important;
}

#poi-info h4::before {
    display: none !important;
}

/* Gespeicherte Ausschnitte */
#saved-selections-container {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

#saved-selections-container h4 {
    margin-top: 0;
    color: #333;
    font-size: 1.1em;
    display: block; /* Überschreibt das flex */
}

#saved-selections-container h4::before {
    display: none; /* Kein Kreis */
}

.saved-selections {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.saved-selection-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #FFA600;
    transition: background 0.2s;
}

.saved-selection-item:hover {
    background: #e9ecef;
}

.selection-info {
    flex: 1;
}

.selection-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.selection-date {
    font-size: 0.85em;
    color: #6c757d;
}

.selection-actions {
    display: flex;
    gap: 5px;
}

.button-secondary-small {
    background: #6c757d;
    color: white;
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.button-secondary-small:hover {
    background: #5a6268;
}

.button-secondary-small svg {
    width: 14px;
    height: 14px;
    fill: white;
    vertical-align: middle;
}

.no-selections {
    text-align: center;
    color: #6c757d;
    padding: 30px 20px;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mapvis-selector-wrapper {
        padding: 10px;
    }
    
    .mapvis-controls,
    .mapvis-info,
    .mapvis-formular {
        padding: 15px;
    }
    
    .ortssuche {
        flex-direction: column;
    }
    
    #ortssuche-btn {
        width: 100%;
    }
    
    .koordinaten-anzeige {
        grid-template-columns: 1fr;
    }
    
    .coordinate-actions {
        flex-direction: column;
    }
    
    .icon-button {
        width: 100%;
        justify-content: center;
    }
}

/* Rechteck als verschiebbar kennzeichnen */
.selection-rectangle {
    cursor: move !important;
    pointer-events: auto !important;
}

.selection-rectangle:hover {
    fill-opacity: 0.3 !important;
}

/* Leaflet Popup Override */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
}

.leaflet-popup-content {
    margin: 15px;
    font-size: 14px;
}

/* SVG Icon Definitionen - Inline verwendbar */
/* Diese Icons können in HTML mit inline SVG verwendet werden */

/* Beispiel für Copy Icon:
<button class="icon-button copy-button">
    <svg viewBox="0 0 448 512">
        <path d="M384 336H192c-8.8 0-16-7.2-16-16V64c0-8.8 7.2-16 16-16l140.1 0L400 115.9V320c0 8.8-7.2 16-16 16zM192 384H384c35.3 0 64-28.7 64-64V115.9c0-12.7-5.1-24.9-14.1-33.9L366.1 14.1c-9-9-21.2-14.1-33.9-14.1H192c-35.3 0-64 28.7-64 64V320c0 35.3 28.7 64 64 64zM64 128c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H256c35.3 0 64-28.7 64-64V416H272v32c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16V192c0-8.8 7.2-16 16-16H96V128H64z"/>
    </svg>
    Kopieren
</button>
*/

/* Beispiel für Download Icon:
<button class="icon-button download-button">
    <svg viewBox="0 0 512 512">
        <path d="M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32V274.7l-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7V32zM64 352c-35.3 0-64 28.7-64 64v32c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V416c0-35.3-28.7-64-64-64H346.5l-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352H64zm368 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"/>
    </svg>
    Herunterladen
</button>
*/

/* Beispiel für Reset Icon:
<button class="icon-button reset-button">
    <svg viewBox="0 0 512 512">
        <path d="M142.9 142.9c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H463.5c0 0 0 0 0 0H472c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2L413.4 96.6c-87.6-86.5-228.7-86.2-315.8 1C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5c7.7-21.8 20.2-42.3 37.8-59.8zM16 312v7.6 .7V440c0 9.7 5.8 18.5 14.8 22.2s19.3 1.7 26.2-5.2l41.6-41.6c87.6 86.5 228.7 86.2 315.8-1c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.2 62.2-162.7 62.5-225.3 1L185 329c6.9-6.9 8.9-17.2 5.2-26.2s-12.5-14.8-22.2-14.8H48.4h-.7H40c-13.3 0-24 10.7-24 24z"/>
    </svg>
    Zurücksetzen
</button>
*/

/* Beispiel für Save Icon:
<button class="icon-button save-button">
    <svg viewBox="0 0 448 512">
        <path d="M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V173.3c0-17-6.7-33.3-18.7-45.3L352 50.7C340 38.7 323.7 32 306.7 32H64zm0 96c0-17.7 14.3-32 32-32H288c17.7 0 32 14.3 32 32v64c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V128zM224 288a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"/>
    </svg>
    Speichern
</button>
*/

/* ============================================
   KATEGORIE-AUSWAHL (Schritt 1)
   ============================================ */

.category-section {
    background: #f8f9fa;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.category-section h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.4em;
    color: #333;
}

.category-section h3::before {
    content: "1";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #000;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9em;
    flex-shrink: 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.category-box {
    position: relative;
    display: flex;
    align-items: center;
    padding: 20px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-box:hover {
    border-color: #FFA600;
    box-shadow: 0 2px 8px rgba(255, 166, 0, 0.15);
}

.category-box input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.category-box:has(input:checked),
.category-box.selected {
    border-color: #FFA600;
    background: #fffbf0;
}

.category-content {
    position: relative;
    flex: 1;
}

.category-box h4 {
    margin: 0 0 8px 0;
    font-size: 1.1em;
    font-weight: 700;
    color: #333;
}

.category-box p {
    margin: 0;
    font-size: 0.9em;
    color: #666;
    line-height: 1.4;
}

.category-checkmark {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    width: 28px;
    height: 28px;
    background: #FFA600;
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    z-index: 2;
}

.category-box:has(input:checked) .category-checkmark,
.category-box.selected .category-checkmark {
    display: flex;
}

.category-hint {
    margin: 0;
    padding: 15px;
    background: white;
    border-left: 4px solid #FFA600;
    border-radius: 4px;
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}


/* === Category Boxes Refactor (v2.2.5) === */
.mapvis-section--categories {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
}

.mapvis-category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.mapvis-category-option {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px 14px;
    cursor: pointer;
    position: relative;
    transition: border-color 0.15s ease;
}

.mapvis-category-option strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #111;
    margin-bottom: 4px;
}

.mapvis-category-option span {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.mapvis-category-option.is-selected {
    border-color: #000;
}

.mapvis-category-option::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background: #fff;
}

.mapvis-category-option.is-selected::after {
    content: '✓';
    background: #ff9800;
    border-color: #ff9800;
    color: #fff;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    font-weight: 700;
}

/* ==================================================
   KATEGORIE-AUSWAHL – OVERRIDE (ruhig & kompakt)
   ================================================== */

.mapvis-section.category-section {
    background: #f5f5f5;
    padding: 24px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.category-box {
    position: relative;
    display: block;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

/* Hover ruhig halten */
.category-box:hover {
    border-color: #bbb;
    box-shadow: none;
}

/* Radio unsichtbar */
.category-box input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Auswahlzustand */
.category-box:has(input:checked) {
    border-color: #ddd;
    border-bottom: 2px solid #cfd0cf;
    background: #fff;
}

/* Typografie */
.category-box h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: #111;
}

.category-box p {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* Haken-Kreis */
.category-checkmark {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background: #fff;
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.category-box:has(input:checked) .category-checkmark {
    background: #FFA600;
    border-color: #FFA600;
    color: #fff;
}

/* Hinweis */
.category-hint {
    margin: 0;
    padding: 12px 14px;
    background: #fff;
    border-left: 4px solid #FFA600;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

/* Mobile */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   OPTION-BOXEN (Weitere Angaben)
   ============================================ */



.section-description {
    margin: 0 0 20px 0;
    color: #666;
    line-height: 1.5;
}

.section-description small {
    display: block;
    margin-top: 5px;
    color: #999;
    font-size: 0.9em;
}












@media (max-width: 768px) {
    .option-boxes {
        grid-template-columns: 1fr;
    }
}

/* Boxen ohne Beschreibungstext */

/* Step 4 section headers */
.additional-section {
    margin-bottom: 40px;
}

.additional-section > h4 {
    font-size: 1.15em;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
}

.section-description {
    margin: 0 0 20px 0;
    color: #666;
    line-height: 1.4;
    font-size: 0.9em;
}

/* ============================================
   PREISORIENTIERUNG
   ============================================ */

.price-estimation {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-left: 3px solid #52B7C1;
    border-radius: 6px;
    padding: 30px 35px;
    margin: 35px 0;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.price-estimation h4 {
    margin: 0 0 12px 0;
    font-size: 0.75em;
    font-weight: 500;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-value {
    font-size: 2em;
    font-weight: 700;
    color: #333;
    margin: 8px 0;
    letter-spacing: -0.5px;
}

.price-hint {
    margin: 12px auto 0;
    font-size: 0.85em;
    color: #666;
    line-height: 1.5;
    max-width: 450px;
}

@media (max-width: 768px) {
    .price-estimation {
        padding: 25px 20px;
    }
    
    .price-value {
        font-size: 1.6em;
    }
}

/* Format-Selector */
.format-selector {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.format-selector label {
    margin: 0;
    color: #666;
    font-size: 0.95em;
}

.format-selector select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 0.9em;
    cursor: pointer;
}

.format-selector select:hover {
    border-color: #52B7C1;
}

.format-selector select:focus {
    outline: none;
    border-color: #52B7C1;
    box-shadow: 0 0 0 2px rgba(82, 183, 193, 0.1);
}

/* Format-Button + Dropdown */
.format-button-wrapper {
    position: relative;
    display: inline-block;
}

.format-button {
    position: relative;
}

.format-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 5px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 180px;
}

.format-option {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    font-size: 0.9em;
}

.format-option:last-child {
    border-bottom: none;
}

.format-option:hover {
    background: #f8f9fa;
    color: #52B7C1;
}
