:root {
    --bg: #ffffff;
    --bg-soft: #f5f5f5;
    --panel: #ffffff;
    --panel-soft: #f7f7f7;
    --text: #121212;
    --muted: #3f3f3f;
    --accent: #111111;
    --accent-2: #000000;
    --border: #d9d9d9;
    --shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: Montserrat, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
}

a {
    color: inherit;
}

.container {
    width: min(1120px, calc(100% - 2.5rem));
    margin: 0 auto;
}

.row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.site-header {
    position: relative;
    border-bottom: 1px solid var(--border);
    background: #ffffff;
}

.nav-wrap {
    padding: 0.35rem 0;
    min-height: 0;
    display: flex;
    align-items: center;
}

.nav {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav a {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.94rem;
    color: #111111;
    padding: 0.56rem 0.82rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.nav a:hover {
    border-color: #cccccc;
    background: #f2f2f2;
}

.subpage-brand {
    padding: 0.9rem 0 0.2rem;
    text-align: center;
}

.subpage-brand a {
    display: inline-block;
}

.subpage-logo {
    width: clamp(140px, 18vw, 240px);
    height: auto;
    display: block;
    margin: 0 auto;
}

main.container {
    padding: 2.6rem 0 3.4rem;
}

section,
.card,
.post {
    padding: 1.15rem 0;
    margin-bottom: 1rem;
}

.post-back {
    margin: 0 0 0.85rem;
}

.hero {
    text-align: center;
    border-bottom: 1px solid var(--border);
    padding: 2rem 0 1.6rem;
    background: #ffffff;
}

.hero-content {
    margin: 0 auto;
}

.hero h1 {
    margin: 0.12rem 0 0.9rem;
    font-family: Montserrat, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 700;
    font-size: clamp(1.45rem, 2.7vw, 2rem);
    line-height: 1.2;
    letter-spacing: 0;
    color: #222;
}

h1,
h2,
h3 {
    font-family: Montserrat, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 0.7rem;
    color: #111;
}

p {
    margin: 0 0 0.95rem;
    color: var(--muted);
    line-height: 1.75;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: #111;
    font-size: 0.73rem;
    padding: 0.34rem 0.58rem;
    border-radius: 999px;
    background: #efefef;
}

.intro-content {
    max-width: 100%;
    width: 100%;
}

.intro-logo {
    width: clamp(240px, 34.5vw, 420px);
    height: auto;
    margin: 0 auto 1rem;
    display: block;
}

.intro-about-cta {
    margin-top: 0.85rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    gap: 0.35rem;
    border: 1px solid transparent;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.68rem 1.05rem;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: transform 0.18s ease, box-shadow 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.22);
}

.btn:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.28);
}

.btn:active {
    transform: translateY(0) scale(0.99);
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22), 0 8px 18px rgba(17, 24, 39, 0.18);
}

.btn.btn-secondary {
    background: #ffffff;
    color: #111827;
    border: 1px solid #d6dae3;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.btn.btn-secondary:hover {
    background: #f8fafc;
    border-color: #bcc4d1;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
}

.btn.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #dc2626;
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.24);
}

.btn.danger:hover {
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.32);
}

.hero-actions,
.social-row,
.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}

.admin-actions.admin-actions-left {
    justify-content: flex-start;
}

.social-row a {
    text-decoration: none;
    font-weight: 600;
    color: #111111;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.card {
    background: #ffffff;
}

.card a:not(.btn) {
    color: #111111;
    text-decoration: none;
    font-weight: 700;
}

.card a.btn {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.card a.btn.btn-secondary {
    color: #111827;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.photo-tile {
    min-height: 132px;
    border: 1px solid #dfe6f5;
    border-radius: 14px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0.7rem;
    color: #27272b;
    font-weight: 700;
    background:
        linear-gradient(165deg, rgba(214, 31, 44, 0.14), rgba(0, 0, 0, 0.06)),
        #f4f4f6;
}

.meta {
    font-size: 0.9rem;
    color: #666;
}

.form {
    display: grid;
    gap: 0.85rem;
}

.form label,
.form .form-field {
    display: grid;
    gap: 0.35rem;
    font-weight: 600;
    color: #252529;
}

.form .form-field-label {
    font-weight: 600;
    color: #252529;
}

input,
textarea {
    width: 100%;
    border: 1px solid #d7deef;
    border-radius: 12px;
    padding: 0.65rem 0.75rem;
    font: inherit;
    color: #1a2238;
    background: #ffffff;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: rgba(214, 31, 44, 0.9);
    box-shadow: 0 0 0 3px rgba(214, 31, 44, 0.15);
}

.checkbox-row {
    display: flex !important;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500 !important;
}

.checkbox-row input {
    width: auto;
}

.alert {
    border-radius: 12px;
    padding: 0.75rem 0.95rem;
    margin-bottom: 0.8rem;
}

.alert.error {
    border: 1px solid #f3c6d0;
    background: #fff2f5;
    color: #b42345;
}

.alert.success {
    border: 1px solid #bde7cf;
    background: #edfdf4;
    color: #1f7a49;
}

.post-cover-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #dbe1ea;
    margin: 0.7rem 0 0.8rem;
    --cover-pos-x: 50%;
    --cover-pos-y: 50%;
    --cover-zoom: 1;
}

