:root {
    --accent: #c2185b;
    --accent-dark: #93123f;
    --accent-light: #fbe4ee;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

html {
    scroll-behavior: smooth;
}

.featured-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--accent);
    color: #fffdf8;
    font-size: 0.7em;
    font-weight: bold;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 0 0 10px 0;
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 14px;
}

.preview-tabs a {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.82em;
    text-decoration: none;
    color: #777;
    background: #eee9df;
    border: 1px solid #ddd5c2;
}

.preview-tabs a:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.preview-tabs a.active {
    background: var(--accent);
    color: #fffdf8;
    border-color: var(--accent);
    font-weight: bold;
}

body {
    background: #f7f4ee;
    color: #2f2f2f;
    font-family: var(--font-primary);
    max-width: 960px;
    margin: 50px auto;
    padding: 20px;
    line-height: 1.65;
}

h1 {
    font-size: 2.2em;
    font-weight: normal;
    margin-bottom: 8px;
}

.subtitle {
    color: #666;
    margin-bottom: 20px;
}

.back-link {
    margin-bottom: 14px;
    font-size: 0.9em;
}

.back-link a {
    color: #777;
    text-decoration: none;
    border-bottom: 1px dotted #999;
}

.back-link a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.intro-row {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 18px;
}

.intro-left {
    flex: 1 1 auto;
    min-width: 0;
}

.intro-left h1 {
    margin-top: 0;
}

.intro-text {
    color: #555;
    max-width: 640px;
}

.intro-photo {
    flex: 0 0 160px;
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd2bf;
    margin-top: 14px;
}

.flash-error {
    background: #fdecea;
    border-left: 6px solid #b3261e;
    color: #8f1d18;
    padding: 12px 18px;
    margin-bottom: 20px;
}

.dashboard,
.pagination {
    background: #fcfbf8;
    border-left: 6px solid #c7bca6;
    padding: 12px 18px;
    margin-bottom: 25px;
    color: #555;
}

.dashboard {
    border-left-color: #ffd36a;
}

.dashboard a {
    color: #555;
    text-decoration: none;
    border-bottom: 1px dotted #999;
}

.dashboard a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.dashboard a.active {
    font-weight: bold;
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
}

.sendereihen-menu {
    display: inline-block;
    vertical-align: top;
}

.sendereihen-menu summary {
    cursor: pointer;
    color: #555;
    list-style: none;
    border-bottom: 1px dotted #999;
    display: inline;
}

.sendereihen-menu summary::-webkit-details-marker {
    display: none;
}

.sendereihen-menu summary:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.sendereihen-menu-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 10px;
    max-width: 640px;
}

.sendereihen-menu-list a {
    color: #555;
    text-decoration: none;
    border-bottom: 1px dotted #999;
    font-size: 0.92em;
    white-space: nowrap;
}

.sendereihen-menu-list a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.sendereihen-menu-list a.active {
    font-weight: bold;
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
}

.tags-filter-menu {
    display: block;
    margin-top: 8px;
    margin-bottom: 20px;
}

.tags-filter-menu summary {
    cursor: pointer;
    color: #555;
    list-style: none;
    border-bottom: 1px dotted #999;
    display: inline;
}

.tags-filter-menu summary::-webkit-details-marker {
    display: none;
}

.tags-filter-menu summary:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.tags-filter-menu-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 10px;
    max-width: 720px;
}

.tags-filter-menu-list a {
    color: #555;
    text-decoration: none;
    border-bottom: 1px dotted #999;
    font-size: 0.92em;
    white-space: nowrap;
}

.tags-filter-menu-list a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.tags-filter-menu-list a.active {
    font-weight: bold;
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
}

.mode {
    margin-bottom: 20px;
    color: #777;
    font-size: 0.92em;
}

.mode a,
.pagination a,
.filters a {
    color: #666;
    text-decoration: none;
    border-bottom: 1px dotted #999;
}

.search {
    margin-bottom: 25px;
}

.search input[type=text] {
    font-family: var(--font-primary);
    padding: 7px 9px;
    width: 260px;
}

.search select {
    font-family: var(--font-primary);
    padding: 6px 8px;
    max-width: 260px;
}

.filters {
    margin-bottom: 35px;
}

