/* =========================================================================
   Food Tours Vienna – design system
   Mobile-first. Replaces the legacy includes/css/styles.css.
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
    --c-brand: #e3352c;
    --c-brand-dark: #b8241c;
    --c-brand-soft: #fdecea;
    --c-ink: #1d1b19;
    --c-text: #3a3632;
    --c-muted: #77706a;
    --c-line: #ebe5de;
    --c-surface: #ffffff;
    --c-cream: #f8f4ef;
    --c-dark: #1f1c1a;

    --font-head: "Montserrat", system-ui, sans-serif;
    --font-body: "Open Sans", system-ui, sans-serif;

    --radius-s: 8px;
    --radius: 14px;
    --radius-l: 24px;
    --shadow-s: 0 1px 2px rgba(29, 27, 25, .06), 0 2px 8px rgba(29, 27, 25, .05);
    --shadow: 0 10px 30px rgba(29, 27, 25, .10);
    --shadow-l: 0 24px 60px rgba(29, 27, 25, .18);

    --container: 1200px;
    --gutter: 20px;
    --section-space: clamp(56px, 8vw, 104px);
    --header-h: 80px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--c-text);
    background: var(--c-surface);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--c-brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-brand-dark); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--c-ink);
    line-height: 1.2;
    margin: 0 0 .5em;
    font-weight: 700;
    letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.15rem; }
h5, h6 { font-size: 1rem; }

p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--c-brand); outline-offset: 3px; border-radius: 4px; }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    min-height: 48px;
    padding: .7em 1.5em;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: var(--font-head);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn p { margin: 0; }

.btn--primary { background: var(--c-brand); color: #fff; box-shadow: 0 6px 18px rgba(227, 53, 44, .28); }
.btn--primary:hover { background: var(--c-brand-dark); color: #fff; }

.btn--light { background: #fff; color: var(--c-ink); }
.btn--light:hover { background: var(--c-cream); color: var(--c-ink); }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }

.btn--outline { background: transparent; color: var(--c-brand); border-color: var(--c-brand); }
.btn--outline:hover { background: var(--c-brand); color: #fff; }

.btn--small { min-height: 40px; padding: .5em 1.1em; font-size: .875rem; }

/* TicketingHub injects its own checkout button next to ours; ours forwards the click. */
.th-checkout-button { display: none !important; }

/* ---------- Header ---------- */
/* Two levels: a slim info bar ("Noch Fragen?") that scrolls away, and the main bar that sticks.
   The seal logo spans both and hangs over the lower edge, like on the original site. */
:root { --topbar-h: 36px; }
@media (max-width: 767px) { :root { --topbar-h: 0px; } }

.site-header {
    position: sticky;
    top: calc(-1 * var(--topbar-h)); /* only the main bar stays visible when scrolling */
    z-index: 50;
}

.topbar {
    height: var(--topbar-h);
    background: var(--c-cream);
    border-bottom: 1px solid var(--c-line);
    font-size: .82rem;
    color: var(--c-muted);
}
.topbar__inner { display: flex; align-items: center; justify-content: flex-end; gap: 22px; height: 100%; }
.topbar a { color: var(--c-ink); text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--c-brand); }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar__item svg { color: var(--c-brand); flex: none; }
@media (max-width: 767px) { .topbar { display: none; } }

.mainbar {
    background: rgba(255, 255, 255, .95);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--c-line);
}

.site-header__inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    height: var(--header-h);
    padding-left: calc(var(--gutter) + 124px); /* room for the logo */
}

.site-logo {
    position: absolute;
    z-index: 2;
    left: var(--gutter);
    top: calc(6px - var(--topbar-h)); /* starts in the info bar */
    display: block;
    transition: top .25s var(--ease);
}
.site-logo img {
    height: 140px;
    width: auto;
    filter: drop-shadow(0 6px 10px rgba(29, 27, 25, .22));
    transition: height .25s var(--ease), transform .25s var(--ease);
}
.site-logo:hover img { transform: translateY(2px); }