.post .cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--cover-pos-x) var(--cover-pos-y);
    transform: scale(var(--cover-zoom));
    transform-origin: var(--cover-pos-x) var(--cover-pos-y);
}

.home-latest-post {
    margin: 1.5rem 0 2rem;
    padding-top: 1.25rem;
    text-align: center;
}

.home-latest-post .eyebrow {
    margin-bottom: 0.85rem;
}

.home-latest-post-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    border: 1px solid #e1e5ec;
    border-radius: 14px;
    background: #fff;
    padding: 0.9rem;
    text-align: left;
}

.home-latest-post-content {
    display: grid;
    align-content: start;
    gap: 0.35rem;
}

.home-latest-post-content h3 {
    margin: 0;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.home-latest-post-excerpt {
    margin: 0.15rem 0 0.35rem;
    color: #232329;
    line-height: 1.55;
}

.home-latest-post-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.35rem;
}

.home-latest-post-actions .btn:not(.btn-secondary) {
    min-height: 46px;
    padding: 0.75rem 1.3rem;
    font-size: 0.95rem;
    border-color: #0f172a;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.32);
}

.home-latest-post-actions .btn:not(.btn-secondary):hover {
    background: linear-gradient(135deg, #273549 0%, #0f172a 100%);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.38);
}

.home-latest-post-cover-link {
    min-width: 0;
}

.blog-overview-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.blog-overview .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.blog-overview-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    border: 1px solid #e1e5ec;
    border-radius: 14px;
    background: #fff;
    padding: 0.9rem;
}

.blog-overview-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: 100%;
    object-fit: cover;
    object-position: var(--cover-pos-x) var(--cover-pos-y);
    transform: scale(var(--cover-zoom));
    transform-origin: var(--cover-pos-x) var(--cover-pos-y);
    border-radius: 12px;
    border: 0;
}

.blog-overview-cover-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
}

.blog-overview-cover-link:hover .blog-overview-cover-frame,
.blog-overview-cover-link:focus-visible .blog-overview-cover-frame {
    border-color: #94a3b8;
}

.blog-overview-cover-link:hover .blog-overview-cover:not(.blog-overview-cover-placeholder),
.blog-overview-cover-link:focus-visible .blog-overview-cover:not(.blog-overview-cover-placeholder) {
    opacity: 0.92;
}

.blog-overview-title-link {
    color: inherit;
    text-decoration: none;
}

.blog-overview-title-link:hover,
.blog-overview-title-link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.blog-overview-cover-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #dbe1ea;
    --cover-pos-x: 50%;
    --cover-pos-y: 50%;
    --cover-zoom: 1;
    transition: border-color 0.15s ease;
}