.filters a {
    margin-right: 18px;
}

.filters a {
    transition: color 0.15s ease;
}

.filters a:hover {
    color: var(--accent);
}

.filters a.active {
    font-weight: bold;
    border-bottom: 2px solid var(--accent);
}

.new-radio {
    background: #fcfbf8;
    border-left: 6px solid var(--accent);
    padding: 18px 22px;
    margin-bottom: 35px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.new-radio-details summary {
    font-size: 1.2em;
    cursor: pointer;
    list-style: none;
    color: var(--accent);
    font-weight: bold;
}

.new-radio-details summary::-webkit-details-marker {
    display: none;
}

.new-radio-details[open] summary {
    margin-bottom: 14px;
}

.new-radio fieldset {
    border: none;
    border-top: 1px dotted #c7bca6;
    padding: 12px 0 4px;
    margin: 0 0 10px;
}

.new-radio legend {
    color: var(--accent);
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0 6px 0 0;
}

.new-radio .field-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.new-radio .field-row > * {
    flex: 1 1 200px;
}

.audio-part-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
    align-items: center;
}

.audio-existing-filename {
    flex: 1 1 100%;
    color: #9c7a00;
    font-size: 0.78em;
}

.audio-part-row input[type=file] {
    flex: 1 1 220px;
    width: auto;
}

.audio-part-row input[type=text],
.audio-part-row input[type=date],
.audio-part-row input[type=url] {
    flex: 1 1 160px;
    width: auto;
    margin-bottom: 0;
}

.new-radio label,
.radio-edit-form label {
    display: block;
    color: #777;
    font-size: 0.85em;
    margin-top: 6px;
}

/* Unterscheidung im "Sendung bearbeiten"-Formular: manche Felder sind
   eigene Spalten der Sendung, andere landen im Hintergrund als eigene
   Zusatzzeile/Entry (radio_entries) - farblich markiert per Randstrich,
   damit man auf einen Blick sieht, was wo landet. Siehe .field-legend
   oben im Formular für die Erklärung. */
.radio-edit-form label.field-label-core {
    color: #1f5f8b;
    border-left: 3px solid #1f5f8b;
    padding-left: 8px;
    font-weight: 600;
}

.radio-edit-form label.field-label-entry {
    color: #9c7a00;
    border-left: 3px solid #d4a017;
    padding-left: 8px;
    font-weight: 600;
}

.field-legend {
    margin: 0 0 6px;
    font-size: 0.8em;
}

.field-legend-item {
    display: inline-block;
    margin: 2px 10px 2px 0;
    padding-left: 8px;
    border-left: 3px solid;
}

.field-legend-item.field-legend-core {
    color: #1f5f8b;
    border-left-color: #1f5f8b;
}

.field-legend-item.field-legend-entry {
    color: #9c7a00;
    border-left-color: #d4a017;
}

.new-radio input,
.new-radio textarea,
.new-radio select,
.radio-edit-form input,
.radio-edit-form textarea,
.radio-edit-form select,
.entry-edit-form input[type=text],
.entry-edit-form textarea,
.entry-form input[type=text],
.entry-form textarea {
    width: 100%;
    box-sizing: border-box;
    font-family: var(--font-primary);
    padding: 7px 9px;
    margin-bottom: 8px;
    border: 1px solid #c9c1b2;
    background: #fffdf8;
}

.new-radio .checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
}

.new-radio .checkbox-row input {
    width: auto;
    margin: 0;
}

.new-radio textarea,
.radio-edit-form textarea,
.entry-form textarea {
    min-height: 80px;
}

