/* ============================================================
   KFZ Technik Vrella — Modern editorial design
   Palette: Black + Red + warm off-white
   ============================================================ */

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

:root {
    --black: #0a0a0a;
    --black-soft: #161616;
    --ink: #1a1a1a;
    --red: #d92027;
    --red-dark: #b01820;
    --red-bright: #ff2d36;
    --bg: #ffffff;
    --bg-cream: #f4f1ec;
    --bg-soft: #f7f5f1;
    --line: #e7e3dc;
    --line-soft: #efece6;
    --text: #1a1a1a;
    --text-muted: #6f6a64;
    --text-dim: #94908a;

    --radius: 4px;
    --radius-lg: 8px;

    --transition: 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);

    --container: 1280px;

    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* sticky header + topbar offset */
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    padding: 12px 18px;
    background: var(--red);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 600;
    border-radius: 6px;
    z-index: 1000;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 12px;
    outline: 2px solid #fff;
    outline-offset: 2px;
    color: #fff;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: var(--ink);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover { color: var(--red); }

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.05;
    color: var(--black);
    letter-spacing: -0.02em;
}

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

.muted { color: var(--text-muted); }

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.kicker-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 4px rgba(217, 32, 39, 0.15);
}

.kicker-light {
    color: rgba(255,255,255,0.75);
}

.hl { color: var(--red); }
.hl-dim { color: var(--text-muted); font-style: italic; font-weight: 500; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.01em;
    border: 1.5px solid transparent;
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn-sm {
    padding: 10px 18px;
    font-size: 13px;
}

.btn-block { width: 100%; }

.btn-primary {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

.btn-primary:hover {
    background: var(--black);
    border-color: var(--black);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--black);
    border-color: var(--black);
}

.btn-outline:hover {
    background: var(--black);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}

.btn-outline-light:hover {
    background: #fff;
    border-color: #fff;
    color: var(--black);
    transform: translateY(-2px);
}

/* ===== Topbar ===== */
.topbar {
    background: var(--black);
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 10px 32px;
    flex-wrap: wrap;
}

.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.topbar-link { color: rgba(255,255,255,0.85); }
.topbar-link:hover { color: var(--red-bright); }

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transition: all var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 32px;
    gap: 24px;
}

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

.logo img {
    width: auto;
    height: 56px;
    object-fit: contain;
    transition: transform var(--transition);
}

.logo:hover img { transform: scale(1.04); }

.footer-brand .logo img {
    height: 90px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav ul a {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 15px;
    color: var(--black);
    position: relative;
    padding: 4px 0;
}

.main-nav ul a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -3px;
    width: 0; height: 2px;
    background: var(--red);
    transition: width var(--transition);
}

.main-nav ul a:hover { color: var(--red); }
.main-nav ul a:hover::after { width: 100%; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--black);
    transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
    position: relative;
    background: var(--bg-cream);
    padding: 80px 0 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(217, 32, 39, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    padding-bottom: 100px;
}

.hero-text h1 {
    font-size: clamp(48px, 7.5vw, 96px);
    font-weight: 700;
    line-height: 0.95;
    margin-bottom: 32px;
    letter-spacing: -0.035em;
}

.hero-text h1 .hl {
    position: relative;
    display: inline-block;
}

.hero-text h1 .hl::after {
    content: '';
    position: absolute;
    left: -2%;
    bottom: 8%;
    width: 104%;
    height: 14px;
    background: var(--red);
    z-index: -1;
    opacity: 0.18;
    border-radius: 2px;
}

