@font-face {
    font-family: 'Wahroonga';
    src: url('fonts/Wahroonga.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'ReceiptFont';
    src: url('fonts/VCR_OSD_MONO_1.001.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background:  rgba(237, 229, 223, 0.95);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

header {
    background: rgba(237, 229, 223, 0.95);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.main-logo {
    height: 60px;
    width: auto;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
    align-items: center;
     justify-content: center;
}


.main-logo:hover {
    transform: scale(1.05) rotate(-2deg);
}

header p {
    font-size: 1.2rem;
    color: #666;
    font-weight: 300;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
}

.cart-toggle {
    background: rgba(218, 211, 205, 0.95);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.cart-count-badge {
    background: rgba(215,18,17,1);
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    
    display: flex;
    align-items: center;
    justify-content: center;
}

main {
    padding: 6rem 0 2rem 0;
    margin-bottom: 0;
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
}

.page-headline {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 3rem auto 2rem auto;
    filter: drop-shadow(10px 5px 10px rgba(0, 0, 0, 0.3));
    
}

/* Slider Styles */
.slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    width: 300%; /* 3 slides */
}

.slide {
    width: 33.333%;
    flex-shrink: 0;
    padding: 1rem;
    opacity: 0.5;
    transform: scale(0.9);
    transition: all 0.5s ease;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

.menu-section {
    margin-bottom: 2rem;
}

.menu-section h2 {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.5rem;
    color: #333; /* Changed to dark for visibility on light bg */
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: none;
}

.slider-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-top: auto;
}

.slider-btn {
    background: #333;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slider-btn:hover:not(:disabled) {
    background: #555;
    transform: translateY(-2px);
}

.step-indicators {
    display: flex;
    gap: 1rem;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ddd;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.step.active {
    background: rgb(255, 190, 20);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}

.step.completed {
    background: #ddd;
    color:#666;
}

/* Cart Sidebar Styles */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: white;
    z-index: 999;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    transition: right 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    padding: 0;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.close-cart {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close-cart:hover {
    color: #ff6b6b;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    max-height: none;
    margin-bottom: 0;
}

.order-summary {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.order-category h4 {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.order-item-name {
    font-size: 1.1rem;
    color: #666;
    padding-left: 0.5rem;
    border-left: 3px solid rgb(255, 190, 20);
}

.order-item-description {
    margin-top: 0.5rem;
    padding-left: 0.8rem;
    list-style-type: none;
    font-size: 0.9rem;
    color: #888;
}

.order-item-description li {
    margin-bottom: 0.2rem;
    position: relative;
    padding-left: 0.5rem;
}

.order-item-description li::before {
    content: '-';
    position: absolute;
    left: -0.5rem;
    color: rgb(255, 190, 20);
}

.placeholder {
    font-style: italic;
    color: #aaa;
    font-size: 1rem;
}

.cart-footer {
    padding: 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.checkout-btn {
    background: rgb(255, 190, 20);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 2px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.checkout-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.checkout-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

/* Original Menu Grid & Item Styles preserved but updated context */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.menu-item {
    background: white;
    border-radius: 10 px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid transparent;
}

.menu-item.selected {
    border-color: #ff6b6b;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.15);
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background-size: 300% 100%;
    animation: gradient 3s ease infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.menu-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.item-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 2px;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.menu-item:hover .item-image {
    transform: scale(1.05);
}

.menu-item h3 {
    font-family: 'Bebas Neue', cursive;
    font-size: 2rem;
    color: #333;
    margin-bottom: 0.5rem;
    text-align: left;
    width: 100%;
}

.description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.4;
    text-align: left;
    list-style-type: none;
    padding-left: 0;
    width: 100%;
}

.description li {
    margin-bottom: 0.25rem;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.add-to-cart {
    background: rgb(255, 190, 20);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 2px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    width: 100%;
}

.add-to-cart:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.add-to-cart:active {
    transform: scale(0.95);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    overflow-y: auto; /* Enable scrolling for tall content like the receipt */
}

.modal-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px; /* Increased to accommodate both */
    margin: 5% auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.modal-content {
    background-color: white;
    padding: 3rem 2rem 2rem 2rem; /* Increased top padding for close button */
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    margin: 0;
    position: relative;
    z-index: 10;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 20;
}

.close:hover {
    color: #ff6b6b;
}

.modal-content h2 {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.5rem;
    margin-bottom: 2rem; /* Increased spacing to prevent overlap */
    color: #333;
}

/* Receipt Styles */
.receipt-container {
    width: 340px;
    position: relative;
    margin-left: -50px; /* Increased overlap */
    margin-top: 50px;
    transform: rotate(3deg);
    z-index: 20;
    filter: drop-shadow(5px 5px 15px rgba(0,0,0,0.2));
    opacity: 0; /* Hidden initially */
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: top left;
}

.receipt-container.hidden {
    transform: rotate(3deg) scale(0.9) translateY(-20px);
    opacity: 0;
}

.receipt-container.visible {
    opacity: 1;
    transform: rotate(3deg) scale(1);
}

@media (max-width: 900px) {
    .receipt-container.visible {
        transform: rotate(-2deg) scale(1);
    }
}

.receipt {
    background-image: url('images/quittung.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    /* Aspect ratio based on image dimensions 504x1221 */
    aspect-ratio: 504/1221;
    padding: 3rem 2.5rem 3rem 2.5rem; 
    font-family: 'ReceiptFont', monospace;
    color: #222;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.receipt-logo {
    width: 100px;
    margin: 0 auto 02rem auto;
    display: block;
    filter: grayscale(100%) contrast(1.2);
}

.receipt-order-no {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
    border-bottom: 2px dashed #000;
    padding-bottom: 0.8rem;
    width: 100%;
    text-transform: uppercase;
}

.receipt-message {
    font-size: 0.75rem;
    line-height: 1.1; /* Tighter line height */
    margin-bottom: 1rem;
    text-align: center;
    text-transform: uppercase; /* Versalien */
}

.receipt-title {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.receipt-meta {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
}

.receipt-columns {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-weight: bold;
    font-size: 0.85rem;
    border-bottom: 2px solid #000;
    padding-bottom: 0.5rem;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    align-items: flex-start;
}

.receipt-items-list {
    width: 100%;
    margin-bottom: auto;
    text-align: left;
    font-size: 0.8rem;
}

.receipt-item {
    margin-bottom: 0.8rem;
    border-bottom: 1px dashed #aaa;
    padding-bottom: 0.5rem;
}

.receipt-item-row {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.receipt-item-attributes {
    font-size: 0.65rem;
    font-weight: normal;
    text-align: right;
    max-width: 60%;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.receipt-item-supplement {
    font-size: 0.7rem;
    font-style: italic;
    margin-bottom: 0.2rem;
}

.receipt-total-section {
    width: 100%;
    border-top: 2px solid #000;
    padding-top: 0.5rem;
    margin-top: 0.2rem; /* Reduced margin */
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-weight: bold;
}

.receipt-total-label {
    font-size: 1.2rem;
    text-transform: uppercase;
}

.receipt-total-price {
    font-size: 1rem;
    text-align: right;
    max-width: 60%;
    line-height: 1.2;
}

.receipt-total-subtext {
    font-size: 0.6rem;
    text-align: left;
    margin-top: 0.2rem;
}

.receipt-footer-note {
    font-size: 0.65rem;
    margin-bottom: 1rem;
    text-align: center;
    text-transform: uppercase; /* Versalien */
    line-height: 1.1; /* Tighter line height */
}


.receipt-action-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    font-family: 'ReceiptFont', monospace;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
    width: 100%;
    border: 2px solid #000;
}

.receipt-action-btn:hover {
    background: #fff;
    color: #000;
}

.modal-content p {
    margin-bottom: 0rem;
    color: #666;
    line-height: 1.6;
    font-size: 1.5rem;
}

.new-order-btn {
    margin-top: 1rem;
   background: rgb(255, 190, 20);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.new-order-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* Text Correction Animation */
.correction-wrapper {
    display: inline-block;
    position: relative;
    margin: 0 0.2rem;
}

.original-word {
    position: relative;
    display: inline-block;
}

.strikethrough-svg {
    position: absolute;
    left: -5%;
    top: 0;
    width: 110%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.strike-path {
    fill: none;
    stroke: rgba(215, 18, 17, 0.95);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawStrike 0.5s ease-out 1s forwards;
}

@keyframes drawStrike {
    to {
        stroke-dashoffset: 0;
    }
}

.correction-word {
    position: absolute;
    top: -1.2em;
    left: 50%;
    transform: translateX(-50%) rotate(-10deg) scale(0.5);
    color: rgba(215, 18, 17, 0.95);
  font-family: 'Wahroonga', cursive;
    font-size: 1.8rem;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    animation: showCorrection 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1.2s forwards;
}

@keyframes showCorrection {
    to { 
        opacity: 1; 
        transform: translateX(-50%) rotate(-10deg) scale(1);
    }
}

/* Legal Footer */
.legal-footer {
    background-color: #f5f5f5;
    padding: 1rem 0;
    margin-top: 3rem;
    text-align: center;
    border-top: 1px solid #ddd;
    font-size: 0.9rem;
}

.legal-footer a {
    color: #666;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.2s;
}

.legal-footer a:hover {
    color: #222;
    text-decoration: underline;
}

.separator {
    color: #ccc;
}

.project-note {
    color: #999;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Legal Modals */
.legal-content {
    text-align: left;
    max-width: 600px;
    padding: 2.5rem;
}

.legal-content h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    text-align: center;
}

.legal-text {
    line-height: 1.6;
    color: #444;
}

.legal-text p {
    margin-bottom: 1rem;
}

.legal-text strong {
    color: #222;
}

.close-legal {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 20;
}

.close-legal:hover {
    color: #333;
}

/* =========================================
   ESSAY PAGE / EDITORIAL REDESIGN
   ========================================= */

.essay-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 3000;
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.essay-page.active {
    transform: translateY(0);
}

.essay-scroll-wrapper {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth; /* Soft scroll */
}

/* Container & Layout */
.essay-content {
    max-width: 700px; /* Editorial width */
    margin: 0 auto;
    padding: 10rem 2rem 5rem 2rem;
    position: relative;
    color: #000;
}

/* Typography Base */
.editorial-text {
    font-family: 'Helvetica Neue', 'Roboto', 'Arial', sans-serif;
    font-size: 1.4rem; /* Slightly adjusted for sans-serif */
    line-height: 1.7; /* More breathing room */
    margin-bottom: 2rem;
    color: #111;
    font-weight: 300; /* Lighter weight for modern feel */
}

.editorial-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 3rem;
    margin-top: 4rem;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Scroll Pauses & Spacing */
.scroll-pause {
    height: 30vh; /* Force scroll time */
    width: 100%;
}

.spacer-large {
    height: 10rem;
}

.spacer-medium {
    height: 7rem;
}

.spacer-footer {
    height: 40vh; /* Space after interaction */
}

/* Header Elements */
.essay-headline-images {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    
}

.headline-svg {
    height: 7rem;
    width: auto;
}

.headline-fuers {
    height: 7.5rem; /* Optical adjustment */
    margin-top: -0.3rem;
}

.essay-subtitle {
    font-family: 'ReceiptFont', monospace;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    color: rgba(215,18,17,1);
    margin-bottom: 0rem;
}

/* Repetitive Phrases (Reflexes) */
.editorial-interlude {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    margin: 8rem 0;
}

.reflex-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: #000;
    text-transform: uppercase;
}

/* Specific longer delays for reflex text to ensure sequential reading */
.reflex-text.delay-1 {
    transition-delay: 0.8s;
}

.reflex-text.delay-2 {
    transition-delay: 1.6s;
}

/* Pull Quotes */
.editorial-quote {
    font-family: 'Georgia', serif;
    font-size: 2.2rem;
    line-height: 1.3;
    font-style: italic;
    text-align: center;
    margin: 6rem auto;
    padding: 0 1rem;
    color: #000;
    border-left: none; /* Reset default */
    max-width: 90%;
}

.editorial-quote.soft {
    color: #555;
    font-weight: 300;
}

/* Annotations (Receipt Style) */
.margin-annotation {
    font-family: 'ReceiptFont', monospace;
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    position: absolute;
    width: 150px;
    padding: 0.5rem;
    border-top: 1px dashed #999;
    border-bottom: 1px dashed #999;
    line-height: 1.2;
}

/* Desktop positioning for annotations */
@media (min-width: 1100px) {
    .margin-annotation.left {
        left: -180px;
        text-align: right;
    }
    .margin-annotation.right {
        right: -180px;
        text-align: left;
    }
}

/* Mobile positioning for annotations */
@media (max-width: 1099px) {
    .margin-annotation {
        position: relative;
        width: 100%;
        margin: 2rem 0;
        text-align: center;
        left: auto;
        right: auto;
        border: 1px dashed #ccc;
        background: #f9f9f9;
    }
}

/* Tones */
.tone-outrage {
    /* Tighter, faster feel */
    position: relative;
    padding: 2rem 0;
}

.tone-outrage .editorial-text {
    margin-bottom: 1.5rem;
}

.tone-grayzone {
    /* Open, softer feel */
    color: #444;
}

.tone-grayzone .editorial-text {
    color: #444;
    font-size: 1.4rem;
    margin-bottom: 3rem; /* More space */
}

.tone-grayzone .editorial-heading {
    color: #666;
    font-weight: 300;
}

/* Interaction Button */
.interaction-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 5rem;
}

.essay-action-btn {
    background: transparent;
    color: #000;
    border: 2px solid #000;
    padding: 1rem 3rem;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s ease;
}

.essay-action-btn:hover {
    background: #000;
    color: #fff;
}

/* Close Button Override */
.close-essay {
    position: fixed;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    background: transparent;
    border: none;
    color: #000;
    cursor: pointer;
    z-index: 3010;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.close-essay:hover {
    opacity: 1;
    transform: none; /* Remove rotation */
    color: #000;
}

/* Scroll Animations - Progressive Reveal */
.scroll-trigger {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease-out, transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.scroll-trigger.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.3s; }
.delay-2 { transition-delay: 0.6s; }
.delay-3 { transition-delay: 0.9s; }

/* Reset existing/conflicting styles from previous version if necessary */
.essay-text { display: none; } /* Hide old container if it lingers */
.grauzonen-wrapper { display: none; } /* Hide old wrapper */

@media (max-width: 768px) {
    header p {
        display: none; /* Hide slogan on mobile for space */
    }

    .slider-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .slider-btn {
        width: 100%;
        padding: 0.9rem 1.25rem;
        border-radius: 8px;
    }

    .step-indicators {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .step {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }

    .slide {
        padding: 0.5rem;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .menu-item {
        padding: 1.5rem;
    }

    .item-image {
        height: 280px;
    }
    
    .cart-sidebar {
        width: 100%;
        max-width: 100%;
        right: -100%; /* Ensure it's fully off-screen based on percentage width */
        box-shadow: none; /* Prevent shadow bleeding when closed */
    }
    
    .cart-sidebar.open {
        right: 0;
        box-shadow: -5px 0 30px rgba(0,0,0,0.1); /* Restore shadow when open if needed, though on mobile full width it might not be visible anyway */
    }

    /* Mobile adjustments for Essay Page */
    .essay-content {
        padding: 6rem 1.5rem 4rem 1.5rem;
    }

    .editorial-heading {
        font-size: 2.5rem;
        margin-top: 3rem;
        margin-bottom: 2rem;
    }

    .editorial-text {
        font-size: 1.2rem;
    }

    .tone-grayzone .editorial-text {
        font-size: 1.2rem;
    }

    .editorial-text.emphasis {
        font-size: 1.2rem;
    }

    .reflex-text {
        font-size: 2rem;
    }

    .editorial-interlude {
        gap: 2rem;
        margin: 5rem 0;
    }

    .editorial-quote {
        font-size: 1.5rem;
        margin: 4rem auto;
    }

    .headline-svg {
        height: 3.5rem;
    }

    .headline-fuers {
        height: 3.8rem;
    }

    .essay-headline-images {
        margin-bottom: 2rem;
        gap: 0.5rem;
    }
    
    .scroll-pause {
        height: 20vh;
    }

    .essay-action-btn {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }

    /* Mobile Header & Menu Optimizations */
    .header-content {
        padding: 0 1rem;
    }

    .main-logo {
        height: 45px; /* Smaller logo */
    }

    .page-headline {
        margin: 2rem auto 1rem auto;
        padding: 0 1rem;
    }

    /* Mobile Modal & Receipt Optimizations */
    .modal-wrapper {
        flex-direction: column;
        align-items: center;
        margin: 10% auto;
        width: 95%;
    }

    .modal-content {
        width: 100%;
        max-width: 100%;
        margin-bottom: 2rem; /* Space between message and receipt */
    }

    .receipt-container {
        margin-left: 0;
        margin-top: 0;
        width: 100%;
        max-width: 320px;
        transform: none !important; /* Remove rotation on mobile */
    }

    .receipt-container.visible {
        transform: none !important;
    }

    /* Fix overlapping or obscured elements */
    .modal {
        overflow-y: scroll; /* Ensure scrolling works */
        -webkit-overflow-scrolling: touch;
    }
    
    /* Ensure receipt is fully visible with scroll */
    .receipt {
        margin-bottom: 4rem; 
    }
}