.new-radio button,
.radio-edit-form button,
.entry-edit-form button,
.entry-form button,
.search button {
    font-family: var(--font-primary);
    padding: 7px 16px;
    background: var(--accent);
    color: #fffdf8;
    border: 1px solid var(--accent);
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.new-radio button:hover,
.radio-edit-form button:hover,
.entry-edit-form button:hover,
.entry-form button:hover,
.search button:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

/* Schwebender Speichern-Button: bei längeren Bearbeiten-Formularen bleibt
   der Speichern-Button beim Scrollen am unteren Bildschirmrand sichtbar,
   bis das Formularende erreicht ist - kein Suchen/Zurückscrollen nötig. */
.radio-edit-form > button[type=submit],
.entry-edit-form > button[type=submit],
.entry-form > button[type=submit] {
    position: sticky;
    bottom: 14px;
    z-index: 5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.radio {
    background: #fcfbf8;
    border-left: 6px solid #ef3f73;
    padding: 18px 22px;
    margin-bottom: 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    scroll-margin-top: 20px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
}

/* Sonnenblumendottergelbes Dreieck: Sendung wurde in der täglichen
   Durchsicht (daily_review.php) bereits geprüft. */
.reviewed-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 36px 36px 0;
    border-color: transparent #ffc300 transparent transparent;
    pointer-events: none;
    z-index: 2;
}

.radio:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.09);
}

.radio.nopublish {
    opacity: 0.75;
}

/* Jede Sendung bekommt reihum eine eigene Randfarbe */
.radio.radio-color-pink {
    border-left-color: #c2185b;
    --box-accent: #c2185b;
}

.radio.radio-color-teal {
    border-left-color: #178faa;
    --box-accent: #178faa;
}

.radio.radio-color-orange {
    border-left-color: #e07b39;
    --box-accent: #e07b39;
}

.radio.radio-color-plum {
    border-left-color: #8e4585;
    --box-accent: #8e4585;
}

.radio.featured {
    border-left-width: 10px;
    padding: 24px 28px;
    position: relative;
}

.radio.featured::before {
    content: "Aktuell";
    position: absolute;
    top: 0;
    left: 0;
    background: var(--accent);
    color: #fffdf8;
    font-size: 0.7em;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 0 0 10px 0;
}

.radio.compact {
    padding: 12px 18px;
    margin-bottom: 10px;
}

.radio.compact .title {
    font-size: 1.05em;
}

.radio-tools {
    float: right;
    text-align: right;
    color: #a28d63;
    font-size: 0.9em;
    line-height: 1.25;
    margin-left: 12px;
}

.radio-tools a {
    color: #a28d63;
    text-decoration: none;
    border-bottom: 1px dotted #a28d63;
}

.radio-tools .top-arrow {
    display: block;
    border-bottom: none;
    color: #999;
    font-size: 1.05em;
    margin-bottom: 4px;
}

.gallery {
    margin-left: 0;
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gallery-item {
    position: relative;
    display: block;
    width: 90px;
    height: 90px;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.gallery-item img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    display: block;
    border: 1px solid #ddd2bf;
    border-radius: 4px;
}

.gallery-item-overlay {
    font-size: 0.6em;
    padding: 4px 5px;
}

.legacy-info {
    color: #888;
    font-size: 0.85em;
}

.form-hint {
    color: #888;
    font-size: 0.82em;
    font-style: italic;
    margin: 4px 0 10px;
}

.entry-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border: 1px solid #ddd2bf;
    margin-top: 8px;
}

.title-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-left: 0;
    margin-top: 10px;
}

.thumb {
    position: relative;
    flex: 0 0 100px;
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 4px;
}

.thumb img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    display: block;
    border: 1px solid #ddd2bf;
    border-radius: 4px;
}

/* Bildtext (+ Fotocredits) als Overlay beim Drüberfahren mit der Maus */
.thumb-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0) 65%);
    color: #fff;
    display: flex;
    align-items: flex-end;
    padding: 6px 7px;
    font-size: 0.68em;
    line-height: 1.25;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.thumb:hover .thumb-overlay,
.thumb:focus-within .thumb-overlay {
    opacity: 1;
}

.title-text {
    flex: 1 1 auto;
    min-width: 0;
}

.compact-meta {
    margin-left: 0;
    margin-top: 10px;
    color: #777;
    font-size: 0.95em;
    letter-spacing: 0.01em;
}

.tags {
    margin-left: 0;
    margin-top: 8px;
}

.tag {
    display: inline-block;
    padding: 2px 10px;
    margin: 2px 6px 2px 0;
    border-radius: 12px;
    font-size: 0.78em;
    font-family: var(--font-primary);
    font-style: normal;
    transition: transform 0.15s ease;
}

.tag:hover {
    transform: scale(1.08);
}

