/* === GRUNDLAGEN & VARIABLEN === */
:root {
    /* Tool-spezifische Akzentfarbe (kann in HTML überschrieben werden) */
    --primary-color: #4CAF50; /* Standard: Grün */
    --primary-color-dark: #45a049;

    /* Sekundäre und Tertiäre Farben für konsistente UI-Elemente */
    --secondary-color: #6c757d;
    --secondary-color-dark: #5a6268;
    --danger-color: #e74c3c;
    --danger-color-dark: #c0392b;

    /* Neutrale Farbpalette */
    --background-light: #f8f9fa;
    --background-dark: #2c3e50;
    --text-color: #333;
    --text-color-light: #fff;
    --border-color: #dee2e6;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-light);
    color: var(--text-color);
    padding: 20px;
}

/* === LAYOUT === */
.container {
    max-width: 1000px;
    margin: 20px auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-color);
    overflow: hidden;
}

.header {
    background: var(--background-dark);
    color: var(--text-color-light);
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}
.h4 {
    font-size: 2em;
    margin-bottom: 10px;
}

.ul {
	font-size: 3em;
}

.content-wrapper {
    padding: 30px;
}

.card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: var(--text-color);
}

/* === FORMULARE & EINGABEN === */
.input-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.input-field {
    display: flex;
    flex-direction: column;
}

.input-field label {
    margin-bottom: 8px;
    font-weight: 600;
}

.input-field input {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-field input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 20%, transparent);
}

/* === BUTTONS === */
.button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.btn {
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.2s, transform 0.2s;
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--primary-color);
}
.btn-primary:hover {
    background-color: var(--primary-color-dark);
}

.btn-secondary {
    background-color: var(--secondary-color);
}
.btn-secondary:hover {
    background-color: var(--secondary-color-dark);
}

.btn-danger {
    background-color: var(--danger-color);
}
.btn-danger:hover {
    background-color: var(--danger-color-dark);
}
.btn-gespeichete-berichte {
    min-width: 200px;
	min-height: 45px;
	margin-right: 3px;
	margin-top: 10px;
}
.btn-zuruck {
	float: right;
}
.btn-artikeleditor {
    min-width: 200px;
	min-height: 45px;
	margin-right: 15px;
	margin-top: 10px;
}


/* === LISTEN & BADGES === */
.item-list {
    margin-top: 20px;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:hover {
    background-color: color-mix(in srgb, var(--primary-color) 5%, transparent);
}

.list-item.completed {
    text-decoration: line-through;
    color: #999;
}

.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    background-color: var(--secondary-color);
}

.list-item.completed .badge {
    background-color: var(--primary-color);
}

/* === STILE FÜR ARTIKELGRUPPEN-KARTEN === */

/* Der Hauptcontainer für eine einzelne Gruppe */
.group-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-large); /* 15px aus dem Hauptdesign */
    padding: 20px;
    margin-bottom: 20px; /* Abstand zwischen den Karten */
    box-shadow: var(--shadow-light);
    transition: box-shadow 0.3s ease;
}

.group-card:hover {
    box-shadow: var(--shadow-hover);
}

/* Der Titel der Gruppe */
.group-card__title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4em; /* Größer als Standard-h4 */
    color: var(--secondary-color); /* Hebt den Titel hervor */
    border-bottom: 2px solid var(--background-light);
    padding-bottom: 10px;
}

/* Die Liste selbst */
.group-card__list {
    list-style-type: none; /* Entfernt die Aufzählungspunkte */
    padding-left: 0;       /* Entfernt den Standard-Einzug */
    margin-bottom: 20px;
}

/* Die einzelnen Artikel in der Liste */
.group-card__item {
    padding: 2px 4px;
    font-size: 1.1em;
    color: #555;
    border-bottom: 1px solid #f0f0f0; /* Dezente Trennlinie */
    display: flex;
    align-items: center;
}

/* Letztes Element ohne Trennlinie */
.group-card__item:last-child {
    border-bottom: none;
}

/* Optional: Ein kleiner Deko-Punkt vor jedem Item */
.group-card__item::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 12px;
    font-size: 1.2em;
}

/* Fügt etwas Abstand zwischen der Liste und den Buttons hinzu */
.group-card .button-group {
    margin-top: 20px;
}


/* === ZUSÄTZLICHE STILE FÜR NUMMERIERUNG IM KREIS === */

.group-number-badge {
    /* Layout */
    display: inline-flex; /* Für Zentrierung von Inhalt */
    align-items: center;
    justify-content: center;
    min-width: 35px;        /* Mindestbreite/Höhe für den Kreis */
    height: 35px;
    
    /* Kreis-Form */
    border-radius: 50%;     /* Macht das Element perfekt rund */
    
    /* Abstand zum Gruppennamen */
    margin-right: 15px;
    
    /* Farben und Schrift */
    background-color: var(--primary-color); /* Akzentfarbe des Tools */
    color: var(--text-color-light);         /* Weiße Schrift */
    font-size: 1em;
    font-weight: 700;
    
    /* Schatten/Hervorhebung */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.group-card__title {
    /* Sicherstellen, dass der Titel selbst Platz für das Badge hat */
    display: flex;
    align-items: center;
}




