:root {
    --color-bg: #ffffed;
    --color-surface: #ffffff;
    --color-text: #2c2420;
    --color-muted: #6b5f58;
    --color-accent: #80182a;
    --color-accent-dark: #5d1721;
    --color-sidebar: #5d1721;
    --color-sidebar-hover: #80182a;
    --color-sidebar-text: #ffffed;
    --color-border: #e8ddd4;
    --color-banner: #f3e8ec;
    --font-display: "Taviraj", Georgia, serif;
    --font-body: "Roboto Condensed", "Segoe UI", sans-serif;
    --shadow: 0 8px 30px rgba(44, 36, 32, 0.08);
    --radius: 10px;
    --sidebar-width: 280px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-accent); text-decoration-thickness: 1px; }
a:hover { color: var(--color-accent-dark); }

.container {
    width: min(100% - 2rem, 900px);
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--color-accent);
    color: #fff;
    padding: .5rem 1rem;
    z-index: 9999;
}
.skip-link:focus { left: 1rem; }

/* App shell: Sidebar + Hauptbereich */
.app-shell {
    display: flex;
    min-height: 100vh;
}

.site-sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: var(--color-sidebar);
    color: var(--color-sidebar-text);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem 1.5rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 200;
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--color-sidebar-text);
    text-decoration: none;
    margin-bottom: 1.5rem;
    padding: 0 .5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 237, 0.15);
}

.sidebar-brand img {
    width: 130px;
    height: auto;
    margin-bottom: .75rem;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.25));
}

.sidebar-brand__title {
    font-family: var(--font-display);
    font-size: 1.45rem;
    line-height: 1.15;
}

.sidebar-brand__subtitle {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.1rem;
    opacity: .9;
    margin-top: .15rem;
}

.site-sidebar a.sidebar-brand:hover,
.site-sidebar a.sidebar-brand:hover .sidebar-brand__title,
.site-sidebar a.sidebar-brand:hover .sidebar-brand__subtitle {
    color: var(--color-sidebar-text);
}

.sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav li { margin: 0; }

.sidebar-nav a {
    display: block;
    padding: .55rem 1rem;
    color: var(--color-sidebar-text);
    text-decoration: none;
    text-transform: uppercase;
    font-size: .88rem;
    letter-spacing: .04em;
    border-radius: 6px;
    transition: background .15s;
}

.sidebar-nav a:hover,
.sidebar-nav a.is-active {
    background: var(--color-sidebar-hover);
    color: #fff;
}

.sidebar-nav__heading {
    margin: 1.25rem 1rem .35rem;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .65;
    font-style: italic;
}

.sidebar-contact {
    margin-top: auto;
    padding: 1rem;
    font-size: .9rem;
    border-top: 1px solid rgba(255, 255, 237, 0.15);
}

.sidebar-hours { margin: 0 0 .75rem; opacity: .85; }

.sidebar-phone,
.sidebar-contact-form {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
}

.sidebar-phone:hover,
.sidebar-contact-form:hover {
    color: var(--color-sidebar-text);
    opacity: .92;
}

.sidebar-contact-form {
    margin: .65rem 0 0;
    padding: 0;
    background: none;
    border: 0;
    font: inherit;
    cursor: pointer;
    text-align: left;
    width: 100%;
}

.sidebar-contact__icon {
    flex-shrink: 0;
    width: 1.1rem;
    height: 1.1rem;
}

.sidebar-phone {
    font-weight: 600;
    font-size: 1.05rem;
}

.app-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.mobile-bar {
    display: none;
    align-items: center;
    gap: 1rem;
    padding: .6rem 1rem;
    background: var(--color-sidebar);
    color: var(--color-sidebar-text);
    position: sticky;
    top: 0;
    z-index: 150;
}

.mobile-bar__title {
    flex: 1;
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.mobile-bar__phone {
    color: #fff;
    font-size: 1.25rem;
    text-decoration: none;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: .5rem;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-sidebar-text);
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 180;
}

/* Hero */
.hero {
    padding: 2rem 0 1rem;
    text-align: center;
}

.hero h1, .hero h2 {
    font-family: var(--font-display);
    font-weight: 600;
    margin: 0 0 .25rem;
    color: var(--color-accent-dark);
}

.hero .tagline {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--color-muted);
    margin: .5rem 0 1rem;
}

