/* css/style.css - Haupt-CSS-Datei für den CookieBanner Konfigurator */

body {
    font-family: 'Inter', sans-serif; /* Standard-Schriftart, Tailwind lädt Inter normalerweise nicht explizit vorab */
    background-color: #f0f4f8; /* Hellerer Hintergrund, Tailwind: bg-slate-100 oder bg-gray-100 */
    padding-bottom: 80px; /* Platz für die fixed Controls, etwas mehr als vorher */
    color: #1f2937; /* Tailwind: text-gray-800 */
}

.config-output {
    background-color: #1e293b; /* Tailwind: bg-slate-800 */
    color: #e2e8f0; /* Tailwind: text-slate-200 */
    padding: 1rem;
    border-radius: 0.375rem; /* Tailwind: rounded-md */
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875rem; /* Tailwind: text-sm */
    line-height: 1.25rem; /* Tailwind: leading-5 */
    min-height: 200px;
    white-space: pre;
}

.tab-button {
    padding: 0.5rem 1rem;
    margin-right: 0.5rem; /* Beibehalten für den Fall, dass kein Gap verwendet wird */
    border-radius: 0.375rem 0.375rem 0 0; /* Oben abgerundet */
    background-color: #e2e8f0; /* Tailwind: bg-slate-200 */
    color: #475569; /* Tailwind: text-slate-600 */
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    border: 1px solid transparent; /* Für konsistente Höhe mit active State */
    border-bottom: none; /* Keine untere Border im default state */
}

.tab-button.active {
    background-color: #ffffff; /* Tailwind: bg-white */
    color: #1e293b; /* Tailwind: text-slate-800 */
    border-color: #e2e8f0; /* Tailwind: border-slate-200 */
    border-bottom: 2px solid #4f46e5; /* Tailwind: border-indigo-600 - oder direkt im HTML, wenn es nur eine Linie sein soll */
}

.tab-content {
    display: none;
    padding: 1.5rem; /* Tailwind: p-6 */
    background-color: #ffffff; /* Tailwind: bg-white */
    border-radius: 0 0.375rem 0.375rem 0.375rem; /* Unten und rechts abgerundet, wenn der erste Tab aktiv ist */
    border: 1px solid #e2e8f0; /* Tailwind: border-slate-200 */
    /* border-top: none; /* Wird durch die Tab-Buttons abgedeckt */
}

.tab-content.active {
    display: block;
}

.service-item {
    padding: 0.75rem; /* Tailwind: p-3 */
    border: 1px solid #e2e8f0; /* Tailwind: border-slate-200 */
    border-radius: 0.375rem; /* Tailwind: rounded-md */
    margin-bottom: 0.5rem; /* Tailwind: mb-2 */
    background-color: #f8fafc; /* Tailwind: bg-slate-50 */
}

.service-item input[type="checkbox"] {
    margin-right: 0.75rem; /* Tailwind: mr-3 */
}

.service-item textarea {
    width: 100%;
    min-height: 60px;
    padding: 0.5rem; /* Tailwind: p-2 */
    border: 1px solid #cbd5e1; /* Tailwind: border-slate-300 */
    border-radius: 0.25rem; /* Tailwind: rounded-sm */
    font-size: 0.875rem; /* Tailwind: text-sm */
    margin-top: 0.5rem; /* Tailwind: mt-2 */
}

.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5); 
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888; /* Tailwind: border-gray-400 */
    border-radius: 8px; /* Tailwind: rounded-lg */
    width: 80%;
    max-width: 600px; 
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
}

.modal-footer {
    margin-top: 15px;
    text-align: right;
}

.modal-close {
    color: #aaa; /* Tailwind: text-gray-400 */
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.modal-close:hover,
.modal-close:focus {
    color: black; /* Tailwind: text-black */
    text-decoration: none;
}


#live-preview-controls {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255,255,255,0.95);
    padding: 8px 12px;
    border-radius: 6px; /* Tailwind: rounded-md */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 100000; 
    display: flex; 
    gap: 10px; 
}

#live-preview-controls button {
    padding: 0.5rem 1rem; /* Tailwind: py-2 px-4 */
    font-size: 0.875rem; /* Tailwind: text-sm */
    border-radius: 0.375rem; /* Tailwind: rounded-md */
    /* Farben sind im HTML per Tailwind-Klassen definiert */
}

.url-display {
    background-color: #f3f4f6; /* Tailwind: bg-gray-100 */
    padding: 0.5rem; /* Tailwind: p-2 */
    border-radius: 0.25rem; /* Tailwind: rounded-sm */
    font-family: monospace;
    font-size: 0.8rem;
    word-break: break-all;
    margin-bottom: 0.5rem; /* Tailwind: mb-2 */
    border: 1px solid #e5e7eb; /* Tailwind: border-gray-200 */
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
}

.url-display strong {
    display: block;
    margin-bottom: 0.25rem; /* Tailwind: mb-1 */
    font-weight: bold; /* Tailwind: font-bold */
}

.url-display span {
    flex-grow: 1; 
}

.url-display button {
    margin-left: 0.5rem; /* Tailwind: ml-2 */
    flex-shrink: 0; 
    /* Tailwind-Klassen für Button-Styling direkt im HTML in der showModal Funktion */
}
