* {
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #f4f5f7;
    color: #1f2933;
    margin: 0;
}

.kopfbereich {
    background-color: #1f5f54;
    color: white;
    padding: 20px 40px;
}

.kopfbereich h1 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}

.kopfbereich nav a {
    color: #cfe0f5;
    text-decoration: none;
    margin-right: 20px;
    font-size: 0.95rem;
}

.kopfbereich nav a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------- Linke Parlaments-Leiste: alle 6 Logos, oberstes ist aktiv und klappt beim Wechsel ein farbiges Namens-Label seitlich aus. --------------------------------------------------------- */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.parlament-leiste {
    width: 76px;
    flex-shrink: 0;
    background-color: white;
    border-right: 1px solid #e4e7eb;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    overflow: visible;
    z-index: 20;
}

.parlament-eintrag {
    display: flex;
    align-items: center;
    position: relative;
}

.parlament-logo {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    border: 3px solid var(--parlament-farbe, #e4e7eb);
    background-color: white;
    padding: 0;
    margin-left: 10px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.parlament-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.parlament-eintrag.aktiv .parlament-logo {
    cursor: default;
}

.parlament-label {
    display: inline-block;
    white-space: nowrap;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 0 999px 999px 0;
    margin-left: -18px;
    padding-left: 18px;
    padding-right: 0;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    line-height: 42px;
    position: relative;
    z-index: 1;
    transition: max-width 0.35s ease 0.05s, opacity 0.25s ease 0.05s, padding-right 0.35s ease 0.05s;
}

.parlament-eintrag.aktiv .parlament-label {
    max-width: 260px;
    opacity: 1;
    padding-right: 18px;
}

.hauptbereich {
    margin-left: 76px;
    flex: 1;
    min-width: 0;
}

.inhalt {
    max-width: 1200px;
    margin: 30px auto;
    background: white;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.formular {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 500px;
}

.formular label {
    font-weight: 600;
    margin-top: 12px;
}

.formular input,
.formular select {
    padding: 8px 10px;
    border: 1px solid #cbd2d9;
    border-radius: 4px;
    font-size: 1rem;
}

.formular button {
    margin-top: 20px;
    padding: 10px 16px;
    background-color: #1f5f54;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    width: fit-content;
}

.formular button:hover {
    background-color: #1f5f54;
}

.formular-inline {
    flex-direction: row;
    align-items: end;
    gap: 12px;
}

.hinweis {
    color: #48887d;
    font-size: 0.9rem;
}

.fehlerbox {
    background-color: #fdecea;
    border: 1px solid #f5c6cb;
    color: #611a15;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.tabelle {
    width: 100%;
    border-collapse: collapse;
}

.tabelle th,
.tabelle td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #e4e7eb;
}

.tabelle th {
    background-color: #f4f5f7;
}

.typenliste {
    padding-left: 20px;
}

.filterformular {
    background-color: #f4f5f7;
    padding: 16px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.filterzeile {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: end;
    margin-bottom: 12px;
}

.filterzeile label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.filterzeile input,
.filterzeile select {
    padding: 6px 8px;
    border: 1px solid #cbd2d9;
    border-radius: 4px;
}

.filterzeile button {
    padding: 8px 14px;
    background-color: #1f5f54;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.link-button {
    align-self: center;
    color: #1f5f54;
}

.pagination {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 16px;
}

.tagesordnung {
    padding-left: 20px;
}

.tagesordnung li {
    background-color: #f4f5f7;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 10px;
}

.tagesordnung li p {
    margin: 0 0 8px 0;
    white-space: pre-line;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-button {
    background: none;
    color: #cfe0f5;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 10px;
}

.dropdown-inhalt {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 220px;
    z-index: 100;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.kopfbereich nav .dropdown-inhalt a {
    display: block;
    padding: 10px 14px;
    color: #000000 !important;
    text-decoration: none;
    margin-right: 0;
    font-size: 0.95rem;
}

.kopfbereich nav .dropdown-inhalt a:hover {
    background-color: #eeeeee;
    color: #000000 !important;
}

.dropdown:hover .dropdown-inhalt {
    display: block;
}

.vorschlagsliste {
    position: relative;
    max-width: 400px;
}

.vorschlagsliste .vorschlag {
    background: white;
    border: 1px solid #cbd2d9;
    border-top: none;
    padding: 6px 10px;
    cursor: pointer;
}

.vorschlagsliste .vorschlag:hover {
    background-color: #f4f5f7;
}