.blog-overview-cover-placeholder {
    display: grid;
    place-items: center;
    color: #64748b;
    font-weight: 600;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.blog-overview-content {
    display: grid;
    align-content: start;
    gap: 0.15rem;
}

.blog-overview-content h2 {
    margin-bottom: 0.25rem;
}

.post-body p,
.post-body li {
    color: #232329;
}

/* Einmal Enter im Editor soll keinen "doppelten" Abstand erzeugen. */
.post-body p {
    margin: 0;
    line-height: 1.55;
}

.post-body p + p {
    margin-top: 0;
}

.post-body p:last-child {
    margin-bottom: 0;
}

.post-body h1,
.post-body h2,
.post-body h3 {
    font-family: Montserrat, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0;
    color: #111;
    line-height: 1.2;
    margin: 0.65rem 0 0.3rem;
}

.post-body h1 {
    font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.post-body h2 {
    font-size: clamp(1.2rem, 1.75vw, 1.5rem);
}

.post-body h3 {
    font-size: clamp(1.05rem, 1.45vw, 1.25rem);
}

.post-body h1:first-child,
.post-body h2:first-child,
.post-body h3:first-child {
    margin-top: 0;
}

.post-body .ql-size-small {
    font-size: 0.85em;
}

.post-body .ql-size-large {
    font-size: 1.35em;
}

.post-body .ql-size-huge {
    font-size: 1.8em;
}

.site-footer {
    border-top: 1px solid var(--border);
    background: #ffffff;
    padding: 1.2rem 0;
}

.site-footer p {
    margin: 0;
    color: #5f5f67;
    text-align: center;
}

.site-footer a {
    color: #111111;
}

.footer-link-subtle {
    color: #6b6b73;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-link-subtle:hover {
    color: #2f2f36;
    border-color: #b5b5bc;
}

.legal-page {
    max-width: 920px;
}

.legal-page h1 {
    margin-bottom: 1rem;
}

.legal-page h2 {
    margin-top: 1.4rem;
    margin-bottom: 0.5rem;
}

.profiles-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1.2rem;
}

.profile-section {
    text-align: center;
}

.teaser-section {
    padding-top: 1.25rem;
    text-align: center;
}

.home-info-box-section {
    padding-top: 0.2rem;
}

.home-info-box {
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    background: #fafafa;
    padding: 1rem 1.1rem;
    max-width: 760px;
    margin: 0 auto;
    text-align: left;
}

.home-info-box h2 {
    margin-bottom: 0.7rem;
    text-align: center;
}

.home-info-box ul {
    margin: 0;
    padding-left: 1.2rem;
}

.home-info-box li {
    margin-bottom: 0.4rem;
    color: #232329;
    line-height: 1.6;
}

.instagram-section {
    text-align: center;
}

.instagram-section-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.instagram-logo-link {
    display: inline-flex;
    line-height: 0;
    border-radius: 10px;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.instagram-logo-link:hover {
    opacity: 0.88;
    transform: scale(1.03);
}

.instagram-logo-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(228, 64, 95, 0.35);
}

.instagram-logo-mark {
    width: 36px;
    height: 36px;
    display: block;
}

.instagram-eyebrow {
    margin-bottom: 0;
}

.instagram-consent,
.instagram-embed {
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    padding: 1rem;
    background: #fafafa;
}

.instagram-consent p {
    max-width: 700px;
    margin: 0 auto 0.9rem;
}

.instagram-embed iframe {
    width: 100%;
    max-width: 760px;
    height: 530px;
    border: 0;
    border-radius: 10px;
    background: #fff;
}

.teaser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
    justify-content: center;
    gap: 0.75rem;
}

.teaser-item {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #dcdcdc;
    background: #f7f7f7;
    opacity: 0;
    transform: translateY(16px);
    animation: teaserFadeUp 0.7s ease forwards;
}

.teaser-item:nth-child(2) {
    animation-delay: 0.12s;
}

.teaser-item:nth-child(3) {
    animation-delay: 0.24s;
}

.teaser-item:nth-child(4) {
    animation-delay: 0.36s;
}

.teaser-item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    filter: grayscale(100%) contrast(104%);
    transition: transform 0.35s ease, filter 0.35s ease;
}

.teaser-optimize-panel {
    margin-top: 0.5rem;
}

.teaser-optimize-panel h4 {
    margin: 0 0 0.45rem;
    font-size: 0.95rem;
}

.teaser-preview-frame {
    margin-top: 0.55rem;
    width: min(100%, 360px);
    aspect-ratio: 4 / 5;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #dbe1ea;
    background: #f8fafc;
}

.teaser-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teaser-preview-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #64748b;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    padding: 0.6rem;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.teaser-item:hover img {
    transform: scale(1.04);
    filter: grayscale(100%) contrast(110%);
}

.teaser-zoom-btn {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.teaser-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.76);
}

.teaser-overlay[hidden] {
    display: none !important;
}

.teaser-overlay-dialog {
    position: relative;
    width: min(94vw, 980px);
}

.teaser-overlay img {
    display: block;
    width: 100%;
    max-height: 84vh;
    object-fit: contain;
    border-radius: 12px;
    background: #0f0f10;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.teaser-overlay-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
}

body.has-overlay-open {
    overflow: hidden;
}

@keyframes teaserFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-link {
    text-decoration: none;
    color: #1f1f24;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.7rem;
    padding: 0.3rem 0.15rem;
    transition: opacity 0.18s ease;
}