.hero-lead {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.hero-meta > div:not(.hero-meta-divider) {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-meta strong {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--black);
    line-height: 1;
}

.hero-meta span {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-meta-divider {
    width: 1px;
    height: 36px;
    background: var(--line);
}

/* Hero visual collage */
.hero-visual {
    position: relative;
    aspect-ratio: 5/6;
}

.hero-img {
    position: absolute;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px rgba(0,0,0,0.18);
}

/* <picture> wrappers (WebP + JPG fallback) must not affect layout */
.hero-img picture,
.about-img-wrap picture,
.gallery-item picture {
    display: contents;
}

.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-img:hover img { transform: scale(1.04); }

.hero-img-main {
    top: 0; left: 8%;
    width: 75%;
    height: 78%;
}

.hero-img-secondary {
    bottom: 0; right: 0;
    width: 52%;
    height: 48%;
    border: 8px solid var(--bg-cream);
}

.hero-badge {
    position: absolute;
    top: -8%;
    right: -2%;
    background: var(--black);
    color: #fff;
    padding: 18px 22px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-display);
    font-size: 13px;
    line-height: 1.3;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    z-index: 2;
}

.hero-badge svg {
    color: var(--red);
    flex-shrink: 0;
}

.hero-badge strong { font-weight: 700; }

/* Marquee */
.hero-marquee {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    overflow: hidden;
    padding: 22px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
    will-change: transform;
}

.hero-marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-group {
    display: flex;
    flex-shrink: 0;
    list-style: none;
    align-items: center;
    gap: 28px;
    padding: 0 14px 0 0;
    margin: 0 14px 0 0;
}

.marquee-group li {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16px;
    color: var(--red);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.marquee-group li.dot {
    color: var(--text-dim);
    font-weight: 400;
    font-size: 18px;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
}

/* ===== About ===== */
.about {
    padding: 140px 0;
    background: var(--bg);
}

.about-inner {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 90px;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-img-wrap {
    overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 4/5;
    position: relative;
}

.about-img-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.35) 100%);
    z-index: 1;
}

.about-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.about-img-wrap:hover img { transform: scale(1.05); }

.about-stats {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.08);
}

.stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 6px;
}

.stat strong span {
    color: var(--red);
}

.stat > span {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.about-content h2 {
    font-size: clamp(36px, 5vw, 64px);
    margin-bottom: 24px;
}

.about-content h2 em {
    font-style: italic;
    color: var(--red);
    font-weight: 400;
    font-family: var(--font-display);
}

.about-content .lead {
    font-size: 19px;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 48px;
    font-weight: 500;
    max-width: 540px;
}

.about-pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 40px;
}

.pillar {
    position: relative;
    padding-left: 0;
    padding-top: 8px;
    border-top: 1.5px solid var(--line);
}

.pillar-num {
    display: block;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--red);
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.pillar h4 {
    font-size: 19px;
    margin-bottom: 8px;
    font-weight: 600;
}

.pillar p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== Services ===== */
.services {
    padding: 140px 0;
    background: var(--bg-cream);
    position: relative;
}

.services-head {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: end;
    margin-bottom: 80px;
}

.services-head h2 {
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.0;
}

.services-intro {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 380px;
}

/* Bento grid */
.bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 16px;
}

.bento-card {
    position: relative;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all var(--transition);
    overflow: hidden;
}


.bento-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 3px;
    background: var(--red);
    transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bento-card:hover {
    transform: translateY(-4px);
    border-color: var(--ink);
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}

.bento-card:hover::after { width: 100%; }

.bento-icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--bg-cream);
    color: var(--red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    transition: all var(--transition);
}

.bento-card:hover .bento-icon {
    background: var(--red);
    color: #fff;
    transform: rotate(-8deg);
}

.bento-card h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.bento-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Featured card with image */
.bento-feature {
    grid-column: span 2;
    grid-row: span 2;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 32px;
    border: none;
    justify-content: flex-end;
    overflow: hidden;
}

.bento-feature::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(10,10,10,0.92) 75%);
    transition: opacity var(--transition);
}

.bento-feature > * { position: relative; z-index: 1; }
.bento-feature-content > * { position: relative; z-index: 1; }

.bento-feature h3 {
    color: #fff;
    font-size: clamp(28px, 3vw, 36px);
    margin-bottom: 12px;
    line-height: 1.05;
}

.bento-feature p {
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    max-width: 460px;
    margin-bottom: 20px;
}

.bento-feature:hover { transform: translateY(-4px); box-shadow: 0 30px 60px rgba(0,0,0,0.25); }
.bento-feature:hover::before { opacity: 0.95; }
.bento-feature::after { display: none; }

.bento-feature-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.bento-feature-bremsen {
    background-image: url('../img/KFZ-Technik-Vrella-6.webp');
}

.bento-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    background: var(--red);
    color: #fff;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 100px;
    margin-bottom: 16px;
    width: fit-content;
}

.bento-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    border-bottom: 1.5px solid rgba(255,255,255,0.4);
    padding-bottom: 4px;
    width: fit-content;
    transition: all var(--transition);
}

.bento-link:hover {
    color: #fff;
    border-color: var(--red);
    gap: 12px;
}

/* Dark text card */
.bento-dark {
    background: var(--black);
    border-color: var(--black);
    color: #fff;
}

