/* ===============================
   Nachsendeauftrag Plugin CSS
   =============================== */

/* Reset & Base Styles */
.nsa-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.nsa-container {
    max-width: 768px;
    margin: 0 auto;
    background: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: #333;
    line-height: 1.5;
}

/* Header */
.nsa-header {
    padding: 30px 20px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
}

.nsa-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.nsa-header p {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
}

/* Info Section */
.nsa-info-section {
    background: #f9f9f9;
    padding: 20px;
    margin: 20px;
    border-radius: 8px;
}

.nsa-info-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.nsa-info-toggle::after {
    content: '⌄';
    font-size: 20px;
    color: #666;
    transition: transform 0.3s;
}

.nsa-info-toggle.open::after {
    transform: rotate(180deg);
}

.nsa-info-content {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: none;
}

.nsa-info-content.show {
    display: block;
}

.nsa-info-link {
    color: #0066cc;
    text-decoration: underline;
}

/* Form Container */
.nsa-form-container {
    padding: 20px;
	overflow-x: hidden; /* Verhindert horizontales Scrollen */
    box-sizing: border-box;
}

.nsa-form-section {
    margin-bottom: 40px;
    position: relative;
}

.nsa-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.nsa-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.nsa-info-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    cursor: help;
}

/* Tab Buttons */
.nsa-tab-container {
    display: flex;
    margin-bottom: 25px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 4px;
	gap:15px;
}

.nsa-tab-button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
}

.nsa-tab-button.active {
    background: #FFCC00 !important;
    color: #000 !important;
    font-weight: 600;
}

.nsa-tab-button:hover:not(.active) {
    background: #fff;
}

/* Form Fields */
.nsa-form-group {
    margin-bottom: 20px;
	box-sizing: border-box;
}

.nsa-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.nsa-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.nsa-form-row.three-cols {
    grid-template-columns: 2fr 1fr;
}

.nsa-form input[type="text"],
.nsa-form input[type="email"],
.nsa-form input[type="tel"],
.nsa-form input[type="date"],
.nsa-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 15px;
    background: white;
    transition: all 0.3s;
}

.nsa-form input:focus,
.nsa-form select:focus {
    outline: none;
    border-color: #FFCC00;
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.1);
}

.nsa-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

/* Country Selector */
.nsa-country-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    cursor: pointer;
    background: white;
}

.nsa-country-flag {
    width: 24px;
    height: 16px;
    background: linear-gradient(to bottom, #000 33%, #DD0000 33%, #DD0000 66%, #FFCC00 66%);
}

.nsa-country-name {
    flex: 1;
    font-size: 15px;
}

/* Google Autocomplete */
.nsa-autocomplete {
    width: 100%;
    padding: 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 15px;
    background: white;
    transition: all 0.3s;
}

.nsa-autocomplete:focus {
    outline: none;
    border-color: #FFCC00;
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.1);
}