.profile-link:hover {
    opacity: 0.74;
}

.profile-link img {
    max-width: 88px;
    max-height: 30px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.login-wrap {
    max-width: 460px;
}

.login-form {
    margin-top: 0.8rem;
}

.editor {
    border: 1px solid #d7deef;
    border-radius: 12px;
    overflow: visible;
    background: #fff;
}

.editor-text-tools {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 0.35rem;
}

.editor-text-tools-field {
    display: inline-grid !important;
    gap: 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.editor-text-tools-field select {
    min-width: 170px;
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
}

.admin-page {
    padding-top: 0.4rem;
}

.admin-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 1.2rem;
    align-items: start;
}

.admin-sidebar {
    border: 1px solid #e2e2e2;
    border-radius: 16px;
    background: #fbfbfb;
    padding: 1rem;
    position: sticky;
    top: 1rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.admin-sidebar h1 {
    margin-bottom: 0.35rem;
}

.admin-sidebar-text {
    margin-bottom: 0.85rem;
    font-size: 0.92rem;
    line-height: 1.55;
}

.admin-main {
    border: 1px solid #e6e6e6;
    border-radius: 16px;
    background: #fff;
    padding: 1.15rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.admin-subnav {
    display: grid;
    gap: 0.5rem;
}

.admin-subnav a {
    text-decoration: none;
    color: #111;
    border: 1px solid #d4d4d4;
    border-radius: 12px;
    padding: 0.52rem 0.72rem;
    font-weight: 600;
    background: #fff;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.admin-subnav a:hover {
    border-color: #bdbdbd;
    background: #f4f4f4;
}

.admin-subnav a.is-active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.menu-sort-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.menu-sort-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid #d7d7d7;
    border-radius: 10px;
    padding: 0.5rem 0.65rem;
    background: #fff;
    cursor: move;
}

.menu-sort-item.is-dragging {
    opacity: 0.5;
}

.drag-handle {
    font-weight: 700;
    color: #777;
}

.menu-sort-item small {
    color: #666;
}

.admin-teaser-preview {
    width: min(68%, 180px);
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #dedede;
    margin-bottom: 0.6rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
    margin: 0.7rem 0 1rem;
}

.admin-stat {
    border: 1px solid #dbdbdb;
    border-radius: 12px;
    padding: 0.78rem;
    background: #fff;
    display: grid;
    gap: 0.2rem;
}

.admin-stat strong {
    font-size: 1.3rem;
    font-weight: 700;
    color: #111;
}

.admin-stat span {
    color: #555;
    font-size: 0.92rem;
}

.admin-inline-form {
    margin: 0.9rem 0 1rem;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
}

.admin-card {
    border: 1px solid #dedede;
    border-radius: 16px;
    background: #ffffff;
    padding: 1.1rem;
    margin-top: 0.8rem;
}

.admin-card-soft {
    border: 1px solid #ececec;
    border-radius: 12px;
    background: #fafafa;
    padding: 1rem;
    margin: 0.8rem 0;
}

.admin-section-lead {
    margin: 0.05rem 0 0.95rem;
    color: #4a4a4a;
    line-height: 1.6;
}

.menu-item-list {
    display: grid;
    gap: 0.75rem;
}

.menu-item-panel {
    border: 1px solid #dedede;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    position: relative;
}

.menu-item-toggle {
    list-style: none;
    cursor: pointer;
    padding: 0.85rem 0.95rem;
    display: grid;
    gap: 0.15rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    width: 100%;
    text-align: left;
    border: 0;
    font: inherit;
    transition: background-color 0.2s ease;
}

.menu-item-toggle:hover {
    background: #f4f7fb;
}

.menu-item-toggle::after {
    content: "+";
    position: absolute;
    right: 1rem;
    top: 0.85rem;
    font-size: 1.2rem;
    line-height: 1;
    color: #6a6a6a;
}

.menu-item-toggle[aria-expanded="true"]::after {
    content: "-";
}

.menu-item-toggle[aria-expanded="true"] {
    background: #f1f5f9;
}

.menu-item-title {
    font-weight: 700;
    color: #111;
    padding-right: 1.4rem;
}

.menu-item-meta {
    font-size: 0.84rem;
    color: #556070;
    padding-right: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.menu-meta-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    border: 1px solid #d7dfea;
    background: #f8fafc;
    color: #334155;
    line-height: 1.2;
}

.menu-meta-chip-status {
    font-weight: 600;
}

.menu-meta-chip-status.is-visible {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.menu-meta-chip-status.is-hidden {
    border-color: #fecaca;
    background: #fff1f2;
    color: #9f1239;
}

.menu-item-content {
    border-top: 1px solid #ececec;
    padding: 0.9rem;
    display: grid;
    gap: 0.8rem;
}

.menu-item-content[hidden] {
    display: none !important;
}

.blog-item-list {
    display: grid;
    gap: 0.75rem;
}

.blog-item-panel {
    border: 0;
    border-radius: 16px;
    background: transparent;
    overflow: visible;
    position: relative;
}

.blog-item-toggle {
    cursor: pointer;
    padding: 0.95rem 1.05rem;
    display: grid;
    gap: 0.22rem;
    background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
    width: 100%;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    font: inherit;
    color: #fff;
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.2);
    transition: transform 0.18s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.blog-item-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(17, 24, 39, 0.28);
    background: linear-gradient(145deg, #273549 0%, #111827 100%);
}

.blog-item-toggle::after {
    content: "+";
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.2rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.9);
}

.blog-item-toggle[aria-expanded="true"]::after {
    content: "-";
}

.blog-item-toggle[aria-expanded="true"] {
    background: linear-gradient(145deg, #334155 0%, #1f2937 100%);
}

.blog-item-title {
    font-weight: 700;
    color: #ffffff;
    padding-right: 1.4rem;
}

.blog-item-meta {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.8);
    padding-right: 1.4rem;
}

.blog-item-content {
    border-top: 1px solid #ececec;
    margin-top: 0.45rem;
    padding: 0.9rem;
    display: grid;
    gap: 0.8rem;
    border: 1px solid #e6e9ef;
    border-radius: 12px;
    background: #ffffff;
}

.blog-item-content[hidden] {
    display: none !important;
}

.blog-item-actions {
    gap: 0.55rem;
}

.blog-item-actions form {
    margin: 0;
}

.blog-action-btn {
    min-height: 40px;
    padding: 0.58rem 0.92rem;
    border-radius: 12px;
    font-size: 0.92rem;
}

.blog-action-edit,
.blog-action-toggle {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    color: #0f172a !important;
    border: 1px solid #d7dfea !important;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08) !important;
}

.blog-action-edit:hover,
.blog-action-toggle:hover {
    background: #f1f5f9 !important;
    border-color: #c4d0df !important;
    box-shadow: 0 7px 14px rgba(15, 23, 42, 0.12) !important;
}

.image-optimize-panel {
    margin-top: 0.35rem;
}

.image-optimize-panel h3 {
    margin: 0 0 0.55rem;
    font-size: 1rem;
}

.cover-optimize-lead {
    margin-bottom: 0.65rem;
}

.cover-optimize-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.6rem 1rem;
    margin-bottom: 0.35rem;
}

.cover-optimize-controls label {
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
}

.cover-optimize-controls label output {
    font-weight: 700;
}

.cover-optimize-note {
    margin-top: 0.2rem;
}

.cover-optimize-position {
    margin-top: 0.55rem;
    padding-top: 0.55rem;
    border-top: 1px solid #e8e8e8;
    display: grid;
    gap: 0.35rem;
}

.cover-optimize-position h4 {
    margin: 0 0 0.25rem;
    font-size: 0.9rem;
}

.cover-optimize-position label {
    margin: 0;
    font-size: 0.88rem;
}

.image-optimize-panel label output {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.88rem;
    color: #5f5f67;
    font-weight: 600;
}

.image-optimize-panel input[type="range"] {
    width: 100%;
    margin-top: 0.2rem;
    height: 1rem;
}

.image-optimize-panel input[type="range"]::-webkit-slider-runnable-track {
    height: 0.32rem;
}

.image-optimize-panel input[type="range"]::-webkit-slider-thumb {
    width: 0.9rem;
    height: 0.9rem;
    margin-top: -0.29rem;
}

.image-optimize-panel input[type="range"]::-moz-range-track {
    height: 0.32rem;
}

.image-optimize-panel input[type="range"]::-moz-range-thumb {
    width: 0.9rem;
    height: 0.9rem;
}

.cover-compare-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.cover-compare-grid[hidden],
.admin-cover-url-preview-block[hidden],
.admin-cover-preview-placeholder[hidden] {
    display: none !important;
}

.cover-compare-grid .admin-cover-preview-frame {
    min-height: 240px;
}

.cover-compare-col .meta {
    margin-bottom: 0.35rem;
}

.cover-compare-title {
    font-weight: 700;
    color: #30323a;
}

.admin-cover-preview-frame--compact {
    max-width: 100%;
}

.blog-preview-overlay {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.72);
}