.bento-dark h3 { color: #fff; }
.bento-dark p { color: rgba(255,255,255,0.7); }
.bento-dark .bento-icon { background: rgba(255,255,255,0.08); color: var(--red); }
.bento-dark:hover .bento-icon { background: var(--red); color: #fff; }

/* Wide card with split layout */
.bento-wide {
    grid-column: span 2;
}

.bento-split {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: start;
    height: 100%;
}

.bento-split > div:first-child {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

.bento-split > .bento-features {
    align-self: end;
}

.bento-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 24px;
    border-left: 1.5px solid var(--line);
}

.bento-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
}

.bento-features li span {
    width: 6px; height: 6px;
    background: var(--red);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ===== Gallery ===== */
.gallery {
    padding: 140px 0;
    background: var(--black);
    color: #fff;
}

.section-head-light h2,
.section-head-light .kicker { color: #fff; }
.section-head-light .kicker { color: rgba(255,255,255,0.7); }
.section-head-light p { color: rgba(255,255,255,0.65); }

.section-head {
    max-width: 700px;
    margin: 0 auto 70px;
    text-align: center;
}

.section-head h2 {
    font-size: clamp(36px, 5vw, 64px);
    margin-bottom: 20px;
}

.section-head p {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.6;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    gap: 14px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    grid-column: span 1;
    grid-row: span 1;
}

.gallery-item--lg {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item--wide {
    grid-column: span 2;
    grid-row: span 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(217,32,39,0.55) 100%);
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ===== CTA Banner ===== */
.cta-banner {
    background:
        linear-gradient(180deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.92) 100%),
        url('../img/KFZ-Technik-Vrella-3.webp');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 100px 0;
    position: relative;
}

.cta-banner::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.cta-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: center;
}

.cta-inner h2 {
    color: #fff;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.1;
}

.cta-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* ===== Contact ===== */
.contact {
    padding: 140px 0;
    background: var(--bg);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 90px;
    align-items: start;
}

.contact-info h2 {
    font-size: clamp(36px, 5vw, 56px);
    margin-bottom: 56px;
}

.info-list {
    display: flex;
    flex-direction: column;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 0;
    border-bottom: 1.5px solid var(--line);
}

.info-item:first-child {
    border-top: 1.5px solid var(--ink);
}

.info-label {
    display: block;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 8px;
}

.info-item p {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--black);
    line-height: 1.5;
    font-weight: 500;
}

.info-item a { color: var(--black); }
.info-item a:hover { color: var(--red); }

.info-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border: 1.5px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    transition: all var(--transition);
    flex-shrink: 0;
}

.info-link:hover {
    background: var(--black);
    border-color: var(--black);
    color: #fff;
    transform: rotate(-15deg);
}

/* Form */
.contact-form {
    background: var(--bg-cream);
    padding: 48px;
    border-radius: var(--radius-lg);
}

.contact-form h3 {
    font-size: 24px;
    margin-bottom: 28px;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text);
    background: #fff;
    transition: all var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dim);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(217, 32, 39, 0.10);
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

/* Service picker (checkbox chips) */
.service-picker {
    border: none;
    padding: 0;
    margin-bottom: 18px;
}

.service-picker legend {
    display: block;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 10px;
    letter-spacing: 0.01em;
}

.service-picker legend .muted {
    font-weight: 400;
    font-size: 12px;
    margin-left: 6px;
}

.chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 100px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 13px;
    color: var(--black);
    cursor: pointer;
    user-select: none;
    transition: all var(--transition);
}

.chip input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px; height: 1px;
}

.chip::before {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    background: #fff;
    flex-shrink: 0;
    transition: all var(--transition);
    position: relative;
}

.chip:hover {
    border-color: var(--ink);
    transform: translateY(-1px);
}

.chip:has(input:checked) {
    background: var(--black);
    border-color: var(--black);
    color: #fff;
}

.chip:has(input:checked)::before {
    background: var(--red);
    border-color: var(--red);
    box-shadow: inset 0 0 0 3px var(--black);
}

.chip:has(input:focus-visible) {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 24px 0;
}

.form-check input { width: auto; margin-top: 4px; }
.form-check label { margin: 0; font-weight: 400; color: var(--text-muted); font-size: 13px; line-height: 1.5; }

.form-status {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    display: none;
}

