/* Desktop-Zentrierung für 'Über mich' — nur oberhalb des Mobile-Breakpoints */
@media (min-width: 993px) {
    .nav-link--about {
        width: auto;
        text-align: center;
        justify-content: center;
        display: inline-flex;
        align-items: center;
    }
}

/* Base and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Font Awesome Debug */
.fas,
.fa {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    display: inline-block !important;
    text-rendering: auto !important;
}

html {
    scroll-behavior: smooth;
    /* Use CSS custom properties for dynamic viewport height */
    --vh: 1vh;
    overflow-x: clip;
    /* Offset for the fixed header so anchor targets aren't hidden behind it */
    scroll-padding-top: 80px;
}

:root {
    --color-background: #F4D9EA;
    --color-background-alt: #DEB1A2;
    --color-footer-bg: #5A2B24;
    --color-surface: #FFFFFF;
    --color-surface-elevated: #FFF7FB;
    --color-accent: #944D42;
    --color-accent-hover: #7A392F;
    --color-accent-contrast: #ffffff;
    --color-text: #2D1411;
    --color-text-muted: #522D27;
    --color-text-soft: #70423A;
    --color-text-inverse: #ffffff;
    --color-text-inverse-muted: rgba(255, 255, 255, 0.90);
    --color-border: rgba(148, 77, 66, 0.18);
    --shadow-soft: 0 12px 30px rgba(78, 25, 36, 0.08);
    --shadow-strong: 0 22px 50px rgba(78, 25, 36, 0.16);
    --gradient-accent: linear-gradient(135deg, #944D42 0%, #BA7263 55%, #703328 100%);
    --gradient-accent-hover: linear-gradient(135deg, #7A392F 0%, #A25E50 55%, #59251D 100%);
    --gradient-soft: linear-gradient(135deg, rgba(148, 77, 66, 0.12) 0%, rgba(186, 114, 99, 0.18) 100%);
    /* 3-stufige Gradients */
    --gradient-footcare: linear-gradient(135deg, #B0A79A 0%, #D8D2C9 55%, #8E8577 100%);
    --gradient-footcare-soft: linear-gradient(135deg, rgba(192, 184, 174, 0.14) 0%, rgba(210, 203, 194, 0.65) 55%, rgba(176, 168, 158, 0.20) 100%);
    --gradient-manicure: linear-gradient(135deg, #A8526F 0%, #C87A95 55%, #883953 100%);
    --gradient-manicure-soft: linear-gradient(135deg, rgba(168, 82, 111, 0.14) 0%, rgba(255, 240, 246, 0.6) 55%, rgba(136, 57, 83, 0.20) 100%);
}

.footer-section a {
    display: inline;
    min-height: 0;
    padding: 0;
    align-items: baseline;
    color: var(--color-text-inverse-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    overflow-x: clip;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.mobile-menu-open {
    overflow: hidden;
    overscroll-behavior: none;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Arial';
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

button,
.btn,
.nav-link,
.service-cta {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
}

/* Buttons */
.btn {
    position: relative;
    top: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: top 0.2s ease, color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
}

.button-icon {
    display: inline-block;
    flex: 0 0 auto;
    width: 1.3em;
    height: 1.3em;
    vertical-align: middle;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--color-accent-contrast);
    border: none;
    outline: none;
    text-shadow: none;
    box-shadow: 0 4px 15px rgba(148, 77, 66, 0.25);
}

.btn-primary:hover {
    background: var(--gradient-accent-hover);
    top: -2px;
    box-shadow: 0 10px 25px rgba(148, 77, 66, 0.35);
}

.btn-outline {
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    background: transparent;
    padding: 12px 22px;
}

.btn-outline:hover {
    background: var(--color-accent);
    color: var(--color-accent-contrast);
    border-color: var(--color-accent);
    top: -2px;
    box-shadow: 0 8px 20px rgba(148, 77, 66, 0.25);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    border: none;
}

/* Navigation */
.header {
    background: rgba(255, 250, 253, 0.90);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    box-shadow: 0 4px 20px rgba(78, 25, 36, 0.05);
    border-bottom: 1px solid rgba(148, 77, 66, 0.12);
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
    min-height: 64px;
    overflow: visible;
}

.navbar {
    padding: 0.5rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-accent);
    min-height: auto;
}

.logo-icon {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    background-color: currentColor;
    -webkit-mask: url("/assets/images/icon/Logo.svg") no-repeat center / contain;
    mask: url("/assets/images/icon/Logo.svg") no-repeat center / contain;
    flex: 0 0 auto;
    vertical-align: -0.125em;
}

.nav-logo-link .logo-icon--nav {
    width: 40px;
    height: 40px;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo-link .logo-icon--footer {
    width: 26px;
    height: 26px;
    background-color: #ffffff;
}

.site-logo {
    display: block;
    height: 36px;
    width: auto;
    object-fit: contain;
}

.nav-logo-link .site-logo--nav {
    height: 40px;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo-link .site-logo--footer {
    height: 32px;
}

.nav-logo-link:hover,
.nav-logo-link:focus {
    color: var(--color-accent);
}

.nav-logo-link i {
    margin-right: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1400;
}

.nav-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

body.mobile-menu-open .header {
    backdrop-filter: blur(14px) saturate(130%);
    z-index: 1400;
}

body .header~* {
    filter: none;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--color-accent);
}

.nav-item.has-dropdown {
    position: relative;
    align-self: stretch;
    display: flex;
    align-items: center;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    height: 100%;
}

.nav-dropdown-icon {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    flex-direction: column;
    gap: 0.25rem;

    min-width: 180px;
    padding: 0.5rem;

    background: var(--color-surface-elevated);
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(173, 120, 76, 0.25);
    z-index: 999;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: auto;
}

.dropdown-menu a {
    width: 100%;
    padding: 0.6rem 1rem;

    text-align: center;
    font-size: 0.95rem;
    color: var(--color-text-primary);
    text-decoration: none;

    border-radius: 12px;
    position: relative;
    overflow: hidden;

    transition:
        background-color 0.25s ease,
        color 0.2s ease,
        padding-left 0.25s ease;
}


.dropdown-menu a:hover {
    background: rgba(173, 120, 76, 0.12);
    padding-left: 1.5rem;
    color: var(--color-accent);
}


.nav-item.has-dropdown:hover .dropdown-menu,
.nav-item.has-dropdown.open .dropdown-menu {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.nav-item.has-dropdown.is-locked .dropdown-menu,
.nav-item.has-dropdown.is-locked:hover .dropdown-menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.nav-item.has-dropdown:hover .nav-dropdown-icon,
.nav-item.has-dropdown.open .nav-dropdown-icon {
    transform: rotate(180deg);
}

.nav-item.has-dropdown.is-locked .nav-dropdown-icon {
    transform: rotate(0deg);
}

.nav-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}


.nav-item.has-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -10px;
    right: -10px;
    height: calc(0.6rem + 4px);
    /* exakt dein Dropdown-Abstand */
    background: transparent;
}

.dropdown-link {
    color: var(--color-text);
    font-weight: 500;
    padding: 0.2rem 0;
    border-radius: 8px;
}

.dropdown-link:hover,
.dropdown-link:focus {
    color: var(--color-accent);
    padding-left: 0.25rem;
}

.nav-cta {
    position: relative;
    top: 0;
    background: var(--gradient-accent);
    color: var(--color-accent-contrast);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    transition: top 0.25s ease, color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    gap: 0.5rem;
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--gradient-accent-hover);
    top: -2px;
    box-shadow: 0 6px 20px rgba(148, 77, 66, 0.35);
}

.nav-toggle {
    display: none;
    position: relative;
    width: 36px;
    height: 28px;
    cursor: pointer;
    padding: 0;
    z-index: 1500;
}

.nav-toggle span {
    display: block;
    position: absolute;
    left: 4px;
    right: 4px;
    height: 2.5px;
    background: var(--color-text);
    transition: transform 300ms cubic-bezier(.2, .9, .2, 1),
                top 300ms cubic-bezier(.2, .9, .2, 1),
                opacity 150ms ease;
    border-radius: 2px;
    transform-origin: center;
}

.nav-toggle span:nth-child(1) {
    top: 4px;
}

.nav-toggle span:nth-child(2) {
    top: 12.5px;
}

.nav-toggle span:nth-child(3) {
    top: 21px;
}

.nav-toggle.active span:nth-child(1),
.nav-toggle.active span:nth-child(3) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-50%) rotate(-45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transition: opacity 80ms ease;
}

.nav-menu.mobile-active {
    display: flex !important;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: rgba(241, 209, 241, 0.98);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 64px 24px 2rem;
    gap: 0.65rem;
    z-index: 1450;
    transform: translateX(100%);
    animation: slideInRight 0.3s ease forwards;
    box-shadow: -5px 0 20px rgba(173, 120, 76, 0.25);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.nav-menu.mobile-active .nav-link,
.nav-menu.mobile-active .nav-dropdown-toggle {
    font-size: 1.1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(43, 24, 16, 0.12);
    width: 100%;
    text-align: left;
    transition: background-color 0.2s ease;
}

.nav-menu.mobile-active .nav-link:hover,
.nav-menu.mobile-active .nav-dropdown-toggle:hover {
    background-color: rgba(173, 120, 76, 0.15);
}


.nav-menu.mobile-active .nav-cta {
    margin-top: 2rem;
    font-size: 1rem;
    padding: 12px 20px;
    text-align: center;
}

/* Shared Service Card Styles */
.services-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-bottom: 3rem;
}

.service-category-block {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.service-category-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.service-category-title {
    flex: 1 1 auto;
    min-width: 0;
}

.service-category-title h3 {
    margin-bottom: 0.3rem;
    color: var(--color-text);
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

.service-category-name {
    min-width: 0;
}

.service-category-title p {
    margin: 0;
    color: var(--color-text-soft);
    font-size: 1rem;
}

.service-category-count {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-accent);
    background: rgba(131, 108, 10, 0.18);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    white-space: nowrap;
}

.service-category-count--aside {
    display: none;
}

@media (min-width: 769px) {
    .service-category-title h3 {
        justify-content: flex-start;
    }

    .service-category-count--inline {
        display: none;
    }

    .service-category-count--aside {
        display: inline-flex;
        margin-left: auto;
    }
}

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

.service-card {
    position: relative;
    top: 0;
    background: var(--color-surface);
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(78, 25, 36, 0.07);
    transition: top 0.3s ease, opacity 0.6s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(148, 77, 66, 0.12);
    display: flex;
    flex-direction: column;
}

/* Touch: allow text selection; keep images non-draggable/non-selectable */
@media (pointer: coarse) {

    html,
    body {
        -webkit-user-select: text;
        -ms-user-select: text;
        user-select: text;
    }

    .service-card,
    .service-card * {
        -webkit-user-select: text;
        -ms-user-select: text;
        user-select: text;
    }

    .service-card img,
    img {
        -webkit-user-drag: none;
        -webkit-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
    }

    .btn,
    .nav-link,
    .category-chip,
    .dropdown-link,
    button,
    a {
        -webkit-user-select: none;
        -ms-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
    }

    .nav-toggle,
    .nav-toggle * {
        -webkit-user-select: none;
        -ms-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
    }
}

.service-card-image {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 1rem;
    aspect-ratio: 4 / 3;
    background: rgba(173, 120, 76, 0.15);
    max-height: 190px;
    width: 100%;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.service-card:hover .service-card-image img {
    transform: scale(1.04);
}

.service-card[data-seo-url="nagelpilzbehandlung-therapie"] .service-card-image img {
    object-position: 0px -220px;
}

.service-card[data-seo-url="wellness-fussreflexzonenmassage"] .service-card-image img {
    object-position: 0px -130px;
}

.related-services .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
    margin-bottom: 0;
}

.service-card:hover {
    top: -10px;
    box-shadow: 0 16px 36px rgba(78, 25, 36, 0.12);
    border-color: rgba(148, 77, 66, 0.28);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.service-category {
    --service-category-bg: var(--gradient-accent);
    --service-category-color: var(--color-accent-contrast);
    --service-category-shadow: rgba(47, 25, 4, 0.35);
    --service-category-border: rgba(92, 65, 7, 0.32);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--service-category-bg);
    color: var(--service-category-color);
    padding: 0.28rem 0.85rem;
    border-radius: 20px;
    border: 1px solid var(--service-category-border);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 14px 24px -18px var(--service-category-shadow);
    transition: transform 0.25s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.service-card:hover .service-category,
.service-card:focus-within .service-category {
    transform: none;
    box-shadow: 0 18px 28px -18px var(--service-category-shadow);
    filter: saturate(1.05);
}

.service-category--massagen {
    --service-category-bg: var(--gradient-accent);
    --service-category-color: var(--color-accent-contrast);
    --service-category-shadow: rgba(47, 25, 4, 0.28);
    --service-category-border: rgba(92, 65, 7, 0.35);
}

.service-category--fusspflege {
    --service-category-bg: var(--gradient-footcare);
    --service-category-color: #3A2F28;
    --service-category-shadow: rgba(128, 121, 112, 0.28);
    --service-category-border: rgba(208, 202, 194, 0.6);
}

.service-category--manikuere {
    --service-category-bg: var(--gradient-manicure);
    --service-category-color: #fff7fb;
    --service-category-shadow: rgba(180, 92, 138, 0.3);
    --service-category-border: rgba(212, 142, 177, 0.55);
}

.service-category--gesichtsbehandlung {
    --service-category-bg: linear-gradient(135deg, #662E24 0%, #8A493C 55%, #59251D 100%);
    --service-category-color: #ffffff;
    --service-category-shadow: rgba(53, 25, 17, 0.34);
    --service-category-border: rgba(74, 34, 25, 0.68);
    font-weight: 700;
}

.service-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-accent);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-text);
    margin-bottom: 0.35rem;
}

.service-duration {
    color: var(--color-text-soft);
    font-size: 0.85rem;
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.service-card-icon {
    display: inline-block;
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    vertical-align: middle;
}

.service-duration .service-card-icon--clock {
    color: var(--color-accent);
}

.service-description {
    color: var(--color-text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 1.15rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1 1 auto;
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(148, 77, 66, 0.08);
}

.service-cta {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s ease;
}

.service-card:hover .service-cta {
    color: var(--color-accent-hover);
}


.text-center {
    text-align: center;
    margin-top: 3rem;
}

.loading {
    text-align: center;
    padding: 4rem 0;
    color: var(--color-text-muted);
}

.loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.review-cta {
    background: linear-gradient(180deg, var(--color-background) 0%, #ECC3B5 50%, #DEB1A2 100%);
    padding: 4rem 0;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    color: var(--color-text);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-soft);
    max-width: 600px;
    margin: 0 auto;
}

.cta-card {
    background: var(--color-surface-elevated);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-strong);
}

.cta-card h2,
.cta-card .section-title {
    text-shadow: 0 2px 8px rgba(43, 24, 16, 0.15);
}

.cta-card i {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.cta-card h3 {
    color: var(--color-text);
    margin-bottom: 1rem;
}

.cta-card p {
    margin-bottom: 2rem;
    color: var(--color-text-muted);
}

/* Animation Styles */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.footer {
    background: var(--color-footer-bg);
    color: var(--color-accent-contrast);
    padding: 3.5rem 0 3.5rem;
    padding-bottom: max(3.5rem, env(safe-area-inset-bottom, 32px));
    position: relative;
    z-index: 10;
}

.footer-content {
    display: grid;
    grid-template-columns: 280px repeat(4, 1fr);
    gap: 2rem 2.5rem;
    margin-bottom: 2.5rem;
    align-items: start;
}

.footer-section h3,
.footer-section h4 {
    color: var(--color-text-inverse);
    margin-bottom: 1rem;
    font-size: 1.15rem;
}

.footer-section p,
.footer-section li {
    color: var(--color-text-inverse-muted);
    margin-bottom: 0.5rem;
}

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

.footer-section i {
    color: #ffffff;
}

/* Keep contact icon + link on a single line in the contact column only */
.footer-section.contact p,
.footer-section.contact li {
    margin-bottom: 0.45rem;
}

.footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--color-text-inverse-muted);
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.footer-contact-link i {
    color: var(--color-text-inverse-muted);
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.footer-contact-link:hover {
    color: #ffffff !important;
    text-decoration: none !important;
}

.footer-contact-link:hover i {
    color: #ffffff !important;
}

.footer-contact-link:hover span {
    color: #ffffff !important;
    text-decoration: underline;
}

/* Remove page-level contact background/padding when .contact is used inside footer */
.footer .footer-section.contact {
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.footer .footer-section.contact h4 {
    margin-bottom: 1rem;
}

/* Tablet (iPad, Surface, 768px - 1024px) */
@media (max-width: 1024px) {
    .footer-content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 2.5rem;
        margin-bottom: 2rem;
    }

    .footer-content .footer-section:first-child {
        grid-column: 1 / -1;
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

/* Mobile (Smartphones up to 576px) */
@media (max-width: 576px) {
    .footer {
        padding: 2.75rem 0 3rem;
        padding-bottom: max(3rem, env(safe-area-inset-bottom, 30px));
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: left;
    }

    .footer-section.contact p,
    .footer-section.contact li {
        white-space: normal;
        display: block;
    }
}

.footer-bottom {
    border-top: 1px solid rgba(255, 245, 251, 0.25);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    color: var(--color-text-inverse-muted);
    font-size: 0.875rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.85) !important;
    margin-bottom: 0 !important;
}

/* Impressum links section */
#impressum-links {
    padding: 2.5rem 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(241, 209, 241, 0.04));
}

/* Compact primary impressum section */
.impressum-section {
    padding: 1.5rem 0 1rem;
}

.impressum-links-grid {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    justify-content: center;
}

.impressum-link-item h4 {
    margin-bottom: 0.5rem;
    color: var(--color-accent);
}

.impressum-link-item p a {
    color: var(--color-text-soft);
}


/* Ensure footer sticks to bottom on Impressum page using margin-top:auto */
.impressum-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.impressum-page main {
    flex: 1 1 auto;
    padding-top: 3rem;
}

.impressum-page .footer {
    margin-top: auto;
}

/* Footer link hover & focus styles for clear affordance */
.footer a {
    color: inherit;
    /* keep base color; we'll change on hover */
    text-decoration: none;
    cursor: pointer;
}

.footer a:hover,
.footer a:active {
    color: var(--color-accent-contrast);
    text-decoration: underline;
}

.footer a:focus {
    outline: none;
}

.footer a:focus-visible {
    box-shadow: 0 0 0 3px rgba(131, 108, 10, 0.18);
    border-radius: 6px;
    text-decoration: underline;
}

/* Exclude the footer logo link from the generic footer hover/focus styles */
.footer-section h3>a,
.footer-section h3>a:hover,
.footer-section h3>a:focus,
.footer-section h3>a:focus-visible {
    color: var(--color-text-inverse);
    text-decoration: none;
    box-shadow: none;
}

.fa-svg-icon {
    display: inline-block;
    height: 1em;
    vertical-align: -0.125em;
    width: 1em;
}

.nav-logo-link .fa-svg-icon {
    height: 1.5em;
    width: auto;
    transform: scale(2.5);
    transform-origin: center center;
}

.hero-card .fa-svg-icon {
    height: 3rem;
    width: auto;
    transform: scale(2.5);
    transform-origin: center center;
}

.hero-card .logo-icon--hero {
    width: 56px;
    height: 56px;
    background-color: var(--color-accent);
    display: block;
    margin: 0 auto 0.75rem;
}

.footer-section .fa-svg-icon {
    height: 1em;
    width: auto;
    transform: scale(2.5);
    transform-origin: center center;
}
