/* Odenwaldklick.de inspirierte Farbpalette */
:root {
    /* Prim re Odenwald-Farben */
    --odenwald-gruen: #2d5a27;      /* Dunkles Waldgr n */
    --odenwald-hell: #4a7c59;       /* Helles Waldgr n */
    --odenwald-akzent: #7ba05b;     /* Frisches Gr n */
    --odenwald-natur: #9cb86f;      /* Naturgr n */
    --odenwald-beige: #e8dcc0;      /* Nat rliches Beige */
    --odenwald-braun: #8b6914;      /* Erdbraun */
    --odenwald-orange: #d4621c;     /* Warmes Orange */
    
    /* Neutrale Farben */
    --weiss: #ffffff;
    --grau-hell: #f5f5f5;
    --grau-mittel: #e0e0e0;
    --grau-dunkel: #666666;
    --schwarz: #2c2c2c;
    
    /* Status-Farben */
    --erfolg: var(--odenwald-akzent);
    --warnung: var(--odenwald-orange);
    --fehler: #c62828;
    --info: var(--odenwald-hell);
}

body { 
    font-family: Arial, sans-serif; 
    line-height: 1.6; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 20px; 
    background-color: var(--grau-hell);
    color: var(--schwarz);
}

.container { 
    background: var(--weiss); 
    border-radius: 8px; 
    padding: 20px; 
    margin-bottom: 20px; 
    box-shadow: 0 2px 8px rgba(45, 90, 39, 0.1);
    border-left: 4px solid var(--odenwald-gruen);
}
.status-exists{ display:inline-block; margin-left:8px; padding:2px 8px; border-radius:10px; background:#eef2ff; color:#293fb3; border:1px solid #d9e0ff; font-weight:600; font-size:12px; }
.status-new{ display:inline-block; margin-left:8px; padding:2px 8px; border-radius:10px; background:#e6f7ee; color:#0f7a3f; border:1px solid #bde7cc; font-weight:600; font-size:12px; }
.status-check{ display:inline-block; margin-left:8px; padding:2px 8px; border-radius:10px; background:#fff7e6; color:#8a5a00; border:1px solid #ffe1b3; font-weight:600; font-size:12px; }


.sources {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}


.source-card { 
    background: var(--weiss); 
    border: 2px solid var(--odenwald-beige); 
    border-radius: 8px; 
    padding: 15px; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    position: relative;
    box-shadow: 0 2px 4px rgba(45, 90, 39, 0.1);
}

.source-card:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 4px 12px rgba(45, 90, 39, 0.2);
    border-color: var(--odenwald-hell);
}

.source-card.active { 
    border: 2px solid var(--odenwald-gruen); 
    background: linear-gradient(135deg, #f0f8f0 0%, #e8f5e8 100%);
}

.source-card .remove-btn { 
    position: absolute; 
    top: 8px; 
    right: 8px; 
    background: var(--fehler); 
    color: var(--weiss); 
    border: none; 
    border-radius: 50%; 
    width: 20px; 
    height: 20px; 
    font-size: 10px; 
    line-height: 1; 
    cursor: pointer; 
    display: none; 
}

.source-card:hover .remove-btn { 
    display: block; 
}

.source-card.custom { 
    background: linear-gradient(135deg, var(--odenwald-beige) 0%, #f0f0f0 100%);
    border-color: var(--odenwald-braun);
}

.company-card { 
    background: var(--weiss); 
    border: 1px solid var(--odenwald-beige); 
    border-radius: 8px; 
    padding: 15px; 
    margin-bottom: 15px; 
    box-shadow: 0 2px 6px rgba(45, 90, 39, 0.1);
    border-left: 4px solid var(--odenwald-akzent);
}

.company-data { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 10px; 
    margin-bottom: 15px; 
}

.company-data div { 
    padding: 8px; 
    background: var(--grau-hell); 
    border-radius: 4px; 
    border-left: 3px solid var(--odenwald-natur);
}

.company-data strong { 
    display: block; 
    margin-bottom: 3px; 
    color: var(--odenwald-gruen); 
    font-weight: bold;
}

h2 { 
    color: var(--odenwald-gruen); 
    border-bottom: 3px solid var(--odenwald-akzent); 
    padding-bottom: 10px; 
    font-weight: bold;
}

.status-new { 
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%); 
    color: var(--odenwald-gruen); 
    padding: 5px 10px; 
    border-radius: 20px; 
    font-weight: bold;
    border: 1px solid var(--odenwald-akzent);
}

.status-exists { 
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%); 
    color: var(--odenwald-braun); 
    padding: 5px 10px; 
    border-radius: 20px; 
    font-weight: bold;
    border: 1px solid var(--odenwald-orange);
}

button { 
    background: linear-gradient(135deg, var(--odenwald-gruen) 0%, var(--odenwald-hell) 100%); 
    color: var(--weiss); 
    border: none; 
    padding: 12px 20px; 
    margin: 5px; 
    border-radius: 6px; 
    cursor: pointer; 
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(45, 90, 39, 0.2);
}

button:hover { 
    background: linear-gradient(135deg, var(--odenwald-hell) 0%, var(--odenwald-akzent) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(45, 90, 39, 0.3);
}

button:disabled { 
    background: var(--grau-mittel); 
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.status-check {
  display:inline-block; margin-left:8px; padding:2px 8px; border-radius:10px;
  background:#fff7e6; color:#8a5a00; border:1px solid #ffe1b3; font-weight:600; font-size:12px;
}

select { 
    padding: 8px; 
    border: 2px solid var(--odenwald-beige); 
    border-radius: 4px;
    background: var(--weiss);
    color: var(--schwarz);
}

select:focus {
    border-color: var(--odenwald-gruen);
    outline: none;
    box-shadow: 0 0 5px rgba(45, 90, 39, 0.3);
}

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

.form-group label { 
    display: block; 
    margin-bottom: 5px; 
    font-weight: bold; 
    color: var(--odenwald-gruen);
}

.alert { 
    padding: 15px; 
    margin-bottom: 20px; 
    border-radius: 8px; 
    border-left: 4px solid;
    font-weight: 500;
}

.alert-success { 
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%); 
    color: var(--odenwald-gruen);
    border-left-color: var(--erfolg);
}

.alert-warning { 
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%); 
    color: var(--odenwald-braun);
    border-left-color: var(--warnung);
}

.alert-danger { 
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%); 
    color: var(--fehler);
    border-left-color: var(--fehler);
}

.alert-info { 
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%); 
    color: var(--info);
    border-left-color: var(--info);
}