.form-status.success { display: block; background: #d1fae5; color: #065f46; }
.form-status.error { display: block; background: #fee2e2; color: #991b1b; }

/* ===== Footer ===== */
.site-footer {
    background: var(--black);
    color: rgba(255,255,255,0.6);
    padding-top: 100px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 70px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    max-width: 320px;
    margin-top: 20px;
}

.footer-col h4 {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 22px;
}

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

.footer-col li {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.footer-col a { color: rgba(255,255,255,0.65); }
.footer-col a:hover { color: var(--red-bright); }

.hours li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.hours .muted { color: var(--text-dim); }

.footer-brand .logo {
    background: #fff;
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 22px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
}

.footer-meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.55);
}

.footer-meta a {
    color: rgba(255,255,255,0.75);
}

.footer-meta a:hover { color: var(--red-bright); }

.footer-meta .sep {
    color: rgba(255,255,255,0.25);
    user-select: none;
    font-weight: 300;
}

.footer-links { display: flex; gap: 22px; }

/* ===== WhatsApp floating button ===== */
.whatsapp-fab {
    position: fixed;
    bottom: 28px;
    left: 28px;
    width: 58px;
    height: 58px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
    transition: all var(--transition);
    z-index: 99;
}

.whatsapp-fab::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid #25d366;
    opacity: 0.5;
    animation: whatsappPulse 2s ease-out infinite;
    pointer-events: none;
}

.whatsapp-fab:hover {
    background: #1ebe57;
    color: #fff;
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 18px 40px rgba(37, 211, 102, 0.55);
}

@keyframes whatsappPulse {
    0%   { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ===== Cookie banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--black);
    color: rgba(255,255,255,0.85);
    border-top: 3px solid var(--red);
    padding: 18px 24px;
    transform: translateY(110%);
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.25);
}

.cookie-banner[hidden] { display: none; }
.cookie-banner.show { transform: translateY(0); }

.cookie-banner-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

.cookie-text { flex: 1 1 360px; }

.cookie-text strong {
    display: block;
    font-family: var(--font-display);
    font-size: 15px;
    color: #fff;
    margin-bottom: 4px;
}

.cookie-text p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255,255,255,0.7);
}

.cookie-text a {
    color: var(--red-bright);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-banner .btn-outline {
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}

.cookie-banner .btn-outline:hover {
    background: #fff;
    color: var(--black);
    border-color: #fff;
}

@media (max-width: 640px) {
    .whatsapp-fab { bottom: 20px; left: 20px; width: 52px; height: 52px; }
    .cookie-banner { padding: 14px 16px; }
    .cookie-banner-inner { gap: 14px; }
    .cookie-actions { width: 100%; }
    .cookie-actions .btn { flex: 1; }
}

/* ===== Back to top ===== */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px; height: 48px;
    background: var(--black);
    color: #fff;
    border: 1.5px solid var(--black);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
    transform: translateY(-4px);
}

/* ===== Legal pages ===== */
.legal-page {
    padding: 100px 0 120px;
    max-width: 100%;
}

.legal-page .container { max-width: 820px; }

.legal-page h1 {
    font-size: clamp(36px, 5vw, 56px);
    margin: 8px 0 40px;
}

.legal-page h2 {
    font-size: 22px;
    margin: 40px 0 14px;
    padding-top: 24px;
    border-top: 1.5px solid var(--line);
}

.legal-page h3 {
    font-size: 17px;
    margin: 24px 0 8px;
    color: var(--ink);
}

.legal-page p,
.legal-page li {
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 12px;
    font-size: 15px;
}

.legal-page ul {
    padding-left: 22px;
    margin-bottom: 16px;
}

.legal-note {
    margin-top: 50px;
    padding: 18px 22px;
    background: var(--bg-cream);
    border-left: 3px solid var(--red);
    border-radius: var(--radius);
    font-size: 14px !important;
    color: var(--text-muted) !important;
}

