/* ==========================================================================
   Kreuz Waldkirch – Custom Styles
   ========================================================================== */

/* --- CSS Custom Properties (from brand colors) --- */
:root {
    --color-primary: #741e2a;
    --color-base: #d6cecf;
    --color-dark: #1a1415;
    --color-light: #e0dadb;
    --color-muted: #948588;
    --color-white: #ffffff;

    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* --- Base --- */
body {
    font-family: var(--font-body);
    color: var(--color-dark);
    background-color: var(--color-white);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6,
.uk-h1, .uk-h2, .uk-h3, .uk-h4, .uk-h5, .uk-h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-dark);
}

a {
    color: var(--color-primary);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-dark);
}

/* --- Buttons --- */
.uk-button-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: none;
    border-radius: 2px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.uk-button-primary:hover {
    background-color: #5a1620;
    color: var(--color-white);
    transform: translateY(-1px);
}

.uk-button-default {
    border-color: var(--color-primary);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: none;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.uk-button-default:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.uk-button-text {
    color: var(--color-primary);
    font-family: var(--font-heading);
    text-transform: none;
}

.uk-button-text::before {
    border-bottom-color: var(--color-primary);
}

/* --- Navigation --- */
.uk-navbar-container {
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--color-light);
    font-family: var(--font-heading);
    padding: 1rem 0;
}

.uk-navbar-container.uk-navbar-sticky {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.uk-navbar-nav > li > a {
    color: var(--color-dark);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.uk-navbar-nav > li > a:hover,
.uk-navbar-nav > li.uk-active > a {
    color: var(--color-primary);
}

.logo-img {
    max-height: 120px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--color-dark);
}

.logo-text small {
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--color-muted);
    display: block;
    margin-top: -4px;
}

/* --- Splash / Home Page --- */
.splash-page {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.splash-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

.splash-panel {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    overflow: hidden;
    transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.splash-panel,
.splash-panel:hover {
    text-decoration: none;
}

.splash-panel:hover {
    flex: 1.15;
}

.splash-restaurant {
    background: linear-gradient(135deg, var(--color-dark) 0%, #2a1e20 100%);
    background-size: cover;
    background-position: center;
}

.splash-rooms {
    background: linear-gradient(135deg, #2a1e20 0%, var(--color-dark) 100%);
    background-size: cover;
    background-position: center;
}

.splash-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 20, 21, 0.55);
    transition: background 0.4s ease;
}

.splash-panel:hover .splash-overlay {
    background: rgba(26, 20, 21, 0.35);
}

.splash-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
}

.splash-logo {
    max-height: 220px;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
}

.splash-logo-small {
    max-height: 140px;
    margin-bottom: 1.5rem;
}

.splash-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.splash-title-secondary {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.splash-subtitle {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: var(--color-base);
    margin-bottom: 2rem;
    font-style: italic;
}

.splash-cta {
    border-color: var(--color-white);
    color: var(--color-white);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    padding: 12px 35px;
}

.splash-panel:hover .splash-cta {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

/* Splash responsive */
@media (max-width: 768px) {
    .splash-container {
        flex-direction: column;
    }

    .splash-panel {
        flex: 1;
    }

    .splash-panel:hover {
        flex: 1.05;
    }

    .splash-title {
        font-size: 2rem;
    }

    .splash-title-secondary {
        font-size: 1.8rem;
    }
}

/* --- Hero Sections --- */
.hero-section {
    position: relative;
    height: 70vh;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-dark) 0%, #2a1e20 100%);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 20, 21, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--color-white);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.3rem;
    color: var(--color-base);
    font-style: italic;
}

.page-hero {
    background: linear-gradient(135deg, var(--color-dark) 0%, #2a1e20 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 80px 0 60px;
    text-align: center;
}

.page-hero > .uk-container {
    position: relative;
    z-index: 1;
}

.rooms-hero::before,
.page-hero[style*="background-image"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26, 20, 21, 0.6);
}

.page-hero-title {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 0.3rem;
}

.page-hero-subtitle {
    color: var(--color-base);
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .hero-section {
        height: 50vh;
        min-height: 350px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .page-hero {
        padding: 60px 0 40px;
    }

    .page-hero-title {
        font-size: 1.8rem;
    }
}

/* --- Sections --- */
.section-heading {
    font-size: 1.8rem;
    position: relative;
}

.section-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 0.8rem auto 0;
}

.uk-section-muted {
    background-color: var(--color-light);
}

.cta-section {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.cta-section h2 {
    color: var(--color-white);
}

.cta-section p {
    color: var(--color-base);
}

/* --- Cards --- */
.welcome-card {
    background-color: var(--color-light);
    border: none;
}

.highlight-card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.highlight-icon {
    color: var(--color-primary);
}

/* --- Menu (Speisekarte) --- */
.menu-category-title {
    font-size: 1.6rem;
    color: var(--color-primary);
    margin-bottom: 0.3rem;
}

.menu-divider {
    border-top: 2px solid var(--color-primary);
    width: 40px;
    margin: 0 0 1.5rem;
}

.menu-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--color-light);
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item-name {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0;
    font-family: var(--font-heading);
}

.menu-item-desc {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin: 0.2rem 0 0;
}

.menu-item-price {
    font-family: var(--font-heading);
    font-weight: 600;
    white-space: nowrap;
    color: var(--color-primary);
}

/* --- Room Cards --- */
.room-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    color: inherit;
}

.room-card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.room-placeholder {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-light);
    color: var(--color-muted);
}

