@font-face {
    font-family: "LeagueSpartanBlack"; /* set name */
    src: url(fonts/LeagueSpartan-Black.ttf) format("truetype"); /* url of the font */
}
@font-face {
    font-family: "LeagueSpartanBold"; /* set name */
    src: url(fonts/LeagueSpartan-Bold.ttf) format("truetype"); /* url of the font */
}
@font-face {
    font-family: "LeagueSpartanExtraBold"; /* set name */
    src: url(fonts/LeagueSpartan-ExtraBold.ttf) format("truetype"); /* url of the font */
}
@font-face {
    font-family: "LeagueSpartanExtraLight"; /* set name */
    src: url(fonts/LeagueSpartan-ExtraLight.ttf) format("truetype"); /* url of the font */
}
@font-face {
    font-family: "LeagueSpartanLight"; /* set name */
    src: url(fonts/LeagueSpartan-Light.ttf) format("truetype"); /* url of the font */
}
@font-face {
    font-family: "LeagueSpartanMedium"; /* set name */
    src: url(fonts/LeagueSpartan-Medium.ttf) format("truetype"); /* url of the font */
}
@font-face {
    font-family: "LeagueSpartanRegular"; /* set name */
    src: url(fonts/LeagueSpartan-Regular.ttf) format("truetype"); /* url of the font */
}
@font-face {
    font-family: "LeagueSpartanSemiBold"; /* set name */
    src: url(fonts/LeagueSpartan-SemiBold.ttf) format("truetype"); /* url of the font */
}
@font-face {
    font-family: "LeagueSpartanThin"; /* set name */
    src: url(fonts/LeagueSpartan-Thin.ttf) format("truetype"); /* url of the font */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "LeagueSpartanRegular";
}

body {
    background-color: #fdf6ea; /* latte */
    color: #442816; /* espresso */
}

a {
    color: inherit;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }

