/* =============================================
   EISDIELE GENOVESE — styles.css
   Bright, joyful, Italian summer vibes
   ============================================= */

/* --- CSS CUSTOM PROPERTIES --- */
:root {
    --panna: #fffbf0;
    --pistachio: #7ab648;
    --strawberry: #e85d75;
    --chocolate: #4a2c17;
    --sky: #5bc4f5;
    --panna-dark: #f5eed8;
    --pistachio-light: #a8d87a;
    --pistachio-dark: #5a9030;
    --strawberry-light: #f09aaa;
    --strawberry-dark: #c03050;
    --sky-light: #90dcff;
    --sky-dark: #2898d8;
    --text-main: #2e1a0e;
    --text-muted: #7a5c44;
    --radius-pill: 9999px;
    --radius-card: 1.2rem;
    --shadow-soft: 0 8px 32px rgba(74, 44, 23, 0.10);
    --shadow-medium: 0 12px 40px rgba(74, 44, 23, 0.18);
    --shadow-card: 0 4px 18px rgba(74, 44, 23, 0.12);
    --transition: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-smooth: 0.25s ease;
    --font-display: 'Pacifico', cursive;
    --font-body: 'Nunito', sans-serif;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--panna);
    color: var(--text-main);
    line-height: 1.65;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

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

/* --- SHARED UTILITIES --- */
.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: var(--strawberry);
    color: #fff;
    padding: 0.28em 0.9em;
    border-radius: var(--radius-pill);
    margin-bottom: 0.85rem;
}

.section-tag--light {
    background: var(--pistachio);
}

.section-tag--sky {
    background: var(--sky);
    color: var(--chocolate);
}

/* =============================================
   FLOATING PILL NAVIGATION
   ============================================= */
.pill-nav {
    position: fixed;
    top: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.pill-nav__inner {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 251, 240, 0.82);
    backdrop-filter: blur(18px) saturate(1.6);
    -webkit-backdrop-filter: blur(18px) saturate(1.6);
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--radius-pill);
    padding: 0.55rem 0.65rem 0.55rem 0.75rem;
    box-shadow: 0 6px 28px rgba(74, 44, 23, 0.15), 0 1px 0 rgba(255,255,255,0.8) inset;
    transition: var(--transition-smooth);
}

.pill-nav--scrolled .pill-nav__inner {
    background: rgba(255, 251, 240, 0.94);
    box-shadow: 0 8px 36px rgba(74, 44, 23, 0.22);
}

.pill-nav__logo {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--strawberry);
    padding: 0.2rem 0.6rem;
    white-space: nowrap;
}

.pill-nav__links {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.pill-nav__links a {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--text-main);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.pill-nav__links a:hover {
    background: var(--strawberry);
    color: #fff;
    transform: translateY(-1px);
}

/* =============================================
   HERO
   ============================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background: var(--panna);
}

.hero__diagonal-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, var(--panna) 48%, var(--sky-light) 48%);
    z-index: 0;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    width: 100%;
}

.hero__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--pistachio);
    color: #fff;
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.4em 1.1em;
    border-radius: var(--radius-pill);
    box-shadow: 0 3px 12px rgba(122, 182, 72, 0.35);
    animation: badgePulse 2.5s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 3px 12px rgba(122, 182, 72, 0.35); }
    50% { box-shadow: 0 3px 24px rgba(122, 182, 72, 0.6); }
}

.hero__headline {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    color: var(--chocolate);
    line-height: 1.18;
    letter-spacing: -0.01em;
}

.hero__sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 440px;
    line-height: 1.7;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--strawberry);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 6px 22px rgba(232, 93, 117, 0.4);
    transition: var(--transition);
    margin-top: 0.4rem;
}

.hero__cta:hover {
    background: var(--strawberry-dark);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 30px rgba(232, 93, 117, 0.5);
}

/* Hero circle image */
.hero__image-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__circle-mask {
    width: clamp(280px, 40vw, 460px);
    height: clamp(280px, 40vw, 460px);
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid #fff;
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, var(--strawberry-light), var(--pistachio-light));
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__circle-mask img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__circle-mask.no-img::after {
    content: '🍦🍨🍧';
    font-size: 5rem;
    text-align: center;
    line-height: 1.4;
}

.hero__circle-deco {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 3px dashed rgba(232, 93, 117, 0.35);
    animation: rotateSlowly 20s linear infinite;
}

@keyframes rotateSlowly {
    to { transform: rotate(360deg); }
}

.hero__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.5;
    z-index: 1;
}

.hero__blob--1 {
    width: 220px;
    height: 220px;
    background: var(--strawberry-light);
    top: -40px;
    right: -40px;
}

