/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
 
/* Accessibility & Typography Enhancements */
:root {
    --base-font-size: 16px;
    --line-height: 1.7;
    --brand-forest: #2d5016;
    --brand-sage: #7cb342;
}

html { font-size: var(--base-font-size); }
body { font-size: 1rem; line-height: var(--line-height); color: var(--brand-forest); }

/* Skip-link (for keyboard users) */
.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus,
.skip-link:active {
    left: 10px;
    top: 10px;
    width: auto;
    height: auto;
    padding: 8px 12px;
    background: var(--brand-sage);
    color: #fffef7;
    border-radius: 6px;
    z-index: 1200;
}

/* Visible focus state for keyboard users */
:focus-visible {
    outline: 3px solid rgba(124,179,66,0.3);
    outline-offset: 3px;
}

/* Sticky header for easier navigation */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(6px);
}
html,
body {
    height: 100%;
    font-family: 'Figtree', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body {
    background: linear-gradient(135deg, #f1f1f1 0%, #e8f5e9 100%);
    background-attachment: fixed;
}

/* Flex Container Setup */
.flex-container {
    display: flex;
}

.flex-container div {
    background: rgb(160, 98, 43);
    flex: 1;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.15);
    background: linear-gradient(135deg, #2d5016 0%, #3d6b23 100%);
    color: #fffef7;
    flex-wrap: wrap;
    transition: all 0.3s ease;
}

#nav-title {
    font-size: 2.2em;
    font-weight: 700;
    margin-right: auto;
    text-align: center;
    background: linear-gradient(135deg, #fffef7 0%, #a8d5ad 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    text-shadow: none;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(45, 80, 22, 0.15));
}

/* Navigation Styling */
nav {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 6px;
    padding: 0;
    margin: 0;
}

nav li {
    padding: 6px 12px;
    transition: background-color 0.3s ease;
}

nav a {
    font-size: 0.95rem;
}

nav a {
    text-decoration: none;
    color: #fffef7;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #a8d5ad;
}

nav li:hover {
    background-color: rgba(168, 213, 173, 0.3);
    border-radius: 12px;
}

/* Flexbox Setup for Icons */
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon {
    width: 48px;
    height: auto;
    margin-top: 4px;
    border-radius: 12px;
    box-shadow: #0b5aaa 3px 3px 4px;
}

/* Logo */
.logo {
    width: 62px;
    height: auto;
    border: #7cb342 solid 2px;
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.2);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

/* Images */
.responsive-img,
.wasser-img,
.spike-img,
.smoothie-img {
    max-width: 40%;
    height: auto;
    border-radius: 50%;
    margin: 20px auto;
    display: block;
    box-shadow: 0 8px 30px rgba(124, 179, 66, 0.25);
}

.responsive-img {
    box-shadow: 0 8px 30px rgba(124, 179, 66, 0.25);
}

/* Main Content */
.content {
    max-width: 960px;
    margin: 40px auto;
    padding: 24px;
    background: linear-gradient(135deg, rgba(124, 179, 66, 0.1) 0%, rgba(139, 148, 103, 0.1) 100%);
    color: #2d5016;
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.1);
    border-radius: 25px;
    text-align: center;
    border: 1px solid rgba(124, 179, 66, 0.2);
}

h1 {
    color: #2d5016;
    font-size: 36px;
    margin: 0 0 16px;
}

h2 {
    color: #7cb342;
    font-size: 24px;
    margin: 32px 0 16px;
}

ul {
    width: 100%;
    padding: 0;
    list-style: none;
}

ul li {
    font-size: 18px;
    color: #2d5016;
    margin: 10px 0;
}

/* Link Styling */
a {
    color: #7cb342;
    font-weight: bold;
    transition: color 0.3s ease;
}

a:hover {
    color: #558b2f;
}

p {
    text-align: center;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #2d5016 0%, #3d6b23 100%);
    color: #fffef7;
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        align-items: center;
    }

    #nav-title {
        margin: 0;
        font-size: 1.8em;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    nav li {
        margin-bottom: 10px;
        padding: 8px 10px;
    }

    .content {
        padding: 10px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 20px;
    }

    ul li {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px 15px;
    }

    nav ul {
        align-items: center;
        width: 100%;
    }

    nav li {
        padding: 8px 0;
        margin: 0;
        text-align: center;
    }

    .content {
        margin: 20px auto;
    }
}

