:root {
    --bg: #08080b;
    --bg-soft: #121018;
    --surface: #17131f;
    --primary: #6c4174;
    --primary-2: #8f61a0;
    --accent: #f2e6d0;
    --text: #f4f2f7;
    --muted: #c8c1d5;
    --border: #2a2235;
    --ok: #51c878;
    --warn: #d86a6a;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: radial-gradient(circle at top right, rgba(108, 65, 116, 0.2), transparent 40%), var(--bg);
    color: var(--text);
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: #fff;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 12px;
    line-height: 1.2;
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0.01em;
}

h1 {
    font-size: clamp(2rem, 5vw, 4.2rem);
}

h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.8rem);
}

.container {
    width: min(1140px, 92vw);
    margin: 0 auto;
}

.section {
    padding: 72px 0;
}

.section-default {
    background: linear-gradient(180deg, transparent, rgba(108, 65, 116, 0.05));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: rgba(8, 8, 11, 0.78);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.brand-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.custom-logo-link {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    line-height: 0;
}

.brand-wrap img,
.custom-logo {
    width: 32px;
    height: 32px;
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
    display: block;
}

.brand-mark {
    display: inline-flex;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    font-weight: 800;
    font-size: 12px;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 0;
    width: 38px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 7px 0;
    background: #fff;
}

.menu-list {
    display: flex;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-list a {
    color: #fff;
    font-weight: 600;
    font-size: 0.84rem;
}

.menu-list a:hover {
    color: var(--accent);
}

.menu-fallback {
    display: flex;
}

.hero {
    position: relative;
    min-height: 78vh;
    display: grid;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(95deg, rgba(8, 8, 11, 0.88), rgba(8, 8, 11, 0.35)),
        url('https://restaurantdelphivs.de/wp-content/uploads/2025/09/IMG_1728.jpg') center/cover no-repeat;
    transform: scale(1.03);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.section-plates {
    padding-top: 18px;
    padding-bottom: 10px;
}

.plate-carousel {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    min-height: 460px;
}

.plate-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.95s ease-in-out;
    margin: 0;
    will-change: opacity;
}

.plate-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.plate-slide img {
    width: 100%;
    height: 100%;
    min-height: 460px;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 1.4s ease;
}

.plate-slide.is-active img {
    transform: scale(1.035);
}

.eyebrow {
    margin-bottom: 12px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.11em;
    font-size: 0.78rem;
    font-weight: 700;
}

.hero p {
    color: var(--muted);
    max-width: 62ch;
}

.hero-actions,
.stack-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(130deg, var(--primary), var(--primary-2));
    color: #fff;
    box-shadow: 0 8px 28px rgba(108, 65, 116, 0.45);
}

.btn-primary:hover {
    color: #fff;
}

.btn-ghost {
    border: 1px solid var(--primary-2);
    color: #fff;
    background: rgba(108, 65, 116, 0.14);
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.feature-block {
    display: grid;
    gap: 14px;
    align-content: start;
}

.feature-block.block-single {
    max-width: 100%;
}

.feature-block.block-single .feature-card {
    grid-row: 1;
}

.feature-block.block-single .feature-followups-1 {
    grid-row: 2;
    max-width: 100%;
}

.feature-card {
    background: linear-gradient(160deg, rgba(108, 65, 116, 0.16), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
}

.feature-card p {
    margin-bottom: 0;
    color: var(--muted);
}

.feature-followups {
    display: grid;
    gap: 18px;
}

.feature-followups-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-followups-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-followups-1 {
    grid-template-columns: minmax(0, 1fr);
    max-width: none;
}

.feature-media-card {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    background: var(--surface);
}

.feature-media-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feature-followups-3 .feature-media-card,
.feature-followups-2 .feature-media-card {
    min-height: 320px;
}

.feature-followups-1 .feature-media-card {
    min-height: 480px;
}

.events-grid {
    max-width: 760px;
    margin: 0 auto;
}

.events-grid .feature-card {
    text-align: center;
}

.section-story {
    background: linear-gradient(180deg, rgba(108, 65, 116, 0.08), rgba(0, 0, 0, 0));
}

.section-gallery {
    padding-top: 8px;
}

.gallery-eyebrow,
.gallery-title {
    text-align: center;
}

.gallery-title {
    margin-bottom: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.gallery-card {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    background: var(--surface);
}

.gallery-card img {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.story-grid,
.map-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: start;
}

.story-side {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    text-align: center;
}

.story-main {
    text-align: center;
}

.story-lead {
    color: var(--accent);
    font-weight: 700;
}

.story-copy {
    max-width: 60ch;
    margin: 0 auto;
}

.story-side-actions,
.map-actions {
    justify-content: center;
}

.map-actions {
    margin-top: 14px;
}

.delphi-hours {
    display: grid;
    gap: 10px;
}

.delphi-hours-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
    padding-bottom: 8px;
    font-size: 0.95rem;
}

.delphi-map-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.delphi-map-wrap iframe {
    width: 100%;
    min-height: 370px;
    border: 0;
}

.map-grid > div:first-child {
    text-align: center;
}

.contact-page-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.contact-map-block {
    margin-top: 24px;
    text-align: center;
}

.content-shell {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(22px, 3vw, 42px);
}

.page-hero {
    margin-bottom: 20px;
}

.page-callout {
    margin-top: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    background: linear-gradient(150deg, rgba(108, 65, 116, 0.2), rgba(255, 255, 255, 0.02));
}

.meta-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

.meta-list li {
    margin-bottom: 6px;
}

.entry-title {
    margin-bottom: 10px;
}

.entry-content p,
.entry-content li {
    color: var(--muted);
}

.site-footer {
    border-top: 1px solid var(--border);
    background: rgba(8, 8, 11, 0.85);
    margin-top: 42px;
    padding-top: 36px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.footer-logo {
    width: 72px;
    height: auto;
    display: block;
    margin-bottom: 14px;
}

.footer-grid p,
.footer-grid li {
    color: var(--muted);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.footer-bottom {
    margin-top: 20px;
    padding: 14px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.to-top {
    color: #fff;
    font-weight: 700;
}

/* Softwaredienst credit */
.sd-credit {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}
.sd-credit a { display: inline-flex; align-items: center; }
.sd-logo {
    height: 22px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.sd-credit:hover .sd-logo { opacity: 1; }

/* Swiss cross snowfall on hover */
.swiss-snow { position: relative; }
.swiss-snow .snow-zone {
    position: absolute; top: -30px; left: 0;
    width: 100%; height: 60px;
    pointer-events: none; overflow: visible; z-index: 10;
}
.swiss-snow .flake {
    position: absolute; top: 0;
    font-weight: 900; opacity: 0;
    pointer-events: none; font-family: Arial, sans-serif; line-height: 1;
}
.swiss-snow:hover .flake { animation: sd-snowfall 2s ease-in infinite; }
.swiss-snow .flake:nth-child(1)  { left: 5%;  animation-delay: 0s;   color: #fff;    font-size: 8px; }
.swiss-snow .flake:nth-child(2)  { left: 18%; animation-delay: .3s;  color: #CC0000; font-size: 11px; }
.swiss-snow .flake:nth-child(3)  { left: 35%; animation-delay: .15s; color: #fff;    font-size: 7px; }
.swiss-snow .flake:nth-child(4)  { left: 50%; animation-delay: .5s;  color: #CC0000; font-size: 9px; }
.swiss-snow .flake:nth-child(5)  { left: 65%; animation-delay: .1s;  color: #fff;    font-size: 10px; }
.swiss-snow .flake:nth-child(6)  { left: 78%; animation-delay: .6s;  color: #CC0000; font-size: 8px; }
.swiss-snow .flake:nth-child(7)  { left: 88%; animation-delay: .35s; color: #fff;    font-size: 11px; }
.swiss-snow .flake:nth-child(8)  { left: 42%; animation-delay: .75s; color: #CC0000; font-size: 7px; }
.swiss-snow .flake:nth-child(9)  { left: 12%; animation-delay: .9s;  color: #fff;    font-size: 9px; }
.swiss-snow .flake:nth-child(10) { left: 55%; animation-delay: 1.1s; color: #CC0000; font-size: 8px; }
.swiss-snow .flake:nth-child(11) { left: 25%; animation-delay: 1.3s; color: #fff;    font-size: 7px; }
.swiss-snow .flake:nth-child(12) { left: 72%; animation-delay: 1.5s; color: #CC0000; font-size: 10px; }
@keyframes sd-snowfall {
    0%   { opacity: 0; transform: translateY(0) rotate(0deg); }
    10%  { opacity: 1; }
    90%  { opacity: .6; }
    100% { opacity: 0; transform: translateY(60px) rotate(220deg); }
}

.reveal-up {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .feature-grid,
    .story-grid,
    .map-grid,
    .gallery-grid,
    .footer-grid,
    .contact-page-grid {
        grid-template-columns: 1fr;
    }

    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 14, 0.97);
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        transition: transform 0.25s ease;
    }

    .site-nav.is-open {
        transform: translateY(0);
    }

    .menu-list {
        flex-direction: column;
        gap: 0;
        padding: 12px 20px 18px;
    }

    .menu-fallback {
        display: flex;
    }

    .menu-list a {
        display: block;
        padding: 12px 0;
        text-align: center;
    }

    .hero {
        min-height: 64vh;
    }

    .plate-carousel,
    .plate-slide img {
        min-height: 320px;
    }

    .feature-followups-3,
    .feature-followups-2,
    .feature-followups-1 {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .feature-media-card {
        min-height: 280px;
    }

    .feature-media-card img {
        height: 100%;
        object-fit: cover;
    }

    .hero-content,
    .story-main,
    .story-side,
    .map-grid > div:first-child,
    .events-grid .feature-card,
    .footer-grid > div,
    .contact-map-block {
        text-align: center;
    }

    .hero-actions,
    .stack-actions {
        justify-content: center;
    }

    .delphi-hours-row {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Contact Form 7 Styling */
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 16px;
    width: 100%;
    transition: all 0.3s ease;
}

.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: var(--primary-2);
    background: rgba(143, 97, 160, 0.1);
}

.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
    color: var(--muted);
}

.wpcf7-form .wpcf7-submit {
    background: var(--primary-2);
    color: var(--text);
    border: none;
    padding: 12px 32px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.wpcf7-form .wpcf7-submit:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* Success message styling */
.wpcf7 .wpcf7-response-output {
    background: rgba(81, 200, 120, 0.15);
    border: 1px solid var(--ok);
    color: var(--ok);
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    text-align: center;
    font-weight: 500;
}

/* Success panel after form submission */
.cf7-success-panel {
    text-align: center;
    padding: 48px 24px;
    animation: fadeInUp 0.6s ease both;
}

.cf7-success-panel .success-logo {
    width: 120px;
    height: auto;
    margin: 0 auto 24px;
    display: block;
    filter: drop-shadow(0 4px 24px rgba(108, 65, 116, 0.3));
}

.cf7-success-panel h3 {
    color: var(--ok);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.cf7-success-panel p {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 360px;
    margin: 0 auto;
    line-height: 1.6;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