.pac-container {
    z-index: 10000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

/* Person Group */
.nsa-person-group {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
    position: relative;
}

.nsa-person-group .nsa-remove-person {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

/* Buttons */
.nsa-btn-add {
    background: none;
    border: none;
    color: #0066cc;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nsa-btn-add::before {
    content: '+';
    font-size: 18px;
    font-weight: bold;
}

.nsa-btn-add:hover {
    text-decoration: underline;
}

/* Laufzeit Options - Erweitert mit Benefits */
.nsa-laufzeit-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.nsa-laufzeit-option {
    position: relative;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
    cursor: pointer;
    min-height: 200px;
}

.nsa-laufzeit-option:hover {
    border-color: #FFCC00;
    background: #fffbf0;
}

.nsa-laufzeit-option input[type="radio"] {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.nsa-laufzeit-option input[type="radio"]:checked ~ label {
    font-weight: 600;
}

/* Gelber Hintergrund und Border wenn ausgewählt */
.nsa-laufzeit-option:has(input[type="radio"]:checked),
.nsa-laufzeit-option.selected {
    border-color: #FFCC00;
    background: #fffbf0;
}

.nsa-laufzeit-option label {
    display: block;
    cursor: pointer;
    padding-right: 30px;
}

.nsa-laufzeit-title {
    display: block;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.nsa-laufzeit-price {
    display: block;
    font-size: 18px;
    color: #000;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Badge für beliebte Option */
.nsa-laufzeit-badge {
    display: inline-block;
    background: #ff4444;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    position: absolute;
    top: -10px;
    left: 20px;
    letter-spacing: 0.5px;
}

/* Ersparnis-Hinweis */
.nsa-laufzeit-savings {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

/* Benefits Liste */
.nsa-laufzeit-benefits {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.nsa-laufzeit-benefits li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.nsa-laufzeit-benefits li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
    font-size: 16px;
}

.nsa-laufzeit-benefits li.highlight {
    font-weight: 600;
    color: #2e7d32;
}

/* Responsive für kleinere Bildschirme */
@media (max-width: 768px) {
    .nsa-laufzeit-options {
        grid-template-columns: 1fr;
    }
    
    .nsa-laufzeit-option {
        min-height: auto;
    }
}

/* Eilauftrag Section - Deutsche Post Style */
.nsa-eilauftrag-section {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 15px;
    margin: 24px 0;
}

.nsa-eilauftrag-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.nsa-eilauftrag-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.nsa-eilauftrag-description {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 20px;
}

.nsa-eilauftrag-benefits {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nsa-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.nsa-check-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.nsa-benefit-item span {
    font-size: 16px;
    color: #000;
    line-height: 1.5;
}

/* Toggle Switch - iOS Style */
.nsa-toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
}

.nsa-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.nsa-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 34px;
    transition: 0.3s;
}

.nsa-toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.nsa-toggle-switch input:checked + .nsa-toggle-slider {
    background-color: #4CAF50;
}

.nsa-toggle-switch input:checked + .nsa-toggle-slider:before {
    transform: translateX(28px);
}

/* Hover-Effekt für Toggle */
.nsa-toggle-switch:hover .nsa-toggle-slider {
    opacity: 0.8;
}

/* Aktiver Zustand Styling */
.nsa-eilauftrag-section.active {
    background: #e8f5e9;
    border: 2px solid #4CAF50;
}

/* Preis-Update bei Eilauftrag */
.nsa-eilauftrag-price-info {
    margin-top: 16px;
    padding: 12px;
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #FFC107;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    display: none;
}

.nsa-eilauftrag-section.active .nsa-eilauftrag-price-info {
    display: block;
}

/* Delivery Options */
.nsa-delivery-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.nsa-delivery-option {
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.nsa-delivery-option:hover {
    border-color: #FFCC00;
    background: #fffbf0;
}

.nsa-delivery-option.selected {
    border-color: #FFCC00;
    background: #fffbf0;
}

.nsa-delivery-option input[type="radio"] {
    position: absolute;
    top: 15px;
    left: 15px;
}

.nsa-delivery-option h4 {
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: 600;
}

.nsa-delivery-option p {
    font-size: 13px;
    color: #666;
}

.nsa-tag {
    display: inline-block;
    background: #FFCC00;
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 8px;
}

/* Data Usage */
.nsa-data-usage {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

.nsa-data-usage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.nsa-data-usage-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.nsa-data-usage-content {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* Email Info */
.nsa-email-info {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}


/* Price Section - Deutsche Post Style */
.nsa-price-section {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin: 30px 0;
}

.nsa-price-breakdown {
    margin-bottom: 25px;
}

.nsa-price-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 0;
}

.nsa-price-line.nsa-price-main {
    padding-bottom: 15px;
}

.nsa-price-line.nsa-eilauftrag-line {
    padding-top: 0;
    padding-bottom: 15px;
}

.nsa-price-line.nsa-price-total {
    border-top: 1px solid #333;
    padding-top: 15px;
    margin-top: 0;
}

.nsa-price-item {
    display: flex;
    align-items: baseline;
}

.nsa-price-label {
    font-size: 16px;
    color: #333;
    font-weight: 400;
}

.nsa-price-label-total {
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.nsa-price-value {
    display: flex;
    align-items: baseline;
    gap: 10px;
    text-align: right;
}

.nsa-price-value-total {
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

#nsa-base-price {
    font-size: 16px;
    color: #333;
    font-weight: 400;
}

.nsa-price-vat {
    font-size: 12px;
    color: #666;
    font-weight: 400;
}

.nsa-legal-notice {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin-top: 20px;
}

/* Eilauftrag kostenlos Styling */
.nsa-eilauftrag-line .nsa-price-value {
    font-size: 16px;
    font-weight: 400;
    color: #333;
}

/* Submit Button */
.nsa-submit-section {
    padding: 30px 20px;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.nsa-btn-submit {
    width: 100% !important;
    padding: 16px !important;
    background: #000 !important;
    color: white !important;
    border: none;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.nsa-btn-submit:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nsa-btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.nsa-cart-icon {
    width: 20px;
    height: 20px;
}

/* Loading State */
.nsa-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #333;
    border-radius: 50%;
    animation: nsa-spin 1s linear infinite;
}

@keyframes nsa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Message */
.nsa-success-message {
    background: #4CAF50;
    color: white;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    text-align: center;
}

/* Error Message */
.nsa-error-message {
    background: #f44336;
    color: white;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nsa-header h1 {
        font-size: 24px;
    }

    .nsa-form-row {
        grid-template-columns: 1fr;
    }

    .nsa-laufzeit-options {
        grid-template-columns: 1fr;
    }

    .nsa-delivery-options {
        grid-template-columns: 1fr;
    }

    .nsa-tab-button {
        font-size: 14px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .nsa-container {
        margin: 0;
	border-radius:0 0 10px;
    }

    .nsa-header {
        padding: 20px 15px;
    }

    .nsa-form-container {
        padding: 15px;
    }

    .nsa-info-section {
        margin: 15px;
    }
}

/**
 * Info-Popup Styles für NSA Plugin
 * Füge diese Styles in deine nachsendeauftrag.css Datei ein
 */

/* Info Icon Verbesserungen */
.nsa-info-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
}

.nsa-info-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.nsa-info-icon:active {
    transform: scale(0.95);
}

/* Popup Overlay */
.nsa-info-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 999999;
    animation: fadeIn 0.3s ease;
}

/* Popup Content Container */
.nsa-info-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

/* Close Button */
.nsa-info-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: #666;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nsa-info-popup-close:hover {
    background: #ff4444;
    color: white;
    transform: rotate(90deg);
}

/* Popup Body */
.nsa-info-popup-body {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(80vh - 60px);
}

.nsa-info-popup-body h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.nsa-info-popup-body p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.nsa-info-popup-body ul {
    margin: 15px 0;
    padding-left: 0;
    list-style: none;
}

.nsa-info-popup-body ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

.nsa-info-popup-body ul li:before {
    content: '→';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.nsa-info-popup-body ul li strong {
    color: #333;
    font-weight: 600;
}

/* Special Content Styles */
.nsa-info-hint {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-left: 4px solid #667eea;
    padding: 12px 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 14px;
}

.nsa-info-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 14px;
    color: #856404;
}

.nsa-info-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.nsa-info-option {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.nsa-info-option.recommended {
    background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 100%);
    border-color: #FFCC00;
    position: relative;
}

.nsa-info-option h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.nsa-info-option .badge {
    display: inline-block;
    background: #ff4444;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 10px;
}

.nsa-info-option ul {
    margin: 10px 0 0 0;
}

.nsa-info-option ul li {
    font-size: 13px;
    padding-left: 20px;
    margin-bottom: 8px;
}

.nsa-info-option ul li:before {
    content: '✓';
    color: #4CAF50;
}

.nsa-info-benefits {
    background: #f0f8ff;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.nsa-info-benefits h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translate(-50%, -40%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

/* Body scroll lock when popup is open */
body.nsa-popup-open {
    overflow: hidden;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nsa-info-popup-content {
        width: 95%;
        max-height: 90vh;
        border-radius: 12px;
    }
    
    .nsa-info-popup-body {
        padding: 20px;
        max-height: calc(90vh - 40px);
    }
    
    .nsa-info-popup-body h3 {
        font-size: 20px;
    }
    
    .nsa-info-comparison {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .nsa-info-popup-close {
        top: 10px;
        right: 10px;
    }
}

/* Tooltip Animation for Icon */
.nsa-info-icon::after {
    content: 'Info';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nsa-info-icon:hover::after {
    opacity: 1;
}

/* Pulse Animation for Icon */
@keyframes pulse {
    0% {
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 2px 16px rgba(102, 126, 234, 0.6);
    }
    100% {
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    }
}

.nsa-info-icon.pulse {
    animation: pulse 2s infinite;
}

/* Basis-Styles für alle Input-Felder inkl. Date */
.nsa-form-group input[type="date"] {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    -webkit-appearance: none; /* Wichtig für Safari */
    appearance: none;
    background-color: #fff;
    min-height: 44px;
    display: block;
    box-sizing: border-box;
    text-align: left; /* Wichtig für Safari */
    text-indent: 0; /* Reset text-indent */
}

/* Mobile-spezifische Anpassungen */
@media (max-width: 768px) {
    .nsa-form-group input[type="date"] {
        font-size: 16px; /* Wichtig: Verhindert Auto-Zoom auf iOS */
        padding: 10px;
    }
    
    /* iOS Date-Picker Icons anpassen */
    input[type="date"]::-webkit-inner-spin-button,
    input[type="date"]::-webkit-calendar-picker-indicator {
        display: block;
        -webkit-appearance: none;
        width: 15px;
        height: 15px;
        margin-right: 5px;
    }
}

/* Safari-spezifische Styles */
@supports (-webkit-touch-callout: none) {
    /* Nur iOS Safari */
    .nsa-form-group input[type="date"] {
        padding-right: 30px !important; /* Platz für Kalender-Icon */
        background: #fff url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3e%3c/rect%3e%3cline x1='16' y1='2' x2='16' y2='6'%3e%3c/line%3e%3cline x1='8' y1='2' x2='8' y2='6'%3e%3c/line%3e%3cline x1='3' y1='10' x2='21' y2='10'%3e%3c/line%3e%3c/svg%3e") no-repeat;
        background-position: calc(100% - 8px) center;
        background-size: 20px 20px;
    }
    
    /* Verstecke das native Kalender-Icon */
    .nsa-form-group input[type="date"]::-webkit-calendar-picker-indicator {
        position: absolute;
        right: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
    }
    
    .nsa-form-group input[type="date"]::-webkit-date-and-time-value {
        text-align: left;
        padding-right: 0;
    }
    
    /* Fix für den inneren Spinner */
    .nsa-form-group input[type="date"]::-webkit-inner-spin-button {
        display: none;
        -webkit-appearance: none;
    }
}