/* === KUCOOK STYLES === */
/* CSS für das KuCook Restaurant/Catering Interface */

/* === BASE STYLES === */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    background-color: #5F7A7F;
}

h1 { 
    margin-top: 0; 
}

/* === HEADER === */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 20px;
    background: #fff;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header button {
    padding: 10px 20px;
    margin-right: 10px;
    font-size: 16px;
    cursor: pointer;
}

/* === MAIN CONTAINER === */
.main-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* === STARTSEITE === */
#main {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #5F7A7F;
    z-index: 10;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#main.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
}

.mod_article.fullwidth-boxed.startseite-maincolumn {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.autogrid_row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    width: 100%;
    text-align: center;
}

.autogrid_row .column {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* === BUTTONS === */
.ce_text.btn {
    background: rgba(255,255,255,0.1);
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    color: #fff;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    z-index: 20;
}

.ce_text.btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

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

/* iOS Style Button */
.btn-ios-boingflip {
    padding: 10px 22px;
    background-color: #4cd964;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 3px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.btn-ios-boingflip:hover {
    transform: translateY(-2px) scale(1.05);
    background-color: #36b74f;
}

.btn-ios-boingflip:active {
    transform: translateY(0) scale(0.98);
}

/* === LOGO === */
.ce_image img,
.logo-image {
    max-width: 100%;
    max-width: 1600px;
    height: auto;
}

/* === BEFORE/AFTER CONTAINER === */
.before-after-container {
    position: absolute;
    top: 60px; /* Header height */
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    overflow: hidden;
}

.container {
    margin: auto;
}

/* === PANELS === */
.restaurant,
.catering {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 40px;
    box-sizing: border-box;
    overflow-y: auto;
    transition: clip-path 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.restaurant {
    background: #fef5e7;
    z-index: 5;
}

.catering {
    background: #e7f5fe;
    clip-path: inset(0 100% 0 0);
    z-index: 6;
}

/* === RANGE SLIDER === */
.range-slider-container {
    position: fixed !important;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.range-slider-container.visible {
    opacity: 1;
}

.slidecontainer {
    width: 300px;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.3);
    outline: none;
    border-radius: 4px;
    transition: background 0.2s;
}

.slider:hover {
    background: rgba(255,255,255,0.4);
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* === PANEL CONTENT === */
.panel-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    font-size: 2rem;
    font-weight: bold;
}

.restaurant-content {
    color: #8B4513;
}

.catering-content {
    color: #2E8B57;
}

/* === ADDITIONAL CONTENT === */
.restaurant-additional-content,
.catering-additional-content {
    margin-top: 2rem;
    font-size: 1rem;
    font-weight: normal;
    line-height: 1.6;
}

/* === BACK BUTTONS === */
.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0,0,0,0.1);
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    border: none;
    font-family: inherit;
}

.back-btn:hover {
    background: rgba(0,0,0,0.2);
    transform: translateY(-1px);
}

/* === CONTAO SPEZIFISCHE STYLES === */
/* Sicherstellen, dass Contao-spezifische Klassen nicht interferieren */
.mod_article {
    position: relative;
}

.ce_text,
.ce_image {
    position: relative;
}

.block {
    display: block;
}

.fullwidth-boxed {
    width: 100%;
    box-sizing: border-box;
}

.article-pt {
    padding-top: 2rem;
}

.article-pb {
    padding-bottom: 2rem;
}

.article-pt-0 {
    padding-top: 0;
}

.article-pb-0 {
    padding-bottom: 0;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .slidecontainer {
        width: 250px;
    }
    
    .ce_text.btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .panel-content {
        font-size: 1.5rem;
        padding: 20px;
    }
    
    .autogrid_row .column {
        flex: 1;
        min-width: 0;
    }
    
    .before-after-container {
        top: 0;
        height: 100vh;
    }
}

@media (max-width: 480px) {
    .restaurant,
    .catering {
        padding: 20px;
    }
    
    .panel-content {
        font-size: 1.2rem;
    }
    
    .btn-ios-boingflip {
        padding: 8px 16px;
        font-size: 12px;
    }
}