/* Scrolled: info bar is gone, the logo shrinks into the main bar. */
.site-header.is-stuck .site-logo { top: 6px; }
.site-header.is-stuck .site-logo img { height: 96px; }

@media (max-width: 767px) {
    :root { --header-h: 68px; }
    .site-header__inner { padding-left: calc(var(--gutter) + 84px); }
    .site-logo, .site-header.is-stuck .site-logo { top: 6px; }
    .site-logo img, .site-header.is-stuck .site-logo img { height: 92px; }
}

/* Keep the first content block clear of the hanging logo. */
main > .section:first-child { padding-top: max(72px, var(--section-space)); }

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
    display: block;
    padding: .5em .8em;
    border-radius: var(--radius-s);
    font-family: var(--font-head);
    font-size: .9rem;
    font-weight: 600;
    color: var(--c-ink);
    text-decoration: none;
    letter-spacing: .02em;
    text-transform: uppercase;
    white-space: nowrap; /* menu items never wrap; below 1180px the hamburger menu takes over */
}
.site-nav a:hover { color: var(--c-brand); }
.site-nav .aktiv > a { color: var(--c-brand); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn, .lang-switch a { white-space: nowrap; }

.lang-switch { display: flex; border: 1px solid var(--c-line); border-radius: 999px; overflow: hidden; }
.lang-switch a {
    padding: .3em .7em;
    font-family: var(--font-head);
    font-size: .75rem;
    font-weight: 700;
    color: var(--c-muted);
    text-decoration: none;
}
.lang-switch a[aria-current] { background: var(--c-ink); color: #fff; }

.header-book { display: none; }
@media (min-width: 600px) { .header-book { display: inline-flex; } }

/* Phone shortcut on small screens, where the info bar is hidden */
.header-call {
    display: none;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--c-brand-soft);
    color: var(--c-brand);
}
@media (max-width: 767px) { .header-call { display: inline-grid; } }

.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 11px;
    margin-left: auto;
    border: 0;
    border-radius: var(--radius-s);
    background: transparent;
    cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--c-ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .25s; }
.site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile navigation panel */
@media (max-width: 1179px) {
    .site-nav {
        position: absolute;
        inset: var(--header-h) auto auto calc(50% - 50vw); /* full width below the bar */
        width: 100vw;
        background: #fff;
        border-bottom: 1px solid var(--c-line);
        box-shadow: var(--shadow);
        padding: 8px var(--gutter) 20px;
        display: none;
        z-index: 3; /* above the hanging logo */
    }
    .site-header.is-open .site-nav { display: block; }
    .site-nav a { padding: .85em 0; border-bottom: 1px solid var(--c-line); border-radius: 0; }
    .site-nav .mobile-book { display: block; margin-top: 16px; }
    .site-nav .mobile-book .btn {
        display: flex;
        width: 100%;
        padding: .7em 1.5em;
        border: 2px solid var(--c-brand);
        border-radius: 999px;
        text-transform: none;
        letter-spacing: 0;
        color: var(--c-brand);
    }
    .header-actions { order: 3; margin-left: auto; }
    .nav-toggle { order: 4; margin-left: 0; }
    .site-nav { order: 5; }
}

@media (min-width: 1180px) {
    .nav-toggle, .site-nav .mobile-book { display: none; }
    .site-nav ul { display: flex; gap: 2px; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-space); }
.section + .section:not(.section--muted, .section--dark, .cta-band) { padding-top: 0; }
.section--muted { background: var(--c-cream); }
.section--dark { background: var(--c-dark); color: #d9d3cc; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
    display: inline-block;
    margin-bottom: .75em;
    font-family: var(--font-head);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--c-brand);
}

