* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Eingabeformular */
.input-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.input-section h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group select,
.form-group input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group select:focus,
.form-group input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
}

.employee-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 10px;
}

.employee-input label {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

/* Angebote */
.offers-section {
    margin-top: 40px;
}

.offers-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 2rem;
}

.offers-table-container {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow-x: auto;
    max-width: 95vw;
}

.offers-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.offers-table th,
.offers-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    vertical-align: top;
}

/* Spaltenbreiten für gleichmäßige Verteilung */
.offers-table th:nth-child(1),
.offers-table td:nth-child(1) {
    width: 5%;
    min-width: 40px;
}

.offers-table th:nth-child(2),
.offers-table td:nth-child(2) {
    width: 15%;
    min-width: 120px;
}

.offers-table th:nth-child(3),
.offers-table td:nth-child(3) {
    width: 15%;
    min-width: 100px;
    padding: 8px;
}

.offers-table th:nth-child(4),
.offers-table td:nth-child(4) {
    width: 15%;
    min-width: 100px;
    padding: 8px;
}

.offers-table th:nth-child(5),
.offers-table td:nth-child(5) {
    width: 15%;
    min-width: 100px;
}

.offers-table th:nth-child(6),
.offers-table td:nth-child(6) {
    width: 15%;
    min-width: 120px;
}

/* Sicherstellen, dass die Bemerkung-Spalte sichtbar ist */
.offers-table td:last-child {
    padding: 15px;
    vertical-align: top;
    min-width: 160px;
}

.offers-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    position: sticky;
    top: 0;
}

.offers-table tr:hover {
    background-color: #f8f9fa;
}

.offers-table .insurance-type {
    font-weight: 600;
    color: #333;
    min-width: 200px;
}

.offers-table .offer-cell {
    min-width: 150px;
}

.offers-table .company {
    font-weight: 500;
    color: #667eea;
    margin-bottom: 5px;
}

.offers-table .price {
    font-weight: bold;
    color: #28a745;
    font-size: 1.1rem;
}

.offers-table .sum {
    font-size: 0.9rem;
    color: #666;
    margin-top: 3px;
}

.offers-table .details {
    font-size: 0.85rem;
    color: #666;
    margin-top: 3px;
    font-style: italic;
}

.offers-table .recommendation {
    font-style: italic;
    color: #555;
    max-width: 300px;
}

.offers-table .total-row {
    background-color: #f8f9fa;
    font-weight: bold;
    border-top: 2px solid #ddd;
}

.offers-table .total-row td {
    font-size: 1.1rem;
    vertical-align: middle;
}

.discounts-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.discounts-section h3 {
    color: #333;
    margin-bottom: 15px;
}

.discounts-section ul {
    list-style: none;
    padding: 0;
}

.discounts-section li {
    padding: 8px 0;
    color: #28a745;
    font-weight: 500;
}

.discounts-section li:before {
    content: "✓ ";
    color: #28a745;
    font-weight: bold;
}

/* Vergleichstabelle */
.comparison-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.comparison-section h3 {
    margin-bottom: 20px;
    color: #333;
}