.hero__blob--2 {
    width: 160px;
    height: 160px;
    background: var(--pistachio-light);
    bottom: -30px;
    left: -20px;
}

.hero__scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* =============================================
   SORTEN — MASONRY FLAVOR GRID
   ============================================= */
.sorten {
    background: var(--panna-dark);
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.sorten::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--panna);
    clip-path: ellipse(55% 100% at 50% 0%);
}

.sorten__container {
    max-width: 1180px;
    margin: 0 auto;
}

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

.sorten__title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--chocolate);
    margin-bottom: 0.6rem;
}

.sorten__subtitle {
    color: var(--text-muted);
    font-size: 0.98rem;
    max-width: 520px;
    margin: 0 auto;
}

/* Masonry-style grid using columns */
.sorten__grid {
    columns: 4 280px;
    column-gap: 1.2rem;
}

/* --- FLAVOR CARDS --- */
.flavor-card {
    break-inside: avoid;
    margin-bottom: 1.2rem;
    background: #fff;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.flavor-card:hover {
    transform: translateY(-5px) rotate(-0.5deg);
    box-shadow: var(--shadow-medium);
}

.flavor-card--tall .flavor-card__swatch {
    height: 100px;
}

.flavor-card--wide {
    break-inside: avoid;
}

.flavor-card__swatch {
    height: 70px;
    width: 100%;
    flex-shrink: 0;
}

.flavor-card__body {
    padding: 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.flavor-card__italian {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--chocolate);
    line-height: 1.2;
}

.flavor-card__german {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 0.1rem;
}

.flavor-card__tag {
    display: inline-block;
    font-weight: 800;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--panna-dark);
    color: var(--text-muted);
    padding: 0.18em 0.7em;
    border-radius: var(--radius-pill);
    margin-top: 0.3rem;
    align-self: flex-start;
}

/* =============================================
   ÜBER UNS
   ============================================= */
.ueberuns {
    background: var(--chocolate);
    color: var(--panna);
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.ueberuns::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--panna-dark);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 30%);
}

.ueberuns::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--panna);
    clip-path: polygon(0 70%, 100% 0, 100% 100%, 0 100%);
}

.ueberuns__container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 2;
}

.ueberuns__deco {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
}

.ueberuns__gelato-icon {
    font-size: 5rem;
    filter: drop-shadow(0 4px 12px rgba(232, 93, 117, 0.4));
    animation: wobble 3s ease-in-out infinite;
}

@keyframes wobble {
    0%, 100% { transform: rotate(-4deg); }
    50% { transform: rotate(4deg); }
}

.ueberuns__year {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--strawberry);
    line-height: 1;
    text-shadow: 0 3px 12px rgba(232, 93, 117, 0.35);
}

.ueberuns__content .section-tag {
    background: var(--pistachio);
}

.ueberuns__title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--panna);
    margin-bottom: 1.2rem;
}

.ueberuns__text p {
    font-size: 0.97rem;
    color: rgba(255, 251, 240, 0.8);
    margin-bottom: 0.9rem;
    line-height: 1.75;
}

.ueberuns__text strong {
    color: var(--panna);
    font-weight: 800;
}

.ueberuns__facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 251, 240, 0.15);
}

.ueberuns__fact {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.fact-number {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--strawberry);
    line-height: 1.1;
}

.fact-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 251, 240, 0.55);
    margin-top: 0.2rem;
}

/* =============================================
   ÖFFNUNGSZEITEN
   ============================================= */
.oeffnungszeiten {
    background: var(--panna);
    padding: 5rem 2rem;
}

.oeffnungszeiten__container {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.oeffnungszeiten__title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--chocolate);
    margin-bottom: 1.4rem;
}

.oeffnungszeiten__seasonal-note {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(91, 196, 245, 0.15);
    border: 1.5px solid rgba(91, 196, 245, 0.4);
    color: var(--sky-dark);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.6em 1.2em;
    border-radius: var(--radius-pill);
    margin-bottom: 2.5rem;
}

.oeffnungszeiten__grid {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    text-align: left;
}

.time-row {
    display: grid;
    grid-template-columns: 110px 1fr 130px;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 1rem;
    border-radius: 0.75rem;
    background: rgba(255, 251, 240, 0.6);
    border: 1px solid rgba(74, 44, 23, 0.07);
    transition: var(--transition-smooth);
}

.time-row:hover {
    background: rgba(255, 251, 240, 1);
    box-shadow: var(--shadow-card);
}

.time-row--highlight {
    background: rgba(122, 182, 72, 0.08);
    border-color: rgba(122, 182, 72, 0.25);
}

.time-row--closed {
    opacity: 0.5;
}

.time-row__day {
    font-weight: 800;
    font-size: 0.88rem;
    color: var(--chocolate);
}

