/* ============================================
   Fuß-Oase Bieber - Main Stylesheet
   ============================================ */

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

/* CSS Variables - Design System */
:root {
    /* Colors */
    --primary: #3d2817;
    --secondary: #228b22;
    --background: #eae2d1;
    --text-dark: #402019;
    --text-light: #5f534b;
    --border-color: #bccfb8;
    --frame-green: #6f9b73;
    --card-bg: #f3ede3;
    --section-foot: #228b22;
    --section-massage: #8b6f47;
    --section-home: #6ba82a;
    --section-price: #8a5f77;

    /* Spacing */
    --container-max: 1200px;
    --container-padding: 1.5rem;
    --section-padding: 4rem 0;

    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6.8rem;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: var(--background);
    line-height: 1.6;
}

/* ============================================
   Container & Layout
   ============================================ */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
    position: sticky;
    top: 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem var(--container-padding);
    max-width: var(--container-max);
    margin: 0 auto;
    position: relative;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
    flex-shrink: 0;
}

.navbar-logo span {
    white-space: nowrap;
}

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

.nav-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: var(--container-padding);
    width: min(320px, calc(100vw - 2rem));
    display: flex;
    flex-direction: column;
    list-style: none;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.22s ease, opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
}

.nav-menu .mobile-only {
    display: none;
}

.nav-link {
    display: grid;
    grid-template-columns: 46px 1fr;
    align-items: stretch;
    gap: 0.65rem;
    min-height: 56px;
    padding: 0.35rem 1rem 0.35rem 0.35rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.nav-link-thumb {
    width: 46px;
    height: 100%;
    min-height: 100%;
    border-radius: 7px;
    object-fit: cover;
    flex: 0 0 auto;
    border: 1px solid #b7c9b2;
    transition: transform 0.22s ease;
}

@media (hover: hover) and (pointer: fine) {
    .nav-link:hover .nav-link-thumb,
    .nav-link:focus-visible .nav-link-thumb {
        transform: scale(1.12);
    }
}

.nav-menu li:last-child .nav-link {
    border-bottom: none;
}

.nav-menu.active {
    max-height: 460px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-link:hover {
    background: #f3f7f1;
    color: #2f5f33;
}

.nav-link:focus-visible,
.navbar-logo:focus-visible,
.hamburger:focus-visible,
.primary-nav-item:focus-visible,
.btn:focus-visible,
.contact-info a:focus-visible,
.footer-section a:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 4px;
    border-radius: 8px;
}

.hamburger {
    display: inline-flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: center;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    padding: 0.45rem 0.55rem;
    color: var(--primary);
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger strong {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
}

.primary-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--border-color);
}

.primary-nav-item {
    text-decoration: none;
    color: white;
}