/* Hide Icons on Smaller Screens */
@media (max-width: 300px) {

    .icon,
    .logo {
        display: none;
    }

    #nav-title {
        display: flex;
        align-items: center;
        font-size: 1.4em;
        margin-bottom: 10px;
        
    }

    h1 {
        font-size: 24px;
    }
}

.impressum img {
    font-size: 12px;
    color: #ffe8d6;
    margin-top: 20px;
    list-style-type: none;
    padding: 0;     
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
}

/* Product Cards Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 30px 0;
    text-align: center;
}

.product-card {
    background: linear-gradient(135deg, rgba(200, 230, 201, 0.4) 0%, rgba(139, 148, 103, 0.3) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(124, 179, 66, 0.4);
    border-radius: 30px;
    padding: 28px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(45, 80, 22, 0.1);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7cb342, #a8d5ad);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(124, 179, 66, 0.2);
    border-color: rgba(124, 179, 66, 0.6);
    background: linear-gradient(135deg, rgba(200, 230, 201, 0.5) 0%, rgba(139, 148, 103, 0.4) 100%);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card h3 {
    color: #2d5016;
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.product-card p {
    color: #2d5016;
    font-size: 15px;
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.6;
    opacity: 0.9;
}

.btn-link {
    display: inline-block;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 24px;
    background: linear-gradient(135deg, #7cb342 0%, #558b2f 100%);
    border: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    align-self: center; /* Changed this line to center the button */
    font-size: 13px;
    letter-spacing: 0.5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(124, 179, 66, 0.3);
}

.btn-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-link:hover {
    transform: translateX(3px);
    box-shadow: 0 8px 25px rgba(124, 179, 66, 0.4);
    background: linear-gradient(135deg, #558b2f 0%, #33691e 100%);
    color: #fff;
}

.about-box,
.tools-intro-box,
.page-intro-box {
    margin: 24px auto 8px;
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(124, 179, 66, 0.28);
    background: linear-gradient(135deg, rgba(76, 242, 131, 0.396) 0%, rgba(241, 248, 233, 0.5) 100%);
    box-shadow: 0 8px 20px rgba(45, 80, 22, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.55);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.about-box::before,
.tools-intro-box::before,
.page-intro-box::before {
    content: none;
}

.about-box h2,
.tools-intro-box h2,
.page-intro-box h2 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    color: #2d5016;
}

.about-box p,
.tools-intro-box p,
.page-intro-box p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #2d5016;
    text-align: left;
}

.detox-page {
    position: relative;
    overflow-x: hidden;
}

