:root {
    /* Farben */
    --primary-color: #007bff;
    --primary-hover: #0056b3;

    --ok-button-bg: #28a745;
    --ok-button-hover: #218838;

    --edit-button-bg: #ffc107;
    --edit-button-hover: #e0a800;

    --loesch-button-bg: #dc3545;
    --loesch-button-hover: #c82333;

    --save-button-bg: #444;
    --save-button-hover: #555;
    --save-button-color: #fff;

    --secondary-color: #333;
    --light-grey: #ccc;
    --dark-grey: #666;

    --border-radius: 3px;
    --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.5;
    color: var(--secondary-color);
    background-color: #f4f4f9;
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.dropdown {
    float: right;
}

.subinfo {
    font-size: 12px;
    color: var(--dark-grey);
    margin-top: 5px;
    clear: both;
}

h1, h2 {
    color: var(--secondary-color);
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 1px solid var(--light-grey);
    padding-bottom: 3px;
    margin-bottom: 8px;
    margin-top: 20px;
}

h1 {
    font-size: 28px;
    border-bottom-width: 2px;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

h2 {
    font-size: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.neu-button {
    margin-left: auto;
}

/* Einheitliches Button-Design */
.ok-button,
.edit-button,
.loesch-button,
.save-button,
.neu-button {
    padding: 5px 10px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-decoration: none;
    font-size: 12px;
    transition: background-color 0.3s;
    text-align: center;
}

.ok-button {
    background-color: var(--ok-button-bg);
    color: white;
}

.ok-button:hover {
    background-color: var(--ok-button-hover);
}

.edit-button {
    background-color: var(--edit-button-bg);
    color: white;
}

.edit-button:hover {
    background-color: var(--edit-button-hover);
}

.loesch-button {
    background-color: var(--loesch-button-bg);
    color: white;
}

.loesch-button:hover {
    background-color: var(--loesch-button-hover);
}

.save-button {
    background-color: var(--save-button-bg);
    color: var(--save-button-color);
    height: 35px;
    align-self: flex-end;
}

.save-button:hover {
    background-color: var(--save-button-hover);
}

/* Flexbox für Formulare */
.form-flex {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.input-field {
    padding: 5px;
    font-size: 14px;
    border: 1px solid var(--light-grey);
    border-radius: var(--border-radius);
    flex-grow: 1;
    box-sizing: border-box;
    width: 100%;
}

/* Flexbox für Action Buttons */
.action-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-shrink: 0;
}

.hidden {
    display: none;
}

.project-selection {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.no-bullets {
    list-style: none;
    padding: 0;
}

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--light-grey);
    padding-bottom: 5px;
}

/* Anpassung für Regeln */
.rule-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.list-id {
    flex-shrink: 0;
    margin-right: 10px;
}

.list-description {
    flex-grow: 1;
    text-align: left;
    padding-left: 10px;
}