.progress { 
    height: 20px; 
    background: var(--grau-mittel); 
    border-radius: 10px; 
    margin-bottom: 20px; 
    overflow: hidden; 
    position: relative; 
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-bar { 
    height: 100%; 
    background: linear-gradient(135deg, var(--odenwald-gruen) 0%, var(--odenwald-akzent) 100%); 
    width: 0; 
    transition: width 0.3s ease;
    box-shadow: 0 2px 4px rgba(45, 90, 39, 0.3);
}

.progress-text { 
    position: absolute; 
    width: 100%; 
    text-align: center; 
    line-height: 20px; 
    color: var(--schwarz);
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

#results-container { 
    margin-top: 20px; 
}

.source-badge { 
    display: inline-block; 
    padding: 4px 12px; 
    margin-left: 10px; 
    border-radius: 15px; 
    font-size: 11px; 
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.source-kreishandwerkerschaft { 
    background: linear-gradient(135deg, var(--odenwald-orange) 0%, #e67e22 100%); 
    color: var(--weiss);
    box-shadow: 0 2px 4px rgba(212, 98, 28, 0.3);
}

.source-ihk { 
    background: linear-gradient(135deg, var(--odenwald-hell) 0%, #3498db 100%); 
    color: var(--weiss);
    box-shadow: 0 2px 4px rgba(74, 124, 89, 0.3);
}

.source-gelbeseiten { 
    background: linear-gradient(135deg, var(--odenwald-braun) 0%, #f39c12 100%); 
    color: var(--weiss);
    box-shadow: 0 2px 4px rgba(139, 105, 20, 0.3);
}

.source-firmenverzeichnis { 
    background: linear-gradient(135deg, var(--grau-dunkel) 0%, #34495e 100%); 
    color: var(--weiss);
    box-shadow: 0 2px 4px rgba(102, 102, 102, 0.3);
}

.source-gewusstwo { 
    background: linear-gradient(135deg, var(--odenwald-akzent) 0%, #27ae60 100%); 
    color: var(--weiss);
    box-shadow: 0 2px 4px rgba(123, 160, 91, 0.3);
}

.source-custom { 
    background: linear-gradient(135deg, var(--odenwald-natur) 0%, #16a085 100%); 
    color: var(--weiss);
    box-shadow: 0 2px 4px rgba(156, 184, 111, 0.3);
}

.footer { 
    margin-top: 30px; 
    text-align: center; 
    font-size: 12px; 
    color: var(--grau-dunkel);
    padding: 20px;
    background: linear-gradient(135deg, var(--odenwald-beige) 0%, #f8f9fa 100%);
    border-radius: 8px;
    border-top: 3px solid var(--odenwald-gruen);
}

.btn-group { 
    display: flex; 
    gap: 10px; 
    margin-top: 10px; 
}

.stats { 
    background: linear-gradient(135deg, var(--odenwald-beige) 0%, #f8f9fa 100%); 
    padding: 15px 20px; 
    border-radius: 8px; 
    margin-bottom: 20px; 
    display: flex; 
    justify-content: space-between;
    border: 2px solid var(--odenwald-natur);
    box-shadow: 0 2px 6px rgba(45, 90, 39, 0.1);
}

.stat-item { 
    text-align: center; 
}

.stat-value { 
    font-size: 28px; 
    font-weight: bold; 
    color: var(--odenwald-gruen);
    text-shadow: 1px 1px 2px rgba(45, 90, 39, 0.1);
}

.stat-label { 
    font-size: 12px; 
    color: var(--grau-dunkel);
    font-weight: 500;
}

#plz-select { 
    max-width: 300px; 
}

.modal { 
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(45, 90, 39, 0.6);
    backdrop-filter: blur(3px);
}

.modal-content { 
    background: var(--weiss); 
    margin: 10% auto; 
    padding: 25px; 
    border: 2px solid var(--odenwald-gruen); 
    border-radius: 12px; 
    width: 85%; 
    max-width: 500px;
    box-shadow: 0 8px 25px rgba(45, 90, 39, 0.3);
}

.modal-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 15px;
    border-bottom: 2px solid var(--odenwald-beige);
    padding-bottom: 10px;
}

.modal-header h3 { 
    margin: 0;
    color: var(--odenwald-gruen);
}

.close { 
    color: var(--grau-dunkel); 
    font-size: 28px; 
    font-weight: bold; 
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover { 
    color: var(--odenwald-gruen); 
}

.form-control { 
    width: 100%; 
    padding: 10px; 
    margin-bottom: 12px; 
    border: 2px solid var(--odenwald-beige); 
    border-radius: 6px; 
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--odenwald-gruen);
    outline: none;
    box-shadow: 0 0 5px rgba(45, 90, 39, 0.3);
}

.add-new-card { 
    border: 2px dashed var(--odenwald-akzent); 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    color: var(--odenwald-hell);
    background: linear-gradient(135deg, rgba(123, 160, 91, 0.1) 0%, rgba(74, 124, 89, 0.1) 100%);
    transition: all 0.3s ease;
}

.add-new-card:hover {
    border-color: var(--odenwald-gruen);
    background: linear-gradient(135deg, rgba(123, 160, 91, 0.2) 0%, rgba(74, 124, 89, 0.2) 100%);
    color: var(--odenwald-gruen);
}

.add-new-card .plus-icon { 
    font-size: 32px; 
    margin-bottom: 8px;
    color: var(--odenwald-akzent);
}

.btn-warning { 
    background: linear-gradient(135deg, var(--odenwald-orange) 0%, #e67e22 100%); 
    color: var(--weiss);
    box-shadow: 0 2px 4px rgba(212, 98, 28, 0.3);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
}

/* Besonderes Styling f r die Excel-Firmenliste */
.source-card[data-source="firmenliste"] {
    border: 3px solid var(--odenwald-akzent);
    background: linear-gradient(135deg, #f0f8f0 0%, #e8f5e8 100%);
    position: relative;
    box-shadow: 0 4px 12px rgba(123, 160, 91, 0.3);
}

.source-card[data-source="firmenliste"]:hover {
    border-color: var(--odenwald-gruen);
    box-shadow: 0 6px 20px rgba(45, 90, 39, 0.4);
}

.source-card[data-source="firmenliste"].active {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: var(--odenwald-gruen);
}

.source-card[data-source="firmenliste"] h4 {
    color: var(--odenwald-gruen);
    font-weight: bold;
}

/* Badge f r Excel-Firmenliste */
.source-badge.source-firmenliste {
    background: linear-gradient(135deg, var(--odenwald-akzent) 0%, var(--odenwald-natur) 100%);
    color: var(--weiss);
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 2px 6px rgba(123, 160, 91, 0.4);
}

/* Qualit ts-Indikator */
.source-count {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--odenwald-akzent);
    color: var(--weiss);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(123, 160, 91, 0.3);
}

/* Verbessertes Styling f r alle Source-Cards */
.source-card {
    border: 2px solid var(--odenwald-beige);
    border-radius: 8px;
    padding: 15px;
    margin: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--weiss);
    position: relative;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.source-card:hover {
    border-color: var(--odenwald-hell);
    box-shadow: 0 4px 12px rgba(74, 124, 89, 0.2);
    transform: translateY(-2px);
}

.source-card.active {
    border-color: var(--odenwald-gruen);
    background: linear-gradient(135deg, #f0f8f0 0%, #e8f5e8 100%);
}

.source-card h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: var(--odenwald-gruen);
    font-weight: bold;
}

.source-card p {
    margin: 0;
    font-size: 12px;
    color: var(--grau-dunkel);
}

/* Icons f r verschiedene Quellen - ersetzt durch Odenwald-inspirierte Symbole */
.source-card[data-source="ihk"] h4:before {
    content: "?? ";
}

.source-card[data-source="kreishandwerkerschaft"] h4:before {
    content: "?? ";
}

.source-card[data-source="gelbeseiten"] h4:before {
    content: "?? ";
}

.source-card[data-source="gewusstwo"] h4:before {
    content: "?? ";
}

.source-card[data-source="firmenverzeichnis"] h4:before {
    content: "?? ";
}

.source-card[data-source="firmenliste"] h4:before {
    content: "?? ";
}

/* Responsive Design */

@media (max-width: 768px) {
    .sources {
        grid-template-columns: 1fr;
    }
    
    .source-card {
        margin: 5px 0;
    }
    
    .company-data {
        grid-template-columns: 1fr;
    }
    
    .stats {
        flex-direction: column;
        gap: 15px;
    }
}

/* Zus tzliche Odenwald-Akzente */
.source-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--odenwald-gruen) 0%, var(--odenwald-akzent) 50%, var(--odenwald-natur) 100%);
    border-radius: 8px 8px 0 0;
}

/* Animationen f r bessere UX */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.company-card {
    animation: fadeIn 0.3s ease-in-out;
}

/* Scrollbar-Styling f r Webkit-Browser */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--grau-hell);
}

::-webkit-scrollbar-thumb {
    background: var(--odenwald-gruen);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--odenwald-hell);
}e 