/* CMS rich text */
.prose { max-width: 760px; }
.prose--wide { max-width: none; }
/* Content pages: centered reading column, text itself stays left-aligned */
.prose--centered { max-width: 800px; margin-inline: auto; }
/* CMS texts sometimes use several h1 – only the first one is the page title */
.prose h1 ~ h1 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-top: 1.4em; }
.video-block { max-width: 1000px; }
.prose > :last-child { margin-bottom: 0; }
.prose h1 { margin-bottom: .4em; }
.prose h2 { margin-top: 1.4em; }
.prose h4 { font-weight: 600; font-family: var(--font-body); font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--c-text); }
.prose h5 { color: var(--c-muted); font-weight: 600; }
.prose h6 { font-size: .95rem; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose img { border-radius: var(--radius); margin-block: 1em; }
.prose .rot, .rot { color: var(--c-brand); }
.prose iframe { max-width: 100%; border: 0; border-radius: var(--radius); }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    margin-bottom: 1.2em;
    font-size: .9rem;
    font-weight: 600;
    color: var(--c-muted);
    text-decoration: none;
}
.back-link:hover { color: var(--c-brand); }

/* ---------- Hero (home) ---------- */
.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: min(86vh, 760px);
    padding-block: 120px clamp(48px, 8vw, 96px);
    color: #fff;
    background: var(--c-dark) var(--hero-image) center / cover no-repeat;
    isolation: isolate;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(20, 16, 14, .82) 0%, rgba(20, 16, 14, .55) 45%, rgba(20, 16, 14, .1) 100%),
        linear-gradient(0deg, rgba(20, 16, 14, .55) 0%, rgba(20, 16, 14, 0) 45%);
}
.hero__content { max-width: 640px; }
.hero .eyebrow { color: #fff; opacity: .9; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.25rem); line-height: 1.05; margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: #ff8a80; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .88); max-width: 520px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
    font-size: .9rem;
    color: rgba(255, 255, 255, .85);
}
.hero__facts li::before { content: "✓"; margin-right: .5em; color: #ff8a80; font-weight: 700; }

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
    height: clamp(220px, 42vw, 460px);
    background: var(--c-cream) var(--page-image) center / cover no-repeat;
}
.page-hero--plain { height: 0; }

/* ---------- Cards / tour grid ---------- */
.card-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.tour-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-s);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.tour-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.tour-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-cream); }
.tour-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tour-card:hover .tour-card__media img { transform: scale(1.05); }

.tour-card__body { flex: 1; padding: 22px 22px 8px; }
.tour-card__title { font-size: 1.3rem; margin-bottom: .4em; }
.tour-card__title a { color: var(--c-ink); text-decoration: none; }
.tour-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card clickable */
.tour-card__body .prose { font-size: .95rem; }
.tour-card__body .prose h6 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-brand); margin-bottom: .4em; }
.tour-card__body .prose h6:last-child { font-size: 1rem; text-transform: none; letter-spacing: 0; color: var(--c-ink); margin-top: .8em; }

.tour-card__footer { position: relative; z-index: 2; padding: 8px 22px 22px; display: flex; gap: 10px; flex-wrap: wrap; }

.card-grid__intro { grid-column: 1 / -1; }
.card-grid__intro h2, .card-grid__intro h3 { font-size: clamp(1.6rem, 3vw, 2.25rem); text-transform: none; }
.card-grid__intro h2::before, .card-grid__intro h3::before {
    content: ""; display: block; width: 48px; height: 4px; margin-bottom: 18px; border-radius: 2px; background: var(--c-brand);
}
@media (min-width: 1000px) {
    .card-grid--with-intro .card-grid__intro { grid-column: span 1; align-self: center; padding-right: 12px; }
}

/* feature boxes on the home page (element 90) */
.feature-box {
    display: block;
    padding: 28px;
    border-radius: var(--radius);
    background: var(--c-cream);
    color: var(--c-text);
    text-decoration: none;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature-box:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--c-text); }
.feature-box img { border-radius: var(--radius-s); margin-bottom: 16px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }

