/* =====================================================
   Hirt Malerhandwerk – Stylesheet
   Farbwelt: Off-White, Sand/Beige, Anthrazit, Terracotta
   ===================================================== */

:root {
    --bg:          #fbfaf7;
    --bg-alt:      #f3efe8;
    --surface:     #ffffff;
    --ink:         #1f2024;
    --ink-soft:    #3a3c42;
    --muted:       #6b6e76;
    --line:        #e6e1d6;
    --accent:      #b85c38;
    --accent-dark: #944626;

    --radius:      14px;
    --radius-sm:   8px;
    --shadow-sm:   0 1px 2px rgba(31,32,36,.04), 0 2px 8px rgba(31,32,36,.04);
    --shadow:      0 6px 24px rgba(31,32,36,.07);

    --max:         1180px;
    --serif:       'Fraunces', Georgia, 'Times New Roman', serif;
    --sans:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 3px;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .78rem;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 14px;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); line-height: 1.05; margin: 0 0 18px; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); line-height: 1.15; margin: 0 0 16px; }
h3 { font-size: 1.15rem; line-height: 1.3; margin: 0 0 8px; }
p  { margin: 0 0 14px; color: var(--ink-soft); }

/* ====== HEADER ====== */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(251, 250, 247, 0.92);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 28px; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.brand-sub { font-size: .78rem; color: var(--muted); margin-top: 2px; letter-spacing: .04em; }

.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav a {
    color: var(--ink); text-decoration: none;
    font-weight: 500; font-size: .96rem;
    padding: 6px 0; transition: color .2s ease;
}
.primary-nav a:hover { color: var(--accent); }
.primary-nav a.nav-cta {
    background: var(--ink); color: var(--bg);
    padding: 10px 18px; border-radius: 999px; font-weight: 500;
}
.primary-nav a.nav-cta:hover { background: var(--accent); color: #fff; }

.burger {
    display: none; background: transparent; border: 0;
    width: 40px; height: 40px; cursor: pointer; padding: 8px;
}
.burger span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .25s, opacity .2s; border-radius: 2px; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ====== BUTTONS ====== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 26px; border-radius: 999px;
    font-weight: 600; font-size: 1rem; text-decoration: none;
    border: 1.5px solid transparent; cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
    font-family: inherit;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* ====== HERO ====== */
.hero { padding: 56px 0 88px; }
.hero-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.hero-text { max-width: 560px; }
.hero-logo {
    display: block;
    width: clamp(260px, 32vw, 380px);
    max-width: 100%;
    height: auto;
    margin: -8px 0 26px -10px;
}
.hero-text .lead { font-size: 1.15rem; color: var(--ink-soft); margin: 6px 0 14px; }
.hero-extra { color: var(--muted); margin-bottom: 32px; }
/* Hero-CTAs: immer 2x2-Raster mit gleich breiten Buttons. */
.hero-cta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 440px;
}
.hero-cta .btn {
    width: 100%;
    height: 52px;
    padding: 0 18px;
    font-size: .98rem;
    text-align: center;
    line-height: 1.2;
    letter-spacing: .01em;
}

