/* Basic Reset */
body,
h1,
h2,
p,
input,
textarea,
button {
    margin: 0;
    padding: 0;
    border: 0;
    font-family: sans-serif;
}

/* General Styles */
body {
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 10px;
}

/* Header Styles */
.header {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-bottom: 20px;
}

.header h1 {
    margin-bottom: 0.5rem;
}

/* Main Navigation Styles */
.main-nav {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.main-nav .label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.main-nav .input,
.main-nav .textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.main-nav .input:focus,
.main-nav .textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Specific style for the maxZeichen input field */
#maxZeichen {
    width: 20%; /* Adjust as needed */
    min-width: 50px; /* Minimum width to ensure it's still visible */
}

/* Filter Styles */
.filters {
    margin-bottom: 1rem;
}

.filter-group {
    margin-bottom: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.filter-group summary {
    padding: 1rem;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-group summary h2 {
    margin: 0; 
}

.filter-group[open] .filter-content {
  
}

.filter-header {
    margin-bottom: 0.75rem;
    color: #555;
}

.filter-content {
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.filter-content label {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.filter-content input[type="checkbox"] {
    margin-right: 0.5rem;
}

.open-all-button {
    padding: 0.5rem 1rem;
    border: none;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: background-color 0.3s ease;
}

.open-all-button:hover {
    background-color: #0056b3;
}

/* Buttons Styles */
.buttons {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
}

.button {
    padding: 0.75rem 1.5rem;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 4px;
}

.button.is-primary {
    background-color: #007bff;
}

.button.is-primary:hover {
    background-color: #0056b3;
}

.button.is-warning {
    background-color: #ffc107;
    color: #333;
}

.button.is-warning:hover {
    background-color: #d39e00;
}

/* Footer Styles */
.footer {
    text-align: center;
    padding: 1rem 0;
    margin-top: 20px;
    background: #333;
    color: #000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    .buttons {
        flex-direction: column;
    }

    .button {
        margin-bottom: 0.5rem;
    }
}

/* Tooltip Styles */
[data-tooltip] {
    position: relative;
    /* Important for tooltip positioning */
    cursor: pointer;
}

[data-tooltip]::before,
[data-tooltip]::after {
    position: absolute;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

/* Tooltip Box */
[data-tooltip]::before {
    content: attr(data-tooltip);
    /* Use the data-tooltip text */
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5em 1em;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 0.875rem;
    z-index: 1;
    /* Ensure it stays on top */
    white-space: nowrap;
}

/* Tooltip Arrow */
[data-tooltip]::after {
    content: '';
    border-style: solid;
    border-width: 0.5em 0.5em 0 0.5em;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
    bottom: 110%;
    /* Adjust as needed */
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    /* Ensure it stays on top */
}

/* Show the tooltip on hover */
[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    visibility: visible;
    opacity: 1;
}