.blog-preview-overlay[hidden] {
    display: none !important;
}

.blog-preview-dialog {
    width: min(920px, 100%);
    max-height: 92vh;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #dbe1ea;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.blog-preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e6ebf2;
    background: #fafbfc;
}

.blog-preview-toolbar .eyebrow {
    margin: 0;
}

.blog-preview-close {
    width: 40px;
    height: 40px;
    border: 1px solid #d6dae3;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.blog-preview-scroll {
    overflow: auto;
    padding: 1.2rem 1.25rem 1.5rem;
}

.blog-preview-article {
    max-width: 760px;
    margin: 0 auto;
}

.blog-preview-excerpt {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.65;
    margin: 0 0 1rem;
}

@media (max-width: 760px) {
    .cover-compare-grid {
        grid-template-columns: 1fr;
    }
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0.6rem 0;
}

.admin-cover-controls h3 {
    margin: 0 0 0.5rem;
}

.admin-cover-preview-block .meta {
    margin-bottom: 0.4rem;
}

.admin-cover-preview-frame {
    width: 100%;
    max-width: 680px;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #dbe1ea;
    background: #f8fafc;
    --cover-pos-x: 50%;
    --cover-pos-y: 50%;
    --cover-zoom: 1;
}

.admin-cover-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--cover-pos-x) var(--cover-pos-y);
    transform: scale(var(--cover-zoom));
    transform-origin: var(--cover-pos-x) var(--cover-pos-y);
}