.flying-lemons {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.detox-page .content,
.detox-page footer {
    position: relative;
    z-index: 2;
}

.lemon {
    position: absolute;
    bottom: -12vh;
    font-size: 2rem;
    opacity: 0;
    animation: lemon-fly 14s linear infinite;
    filter: drop-shadow(0 4px 6px rgba(45, 80, 22, 0.25));
}

.lemon-1 {
    left: 4%;
    animation-duration: 12s;
    animation-delay: 0s;
}

.lemon-2 {
    left: 20%;
    animation-duration: 15s;
    animation-delay: 2s;
}

.lemon-3 {
    left: 38%;
    animation-duration: 11s;
    animation-delay: 4s;
}

.lemon-4 {
    left: 58%;
    animation-duration: 16s;
    animation-delay: 1s;
}

.lemon-5 {
    left: 75%;
    animation-duration: 13s;
    animation-delay: 5s;
}

.lemon-6 {
    left: 90%;
    animation-duration: 17s;
    animation-delay: 3s;
}

@keyframes lemon-fly {
    0% {
        transform: translate3d(-8vw, 8vh, 0) rotate(0deg);
        opacity: 0;
    }
    15% {
        opacity: 0.9;
    }
    85% {
        opacity: 0.9;
    }
    100% {
        transform: translate3d(10vw, -120vh, 0) rotate(360deg);
        opacity: 0;
    }
}

.spike-page {
    position: relative;
    overflow-x: hidden;
}

.flying-shields {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.spike-page .content,
.spike-page footer {
    position: relative;
    z-index: 2;
}

.shield {
    position: absolute;
    bottom: -10vh;
    font-size: 1.4rem;
    opacity: 0;
    animation: shield-fly 13s ease-in-out infinite;
    filter: drop-shadow(0 3px 5px rgba(11, 90, 170, 0.35));
}

.shield-1 {
    left: 6%;
    animation-duration: 11s;
    animation-delay: 0s;
}

.shield-2 {
    left: 22%;
    animation-duration: 14s;
    animation-delay: 2.5s;
}

.shield-3 {
    left: 40%;
    animation-duration: 12s;
    animation-delay: 1s;
}

.shield-4 {
    left: 57%;
    animation-duration: 16s;
    animation-delay: 3.5s;
}

.shield-5 {
    left: 74%;
    animation-duration: 13s;
    animation-delay: 5s;
}

.shield-6 {
    left: 89%;
    animation-duration: 15s;
    animation-delay: 2s;
}

@keyframes shield-fly {
    0% {
        transform: translate3d(-4vw, 8vh, 0) rotate(-10deg);
        opacity: 0;
    }
    20% {
        opacity: 0.85;
    }
    50% {
        transform: translate3d(2vw, -45vh, 0) rotate(8deg);
    }
    80% {
        opacity: 0.85;
    }
    100% {
        transform: translate3d(6vw, -118vh, 0) rotate(-6deg);
        opacity: 0;
    }
}

.smoothie-page {
    position: relative;
    overflow-x: hidden;
}

.flying-fruits {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.smoothie-page .content,
.smoothie-page footer {
    position: relative;
    z-index: 2;
}

.fruit {
    position: absolute;
    bottom: -11vh;
    font-size: 1.6rem;
    opacity: 0;
    animation: fruit-fly 14s linear infinite;
    filter: drop-shadow(0 4px 6px rgba(124, 179, 66, 0.25));
}

.fruit-1 { left: 4%;  animation-duration: 11s; animation-delay: 0s; }
.fruit-2 { left: 14%; animation-duration: 13s; animation-delay: 1.6s; }
.fruit-3 { left: 25%; animation-duration: 15s; animation-delay: 3.2s; }
.fruit-4 { left: 37%; animation-duration: 12s; animation-delay: 0.8s; }
.fruit-5 { left: 50%; animation-duration: 16s; animation-delay: 2.4s; }
.fruit-6 { left: 64%; animation-duration: 14s; animation-delay: 4s; }
.fruit-7 { left: 78%; animation-duration: 12.5s; animation-delay: 5.2s; }
.fruit-8 { left: 90%; animation-duration: 15.5s; animation-delay: 2.8s; }

@keyframes fruit-fly {
    0% {
        transform: translate3d(-7vw, 10vh, 0) rotate(0deg);
        opacity: 0;
    }
    15% {
        opacity: 0.9;
    }
    50% {
        transform: translate3d(4vw, -48vh, 0) rotate(180deg);
    }
    85% {
        opacity: 0.9;
    }
    100% {
        transform: translate3d(9vw, -120vh, 0) rotate(360deg);
        opacity: 0;
    }
}

.tools-page {
    position: relative;
    overflow-x: hidden;
}

.flying-kitchen {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.tools-page .content,
.tools-page footer {
    position: relative;
    z-index: 2;
}

.kitchen {
    position: absolute;
    bottom: -11vh;
    font-size: 1.55rem;
    opacity: 0;
    animation: kitchen-fly 15s ease-in-out infinite;
    filter: drop-shadow(0 4px 6px rgba(45, 80, 22, 0.25));
}

.kitchen-1 { left: 5%;  animation-duration: 12s; animation-delay: 0s; }
.kitchen-2 { left: 16%; animation-duration: 14s; animation-delay: 1.4s; }
.kitchen-3 { left: 28%; animation-duration: 16s; animation-delay: 3.3s; }
.kitchen-4 { left: 40%; animation-duration: 13s; animation-delay: 0.8s; }
.kitchen-5 { left: 55%; animation-duration: 15s; animation-delay: 2.1s; }
.kitchen-6 { left: 68%; animation-duration: 12.5s; animation-delay: 4.2s; }
.kitchen-7 { left: 81%; animation-duration: 17s; animation-delay: 5.1s; }
.kitchen-8 { left: 92%; animation-duration: 14.5s; animation-delay: 2.9s; }

@keyframes kitchen-fly {
    0% {
        transform: translate3d(-6vw, 10vh, 0) rotate(-12deg);
        opacity: 0;
    }
    18% {
        opacity: 0.85;
    }
    50% {
        transform: translate3d(3vw, -52vh, 0) rotate(10deg);
    }
    82% {
        opacity: 0.85;
    }
    100% {
        transform: translate3d(8vw, -120vh, 0) rotate(-8deg);
        opacity: 0;
    }
}

.infektionen-page {
    position: relative;
    overflow-x: hidden;
}

.flying-germs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.infektionen-page .content,
.infektionen-page footer {
    position: relative;
    z-index: 2;
}

.germ {
    position: absolute;
    bottom: -11vh;
    font-size: 1.5rem;
    opacity: 0;
    animation: germ-fly 14s linear infinite;
    filter: drop-shadow(0 4px 6px rgba(11, 90, 170, 0.25));
}

.germ-1 { left: 5%;  animation-duration: 11.5s; animation-delay: 0s; }
.germ-2 { left: 18%; animation-duration: 13.5s; animation-delay: 1.6s; }
.germ-3 { left: 32%; animation-duration: 15s; animation-delay: 3.1s; }
.germ-4 { left: 49%; animation-duration: 12.5s; animation-delay: 0.9s; }
.germ-5 { left: 68%; animation-duration: 14.8s; animation-delay: 4.2s; }
.germ-6 { left: 86%; animation-duration: 13.2s; animation-delay: 2.7s; }

@keyframes germ-fly {
    0% {
        transform: translate3d(-7vw, 10vh, 0) rotate(0deg);
        opacity: 0;
    }
    15% {
        opacity: 0.85;
    }
    50% {
        transform: translate3d(4vw, -50vh, 0) rotate(160deg);
    }
    85% {
        opacity: 0.85;
    }
    100% {
        transform: translate3d(9vw, -120vh, 0) rotate(320deg);
        opacity: 0;
    }
}

.nebennieren-page {
    position: relative;
    overflow-x: hidden;
}

.flying-bolts {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.nebennieren-page .content,
.nebennieren-page footer {
    position: relative;
    z-index: 2;
}

.bolt {
    position: absolute;
    bottom: -11vh;
    font-size: 1.5rem;
    opacity: 0;
    animation: bolt-fly 13.5s ease-in-out infinite;
    filter: drop-shadow(0 4px 6px rgba(255, 193, 7, 0.35));
}

.bolt-1 { left: 6%;  animation-duration: 11s; animation-delay: 0s; }
.bolt-2 { left: 20%; animation-duration: 14s; animation-delay: 1.8s; }
.bolt-3 { left: 36%; animation-duration: 12.5s; animation-delay: 3.4s; }
.bolt-4 { left: 54%; animation-duration: 15.2s; animation-delay: 0.7s; }
.bolt-5 { left: 73%; animation-duration: 13.8s; animation-delay: 4.1s; }
.bolt-6 { left: 90%; animation-duration: 12.2s; animation-delay: 2.4s; }

@keyframes bolt-fly {
    0% {
        transform: translate3d(-6vw, 10vh, 0) rotate(-10deg);
        opacity: 0;
    }
    18% {
        opacity: 0.88;
    }
    50% {
        transform: translate3d(3vw, -48vh, 0) rotate(12deg);
    }
    82% {
        opacity: 0.88;
    }
    100% {
        transform: translate3d(8vw, -120vh, 0) rotate(-8deg);
        opacity: 0;
    }
}

@media (min-width: 601px) and (max-width: 1024px) {
    header {
        justify-content: center;
        gap: 10px;
        padding: 10px 12px;
    }

    #nav-title {
        margin-right: 0;
        font-size: 1.8em;
        letter-spacing: 1px;
    }

    nav {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
    }

    nav ul {
        width: max-content;
        min-width: 100%;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 8px;
        padding: 0 4px;
    }

    nav li {
        flex: 0 0 auto;
        padding: 6px 8px;
        border-radius: 12px;
    }

    nav a {
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .icon {
        width: 44px;
    }

    .content {
        width: min(100% - 24px, 960px);
        margin: 24px auto;
        padding: 20px;
    }

    .responsive-img,
    .wasser-img,
    .spike-img,
    .smoothie-img {
        max-width: 58%;
    }
}