/* Sender und Sendereihe sind wichtig -> kräftig, gut sichtbar */
.tag-sender {
    background: #2f2f2f;
    color: #fffdf8;
    font-weight: bold;
    letter-spacing: 0.02em;
}

.tag-sendereihe {
    background: #e07b39;
    color: #fffdf8;
    font-weight: bold;
}

/* Kategorie/Personen-Tags sind nachrangig -> dezent, unauffällig */
.tag-kategorie,
.tag-person {
    background: #eee9df;
    color: #8a8272;
}

/* KI-generierte Inhaltstags (Hauptbereich, Beitragsart, Themen-Schlagwörter)
   bekommen gemeinsam eine eigene, gut erkennbare Farbe. */
.tag-ki {
    background: #5b4b9a;
    color: #fdfcff;
    font-weight: bold;
}

.tags-editor {
    margin-top: 16px;
    margin-bottom: 6px;
}

.tags-editor-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

.tag-chip-form {
    display: inline-block;
    margin: 0;
}

.tag-chip-editable {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eee9df;
    color: #8a8272;
    font-size: 0.85em;
    font-weight: bold;
    padding: 4px 6px 4px 12px;
    border-radius: 14px;
}

.tag-chip-editable button {
    border: none;
    background: none;
    color: #8a8272;
    cursor: pointer;
    font-size: 1.05em;
    line-height: 1;
    padding: 2px 4px;
}

.tag-chip-editable button:hover {
    color: #b3261e;
}

.tags-editor-empty {
    color: #999;
    font-size: 0.9em;
    font-style: italic;
}