/* ===== Reveal animation (additive — never hides content if JS fails) ===== */
.reveal-target {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
                transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-target.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-target,
    .reveal-target.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 70px; padding-bottom: 80px; }
    /* width:100% nötig: als Grid-Item mit margin auto und ausschließlich
       absolut positionierten Kindern kollabiert das Element sonst auf 0. */
    .hero-visual { width: 100%; max-width: 540px; margin: 0 auto; aspect-ratio: 5/5; }
    .about-inner { grid-template-columns: 1fr; gap: 60px; }
    .about-visual { max-width: 520px; margin: 0 auto; }
    .services-head { grid-template-columns: 1fr; gap: 24px; }
    .contact-inner { grid-template-columns: 1fr; gap: 60px; }
    .cta-inner { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .cta-actions { justify-content: center; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
    .gallery-item { grid-column: span 1; }
    .gallery-item--lg { grid-column: span 2; grid-row: span 2; }

    .bento {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
    .bento-feature { grid-column: span 2; grid-row: span 2; }
    .bento-wide { grid-column: span 2; }
}

@media (max-width: 768px) {
    .container { padding: 0 22px; }
    .topbar { display: none; }
    .nav-toggle { display: flex; }

    .main-nav {
        position: fixed;
        top: 78px;
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 26px 22px;
        background: #fff;
        border-top: 1px solid var(--line);
        box-shadow: 0 20px 40px rgba(0,0,0,0.08);
        transform: translateY(-120%);
        transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .main-nav.open { transform: translateY(0); }

    .main-nav ul {
        flex-direction: column;
        gap: 4px;
        width: 100%;
    }

    .main-nav ul a {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid var(--line-soft);
        font-size: 17px;
    }

    .main-nav .btn { width: 100%; }

    .header-inner { padding: 10px 22px; }
    .logo img { height: 44px; }
    .footer-brand .logo img { height: 72px; }

    .hero { padding: 50px 0 0; }
    .hero-inner { gap: 50px; padding-bottom: 60px; }
    .hero-text h1 { font-size: clamp(40px, 11vw, 64px); margin-bottom: 24px; }
    .hero-lead { font-size: 16px; margin-bottom: 30px; }
    .hero-actions .btn { flex: 1; min-width: 160px; }
    .hero-meta { gap: 18px; padding-top: 22px; }
    .hero-meta-divider { display: none; }
    .hero-meta strong { font-size: 22px; }

    .hero-img-main { left: 0; width: 80%; height: 75%; }
    .hero-img-secondary { width: 55%; height: 50%; }
    .hero-badge { font-size: 11px; padding: 12px 14px; right: 0; top: -4%; }

    .about, .services, .contact, .gallery, .cta-banner { padding: 80px 0; }
    .about-pillars { grid-template-columns: 1fr; gap: 24px; }

    .bento {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .bento-card { min-height: 180px; padding: 24px; }
    .bento-feature { grid-column: span 1; grid-row: span 1; min-height: 360px; }
    .bento-wide { grid-column: span 1; }
    .bento-split { grid-template-columns: 1fr; gap: 20px; }
    .bento-features { padding-left: 0; border-left: none; padding-top: 16px; border-top: 1.5px solid var(--line); }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 160px;
        gap: 10px;
    }
    .gallery-item, .gallery-item--lg { grid-column: span 1; grid-row: span 1; }
    .gallery-item--lg:first-child { grid-column: span 2; grid-row: span 2; }

    .contact-form { padding: 28px 22px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }

    .footer-inner { grid-template-columns: 1fr; gap: 40px; padding-bottom: 50px; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }

    .stat strong { font-size: 28px; }
    .stat > span { font-size: 11px; }
}

@media (max-width: 420px) {
    .hero-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
}

/* ===========================================================
   WordPress- & Elementor-Anpassungen
   (ergänzt gegenüber der statischen Vorlage)
   =========================================================== */

/* Elementor-Wrapper dürfen das Layout nicht beeinflussen —
   die Widgets bringen section + .container selbst mit. */
.elementor-widget-container,
.elementor-widget {
    margin: 0;
}

.e-con,
.e-con-inner {
    max-width: none;
}

/* <picture>/WordPress-Bildwrapper neutralisieren (wie in der Vorlage) */
.hero-img picture,
.about-img-wrap picture,
.gallery-item picture {
    display: contents;
}

/* WordPress-Adminleiste: Sticky-Header darunter beginnen lassen */
body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

/* Menü-Markup von WordPress: aktueller Punkt */
.main-nav ul li.current > a {
    color: var(--red);
}

/* Rechtsseiten: WYSIWYG-Inhalte aus dem Rechtstext-Widget */
.legal-page ul,
.legal-page ol {
    margin: 0 0 18px 20px;
}

/* Hello Elementor's theme.css begrenzt .site-header/.site-footer auf 1140px
   (max-width + margin auto) — unser Header/Footer ist volle Breite. */
.site-header,
.site-footer {
    max-width: none;
    margin: 0;
}

/* Elementors frontend.css setzt ".elementor img { height: auto }" und
   überschreibt damit die höhenfüllenden Bilder des Designs (object-fit
   cover in festen Rahmen). Mit .elementor-Präfix gewinnen wir zurück. */
.elementor .hero-img img,
.elementor .about-img-wrap img,
.elementor .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