/* ---------- Facts (tour info icons) ---------- */
.facts-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
}
@media (min-width: 700px) { .facts-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } }
.fact {
    padding: clamp(16px, 3vw, 22px);
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
}
.fact__icon, .feature__icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--c-brand-soft);
    color: var(--c-brand);
    font-size: 22px;
}
.fact h3 { font-size: 1.05rem; margin-bottom: .35em; }
.fact .prose { font-size: .95rem; color: var(--c-muted); }
.fact .prose p:empty { display: none; }

/* ---------- Specials (why us) ---------- */
.specials { display: grid; gap: 40px; }
@media (min-width: 900px) { .specials { grid-template-columns: 1fr 1.6fr; align-items: start; } }
.feature-list { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.feature h3 { font-size: 1.1rem; }
.feature .prose { color: var(--c-muted); font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--c-brand); color: #fff; }
.cta-band__inner { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
@media (min-width: 900px) { .cta-band__inner { flex-direction: row; align-items: center; justify-content: space-between; } }
.cta-band .prose { max-width: 720px; }
.cta-band .prose h4 { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.35; }
.cta-band .prose, .cta-band .prose p { color: rgba(255, 255, 255, .9); }
.cta-band .prose a, .cta-band .rot, .cta-band .rot a { color: #fff; font-weight: 600; }
.cta-band .btn { flex: none; }
.cta-band .btn--action { background: #fff; color: var(--c-brand); }
.cta-band .btn--action:hover { background: var(--c-cream); color: var(--c-brand-dark); }

.cta-band.light { background: var(--c-cream); color: var(--c-text); }
.cta-band.light .prose h4 { color: var(--c-ink); }
.cta-band.light .prose, .cta-band.light .prose p { color: var(--c-text); }
.cta-band.light .prose a, .cta-band.light .rot, .cta-band.light .rot a { color: var(--c-brand); }
.cta-band.light .btn--action { background: var(--c-brand); color: #fff; }
.cta-band.light .btn--action:hover { background: var(--c-brand-dark); color: #fff; }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.testimonial {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 32px 28px 26px;
    background: var(--c-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-s);
}
.testimonial::before {
    content: "“";
    position: absolute;
    top: 6px;
    right: 22px;
    font-family: Georgia, serif;
    font-size: 5rem;
    line-height: 1;
    color: var(--c-brand-soft);
}
.testimonial__stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 10px; }
.testimonial .prose { font-size: .98rem; }
.testimonial .prose p:first-child strong { font-family: var(--font-head); font-size: 1.05rem; color: var(--c-ink); }
.testimonial__source { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--c-line); font-size: .85rem; color: var(--c-muted); }
.testimonial__source p { margin: 0; }

/* ---------- Accordion (native details) ---------- */
.accordion { max-width: 800px; margin-inline: auto; border-top: 1px solid var(--c-line); }
.accordion__item { border-bottom: 1px solid var(--c-line); }
.accordion__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 4px;
    cursor: pointer;
    list-style: none;
}
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item summary h3 { margin: 0; font-size: 1.1rem; }
.accordion__item summary .prose { font-size: .92rem; color: var(--c-muted); margin-top: 4px; }
.accordion__item summary::after {
    content: "";
    flex: none;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--c-brand);
    border-bottom: 2px solid var(--c-brand);
    transform: rotate(45deg) translateY(-3px);
    transition: transform .25s var(--ease);
}
.accordion__item[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.accordion__body { padding: 0 4px 28px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr)); }
.gallery a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-s); background: var(--c-cream); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery a:hover img { transform: scale(1.06); }

/* ---------- Video (click to load) ---------- */
.video-feature { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .video-feature { grid-template-columns: 1fr 1.3fr; gap: 56px; } }