/* ====== HERO SLIDESHOW ====== */
.hero-slideshow {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4/5;
    min-height: 560px;
    background: var(--bg-alt);
}
.hero-slideshow::after {
    content: ''; position: absolute;
    right: -18px; bottom: -18px;
    width: 70%; height: 70%;
    background: var(--bg-alt);
    border-radius: var(--radius);
    z-index: -1;
}
.hero-slideshow .slide {
    position: absolute; inset: 0; margin: 0;
    opacity: 0; transition: opacity 1.1s ease;
    pointer-events: none;
}
.hero-slideshow .slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slideshow .slide img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.slide-dots {
    position: absolute;
    left: 0; right: 0; bottom: 14px;
    display: flex; justify-content: center; gap: 8px;
    z-index: 2;
}
.slide-dots button {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,.55);
    cursor: pointer;
    padding: 0;
    transition: background .25s ease, transform .25s ease;
    box-shadow: 0 0 0 1px rgba(0,0,0,.18);
}
.slide-dots button:hover { background: #fff; }
.slide-dots button.is-active {
    background: #fff;
    transform: scale(1.3);
}

/* ====== SLIDESHOW ARROWS ====== */
.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,.85);
    color: var(--ink);
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    transition: background .2s ease, transform .2s ease;
    z-index: 3;
    padding: 0;
}
.slide-arrow:hover { background: #fff; }
.slide-arrow:active { transform: translateY(-50%) scale(.95); }
.slide-prev { left: 12px; }
.slide-next { right: 12px; }

/* ====== TRUST ====== */
.trust { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.trust-item h3 { margin-bottom: 6px; font-size: 1.05rem; }
.trust-item p  { color: var(--muted); font-size: .95rem; margin: 0; }
.trust-num {
    display: inline-block; font-family: var(--serif);
    color: var(--accent); font-size: 1rem;
    margin-bottom: 10px; letter-spacing: .08em;
}

/* ====== SECTIONS ====== */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-head .eyebrow { text-align: center; }
.section-lead { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ====== LEISTUNGEN ====== */
.services {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1px; background: var(--line);
    border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden;
}
.service { background: var(--surface); padding: 36px 32px; transition: background .25s ease; }
.service:hover { background: #fffdf9; }
.service h3 { color: var(--ink); margin-bottom: 10px; }
.service p  { color: var(--muted); margin: 0; font-size: .96rem; }

/* ====== PROJEKTE / REFERENZEN ====== */
/* --- Carousel-Auswahl --- */
.project-chooser {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    margin: 8px auto 44px;
    max-width: 880px;
    perspective: 1400px;
}
.proj-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(220px, 32vw, 360px);
    height: 150px;
    margin: 0;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--bg-alt);
    color: var(--ink);
    font-family: inherit;
    font-size: 1rem;
    padding: 22px 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 6px;
    cursor: default;
    transform-origin: center center;
    transition:
        transform .55s cubic-bezier(.4, 0, .2, 1),
        opacity   .45s ease,
        background .35s ease,
        color     .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;
    will-change: transform, opacity;
    box-shadow: var(--shadow-sm);
}
.proj-card.is-active {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
    transform: translate(-50%, -50%) translateZ(0) scale(1);
    z-index: 3;
    box-shadow: 0 22px 60px rgba(31, 32, 36, .25);
    cursor: default;
}
.proj-card.is-prev {
    transform: translate(-50%, -50%) translateX(-58%) scale(.82) rotateY(18deg);
    opacity: .55;
    z-index: 1;
    filter: saturate(.85);
}
.proj-card.is-next {
    transform: translate(-50%, -50%) translateX(58%)  scale(.82) rotateY(-18deg);
    opacity: .55;
    z-index: 1;
    filter: saturate(.85);
}
.proj-card.is-prev.is-clickable,
.proj-card.is-next.is-clickable,
.proj-card.is-prev.is-placeholder,
.proj-card.is-next.is-placeholder {
    cursor: pointer;
}
.proj-card.is-prev:hover,
.proj-card.is-next:hover,
.proj-card.is-prev.is-revealed,
.proj-card.is-next.is-revealed {
    opacity: 1;
    filter: none;
    z-index: 4;
    background: #fff;
    border-color: var(--ink);
    box-shadow: 0 18px 40px rgba(31, 32, 36, .18);
}
.proj-card.is-prev:hover {
    transform: translate(-50%, -50%) translateX(-52%) scale(.92) rotateY(8deg);
}
.proj-card.is-next:hover {
    transform: translate(-50%, -50%) translateX(52%)  scale(.92) rotateY(-8deg);
}
/* Echtes Nachbarprojekt (kein Platzhalter): beim Hover wandert die Karte
   nach vorn, überdeckt das aktive Feld teilweise und füllt sich mit Akzentfarbe. */
.proj-card.is-prev.is-clickable:hover,
.proj-card.is-next.is-clickable:hover,
.proj-card.is-prev.is-clickable.is-revealed,
.proj-card.is-next.is-clickable.is-revealed {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 26px 60px rgba(184, 92, 56, .35);
}
.proj-card.is-prev.is-clickable:hover {
    transform: translate(-50%, -50%) translateX(-22%) scale(1) rotateY(0deg);
}
.proj-card.is-next.is-clickable:hover {
    transform: translate(-50%, -50%) translateX(22%)  scale(1) rotateY(0deg);
}
.proj-card.is-prev.is-clickable:hover .proj-card-side-hover,
.proj-card.is-next.is-clickable:hover .proj-card-side-hover,
.proj-card.is-prev.is-clickable.is-revealed .proj-card-side-hover,
.proj-card.is-next.is-clickable.is-revealed .proj-card-side-hover {
    color: #fff;
}
.proj-card.is-placeholder {
    background: transparent;
    border-style: dashed;
    color: var(--muted);
    box-shadow: none;
}
.proj-card.is-active.is-placeholder {
    background: var(--ink);
    color: rgba(255,255,255,.7);
    border-style: solid;
}

/* Card content */
.proj-card-eyebrow {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: rgba(255, 255, 255, .65);
    font-weight: 500;
}
.proj-card-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.15;
}
.proj-card-meta {
    font-size: .85rem;
    color: rgba(255, 255, 255, .7);
    letter-spacing: .04em;
}

/* Side cards: default vs. hover label swap */
.proj-card-side-default,
.proj-card-side-hover,
.proj-card-placeholder-default,
.proj-card-placeholder-hover {
    display: block;
    transition: opacity .25s ease, transform .25s ease;
}
.proj-card-side-hover,
.proj-card-placeholder-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    opacity: 0;
    transform: translateY(4px);
    pointer-events: none;
}
.proj-card-side-default {
    font-size: .92rem;
    letter-spacing: .04em;
    color: var(--muted);
}
.proj-card-side-hover {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.1rem;
    color: var(--ink);
}
.proj-card-placeholder-default {
    font-size: .92rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: .7;
}
.proj-card-placeholder-hover {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.05rem;
    color: var(--ink);
    font-weight: 600;
    letter-spacing: .01em;
}
.proj-card.is-prev:hover .proj-card-side-default,
.proj-card.is-next:hover .proj-card-side-default,
.proj-card.is-prev:hover .proj-card-placeholder-default,
.proj-card.is-next:hover .proj-card-placeholder-default,
.proj-card.is-revealed .proj-card-side-default,
.proj-card.is-revealed .proj-card-placeholder-default {
    opacity: 0;
    transform: translateY(-4px);
}
.proj-card.is-prev:hover .proj-card-side-hover,
.proj-card.is-next:hover .proj-card-side-hover,
.proj-card.is-prev:hover .proj-card-placeholder-hover,
.proj-card.is-next:hover .proj-card-placeholder-hover,
.proj-card.is-revealed .proj-card-side-hover,
.proj-card.is-revealed .proj-card-placeholder-hover {
    opacity: 1;
    transform: translateY(0);
}