.tag-add-form {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.tag-add-form input[type=text] {
    font-family: var(--font-primary);
    padding: 6px 10px;
    border: 1px solid #c9c1b2;
    background: #fffdf8;
    border-radius: 14px;
    max-width: 220px;
}

.tag-add-form button {
    font-family: var(--font-primary);
    padding: 6px 12px;
    background: var(--accent-light);
    color: var(--accent-dark);
    border: 1px solid var(--accent);
    border-radius: 14px;
    cursor: pointer;
}

.tag-add-form button:hover {
    background: var(--accent);
    color: #fffdf8;
}

.ki-tags-form {
    margin-top: 10px;
}

.ki-tags-form button {
    font-family: var(--font-primary);
    padding: 6px 12px;
    background: #fff3d6;
    border: 1px solid #ffd36a;
    border-radius: 14px;
    cursor: pointer;
}

.ki-tags-form button:hover {
    background: #ffe9b3;
}

.no-audio-banner {
    display: inline-block;
    background: #1f5f8b;
    color: #fff;
    font-size: 1.3em;
    font-weight: bold;
    padding: 6px 16px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.title {
    font-size: 1.35em;
    font-weight: bold;
    margin: 0;
    display: inline-block;
    position: relative;
}

.title::before {
    content: '';
    position: absolute;
    left: -2px;
    right: -2px;
    bottom: 5px;
    height: 8px;
    background: var(--box-accent, var(--accent));
    opacity: 0.35;
    z-index: -1;
    border-radius: 2px;
}

.subtitle-line {
    margin-top: 6px;
    color: #555;
    font-style: italic;
}

.meta,
.description,
.status,
.permalink {
    margin-left: 0;
    margin-top: 10px;
}

.entry,
.entry-form,
.radio-edit-form {
    margin-left: 0;
}

.tile-heading {
    font-weight: bold;
    color: var(--accent-dark);
    margin-bottom: 10px;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.edit-tile,
.entry {
    background: #fdfcf8;
    border: 1px solid #e6ded0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Bearbeiten-Bereiche (Formulare mit Eingabefeldern) bekommen bewusst einen
   anderen Hintergrund als die reine Zusatzzeilen-Anzeige (.entry), damit auf
   einen Blick klar ist: hier wird etwas eingegeben/verändert. Gilt überall,
   wo diese Klassen verwendet werden (Übersicht, Einzelansicht, Tägliche
   Durchsicht). */
.tags-editor,
.ki-tags-form,
.entry-form,
.radio-edit-form {
    background: #eaf1f5;
    border: 1px solid #cddde6;
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.meta {
    color: #666;
}

.description {
    color: #333;
}

.description strong {
    display: inline-block;
    margin-bottom: 10px;
}

.preview {
    color: #333;
    margin-top: 8px;
}

.text-more {
    display: inline;
}

.text-more summary {
    display: inline;
    cursor: pointer;
    color: var(--accent);
    list-style: none;
    border-bottom: 1px dotted var(--accent);
    margin-left: 4px;
}

.text-more summary::-webkit-details-marker {
    display: none;
}

.text-more summary:hover {
    color: var(--accent-dark);
    border-bottom-color: var(--accent-dark);
}

.text-more[open] summary {
    display: block;
    margin-left: 0;
    margin-bottom: 6px;
}

.more-details {
    margin-left: 0;
    margin-top: 12px;
}

.more-details summary {
    cursor: pointer;
    color: #355e3b;
    border-bottom: 1px dotted #355e3b;
    display: inline-block;
    margin-bottom: 12px;
    list-style: none;
}

.more-details summary::-webkit-details-marker {
    display: none;
}

.more-details summary::after {
    content: " ▸";
    display: inline-block;
    transition: transform 0.15s ease;
}

.more-details[open] summary::after {
    transform: rotate(90deg);
}

.more-details[open] summary {
    margin-bottom: 16px;
}

.audio-player {
    width: 100%;
    margin-top: 8px;
}

.audio-url {
    font-size: 0.85em;
    margin-top: 4px;
    word-break: break-all;
}

.audio-url a {
    color: #888;
    text-decoration: none;
    border-bottom: 1px dotted #999;
}

.audio-url a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.audio-teil-url {
    margin-top: 3px;
    font-size: 0.85em;
}

.audio-file-url {
    margin-top: 3px;
    font-size: 0.8em;
    word-break: break-all;
}

.audio-file-url a {
    color: #777;
    text-decoration: none;
    border-bottom: 1px dotted #aaa;
}

.audio-teil-url a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent);
}

.audio-item {
    margin-top: 10px;
}

.audio-item em {
    color: #777;
    font-style: italic;
    font-size: 0.9em;
}

.audio-locked {
    color: #777;
    font-size: 0.95em;
    background: #fff8e6;
    border-left: 4px solid #ffd36a;
    padding: 10px 14px;
    border-radius: 0 6px 6px 0;
}

.audio-item-pending {
    background: #fbf7ef;
    border-left: 4px solid #d4a017;
    padding: 8px 12px;
    border-radius: 0 6px 6px 0;
}

.audio-pending-hint {
    color: #9c7a00;
    font-size: 0.85em;
    font-style: italic;
}

.audio-unlock-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    max-width: 320px;
}

.audio-unlock-form label {
    color: #777;
    font-size: 0.9em;
}

.audio-unlock-form input[type=password] {
    flex: 1;
    font-family: var(--font-primary);
    padding: 6px 8px;
    border: 1px solid #c9c1b2;
    background: #fffdf8;
}

.audio-unlock-form button {
    font-family: var(--font-primary);
    padding: 6px 14px;
    background: var(--accent);
    color: #fffdf8;
    border: 1px solid var(--accent);
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.audio-unlock-form button:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.entry {
    color: #444;
    border-left: 4px solid #c7bca6;
    position: relative;
}

.entry.unpublished {
    opacity: 0.45;
    border-left-style: dashed;
}

.entry-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.entry-position {
    display: inline-block;
    background: var(--accent);
    color: #fffdf8;
    font-weight: bold;
    font-size: 0.72em;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.entry-type-label {
    font-weight: bold;
    color: var(--accent-dark);
    text-transform: uppercase;
    font-size: 0.78em;
    letter-spacing: 0.03em;
}

.entry-header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85em;
}

.entry-header-actions a {
    color: #777;
    text-decoration: none;
    border-bottom: 1px dotted #aaa;
}

.entry-delete-form {
    margin: 0;
}

.entry-select-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.bulk-delete-form {
    margin: 0;
}

.bulk-delete-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 14px;
}

.bulk-delete-btn {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #d99;
    background: #fdecec;
    color: #b3261e;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.9em;
}

.bulk-delete-btn:hover {
    background: #fbdada;
}

.bulk-delete-hint {
    color: #999;
    font-size: 0.82em;
}

.entry-delete-form button {
    font-family: var(--font-primary);
    padding: 3px 9px;
    background: #b3261e;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95em;
}

.entry-delete-form button:hover {
    background: #8f1d18;
}

.entry-body {
    color: #444;
}

.entry-link {
    font-size: 1.05em;
    color: #355e3b;
    text-decoration: none;
    border-bottom: 1px dotted #355e3b;
}

.entry-description,
.image-caption {
    margin-top: 6px;
}

.image-caption {
    color: #666;
    font-size: 0.92em;
    font-style: italic;
}

.image-caption-empty {
    color: #aaa;
}

.entry-edit-details {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dotted #c7bca6;
}

.entry-edit-details summary {
    cursor: pointer;
    color: var(--accent-dark);
    font-size: 0.85em;
    font-weight: 600;
    list-style: none;
}

.entry-edit-details summary::-webkit-details-marker {
    display: none;
}

.entry-edit-details summary::before {
    content: "▸ ";
}

.entry-edit-details[open] summary::before {
    content: "▾ ";
}

.entry-edit-form {
    margin-top: 10px;
    background: #eaf1f5;
    border: 1px solid #cddde6;
    border-radius: 8px;
    padding: 10px 12px;
}

/* Beitragsbild vergrößern (Lightbox) */

.thumb img.lightbox-trigger {
    cursor: zoom-in;
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(20, 16, 10, 0.88);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 30px;
    box-sizing: border-box;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 82vh;
    border-radius: 6px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: #f5f0e6;
    font-size: 0.9em;
    margin-top: 12px;
    text-align: center;
    max-width: 90vw;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2em;
    line-height: 1;
    cursor: pointer;
    padding: 4px 10px;
}

.entry-edit-form label,
.radio-edit-form label {
    display: block;
    color: #777;
    font-size: 0.85em;
    margin-top: 6px;
}

.entry-type-row select,
.entry-type-row input {
    margin-bottom: 6px;
}

.permalink {
    color: #888;
    font-size: 0.82em;
    word-break: break-all;
}

.permalink a {
    color: #777;
    text-decoration: none;
    border-bottom: 1px dotted #aaa;
}

.permalink-inline {
    margin: 4px 0 2px;
}

.permalink-inline a {
    color: #999;
    font-size: 0.78em;
    text-decoration: none;
    border-bottom: 1px dotted #ccc;
    word-break: break-all;
}

.permalink-inline a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.share-btn {
    font-family: var(--font-primary);
    background: none;
    border: none;
    color: #999;
    font-size: 0.78em;
    cursor: pointer;
    padding: 0;
    border-bottom: 1px dotted #ccc;
}

.share-btn:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.created-info {
    float: right;
    clear: right;
    color: #bbb;
    font-size: 0.75em;
    margin-top: 12px;
    text-align: right;
}

.audio-manager-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.audio-manager-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.92em;
}

@media (max-width: 700px) {
    .audio-manager-table {
        min-width: 640px;
    }
}

.audio-manager-table th {
    text-align: left;
    color: #777;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 8px 10px;
    border-bottom: 2px solid #ddd2bf;
}

.audio-manager-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #eee6d8;
    vertical-align: top;
}