.video-embed {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 0;
    border-radius: var(--radius-l);
    overflow: hidden;
    background: var(--c-dark);
    box-shadow: var(--shadow-l);
    cursor: pointer;
}
.video-embed img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s, transform .6s var(--ease); }
.video-embed:hover img { opacity: 1; transform: scale(1.03); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed__play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--c-brand);
    color: #fff;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 10px rgba(227, 53, 44, .25);
    transition: transform .25s var(--ease);
}
.video-embed:hover .video-embed__play { transform: translate(-50%, -50%) scale(1.08); }
.video-embed__note { position: absolute; left: 16px; right: 16px; bottom: 12px; font-size: .75rem; color: rgba(255, 255, 255, .85); text-align: left; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-dark); color: #b9b1a9; font-size: .95rem; }
.site-footer a { color: #e6e0da; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; gap: 40px; padding-block: 64px 48px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 1.1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55em; }
.site-footer__brand img { height: 84px; width: auto; margin-bottom: 16px; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 22px; font-size: .85rem; }
.site-footer__bottom .container { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- Cookie notice ---------- */
.cookie-bar {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    max-width: 760px;
    margin-inline: auto;
    padding: 16px 20px;
    background: var(--c-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-l);
    font-size: .875rem;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar .prose { flex: 1 1 320px; }
.cookie-bar p { margin: 0; }

/* ---------- Dialogs ---------- */
dialog.dialog {
    width: min(560px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    padding: 0;
    border: 0;
    border-radius: var(--radius-l);
    background: var(--c-surface);
    color: var(--c-text);
    box-shadow: var(--shadow-l);
}
dialog.dialog::backdrop { background: rgba(20, 16, 14, .6); backdrop-filter: blur(3px); }
.dialog__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px 0; }
.dialog__header h2 { margin: 0; font-size: 1.4rem; }
.dialog__close {
    display: grid; place-items: center;
    width: 40px; height: 40px;
    border: 0; border-radius: 50%;
    background: var(--c-cream); color: var(--c-ink);
    font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.dialog__close:hover { background: var(--c-line); }
.dialog__body { padding: 18px 26px 26px; }
.dialog--promo .dialog__body { padding: 0; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.form-grid > .field--full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 4px; font-size: .82rem; font-weight: 600; color: var(--c-ink); }
.field input, .field select, .field textarea {
    width: 100%;
    padding: .7em .9em;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-s);
    background: #fff;
    font: inherit;
    font-size: 1rem;
    color: var(--c-ink);
    transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 3px var(--c-brand-soft); }
.field .invalid, .field .invalid:focus { border-color: var(--c-brand); background: #fff8f7; }
.form-note { font-size: .8rem; color: var(--c-muted); }
.form-error { padding: .7em 1em; border-radius: var(--radius-s); background: var(--c-brand-soft); color: var(--c-brand-dark); font-size: .9rem; }
.form-feedback { text-align: center; padding: 12px 0; }
.form-feedback__icon { font-size: 2.5rem; }

/* Contact page: info on the left, form card on the right */
.contact-layout { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1fr 1.4fr; gap: 64px; } }
.contact-info__phone { display: inline-flex; align-items: center; gap: 14px; margin-top: 12px; color: var(--c-ink); text-decoration: none; }
.contact-info__phone .fact__icon { margin: 0; }
.contact-info__phone strong { font-family: var(--font-head); font-size: 1.2rem; }
.contact-card { padding: clamp(22px, 4vw, 36px); background: var(--c-surface); border-radius: var(--radius-l); box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 20px); }
#kontakt { scroll-margin-top: var(--header-h); }

/* Honeypot field of the contact form: invisible for humans, still filled by bots. */
.field-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Misc ---------- */
.reseller-widget { min-height: 200px; }

.scroll-top {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 40;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: var(--c-ink);
    color: #fff;
    box-shadow: var(--shadow);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .25s, transform .25s var(--ease);
}
.scroll-top.is-visible { opacity: .85; pointer-events: auto; transform: none; }
.scroll-top:hover { opacity: 1; }

@media (max-width: 560px) {
    .form-grid { grid-template-columns: 1fr; }
    .hero { min-height: 82vh; }
    .hero__actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