/* Rotation animation: lift opacity briefly while content swaps */
.project-chooser.is-rotating-next .proj-card.is-active,
.project-chooser.is-rotating-prev .proj-card.is-active { opacity: .15; transform: translate(-50%, -50%) scale(.96); }
.project-chooser.is-rotating-next .proj-card.is-next   { transform: translate(-50%, -50%) translateX(0%) scale(1) rotateY(0); opacity: .9; }
.project-chooser.is-rotating-prev .proj-card.is-prev   { transform: translate(-50%, -50%) translateX(0%) scale(1) rotateY(0); opacity: .9; }

/* Wenn nur 1 Projekt vorhanden: Seitenkarten klar als deaktiviert */
.project-chooser.only-one .proj-card.is-prev,
.project-chooser.only-one .proj-card.is-next { opacity: .35; }

/* Status-Meldung "Weitere Projekte folgen in Kürze." */
.project-soon-msg {
    text-align: center;
    margin: -20px 0 30px;
    font-size: .9rem;
    color: var(--accent);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .3s ease, transform .3s ease;
}
.project-soon-msg.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Detail-Panel unterhalb des Carousels --- */
.project-panel-host { position: relative; }
.project-panel { animation: panelFade .35s ease; }
@keyframes panelFade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.project-panel-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 32px;
}
.project-panel-head h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.8rem, 2.6vw, 2.2rem);
    color: var(--ink);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.project-panel-head .project-meta {
    color: var(--accent);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    margin: 0 0 14px;
    font-weight: 600;
}
.project-panel-head .project-intro {
    color: var(--muted);
    line-height: 1.65;
    margin: 0;
}
.project-panel-head .project-intro em {
    color: var(--accent);
    font-style: italic;
    font-size: .92em;
}
.project-photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    align-items: start;
}
.project-photo {
    margin: 0;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    align-self: start;
}
.project-photo img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: transform .6s ease;
}
.project-photo:hover img { transform: scale(1.03); }
.project-photo figcaption {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px 22px;
    border-top: 1px solid var(--line);
}
.project-photo figcaption strong {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.project-photo figcaption span {
    color: var(--muted);
    font-size: .94rem;
    line-height: 1.55;
}
.project-photo figcaption em {
    color: var(--accent);
    font-style: italic;
    font-size: .85rem;
}

/* ====== ALT: Projekt-Slideshow (nicht mehr verwendet, entfernt) ====== */

/* ====== GALERIE (Legacy – nicht mehr verwendet) ====== */
.gallery-item .gallery-img-wrap,
.gallery-item > img {
    display: block;
}
.gallery-item img {
    width: 100%;
    object-fit: cover; aspect-ratio: 4/3;
    transition: transform .6s ease;
    cursor: zoom-in;
}
.gallery-item.gallery-tall img { aspect-ratio: 3/4; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-caption {
    display: flex; flex-direction: column; gap: 6px;
    padding: 18px 20px 20px;
    border-top: 1px solid var(--line);
}
.gallery-caption-title {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.gallery-caption-text {
    color: var(--muted);
    font-size: .94rem;
    line-height: 1.55;
}
.gallery-caption-text em {
    color: var(--accent);
    font-style: italic;
    font-size: .85rem;
}

/* ====== VIDEOS ====== */
.videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.video-card {
    margin: 0; background: var(--surface);
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.video-card video { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #000; display: block; }
.video-card figcaption { padding: 12px 16px; font-size: .92rem; color: var(--muted); }

/* ====== ÜBER UNS ====== */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 72px; align-items: center; }
.about-text { max-width: 560px; }
.about-text .signature { font-family: var(--serif); font-size: 1.1rem; color: var(--ink); margin-top: 8px; }
.about-card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 32px 28px;
    text-align: center; box-shadow: var(--shadow-sm);
    max-width: 320px; margin-left: auto;
}
.about-avatar {
    width: 140px; height: 140px;
    border-radius: 50%; object-fit: cover;
    object-position: center 25%;
    margin: 0 auto 18px;
    border: 4px solid var(--bg);
    box-shadow: 0 6px 20px rgba(31,32,36,.12);
}
.about-name { font-family: var(--serif); font-size: 1.15rem; margin: 0; color: var(--ink); }
.about-role { color: var(--muted); font-size: .9rem; margin: 4px 0 0; letter-spacing: .04em; }

/* ====== KONTAKT ====== */
.contact {
    display: block;
    max-width: 760px;
    margin: 0 auto;
}
.contact .contact-info {
    text-align: center;
    margin-bottom: 32px;
}
.contact .contact-info .contact-hint { text-align: left; }
.contact-details {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    text-align: center;
}
.contact-details-intro {
    color: var(--muted);
    font-size: .95rem;
    margin: 0 0 14px;
}
.contact-details .contact-block { text-align: center; margin: 0 0 18px; }
.contact-details .contact-list { max-width: 480px; margin: 0 auto; }
.contact-block { font-style: normal; color: var(--ink-soft); margin: 18px 0 24px; font-size: 1.02rem; }
.contact-hint {
    background: var(--bg-alt);
    border-left: 3px solid var(--accent);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: .92rem;
    color: var(--muted);
    margin: 14px 0 22px;
}
.form-intro {
    color: var(--ink-soft);
    margin: 0 0 18px;
    font-size: .98rem;
}
.form-intro strong { color: var(--ink); }
.footer-contact { margin-top: 6px !important; }
.footer-contact a { color: #fff; text-decoration: none; font-weight: 500; }
.footer-contact a:hover { color: var(--accent); }
.footer-note { color: rgba(255,255,255,.55); font-size: .85rem; margin-left: 4px; }
.footer-note a { color: rgba(255,255,255,.85); text-decoration: underline; font-weight: 400; }
.contact-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.contact-list li {
    display: flex; justify-content: space-between; gap: 18px;
    padding: 14px 0; border-bottom: 1px solid var(--line);
    font-size: .98rem;
}
.contact-list li span {
    color: var(--muted); text-transform: uppercase;
    letter-spacing: .1em; font-size: .78rem; align-self: center;
}
.contact-list a { color: var(--ink); text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--accent); }

/* ====== FORM ====== */
.contact-form-wrap { width: 100%; }
.contact-form {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 32px;
    box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; margin-bottom: 16px; }
.contact-form label > span {
    display: block; font-size: .82rem; font-weight: 600;
    color: var(--ink-soft); margin-bottom: 6px; letter-spacing: .03em;
}
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%; padding: 12px 14px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    font-family: inherit; font-size: 1rem;
    background: var(--bg); color: var(--ink);
    transition: border-color .2s, background .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    border-color: var(--accent); background: #fff; outline: none;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { margin-top: 8px; }
.contact-form .h-captcha { margin: 6px 0 14px; display: flex; justify-content: center; }

/* ====== Richtwert-Rechner (Estimator) ====== */
.estimator {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
    margin: 4px 0 18px;
    overflow: hidden;
}
.estimator-toggle {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px;
    background: transparent; border: 0; cursor: pointer;
    font: inherit; font-weight: 600; color: var(--ink);
    text-align: left;
}
.estimator-toggle:hover { background: rgba(0,0,0,.03); }
.estimator-toggle .estimator-toggle-hint {
    display: block; font-size: .8rem; font-weight: 400;
    color: var(--muted); margin-top: 2px;
}
.estimator-toggle-icon {
    flex: 0 0 auto;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--ink); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.2rem; line-height: 1;
    transition: transform .25s ease;
}
.estimator.is-open .estimator-toggle-icon { transform: rotate(45deg); }
.estimator-body {
    padding: 4px 18px 18px;
    border-top: 1px solid var(--line);
}
.estimator-intro {
    font-size: .9rem; color: var(--ink-soft);
    margin: 12px 0 14px; line-height: 1.55;
}
.estimator-items {
    display: flex; flex-direction: column; gap: 10px;
    margin-bottom: 12px;
}
.estimator-item {
    display: grid;
    grid-template-columns: 1fr 110px auto;
    gap: 8px;
    align-items: end;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}
.estimator-item label { display: block; margin: 0; }
.estimator-item label > span {
    display: block; font-size: .72rem; font-weight: 600;
    color: var(--ink-soft); margin-bottom: 4px; letter-spacing: .03em;
    text-transform: uppercase;
}
.estimator-item select,
.estimator-item input[type="number"] {
    width: 100%; padding: 8px 10px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    font: inherit; font-size: .92rem;
    background: #fff;
}
.estimator-item.has-hint {
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "leistung remove"
        "hint     hint";
}
.estimator-item.has-hint .item-leistung { grid-area: leistung; }
.estimator-item.has-hint .item-menge-hint { grid-area: hint; }
.estimator-item.has-hint .estimator-remove { grid-area: remove; }
.estimator-item .item-menge-hint {
    font-size: .82rem;
    line-height: 1.45;
    color: var(--ink-soft);
    background: #faf7f2;
    border: 1px dashed var(--line);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
}
.estimator-remove {
    background: transparent; border: 1px solid var(--line);
    border-radius: 50%; width: 32px; height: 32px;
    cursor: pointer; color: var(--muted);
    font-size: 1.1rem; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
    transition: color .2s, border-color .2s;
}
.estimator-remove:hover { color: var(--accent); border-color: var(--accent); }
.estimator-add {
    background: transparent;
    border: 1px dashed var(--line);
    color: var(--ink-soft);
    padding: 10px 14px; border-radius: var(--radius-sm);
    cursor: pointer; font: inherit; font-size: .9rem;
    width: 100%;
    transition: border-color .2s, color .2s;
}
.estimator-add:hover { border-color: var(--accent); color: var(--accent); }

.estimator-result {
    margin-top: 16px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}
.estimator-result-amount {
    font-size: 1.05rem;
    color: var(--ink-soft);
}
.estimator-result-amount strong {
    display: block;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.6rem;
    color: var(--ink);
    font-weight: 600;
    margin-top: 2px;
    letter-spacing: -.01em;
}
.estimator-result details {
    margin-top: 12px;
    font-size: .88rem;
}
.estimator-result summary {
    cursor: pointer;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 8px;
}
.estimator-breakdown {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 16px;
    color: var(--ink-soft);
    padding-top: 6px;
    border-top: 1px solid var(--line);
}
.estimator-breakdown .b-label { padding-left: 0; }
.estimator-breakdown .b-value { white-space: nowrap; font-variant-numeric: tabular-nums; }
.estimator-breakdown .b-total { font-weight: 600; color: var(--ink); padding-top: 6px; border-top: 1px solid var(--line); margin-top: 4px; }
.estimator-disclaimer {
    margin-top: 12px;
    font-size: .8rem;
    color: var(--muted);
    line-height: 1.55;
}
.estimator-empty {
    padding: 14px;
    background: #fff;
    border: 1px dashed var(--line);
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: .9rem;
    text-align: center;
}
.textarea-wrap { position: relative; display: block; margin-bottom: 16px; }
.char-count {
    position: absolute;
    right: 12px; bottom: 10px;
    font-size: .78rem;
    color: var(--muted);
    background: rgba(255,255,255,.85);
    padding: 2px 6px;
    border-radius: 999px;
    pointer-events: none;
}
.char-count.is-near { color: var(--accent); font-weight: 600; }
.honeypot { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.form-hint { font-size: .82rem; color: var(--muted); margin: 14px 0 0; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: .95rem; }
.alert.success { background: #eaf5ed; color: #1f5132; border: 1px solid #b8dec5; }
.alert.error   { background: #fdecec; color: #8a1f1f; border: 1px solid #f3b9b9; }

/* ====== FOOTER ====== */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.footer-brand { font-family: var(--serif); color: #fff; font-size: 1.1rem; margin: 0 0 4px; }
.site-footer p { color: rgba(255,255,255,.7); margin: 0; font-size: .92rem; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { color: rgba(255,255,255,.85); text-decoration: none; font-size: .92rem; }
.footer-nav a:hover { color: #fff; }
.footer-copy { font-size: .85rem; color: rgba(255,255,255,.55); }

/* ====== LIGHTBOX ====== */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(15, 16, 18, .92);
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    opacity: 0; pointer-events: none;
    transition: opacity .25s ease;
    z-index: 9999;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    width: auto; height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    user-select: none;
    -webkit-user-drag: none;
}
.lightbox-close {
    position: absolute;
    top: 18px; right: 18px;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,.92);
    color: var(--ink);
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,.25);
    transition: background .2s ease, transform .2s ease;
    padding: 0;
    z-index: 1;
}
.lightbox-close:hover { background: #fff; }
.lightbox-close:active { transform: scale(.94); }

.lightbox-nav {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 52px; height: 52px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,.18);
    color: #fff;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .2s ease, transform .2s ease;
    padding: 0;
    z-index: 1;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.lightbox-nav:hover { background: rgba(255,255,255,.32); }
.lightbox-nav:active { transform: translateY(-50%) scale(.94); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

@media (max-width: 720px) {
    .lightbox { padding: 12px; }
    .lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; }
    .lightbox-nav { display: none; }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 980px) {
    .hero { padding: 32px 0 64px; }
    .hero-inner { grid-template-columns: 1fr; gap: 32px; }
    .hero-text { max-width: none; }
    .hero-logo { width: clamp(300px, 75vw, 480px); margin: 0 0 20px; }
    .hero-slideshow { aspect-ratio: 5/4; max-height: 460px; min-height: 0; }
    .hero-slideshow::after { display: none; }

    .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .services   { grid-template-columns: repeat(2, 1fr); }
    .videos     { grid-template-columns: 1fr; }
    .about      { grid-template-columns: 1fr; gap: 36px; }
    .about-card { margin: 0 auto; }
    /* Kontakt ist bereits einspaltig & zentriert; auf mobile Geräten
       Telefon/E-Mail-Liste umbrechen lassen */
    .contact-list li {
        flex-direction: column;
        align-items: center;
        gap: 4px;
        text-align: center;
    }
    .contact-list li a { word-break: break-word; overflow-wrap: anywhere; }
    .section    { padding: 80px 0; }
    .section-head { margin-bottom: 44px; }
}

@media (max-width: 720px) {
    .container { padding: 0 20px; }
    .header-inner { padding: 12px 20px; }
    .brand-name { font-size: 1.05rem; }
    .brand-sub  { font-size: .72rem; }
    .hero-logo { width: clamp(260px, 88vw, 420px); margin: 0 auto 16px; }
    .hero-text { text-align: center; }
    .hero-text .eyebrow { text-align: center; }
    /* Mobile: CTAs zentriert, weiterhin 2x2 */
    .hero-cta {
        margin-left: auto;
        margin-right: auto;
        gap: 10px;
        max-width: 360px;
    }
    .hero-cta .btn { height: 48px; font-size: .92rem; padding: 0 12px; }
    .hero-slideshow { aspect-ratio: 4/3; }
    .slide-arrow { display: none; }

    h1 { word-break: break-word; hyphens: auto; }
    .contact-form select { text-overflow: ellipsis; }
    /* contact-list-Spaltenmodus wird bereits ab 980px gesetzt;
       hier nur Linkumbruch fein justieren */
    .contact-list li a { word-break: break-word; overflow-wrap: anywhere; }
    .footer-contact { flex-wrap: wrap; }
    .footer-note { display: block; margin-left: 0; margin-top: 2px; }

    .burger { display: block; }
    .primary-nav {
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--bg);
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 12px 20px 20px;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        display: none;
    }
    .primary-nav.open { display: flex; }
    .primary-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
    .primary-nav a:last-child { border-bottom: 0; }
    .primary-nav a.nav-cta { margin-top: 8px; text-align: center; border-radius: 999px; }

    .trust-grid { grid-template-columns: 1fr; gap: 24px; }
    .services   { grid-template-columns: 1fr; }
    .gallery-item, .gallery-item.gallery-tall { grid-column: span 12; }
    .project-photos { grid-template-columns: 1fr; gap: 22px; }
    .project-chooser {
        height: auto;
        flex-direction: column;
        gap: 12px;
        padding: 4px 0 8px;
        perspective: none;
    }
    .proj-card {
        position: relative;
        top: auto; left: auto;
        width: 100%;
        height: auto;
        min-height: 86px;
        padding: 16px 18px;
    }
    .proj-card.is-active,
    .proj-card.is-prev,
    .proj-card.is-next {
        transform: none;
        opacity: 1;
        filter: none;
    }
    /* Auch in Hover-/Revealed-States keine Transform-Rotation auf Mobile,
       sonst fliegt die Karte beim Tap schräg weg */
    .proj-card.is-prev:hover,
    .proj-card.is-next:hover,
    .proj-card.is-prev.is-revealed,
    .proj-card.is-next.is-revealed,
    .proj-card.is-prev.is-clickable:hover,
    .proj-card.is-next.is-clickable:hover,
    .proj-card.is-prev.is-clickable.is-revealed,
    .proj-card.is-next.is-clickable.is-revealed {
        transform: none;
    }
    .proj-card.is-prev { order: 1; }
    .proj-card.is-active { order: 2; min-height: 110px; }
    .proj-card.is-next { order: 3; }
    .proj-card.is-prev .proj-card-side-default,
    .proj-card.is-next .proj-card-side-default,
    .proj-card.is-prev .proj-card-placeholder-default,
    .proj-card.is-next .proj-card-placeholder-default {
        font-size: .9rem;
    }
    /* Mobile: Tap auf Seitenkarte zeigt Hover-Label (.is-revealed) */
    .proj-card.is-revealed {
        background: #fff;
        border-color: var(--ink);
        box-shadow: 0 10px 24px rgba(31, 32, 36, .12);
    }
    .form-row   { grid-template-columns: 1fr; gap: 0; }
    .contact-form { padding: 22px 18px; }
    /* Sicherstellen, dass das Formular nie aus dem Container herausragt */
    .contact-form-wrap { min-width: 0; }
    .contact-form, .contact-form * { max-width: 100%; }
    .contact-form .h-captcha { overflow: hidden; }

    /* Richtwert-Rechner mobil: Item-Layout in zwei Reihen, X-Button rechts oben */
    .estimator-item {
        grid-template-columns: 1fr 36px;
        grid-template-areas:
            "leistung remove"
            "menge    remove";
        gap: 10px;
    }
    .estimator-item .item-leistung { grid-area: leistung; }
    .estimator-item .item-menge    { grid-area: menge; max-width: 160px; }
    .estimator-item .estimator-remove { grid-area: remove; align-self: start; }

    /* hCaptcha kompakt anzeigen, damit es auf schmalen Phones reinpasst */
    .h-captcha { transform-origin: center; }

    .footer-inner { flex-direction: column; align-items: flex-start; text-align: left; }
}

@media (max-width: 380px) {
    .h-captcha iframe { transform: scale(.9); transform-origin: center top; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