.hero .usp {
    font-size: 1.05rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.hero-slider {
    position: relative;
    width: 80%;
    max-width: 720px;
    margin: 1.5rem auto;
    aspect-ratio: 3/4;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-slider img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    opacity: 0;
    transition: opacity 1.4s ease-in-out;
    z-index: 0;
}

.hero-slider img.is-active {
    opacity: 1;
    z-index: 1;
}

.banner-notice {
    background: var(--color-banner);
    border-left: 4px solid var(--color-accent);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 1rem auto 1.5rem;
    max-width: 640px;
    text-align: left;
}

.section { padding: 2rem 0; }

.section--surface {
    background: var(--color-surface);
    border-block: 1px solid var(--color-border);
}

.section h1, .section h2 {
    font-family: var(--font-display);
    margin-top: 0;
    color: var(--color-accent-dark);
}

.hours-block { text-align: center; max-width: 640px; margin: 0 auto; }
.hours-block p { margin: .35rem 0; }

.news-grid { display: grid; gap: 1.5rem; }

.news-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow);
}

.news-card h2, .news-card h3 {
    font-family: var(--font-display);
    margin: 0 0 .5rem;
    font-size: 1.25rem;
}

.news-card h2 a, .news-card h3 a {
    color: inherit;
    text-decoration: none;
}
.news-card h2 a:hover, .news-card h3 a:hover { color: var(--color-accent); }

.news-meta {
    font-size: .9rem;
    color: var(--color-muted);
    margin-bottom: .75rem;
}

.post-content img { border-radius: var(--radius); margin: 1rem 0; max-width: 100%; }
.post-content figure { margin: 1rem 0; }

/* Kontakt-Glider (einblendbar) */
.contact-glider {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 500;
    pointer-events: none;
}

.contact-glider.is-open { pointer-events: auto; }

.contact-glider.is-open .contact-glider__tab {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.contact-glider__tab {
    position: fixed;
    top: 15%;
    right: 0;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    background: var(--color-sidebar);
    color: var(--color-sidebar-text);
    border: 0;
    border-radius: 8px 0 0 8px;
    padding: 1rem .75rem;
    cursor: pointer;
    font: inherit;
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    box-shadow: -4px 0 18px rgba(0,0,0,.25);
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    z-index: 1000;
    transition: opacity .2s ease, visibility .2s ease;
}

.contact-glider__tab:hover { background: var(--color-sidebar-hover); }

.contact-glider__panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    max-height: 85vh;
    overflow-y: auto;
    background: var(--color-surface);
    border-top: 4px solid var(--color-sidebar);
    padding: 1.5rem 1.5rem 2rem;
    box-shadow: 0 -8px 40px rgba(0,0,0,.15);
    transform: translateY(100%);
    transition: transform .3s ease;
    pointer-events: auto;
}

.contact-glider.is-open .contact-glider__panel {
    transform: translateY(0);
}

.contact-glider__close {
    position: absolute;
    top: .75rem;
    right: 1rem;
    background: none;
    border: 0;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    color: var(--color-muted);
}

.contact-form {
    max-width: 560px;
    display: grid;
    gap: 1rem;
}

.form-row { display: grid; gap: .35rem; }
.form-row label { font-weight: 600; }

.form-row input,
.form-row textarea,
.form-row select {
    font: inherit;
    padding: .65rem .75rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
}

.form-row--checkbox {
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: .5rem;
}

.form-hint { font-size: .88rem; color: var(--color-muted); margin: 0; }
.hp-field { display: none !important; }