.admin-cover-preview-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #64748b;
    font-weight: 600;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.ql-editor {
    position: relative;
}

.ql-editor p {
    margin: 0;
}

.ql-editor img {
    cursor: pointer;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.ql-editor img.ql-image-selected {
    outline: 2px solid rgba(214, 31, 44, 0.85);
    outline-offset: 2px;
}

.ql-image-resize-overlay {
    position: absolute;
    z-index: 30;
    pointer-events: none;
    box-sizing: border-box;
    border: 2px solid rgba(214, 31, 44, 0.9);
    border-radius: 4px;
}

.ql-image-resize-label {
    position: absolute;
    top: -1.65rem;
    left: 0;
    background: rgba(17, 24, 39, 0.92);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    white-space: nowrap;
}

.ql-image-resize-handle {
    position: absolute;
    right: -8px;
    bottom: -8px;
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-radius: 4px;
    background: #d61f2c;
    cursor: nwse-resize;
    pointer-events: auto;
    padding: 0;
}

body.ql-image-resizing {
    cursor: nwse-resize;
    user-select: none;
}

.post-body img[width] {
    max-width: 100%;
    height: auto;
}

.ql-toolbar.ql-snow,
.ql-container.ql-snow {
    border: 0 !important;
}

.ql-toolbar.ql-snow {
    position: relative;
    z-index: 20;
}

.ql-snow .ql-picker {
    position: relative;
}

.ql-snow .ql-picker.ql-expanded .ql-picker-options {
    z-index: 40;
}

.ql-container {
    min-height: 220px;
}

@media (max-width: 760px) {
    .container {
        width: min(1120px, calc(100% - 1.4rem));
    }

    .row {
        flex-direction: column;
        align-items: flex-start;
    }

    .photo-grid {
        grid-template-columns: 1fr;
    }

    .teaser-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
    }

    .blog-overview-list,
    .blog-overview .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-latest-post-card {
        grid-template-columns: 1fr;
    }
}

/* Über Sepics: Bild + linksbündiger Text (kein Hero-Zentrum) */
.about-page {
    text-align: left;
    border-bottom: 1px solid var(--border);
    padding: 0 0 1.2rem;
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: clamp(1.35rem, 4vw, 2.8rem);
    align-items: start;
}

.about-figure {
    margin: 0;
}

.about-photo {
    width: 100%;
    max-width: 360px;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 18px 42px rgba(17, 24, 39, 0.14);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.about-copy {
    text-align: left;
    max-width: 48rem;
}

.about-copy h1 {
    text-align: left;
    margin-top: 0;
}

@media (max-width: 860px) {
    .about-layout {
        grid-template-columns: 1fr;
    }

    .about-photo {
        max-width: min(340px, 100%);
    }

    .about-figure {
        justify-self: start;
    }
}