.room-card-title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.room-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-bottom: 0.5rem;
}

.room-card-price {
    font-weight: 600;
    color: var(--color-primary);
}

.room-card-excerpt {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-bottom: 0.5rem;
}

/* --- Room Detail --- */
.room-detail-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.room-detail-placeholder {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-light);
    color: var(--color-muted);
}

.room-detail-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.room-detail-price {
    margin-bottom: 1rem;
}

.price-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.price-amount {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0.3rem;
}

.price-unit {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--color-muted);
}

.room-detail-size {
    font-family: var(--font-heading);
    color: var(--color-muted);
}

.room-detail-description {
    margin: 1.5rem 0;
    line-height: 1.8;
}

.room-features-list li {
    padding: 0.3rem 0;
}

.feature-check {
    color: var(--color-primary);
}

/* --- Contact --- */
.map-container {
    border-radius: 4px;
    overflow: hidden;
}

.map-container iframe {
    display: block;
    width: 100%;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--color-dark);
    color: var(--color-base);
    padding: 3rem 0 1.5rem;
}

.site-footer h4 {
    color: var(--color-white);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.site-footer a {
    color: var(--color-base);
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--color-white);
}

.site-footer .uk-list li {
    margin-bottom: 0.3rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--color-muted);
}

/* --- Page Content (CMS) --- */
.page-content h2 {
    margin-top: 2rem;
}

.page-content p {
    margin-bottom: 1rem;
}

/* --- Forms --- */
.uk-form-label {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-dark);
}

.uk-input:focus,
.uk-textarea:focus,
.uk-select:focus {
    border-color: var(--color-primary);
}

/* --- Admin Styles --- */
.admin-body {
    font-family: var(--font-heading);
    background-color: #f8f8f8;
}

.admin-nav {
    background: var(--color-dark);
    padding: 0 1.5rem;
}

.admin-nav .uk-logo {
    color: var(--color-white);
    font-size: 1.1rem;
}

.admin-nav .uk-navbar-nav > li > a {
    color: var(--color-base);
}

.admin-nav .uk-navbar-nav > li > a:hover {
    color: var(--color-white);
}

.admin-sidebar {
    background: var(--color-white);
    min-height: calc(100vh - 60px);
    padding: 1.5rem;
    border-right: 1px solid var(--color-light);
}

.admin-sidebar .uk-nav > li > a {
    padding: 0.6rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--color-dark);
    transition: background 0.2s ease;
}

.admin-sidebar .uk-nav > li > a:hover {
    background-color: var(--color-light);
}

.admin-sidebar .uk-nav > li.uk-active > a {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.admin-content {
    padding: 2rem;
}

.admin-login-body {
    background: linear-gradient(135deg, var(--color-dark) 0%, #2a1e20 100%);
}

.admin-login-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Color Picker */
.color-picker {
    width: 45px;
    height: 36px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    padding: 0;
}

/* --- Labels --- */
.uk-label-success {
    background-color: #32d296;
}

.uk-label-danger {
    background-color: var(--color-primary);
}

/* --- Offcanvas / Mobile --- */
.uk-offcanvas-bar {
    background: var(--color-dark);
}

.uk-offcanvas-bar .uk-nav a {
    color: var(--color-base);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    padding: 0.7rem 0;
}

.uk-offcanvas-bar .uk-nav a:hover {
    color: var(--color-white);
}

/* --- Rooms section body variant --- */
.rooms-section .uk-navbar-nav > li.uk-active > a {
    color: var(--color-primary);
}

/* --- Utilities --- */
.uk-animation-fade {
    animation-duration: 0.8s;
}

/* --- Print --- */
@media print {
    .uk-navbar-container,
    .site-footer,
    .splash-container {
        display: none;
    }
}