/* Gap */
.gap-1 { gap: 4px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.gap-10 { gap: 40px; }
.gap-12 { gap: 48px; }
.gap-20 { gap: 80px; }

/* Padding */
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }
.p-10 { padding: 40px; }
.p-20 { padding: 80px; }
.px-2 { padding-left: 8px; padding-right: 8px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.px-8 { padding-left: 32px; padding-right: 32px; }
.px-10 { padding-left: 40px; padding-right: 40px; }
.px-20 { padding-left: 80px; padding-right: 80px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-6 { padding-top: 24px; padding-bottom: 24px; }
.py-8 { padding-top: 32px; padding-bottom: 32px; }
.py-10 { padding-top: 40px; padding-bottom: 40px; }
.py-20 { padding-top: 80px; padding-bottom: 80px; }

/* Margin */
.m-2 { margin: 8px; }
.m-4 { margin: 16px; }
.my-4 { margin-top: 16px; margin-bottom: 16px; }
.my-8 { margin-top: 32px; margin-bottom: 32px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-10 { margin-bottom: 40px; }
.mr-4 { margin-right: 16px; }

/* Width & Height */
.w-full { width: 100%; }
.w-1\/2 { width: 50%; }
.w-1\/3 { width: 33.333%; }
.w-1\/4 { width: 25%; }
.w-2\/3 { width: 66.666%; }
.w-3\/4 { width: 75%; }
.h-screen { height: 100vh; }
.h-auto { height: auto; }
.h-32 { height: 128px; }
.h-50 { height: 50px; }
.h-1080 { height: 1080px; }

/*

H1 64 Pixel extra bold
H2 48 Pixel Bold
H3 32 Pixel Medium
H4 24 Pixel Medium
H5 20 Pixel Medium
H6 18 Pixel Medium

 */

/* Colors */
.bg-espresso { background-color: #442816 !important; }
.bg-creamy { background-color: #F3e4d1; }
.bg-latte { background-color: #fff8ec; }
.text-espresso { color: #442816; }
.text-creamy { color: #F3e4d1; }
.text-latte { color: #fff8ec; }

/* Typography */
h1 { font-size: 64px; font-weight: 800; line-height: 1.1; font-family: LeagueSpartanExtraBold }
h2 { font-size: 48px; font-weight: 700; line-height: 1.2; font-family: LeagueSpartanBold }
h3 { font-size: 32px; font-weight: 400; line-height: 1.3; font-family: LeagueSpartanMedium }
h4 { font-size: 24px; font-weight: 400; line-height: 1.3; font-family: LeagueSpartanMedium }
h5 { font-size: 20px; font-weight: 400; line-height: 1.3; font-family: LeagueSpartanMedium }
h6 { font-size: 18px; line-height: 1.6; }
p { font-size: 14px; line-height: 1.6; }
.text-xs { font-size: 10px; }
.text-sm { font-size: 14px; }
.text-xl { font-size: 24px; }
.text-3xl { font-size: 30px; }
.text-4xl { font-size: 36px; }
.text-6xl { font-size: 60px; }
.text-\[10px\] { font-size: 10px; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: bold; }
.font-bolder { font-weight: bolder; }
.font-black { font-weight: 900; }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.text-center { text-align: center; }
.text-right { text-align: right !important;}
.text-left { text-align: left !important;}
.tracking-widest { letter-spacing: 0.2em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-normal { letter-spacing: 0; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }
.leading-relaxed { line-height: 1.625; }

/* Opacity */
.opacity-60 { opacity: 0.6; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }
.opacity-90 { opacity: 0.9; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.top-0 { top: 0; }
.top-4 { top: 16px; }
.top-10 { top: 40px; }
.top-40 { top: 80px; }
.right-0 { right: 0; }
.right-4 { right: 16px; }
.right-10 { right: 40px; }
.right-20 { right: 80px; }
.bottom-10 { bottom: 40px; }
.left-20 { left: 80px; }

/* Display */
.block { display: block; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.max-h-\[400px\] { max-height: 400px; }

/* Borders & Radius */
.border { border: 1px solid; }
.border-b { border-bottom: 1px solid; }
.border-espresso { border-color: #452816; }
.border-espresso\/20 { border-color: rgba(69, 40, 22, 0.2); }
.rounded-lg { border-radius: 16px; }
.rounded-xl { border-radius: 20px; }
.rounded-2xl { border-radius: 20px; }
.rounded-full { border-radius: 9999px; }
.rounded-t-lg { border-top-left-radius: 16px; border-top-right-radius: 16px; }

/* Shadows */
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

/* Transitions & Transforms */
.transition-colors { transition: color 0.3s ease; }
.transition-all { transition: all 0.3s ease; }
.transform { transition: transform 0.3s ease; }
.hover\:-translate-y-2:hover { transform: translateY(-8px); }
.cursor-pointer { cursor: pointer; }

/* Hover */
.hover\:text-creamy:hover { color: #F3e4d1; }
.hover\:underline:hover { text-decoration: underline; }
.hover\:opacity-70:hover { opacity: 0.7; }

.underline { text-decoration: underline; }

/* Components */
.btn {
    padding: 12px 24px;
    border-radius: 15px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}
.btn-espresso { background-color: #452816; color: #fff8ec; }
.btn-espresso:hover { background-color: #5c361d; }
.btn-latte { background-color: #fff8ec; color: #452816; }
.btn-latte:hover { background-color: #f0e6d6; }

nav a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    margin-right: 20px;
    cursor: pointer;
}

.card {
    background-color: #F3e4d1;
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.about-card {
    height: 300px;
}

.card-large {
    min-height: 340px;
    padding-top: 140px;
    padding-bottom: 60px;
}

/* Featured Drinks Animation */
.featured-card-container {
    transition: transform 0.3s ease;
}

.featured-card-container img {
    transition: height 0.3s ease;
}

.featured-card-container.active {
    z-index: 10;
}

.featured-card-container.active img {
    height: 300px !important;
}

.featured-card-container.active .card {
    margin-top: -100px !important;
    padding-top: 120px !important;
    padding-bottom: 40px !important;
    background-color: #442816 !important;
    color: #fff8ec !important;
}

.featured-card-container.active .card h2,
.featured-card-container.active .card h5,
.featured-card-container.active .card h3,
.featured-card-container.active .card a {
    color: #fff8ec !important;
}

/* Inaktiver Zustand (Klein) - überschreibt Inline-Styles der mittleren Karte wenn nicht gehovert */
.featured-card-container:not(.active) img {
    height: 220px !important;
}

.featured-card-container:not(.active) .card {
    margin-top: -80px !important;
    padding-top: 100px !important;
    padding-bottom: 32px !important;
    background-color: #F3e4d1 !important;
    color: #442816 !important;
}

.featured-card-container:not(.active) .card h2,
.featured-card-container:not(.active) .card h5,
.featured-card-container:not(.active) .card h3,
.featured-card-container:not(.active) .card a {
    color: #442816 !important;
}

input, select, textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #452816;
    background-color: #fff8ec;
    color: #452816;
    font-size: 16px;
}




/* Additional Utilities - Unterseite */

.grid { display: grid; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.left-1\/2 { left: 50%; }
.left-\[20p\] { left: 20%; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }

.top-\[20px\] { top: 20px; }
.top-\[55px\] { top: 55px; }
.left-\[20px\] { left: 20px; }
.right-\[20px\] { right: 20px; }

.h-\[34px\] { height: 34px; }
.h-\[160px\] { height: 160px; }
.h-\[380px\] { height: 380px; }
.h-\[510px\] { height: 510px; }
.h-700 { height: 700px; }
.h-360 { height: 360px;}

.w-\[14px\] { width: 14px; }
.w-\[163px\] { width: 163px; }
.w-\[44px\] { width: 44px; }
.w-\[78px\] { width: 78px; }

.max-w-\[300px\] { max-width: 300px; }
.max-w-\[620px\] { max-width: 620px; }
.max-w-\[760px\] { max-width: 760px; }
.max-w-\[980px\] { max-width: 980px; }
.max-w-\[1900px\] { max-width: 1900px; }

.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-\[420px_1fr\] { grid-template-columns: 600px minmax(0, 1fr); }

.gap-3 { gap: 12px; }

.pt-\[34px\] { padding-top: 34px; }
.pt-\[56px\] { padding-top: 56px; }
.pb-\[26px\] { padding-bottom: 26px; }
.pb-\[48px\] { padding-bottom: 48px; }
.pb-\[64px\] { padding-bottom: 64px; }

.p-\[16px\] { padding: 16px; }
.px-\[12px\] { padding-left: 12px; padding-right: 12px; }
.py-\[8px\] { padding-top: 8px; padding-bottom: 8px; }

.mb-3 { margin-bottom: 12px; }

.text-\[11px\] { font-size: 11px; }
.text-\[12px\] { font-size: 12px; }
.text-\[13px\] { font-size: 13px; }
.text-\[14px\] { font-size: 14px; }
.text-\[15px\] { font-size: 15px; }

.text-white { color: #ffffff; }

.leading-\[1\.05\] { line-height: 1.05; }
.leading-\[1\.15\] { line-height: 1.15; }
.leading-\[1\.5\] { line-height: 1.5; }

.list-none { list-style: none; }

.bg-black\/25 { background: rgba(0, 0, 0, 0.3); }

.rounded-\[6px\] { border-radius: 6px; }
.rounded-\[8px\] { border-radius: 8px; }
.rounded-\[10px\] { border-radius: 10px; }
.rounded-\[15px\] { border-radius: 15px; }

.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

.border-0 { border: 0; }
.resize-none { resize: none; }

.flex-row-always {
    flex-direction: row !important;
}

@media (max-width: 1024px) {
    .px-20 { padding-left: 40px; padding-right: 40px; }
    .gap-20 { gap: 40px; }
}

@media (max-width: 900px) {
    .grid-cols-3 { grid-template-columns: 1fr; }
    .grid-cols-\[420px_1fr\] { grid-template-columns: 1fr; }
    .h-\[380px\] { height: 280px; }
}

@media (max-width: 768px) {
    .px-20 {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .py-20 {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    .gap-10, .gap-20 {
        gap: 20px !important;
    }

    /* Breiten auf Mobile auf 100% setzen */
    .w-1\/2, .w-1\/3, .w-1\/4, .w-2\/3, .w-3\/4 {
        width: 100% !important;
    }

    .grid-cols-2 {
        grid-template-columns: 1fr !important;
    }

    /* Feste Höhen aufheben */
    .h-1080, .h-700, .h-screen, .h-360 {
        height: auto !important;
        min-height: 200px;
    }

    /* Flex-Container auf Mobile stapeln */
    .flex:not(.flex-row-always) {
        flex-direction: column !important;
    }

    .flex-row-always > .w-1\/4 {
        width: 25% !important;
    }
    .flex-row-always > .w-1\/2 {
        width: 50% !important;
    }
    
    .items-end {
        align-items: center !important;
    }

    nav {
        /* display: none; */
    }

    h1, .text-6xl, .text-4xl {
        font-size: 32px !important;
    }

    h2, .text-3xl {
        font-size: 26px !important;
    }

    h3 {
        font-size: 22px;
    }

    h4 {
        font-size: 20px;
        width: 100% !important;
        max-width: 100% !important;
    }

    h5 {
        font-size: 18px;
        width: 100% !important;
        max-width: 100% !important;
    }

    p, .text-xl {
        font-size: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Alle max-w-Klassen auf Mobile begrenzen */
    [class*="max-w-"] {
        max-width: 100% !important;
    }

    /* Alle h-[...] Klassen auf auto setzen */
    [class*="h-["] {
        height: auto !important;
    }

    /* Produktbilder auf Unterseite */
    .product-image {
        max-height: 300px;
        width: auto;
    }

    .card {
        padding: 20px !important;
    }

    /* Header spezifisch */
    header {
        padding-top: 140px !important;
        padding-bottom: 60px !important;
        text-align: center;
        justify-content: center !important;
        align-items: center !important;
        height: auto !important;
        min-height: 100vh;
    }
    
    header .absolute.top-\[20px\].left-\[20px\] {
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: auto !important;
        text-align: center;
        display: flex;
        justify-content: center;
    }

    header .absolute.top-\[20px\].left-\[20px\] img {
        width: 100px !important;
    }
    
    #mobile-menu-toggle {
        display: block !important;
    }

    #main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #442816;
        z-index: 1000;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: none !important;
    }

    #main-nav.nav-active {
        display: flex !important;
    }

    #main-nav ul {
        flex-direction: column !important;
        gap: 20px !important;
        align-items: center;
    }

    #main-nav ul li a h6 {
        font-size: 24px !important;
        color: #fff8ec !important;
    }
    
    header .absolute.right-\[20px\].z-50 {
        right: 10px !important;
        top: 20px !important;
        z-index: 1100 !important;
        gap: 15px !important;
    }
    
    header .absolute.right-\[20px\].z-50 img {
        padding-right: 0 !important;
        height: 25px !important;
    }

    /* Featured Drinks */
    #featured {
        height: auto !important;
        padding-bottom: 60px !important;
    }
    
    #featured .flex.items-end {
        padding-top: 40px !important;
        gap: 20px !important; /* Weniger Gap für Stack */
    }

    .featured-card-container {
        width: 100% !important;
    }

    .featured-card-container.active img, 
    .featured-card-container:not(.active) img {
        height: 250px !important;
    }

    .featured-card-container.active .card,
    .featured-card-container:not(.active) .card {
        margin-top: -60px !important;
        padding-top: 80px !important;
        padding-bottom: 30px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* About Section */
    #about .flex.justify-between {
        gap: 15px !important;
    }

    .about-card {
        height: auto !important;
        min-height: 150px !important;
        padding: 20px !important;
    }

    .about-card h3 {
        font-size: 18px !important;
    }

    .about-card img {
        height: 60px !important;
        margin-bottom: 10px !important;
    }
    
    /* Finder Section */
    #finder .flex.gap-10 {
        gap: 15px !important;
    }

    #finder select {
        min-width: 0 !important;
        width: 100% !important;
    }

    /* Kaffeetabelle responsive umbauen */
    .table-container {
        overflow-x: hidden !important; /* Kein Scrollen mehr */
        padding-left: 0 !important;
        padding-right: 0 !important;
        background: transparent !important;
    }
    
    .table-row-header {
        display: none !important; /* Header weg auf Mobile */
    }

    .table-body {
        min-width: 0 !important;
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
        gap: 15px !important;
    }

    .table-row {
        flex-direction: column !important;
        background-color: #F3e4d1 !important;
        border-radius: 15px !important;
        padding: 15px !important;
        margin-bottom: 0 !important;
        gap: 0 !important;
        border: 1px solid rgba(69, 40, 22, 0.1) !important;
        align-items: stretch !important;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    }

    .cell-card {
        width: 100% !important;
        background: transparent !important;
        padding: 8px 0 !important;
        border-radius: 0 !important;
        min-height: auto !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        border-bottom: 1px solid rgba(69, 40, 22, 0.05) !important;
    }

    .cell-card:last-child {
        border-bottom: none !important;
    }

    .cell-card:nth-child(1) {
        justify-content: center !important;
        border-bottom: 1px solid #442816 !important;
        padding-top: 0 !important;
        margin-bottom: 10px !important;
        padding-bottom: 10px !important;
    }

    .cell-card:nth-child(1) h3 {
        font-size: 20px !important;
        font-family: LeagueSpartanBold !important;
        color: #442816 !important;
    }

    .cell-card h3 {
        font-size: 15px !important;
        line-height: 1.2 !important;
        text-align: right !important;
        margin-bottom: 0 !important;
    }

    /* Labels für die Informationen hinzufügen */
    .cell-card::before {
        font-family: LeagueSpartanBold;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        opacity: 0.6;
        color: #442816;
    }

    .cell-card:nth-child(1)::before { content: none !important; }
    .cell-card:nth-child(2)::before { content: "Intensität"; }
    .cell-card:nth-child(3)::before { content: "Geschmack"; }
    .cell-card:nth-child(4)::before { content: "Preis"; }

    /* Footer */
    footer {
        height: auto !important;
        text-align: center;
    }
    
    footer .flex {
        align-items: center !important;
        justify-content: center !important;
    }
}