.comparison-table {
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.comparison-table th,
.comparison-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.comparison-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.comparison-table tr:hover {
    background-color: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .employee-inputs {
        grid-template-columns: 1fr;
    }
    
    .offers-container {
        grid-template-columns: 1fr;
    }
    
    .offer-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .module {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* Animationen */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.offers-section {
    animation: fadeIn 0.5s ease-out;
}

.offer-card {
    animation: fadeIn 0.5s ease-out;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
} 

.form-control {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 2px solid var(--incon-border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 16px;
  transition: all 0.3s ease;
  appearance: none;
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #fff url('data:image/svg+xml;utf8,<svg fill="%236b7280" height="20" viewBox="0 0 20 20" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7.293 7.293a1 1 0 011.414 0L10 8.586l1.293-1.293a1 1 0 111.414 1.414l-2 2a1 1 0 01-1.414 0l-2-2a1 1 0 010-1.414z"/></svg>') no-repeat right 1rem center/1.2em;
  padding-right: 2.5em;
  cursor: pointer;
}

/* Für Inputs in flex/grid-Containern: */
#locationsList input.form-control,
#managersList input.form-control,
#ownersList input.form-control {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: #fff;
  border: 2px solid var(--incon-border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 16px;
  transition: all 0.3s ease;
}

#locationsList > div,
#managersList > div,
#ownersList > div {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

#locationsList > div > input,
#managersList > div > input,
#ownersList > div > input {
  flex: 1 1 0;
  min-width: 0;
} 

/* VDIV Logo Container */
.company-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.vdiv-logo-container {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
    transition: all 0.3s ease;
}

.vdiv-logo-container:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.vdiv-logo {
    height: 30px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Adressvalidierung */
.address-validation-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.address-validation-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.address-validation-status.loading {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
}

.address-validation-status.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.address-validation-status.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.address-validation-status.warning {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
}

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

.status-text {
    flex: 1;
} 

/* Bearbeitbare Empfehlung/Bemerkung Textarea */
.remarks-textarea {
    width: 100%;
    min-height: 120px;
    padding: 8px 12px;
    border: 2px solid var(--incon-border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.remarks-textarea:focus {
    outline: none;
    border-color: var(--incon-secondary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.remarks-textarea:hover {
    border-color: var(--incon-secondary);
}

/* Anpassung der Tabellenzellen für Textarea */
.offers-table td:last-child {
    padding: 15px;
    vertical-align: top;
}

/* Responsive Anpassungen für Textarea */
@media (max-width: 768px) {
    .remarks-textarea {
        min-height: 50px;
        font-size: 13px;
    }
}

/* Dropdown-Optionen vollständig anzeigen */
.remarks-dropdown option {
    white-space: normal;
    word-wrap: break-word;
    padding: 8px;
    line-height: 1.4;
    font-size: 14px;
}

/* Dropdown-Container für bessere Darstellung */
.remarks-dropdown {
    max-width: 100%;
} 

/* Angebot 3 Container und Eingabefelder */
.offer3-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.offer3-container input {
    padding: 6px 8px;
    border: 2px solid var(--incon-border);
    border-radius: 4px;
    font-size: 12px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.offer3-container input:focus {
    outline: none;
    border-color: var(--incon-secondary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.offer3-container input:hover {
    border-color: var(--incon-secondary);
}

/* Spezielle Anpassungen für Angebot 3 Felder */
.offer3-container .offer3-company {
    min-height: 32px;
}

.offer3-container .offer3-info {
    min-height: 60px;
    resize: vertical;
    font-family: inherit;
}

.offer3-container .offer3-price {
    min-height: 28px;
}

/* Anpassung der Tabellenzellen für Angebot 3 */
.offers-table td:nth-child(5) {
    padding: 8px;
}

/* Responsive Anpassungen für Angebot 3 */
@media (max-width: 768px) {
    .offer3-container input,
    .offer3-container textarea {
        font-size: 11px;
        padding: 4px 6px;
    }
    
    .offers-table-container {
        max-width: 98vw;
    }
}

/* D&O Angebot 1 und 2 Container und Eingabefelder */
.offer1-container,
.offer2-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.offer1-container input,
.offer2-container input {
    padding: 6px 8px;
    border: 2px solid var(--incon-border);
    border-radius: 4px;
    font-size: 12px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.offer1-container input:focus,
.offer2-container input:focus {
    outline: none;
    border-color: var(--incon-secondary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.offer1-container input:hover,
.offer2-container input:hover {
    border-color: var(--incon-secondary);
}

/* Spezielle Anpassungen für D&O Felder */
.offer1-container .offer1-company,
.offer2-container .offer2-company {
    min-height: 32px;
}

.offer1-container .offer1-info,
.offer2-container .offer2-info {
    min-height: 60px;
    resize: vertical;
    font-family: inherit;
}

.offer1-container .offer1-price,
.offer2-container .offer2-price {
    min-height: 28px;
}

/* Anpassung der Tabellenzellen für D&O */
.offers-table td:nth-child(4),
.offers-table td:nth-child(5) {
    padding: 8px;
}

/* Responsive Anpassungen für D&O */
@media (max-width: 768px) {
    .offer1-container input,
    .offer2-container input,
    .offer1-container textarea,
    .offer2-container textarea {
        font-size: 11px;
        padding: 4px 6px;
    }
} 