.primary-nav-images {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.primary-nav-image-item {
    display: block;
}

.primary-nav-image-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.primary-nav-label {
    display: block;
    padding: 1.2rem 1rem;
    font-size: 1.7rem;
    font-weight: 500;
    color: #f7f5ef;
    letter-spacing: 0.01em;
    line-height: 1.1;
    transition: padding 0.24s ease, font-size 0.24s ease;
}

.primary-nav-item.foot .primary-nav-label {
    background-color: #8fb996;
}

.primary-nav-item.massage .primary-nav-label {
    background-color: #b79977;
}

.primary-nav-item.home .primary-nav-label {
    background-color: #5b8d66;
}

.primary-nav-item.price .primary-nav-label {
    background-color: #b6849d;
}

.primary-nav-item:hover .primary-nav-label,
.primary-nav-item:focus-visible .primary-nav-label {
    filter: brightness(1.05);
}

@media (max-width: 1120px) {
    .navbar-logo span {
        font-size: 1rem;
    }

    .logo-img {
        height: 36px;
    }

    .primary-nav-images {
        display: none;
    }

    .primary-nav-label {
        padding: 0.85rem 0.75rem;
        font-size: 1.35rem;
    }
}

@media (max-width: 760px) {
    .navbar-logo span {
        display: none;
    }

    .nav-menu {
        right: 0.75rem;
    }

    .nav-menu .desktop-only {
        display: none;
    }

    .nav-menu .mobile-only {
        display: list-item;
    }

    .nav-menu.active {
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    html {
        scroll-padding-top: 4.8rem;
    }

    .primary-nav {
        display: none;
    }
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    background: linear-gradient(135deg, #f3ede3, #ede5d4);
    padding: 3rem var(--container-padding);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text {
    text-align: center;
}

.hero-logo {
    height: 120px;
    width: auto;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.hero-text h1 {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.hero-text h2 {
    font-size: 1.8rem;
    color: #6f4c30;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(61, 40, 23, 0.15);
}

/* Quick Navigation Cards */
.nav-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
}

.nav-card {
    padding: 2rem;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.nav-card:focus-visible {
    transform: translateY(-4px);
}

.nav-card h3 {
    font-size: 1.3rem;
}

.nav-card.foot {
    background-color: var(--section-foot);
}

.nav-card.massage {
    background-color: var(--section-massage);
}

.nav-card.home {
    background-color: var(--section-home);
}

.nav-card.price {
    background-color: var(--section-price);
}

/* ============================================
   Sections
   ============================================ */

.section {
    padding: var(--section-padding);
    border-bottom: 1px solid var(--border-color);
}

.section h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
}

.section-media {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #9db99f;
    box-shadow: 0 8px 24px rgba(61, 40, 23, 0.12);
}

.section-title-overlay {
    position: absolute;
    left: 50%;
    bottom: 0.25rem;
    z-index: 1;
    margin: 0;
    transform: translateX(-50%);
    width: 50%;
    max-width: calc(100% - 1rem);
    min-width: 240px;
    padding: 0.55rem 1.15rem;
    background: rgba(255, 255, 255, 0.92);
    color: #1f140d;
    text-align: center;
    border: 2px solid #5f8964;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    text-shadow: none;
}

.section-intro {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.section-image {
    width: 100%;
    aspect-ratio: 16 / 6;
    object-fit: cover;
    display: block;
    object-position: center center;
}

.image-focus-foot {
    object-position: center 58%;
}

.image-focus-relax {
    object-position: center 90%;
}

.image-focus-hands {
    object-position: center 52%;
}

.image-focus-offers {
    object-position: center 52%;
}

.image-focus-auto {
    object-position: center 28%;
}

.image-focus-prices {
    object-position: center 55%;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.services-grid--paired {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.services-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 2rem;
    margin-bottom: 2rem;
}

.services-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.services-columns .price-table {
    margin: 0;
}

.service-card--fullwidth {
    grid-column: 1 / -1;
}

.service-card,
.price-table,
.package-card,
.voucher-info,
.card-item,
.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.service-card {
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.service-card .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary);
    margin: 0;
}

.service-card .duration {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0;
    margin-bottom: 0.25rem;
}

.service-card .description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0.6rem;
}

.service-card .description:last-of-type {
    margin-bottom: 1rem;
}

.article-card {
    text-align: left;
    margin: 1.25rem 0 2rem;
}

.hero-text .article-card {
    margin: 1.5rem auto 0;
    max-width: 720px;
}

.article-card .description {
    margin-bottom: 0.75rem;
}

.article-card .description:last-of-type {
    margin-bottom: 0;
}

.article-card:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.service-card.large {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.service-card.large .subtitle {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Price Tables */
.price-table {
    margin: 2rem 0;
}

.price-table h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.price-table table {
    width: 100%;
    border-collapse: collapse;
}

.price-table tr {
    border-bottom: 1px solid var(--border-color);
}

.price-table tr:last-child {
    border-bottom: none;
}

.price-table td {
    padding: 1rem 0.5rem;
    vertical-align: middle;
}

.price-table td:first-child {
    width: 75%;
}

.price-table td:last-child {
    width: 25%;
    text-align: right;
    font-weight: 700;
    white-space: nowrap;
}

.prices-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.prices-section .price-table {
    margin: 0;
}

.prices-section .price-table h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #7cab84;
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.95rem 1.3rem;
    margin: 0 0 0.2rem;
    border-radius: 8px;
}

.prices-section .price-table table {
    background: white;
}

.prices-section .price-table td {
    padding: 1rem 1.3rem;
}

.price-table--header-split h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #7cab84;
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.95rem 1.3rem;
    margin: 0 0 0.2rem;
    border-radius: 8px;
}

.price-table--header-split td {
    padding: 1rem 1.3rem;
}

/* Packages */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.package-card,
.voucher-info,
.card-item {
    text-align: center;
}

.package-card h3,
.voucher-info h3,
.loyalty-cards h3,
.card-item .original-price {
    color: var(--primary);
}

.package-card h3,
.voucher-info h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.package-card .price {
    font-size: 1.8rem;
    color: var(--secondary);
    font-weight: bold;
    margin: 1rem 0;
}

.package-card .description,
.voucher-info p,
.card-item .save {
    color: var(--text-light);
    line-height: 1.65;
}

/* Voucher Info */
.voucher-info {
    margin-bottom: 2rem;
    padding: 2.25rem;
}

.voucher-info h3 {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.voucher-info p {
    margin: 0.5rem 0;
}

.voucher-info strong {
    color: var(--primary);
}

/* Loyalty Cards */
.loyalty-cards h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.35rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.original-price {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.card-price {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

.save {
    font-size: 0.8rem;
    display: block;
    margin-top: 0.3rem;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.contact-info {
    min-height: 100%;
}

.contact-info--address {
    padding: 1.5rem 1.75rem;
}

.contact-info h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact-info--address h3 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

.contact-info p {
    color: var(--text-light);
    margin: 0.5rem 0;
    line-height: 1.8;
}

.contact-info--address p {
    font-size: 1.3rem;
    line-height: 1.65;
}

.contact-info a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Map Container */
.map-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-placeholder {
    padding: 2rem;
    text-align: left;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
}

.map-placeholder p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.55;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--secondary);
    color: white;
}

.btn-primary:hover {
    background-color: #1a6b1a;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--card-bg);
    color: var(--primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

.btn-ghost {
    background: none;
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.btn-ghost:hover {
    background-color: var(--card-bg);
}

#load-map-btn {
    margin-top: 1rem;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background-color: var(--primary);
    color: white;
    padding: 3rem var(--container-padding) 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0.5rem 0;
    line-height: 1.6;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-content::after {
    content: "";
    grid-column: 1 / -1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    text-align: center;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        --section-padding: 2rem 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text h2 {
        font-size: 1.4rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .section h2 {
        font-size: 1.8rem;
    }

    .section-title-overlay {
        bottom: 0.2rem;
        width: 58%;
        max-width: calc(100% - 0.9rem);
        min-width: 220px;
        padding: 0.5rem 1rem;
        font-size: 1.8rem;
    }

    .nav-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .nav-card {
        min-height: 100px;
        padding: 1rem;
    }

    .nav-card h3 {
        font-size: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-grid--paired {
        grid-template-columns: 1fr;
    }

    .services-columns {
        grid-template-columns: 1fr;
    }

    .service-card--fullwidth {
        grid-column: auto;
    }

    .prices-grid {
        grid-template-columns: 1fr;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-buttons .btn {
        width: 100%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-info--address h3 {
        font-size: 1.7rem;
    }

    .contact-info--address p {
        font-size: 1.1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        height: 80px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text h2 {
        font-size: 1.2rem;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .section-image {
        aspect-ratio: 4 / 3;
    }

    .section-title-overlay {
        bottom: 0.15rem;
        width: 70%;
        max-width: calc(100% - 0.8rem);
        min-width: 0;
        padding: 0.45rem 0.85rem;
        font-size: 1.5rem;
    }

    .nav-cards {
        grid-template-columns: 1fr;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .price-table td:first-child,
    .price-table td:last-child {
        width: auto;
    }

    .price-table td:last-child {
        text-align: right;
    }
}