.form-message {
    padding: .75rem 1rem;
    border-radius: 8px;
    margin: 0;
}
.form-message--success { background: #e8f5e9; color: #2e7d32; }
.form-message--error { background: #ffebee; color: #c62828; }
.form-message--warning { background: #fff8e1; color: #f57f17; }

.btn {
    display: inline-block;
    font: inherit;
    cursor: pointer;
    border: 0;
    border-radius: 999px;
    padding: .7rem 1.4rem;
    text-decoration: none;
}

.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-dark); color: #fff; }

.btn-secondary {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.btn-danger { background: #c62828; color: #fff; }

/* Footer */
.site-footer {
    background: #3d2f2a;
    color: #f5efe9;
    padding: 2rem 0 0;
    margin-top: auto;
}

.site-footer a { color: #f5d4de; }
.site-footer h2 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .35rem; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 1rem 0;
    font-size: .9rem;
    color: rgba(255,255,255,.7);
}

/* Admin */
/* Admin — volle Breite */
.admin-main {
    width: min(100% - 2rem, 1400px);
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0 2rem;
}

.admin-header .container {
    width: min(100% - 2rem, 1400px);
    max-width: 100%;
}

.admin-form {
    width: 100%;
    max-width: none;
    display: grid;
    gap: 1.25rem;
}

.admin-form__meta {
    display: grid;
    grid-template-columns: 1fr minmax(180px, 220px);
    gap: 1rem;
}

.admin-layout .form-row input[type="text"],
.admin-layout .form-row input[type="email"],
.admin-layout .form-row input[type="password"],
.admin-layout .form-row input[type="date"],
.admin-layout .form-row textarea {
    width: 100%;
}

.admin-input {
    width: 100%;
    max-width: 28rem;
}

.admin-divider {
    border: 0;
    border-top: 1px solid #e8dfd6;
    margin: 1.75rem 0;
}

.admin-help {
    margin: 0 0 1.25rem;
    border: 1px solid #e0d5cc;
    border-radius: var(--radius);
    background: #faf8f5;
    overflow: hidden;
}

.admin-help__toggle {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-accent-dark);
    list-style: none;
    user-select: none;
}

.admin-help__toggle::-webkit-details-marker { display: none; }

.admin-help__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: var(--color-sidebar);
    color: #ffffed;
    font-size: .8rem;
    font-weight: 700;
    font-style: italic;
    font-family: Georgia, serif;
}

.admin-help__panel {
    padding: 0 1rem 1rem;
    border-top: 1px solid #e0d5cc;
    font-size: .95rem;
    color: var(--color-text);
}

.admin-help__intro {
    margin: .75rem 0 .5rem;
    color: var(--color-muted);
}

.admin-help__heading {
    font-size: 1rem;
    margin: 1rem 0 .35rem;
    font-family: var(--font-body);
    color: var(--color-accent-dark);
}

.admin-help__content ul,
.admin-help__content ol {
    margin: .35rem 0 .75rem;
    padding-left: 1.25rem;
}

.admin-help__content p { margin: .35rem 0 .75rem; }

.admin-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-page-head .btn {
    align-self: flex-start;
    flex-shrink: 0;
}

.admin-page-head .admin-help {
    margin: 0;
    flex: 1 1 220px;
    max-width: 320px;
}

@media (max-width: 700px) {
    .admin-page-head .admin-help { max-width: none; flex: 1 1 100%; }
}

.form-row--editor { margin-bottom: 0; }

.admin-layout .tox-tinymce,
.admin-layout .tox .tox-edit-area__iframe {
    width: 100% !important;
}

.admin-layout { min-height: 100vh; background: #f0ebe6; }

.admin-header {
    background: var(--color-sidebar);
    color: #fff;
    padding: 1rem 0;
}

.admin-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-header a { color: #ffffed; margin-right: .75rem; }

.admin-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin: 1.5rem 0;
}

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td {
    text-align: left;
    padding: .6rem .5rem;
    border-bottom: 1px solid var(--color-border);
}

.admin-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

.login-box { max-width: 400px; margin: 4rem auto; }

/* Hero admin: Sortierliste */
.hero-sort-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: grid;
    gap: .75rem;
}

.hero-sort-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .75rem;
    background: #fafafa;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    cursor: grab;
}

.hero-sort-item.is-dragging { opacity: .5; }

.hero-sort-item img {
    width: 72px;
    height: 96px;
    object-fit: cover;
    border-radius: 6px;
}

.hero-sort-item__handle {
    color: var(--color-muted);
    font-size: 1.25rem;
    user-select: none;
}

.drop-zone {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    background: #fafafa;
    transition: border-color .2s, background .2s;
}

.drop-zone.is-dragover {
    border-color: var(--color-accent);
    background: var(--color-banner);
}

.form-row--editor { margin-bottom: 1.5rem; }

/* TinyMCE im Admin */
.tox-tinymce {
    border-radius: 8px !important;
    border-color: var(--color-border) !important;
}

@media (max-width: 900px) {
    .admin-form__meta {
        grid-template-columns: 1fr;
    }

    .site-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        transition: transform .25s ease;
        box-shadow: var(--shadow);
    }

    .site-sidebar.is-open { transform: translateX(0); }

    .sidebar-backdrop.is-visible { display: block; }

    .mobile-bar { display: flex; }

    .contact-glider__tab { top: 12%; }
}