.audio-manager-table tbody tr:nth-child(even) {
    background: #f2efe6;
}

.audio-manager-table tbody tr:hover {
    background: var(--accent-light);
}

.meta-titel-input {
    font-family: var(--font-primary);
    padding: 5px 7px;
    border: 1px solid #c9c1b2;
    background: #fffdf8;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 4px;
}

.meta-sendereihe-input {
    font-family: var(--font-primary);
    padding: 5px 7px;
    border: 1px solid #c9c1b2;
    background: #fffdf8;
    width: 160px;
}

.meta-save-btn {
    font-family: var(--font-primary);
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fffdf8;
    border-radius: 4px;
    width: 26px;
    height: 26px;
    cursor: pointer;
    margin-left: 4px;
}

.meta-save-btn:hover {
    background: var(--accent-dark);
}

.audiofile-rename-form {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
}

.audiofile-rename-form input[type=text] {
    font-family: var(--font-primary);
    padding: 4px 6px;
    border: 1px solid #c9c1b2;
    background: #fffdf8;
    width: 200px;
    font-size: 0.9em;
}

.audiofile-rename-form button {
    font-family: var(--font-primary);
    padding: 4px 10px;
    border: 1px solid #c9c1b2;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
}

.audiofile-rename-form button:hover {
    background: var(--accent-light);
    border-color: var(--accent);
}