.time-row__bar {
    height: 8px;
    background: var(--panna-dark);
    border-radius: var(--radius-pill);
    position: relative;
    overflow: hidden;
}

.time-row__fill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--start, 0%);
    right: calc(100% - var(--end, 100%));
    background: linear-gradient(90deg, var(--pistachio), var(--sky));
    border-radius: var(--radius-pill);
}

.time-row__fill--closed {
    display: none;
}

.time-row__hours {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    text-align: right;
}

.time-row--closed .time-row__hours {
    color: rgba(122, 92, 68, 0.45);
}

/* =============================================
   KONTAKT
   ============================================= */
.kontakt {
    background: var(--sky);
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.kontakt::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 70px;
    background: var(--panna);
    clip-path: ellipse(60% 100% at 50% 0%);
}

.kontakt__container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.kontakt__card {
    background: #fff;
    border-radius: 1.4rem;
    padding: 2.2rem;
    box-shadow: var(--shadow-medium);
}

.kontakt__title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--chocolate);
    margin-bottom: 1.4rem;
}

.kontakt__details {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.kontakt__item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.kontakt__icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--panna-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--strawberry);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.kontakt__item a {
    color: var(--pistachio-dark);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--pistachio-light);
}

.kontakt__map-placeholder {
    background: rgba(255, 255, 255, 0.55);
    border: 2px dashed rgba(255, 255, 255, 0.8);
    border-radius: 1.2rem;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    color: var(--chocolate);
    font-weight: 700;
    font-size: 0.9rem;
}

.kontakt__map-placeholder i {
    font-size: 2.5rem;
    color: var(--chocolate);
    opacity: 0.55;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: var(--chocolate);
    color: rgba(255, 251, 240, 0.65);
    padding: 2.5rem 2rem;
}

.footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer__logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--panna);
    display: block;
    margin-bottom: 0.4rem;
}

.footer__brand p {
    font-size: 0.78rem;
    line-height: 1.5;
}

.footer__links {
    display: flex;
    gap: 1.2rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.footer__links a {
    color: rgba(255, 251, 240, 0.55);
    transition: color var(--transition-smooth);
}

.footer__links a:hover {
    color: var(--strawberry);
}

.footer__copy {
    font-size: 0.72rem;
    color: rgba(255, 251, 240, 0.3);
    width: 100%;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 251, 240, 0.1);
}

/* =============================================
   ESCAPE DISCLAIMER
   ============================================= */
.escape-disclaimer {
    background: #2a1808;
    border-top: 1px solid rgba(232, 93, 117, 0.3);
    padding: 0.55rem 1.5rem;
    position: relative;
    z-index: 300;
}

.escape-disclaimer__inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.75rem;
    font-family: var(--font-body);
    color: rgba(200, 160, 80, 0.70);
    letter-spacing: 0.03em;
}

.escape-disclaimer__inner i {
    color: rgba(232, 93, 117, 0.70);
    flex-shrink: 0;
}

.escape-disclaimer__inner strong {
    color: rgba(220, 180, 100, 0.90);
    font-weight: 700;
}

.escape-disclaimer__inner a {
    color: var(--strawberry);
    text-decoration: underline;
    text-decoration-color: rgba(232, 93, 117, 0.45);
}

.escape-disclaimer__inner a:hover {
    color: var(--strawberry-light);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
    .pill-nav__links a {
        font-size: 0.75rem;
        padding: 0.3rem 0.65rem;
    }

    .hero__content {
        grid-template-columns: 1fr;
        text-align: center;
        align-items: center;
    }

    .hero__text {
        align-items: center;
        order: 2;
    }

    .hero__image-wrap {
        order: 1;
    }

    .hero__diagonal-bg {
        background: linear-gradient(160deg, var(--panna) 55%, var(--sky-light) 55%);
    }

    .hero__circle-mask {
        width: 250px;
        height: 250px;
    }

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

    .ueberuns__deco {
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    .ueberuns__facts {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .time-row {
        grid-template-columns: 90px 1fr 110px;
    }
}

@media (max-width: 640px) {
    .pill-nav__inner {
        padding: 0.45rem 0.55rem;
    }

    .pill-nav__logo {
        display: none;
    }

    .pill-nav__links a {
        font-size: 0.72rem;
        padding: 0.3rem 0.55rem;
    }

    .sorten__grid {
        columns: 2 160px;
        column-gap: 0.8rem;
    }

    .flavor-card__swatch {
        height: 55px;
    }

    .flavor-card__italian {
        font-size: 0.9rem;
    }

    .ueberuns__facts {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .time-row {
        grid-template-columns: 80px 1fr 95px;
        gap: 0.6rem;
        font-size: 0.8rem;
    }

    .footer__inner {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}