.audio-manager-table select {
    font-family: var(--font-primary);
    padding: 5px 7px;
    border: 1px solid #c9c1b2;
    background: #fffdf8;
    max-width: 260px;
}

.audiofile-edit-link {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    background: var(--accent);
    color: #fffdf8;
    text-decoration: none;
    font-size: 0.9em;
    white-space: nowrap;
}

.audiofile-edit-link:hover {
    background: var(--accent-dark);
}

.audiofile-select-form {
    display: inline-block;
    margin-right: 6px;
}

.audiofile-delete-btn {
    font-family: var(--font-primary);
    background: none;
    border: 1px solid #c9c1b2;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    line-height: 1;
    color: #b3261e;
    cursor: pointer;
}

.audiofile-delete-btn:hover {
    background: #fdecea;
}

.audiofile-list {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
}

.audiofile-list li {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.audiofile-add-form {
    margin-top: 4px;
}

/* ---------- MOBILE ---------- */

@media (max-width: 700px) {

    body {
        max-width: none;
        margin: 0;
        padding: 18px 14px;
        font-size: 20px;
        line-height: 1.65;
    }

    .intro-row {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        text-align: left;
    }

    .intro-photo {
        order: -1;
        width: 140px;
        height: 140px;
        flex-basis: 140px;
    }

    h1 {
        font-size: 2.1em;
        margin-top: 12px;
    }

    .dashboard,
    .pagination {
        padding: 12px 14px;
        margin-bottom: 22px;
    }

    .search input[type=text],
    .search select {
        width: 100%;
        box-sizing: border-box;
        font-size: 1em;
        margin-bottom: 8px;
    }

    .filters a {
        display: inline-block;
        margin-right: 12px;
        margin-bottom: 10px;
    }

    .radio {
        padding: 18px 16px;
        margin-bottom: 24px;
        border-left-width: 6px;
    }

    .reviewed-badge {
        border-width: 0 26px 26px 0;
    }

    .radio-tools {
        float: none;
        text-align: right;
        margin-bottom: 8px;
        font-size: 0.85em;
    }

    .compact-meta,
    .tags,
    .meta,
    .description,
    .status,
    .entry,
    .entry-form,
    .radio-edit-form,
    .permalink,
    .title-row,
    .preview,
    .more-details {
        margin-left: 0;
    }

    .title {
        font-size: 1.25em;
        line-height: 1.3;
    }

    .title-row {
        gap: 10px;
    }

    .thumb,
    .thumb img {
        width: 72px;
        height: 72px;
        flex-basis: 72px;
    }

    .tag {
        font-size: 0.85em;
        padding: 3px 10px;
        margin: 3px 6px 3px 0;
    }

    .audio-locked,
    .flash-error {
        padding: 12px 14px;
    }

    .audio-unlock-form {
        flex-wrap: wrap;
        max-width: none;
    }

    .audio-unlock-form input[type=password] {
        flex: 1 1 100%;
        font-size: 1em;
        padding: 10px;
    }

    .audio-unlock-form button {
        flex: 1 1 100%;
        font-size: 1em;
        padding: 10px;
    }

    .audio-player {
        margin-top: 10px;
    }

    .entry-header-actions,
    .entry-delete-form,
    .entry-edit-form {
        font-size: 1em;
    }

    .new-radio input,
    .new-radio textarea,
    .new-radio select,
    .radio-edit-form input,
    .radio-edit-form textarea,
    .entry-edit-form input[type=text],
    .entry-edit-form textarea,
    .entry-form input[type=text],
    .entry-form textarea {
        font-size: 1em;
        padding: 10px;
    }

    .new-radio button,
    .radio-edit-form button,
    .entry-edit-form button,
    .entry-form button {
        font-size: 1em;
        padding: 8px 12px;
    }

    .created-info {
        float: none;
        text-align: right;
    }
}
