/* MA-Farbstudio – gemeinsame Styles aller Seiten */
/* DM Sans – selbst gehostet (OFL), keine Verbindung zu Google */
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/dm-sans-400.woff2') format('woff2');
}
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/dm-sans-500.woff2') format('woff2');
}

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

:root {
    --gold:      #dbc9af;
    --gold-light:#dbc9af;
    --gray-mid:  #a2a29c;
    --gray-dark: #707070;
    --charcoal:  #5e5f5a;
    --black:     #0e0e0d;
    --off-black: #1a1a18;
    --white:     #faf9f7;
    --text:      #2a2a28;

    --font-display: 'Didact Gothic', 'Gill Sans', 'Trebuchet MS', sans-serif;
    --font-body:    'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-ui:      'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --radius:     4px;
    --shadow:     0 8px 40px rgba(0,0,0,0.18);
    --shadow-sm:  0 2px 12px rgba(0,0,0,0.10);
}

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

body {
    font-family: var(--font-ui);
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* =============================================
   SKIP NAVIGATION
============================================= */
.skip-nav {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--gold);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    z-index: 9999;
    font-size: 0.875rem;
    transition: top 0.2s;
}
.skip-nav:focus { top: 1rem; }

/* =============================================
   NAVBAR
============================================= */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(14, 14, 13, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(219,201,175,0.25);
    padding: 0 2rem;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.5); }

.navbar-logo {
    background: var(--gold);
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
}
.navbar-logo img,
.navbar-logo .logo-svg {
    height: 46px;
    width: auto;
    display: block;
}
.footer-logo .logo-svg {
    height: 38px;
    width: auto;
    display: block;
}

.navbar-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.navbar-links a {
    color: var(--gold-light);
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: var(--font-display);
    position: relative;
    padding-bottom: 2px;
}
.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width var(--transition);
}
.navbar-links a:hover::after,
.navbar-links a:focus::after { width: 100%; }

.navbar-links .nav-cta {
    background: var(--gold);
    color: #000;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius);
    letter-spacing: 0.06em;
    transition: background var(--transition), transform var(--transition);
}
.navbar-links .nav-cta:hover { background: #c9b596; transform: translateY(-1px); }
.navbar-links .nav-cta::after { display: none; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold-light);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(14,14,13,0.98);
    padding: 2rem;
    z-index: 999;
    border-bottom: 1px solid rgba(219,201,175,0.2);
    transform: translateY(-10px);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
}
.mobile-menu.open {
    display: block;
    transform: translateY(0);
    opacity: 1;
}
.mobile-menu a {
    display: block;
    color: var(--gold-light);
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: var(--font-display);
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-menu a:last-child { border-bottom: none; }

/* =============================================
   HERO
============================================= */
#hero {
    min-height: 100vh;
    background: var(--off-black);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 100px 2rem 4rem;
}

/* Textured background */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 65% 40%, rgba(219,201,175,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 20% 70%, rgba(94,95,90,0.2) 0%, transparent 50%);
    pointer-events: none;
}

/* Decorative diagonal line */
#hero::after {
    content: '';
    position: absolute;
    top: 0; right: 20%;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(219,201,175,0.3) 40%, rgba(219,201,175,0.1) 70%, transparent);
    pointer-events: none;
}

/* Hero-Hintergrund: Pinselstriche (1a) + Farbfächer (1c), läuft einmal pro Aufruf */
.hero-fx {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.hero-brush svg { width: 100%; height: 100%; display: block; }
.hero-brush { opacity: 0.38; animation: heroDim 1.6s ease 3.6s forwards; }
.hero-brush .stroke path {
    fill: none;
    stroke-linecap: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: heroPaint 1.1s cubic-bezier(0.55, 0.05, 0.35, 1) forwards;
}
.hero-brush .s1 path { animation-delay: 0.3s; }
.hero-brush .s2 path { animation-delay: 1.0s; }
.hero-brush .s3 path { animation-delay: 1.7s; }
.hero-brush .s4 path { animation-delay: 2.3s; }
@keyframes heroPaint { to { stroke-dashoffset: 0; } }
@keyframes heroDim { to { opacity: 0.2; } }

.hero-fan {
    inset: auto 0 0 auto;
    width: min(48vw, 640px);
    aspect-ratio: 1 / 1;
    opacity: 0.18;
}
.hero-fan svg { width: 100%; height: 100%; display: block; }
.hero-fan .blade {
    transform-box: view-box;
    transform-origin: 1420px 860px;
    opacity: 0;
    animation: heroFan 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s forwards;
}
@keyframes heroFan {
    from { transform: rotate(0deg); opacity: 0; }
    20%  { opacity: 1; }
    to   { transform: rotate(var(--r)); opacity: 1; }
}

.hero-content {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-weight: 400;
    color: var(--gold);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.8s 0.2s forwards;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--white);
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.8s 0.4s forwards;
}

.hero-title em {
    font-style: normal;
    color: var(--gold);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--gray-mid);
    max-width: 580px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    opacity: 0;
    animation: fadeUp 0.8s 0.6s forwards;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s 0.8s forwards;
}

.btn-primary {
    background: var(--gold);
    color: #000;
    padding: 0.9rem 2.2rem;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 20px rgba(219,201,175,0.35);
}
.btn-primary:hover {
    background: #c9b596;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(219,201,175,0.45);
}

.btn-secondary {
    border: 1px solid rgba(219,201,175,0.4);
    color: var(--gold-light);
    padding: 0.9rem 2.2rem;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: border-color var(--transition), color var(--transition), transform var(--transition);
}
.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-dark);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: var(--font-display);
    opacity: 0;
    animation: fadeUp 0.8s 1.2s forwards;
}
.hero-scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.4; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   USP STREIFEN
============================================= */
#usp {
    background: var(--gold);
    padding: 1.25rem 0;
    position: relative;
}

/* Laufband: zwei identische Gruppen, Verschiebung um -50 % = nahtlose Schleife */
.usp-marquee {
    overflow: hidden;
    /* rechts ausblenden, bevor der Pause-Button kommt */
    -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 calc(100% - 100px), transparent calc(100% - 52px));
            mask-image: linear-gradient(to right, transparent, #000 5%, #000 calc(100% - 100px), transparent calc(100% - 52px));
}
.usp-track {
    display: flex;
    width: max-content;
    animation: uspScroll 45s linear infinite;
}
#usp:hover .usp-track,
#usp.paused .usp-track { animation-play-state: paused; }
@keyframes uspScroll { to { transform: translateX(-50%); } }

.usp-group {
    display: flex;
    flex-shrink: 0;
    list-style: none;
}
.usp-item {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 2.25rem;
    color: #000;
    white-space: nowrap;
    position: relative;
}
.usp-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 5px;
    height: 5px;
    margin-top: -2.5px;
    border-radius: 50%;
    background: rgba(0,0,0,0.45);
}
.usp-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}
.usp-item strong {
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

/* Pause-Button (WCAG 2.2.2: Bewegung muss anhaltbar sein) */
.usp-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.35);
    background: var(--gold);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition);
}
.usp-toggle:hover { background: #c9b596; }
.usp-toggle:focus-visible { outline-color: #000; }
.usp-toggle svg { width: 12px; height: 12px; fill: currentColor; }
.usp-toggle .i-play { display: none; }
#usp.paused .usp-toggle .i-pause { display: none; }
#usp.paused .usp-toggle .i-play { display: block; }

@media (prefers-reduced-motion: reduce) {
    /* Statische Zeile statt Laufband */
    .usp-track { animation: none; width: auto; justify-content: center; }
    .usp-group { flex-wrap: wrap; flex-shrink: 1; width: 100%; justify-content: center; row-gap: 0.75rem; padding: 0 1rem; }
    .usp-group[aria-hidden="true"], .usp-toggle { display: none; }
    .usp-marquee { -webkit-mask-image: none; mask-image: none; }
}

/* =============================================
   SECTION COMMON
============================================= */
section { padding: 6rem 2rem; }

.section-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--off-black);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--gray-dark);
    max-width: 560px;
    line-height: 1.8;
}

.section-header { margin-bottom: 3.5rem; }

/* =============================================
   LEISTUNGEN — BILDKARTEN
============================================= */
#leistungen {
    background: var(--off-black);
}

#leistungen .section-title { color: var(--white); }
#leistungen .section-subtitle { color: var(--gray-mid); }

.cards-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Leistungskarten: Foto oben, Details per <details> aufklappbar */
.svc-card {
    background: #262624;
    border: 1px solid rgba(219,201,175,0.15);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.svc-img { overflow: hidden; }
.svc-img img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.svc-card:hover .svc-img img { transform: scale(1.04); }
.svc-body { padding: 1.5rem; }
.svc-body h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 0.4rem;
}
.svc-body h3 small {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: var(--gold);
    margin-top: 0.2rem;
}
.svc-body p {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: #d6d2cb;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}
.svc-body summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.svc-body summary::-webkit-details-marker { display: none; }
.svc-body summary svg { width: 14px; height: 14px; transition: transform 0.3s; }
.svc-body details[open] summary svg { transform: rotate(180deg); }
.svc-body ul {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding-top: 0.5rem;
    animation: svcOpen 0.35s ease;
}
.svc-body li {
    position: relative;
    padding-left: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #e8e4de;
}
.svc-body li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
}
@keyframes svcOpen {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}

/* =============================================
   ÜBER UNS
============================================= */
#ueber-uns {
    background: var(--white);
}

.ueber-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.ueber-visual {
    position: relative;
}

.ueber-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--off-black) 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.ueber-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(219,201,175,0.04) 20px,
        rgba(219,201,175,0.04) 21px
    );
}

.ueber-placeholder svg {
    width: 80px;
    height: 80px;
    stroke: rgba(219,201,175,0.4);
    fill: none;
    stroke-width: 1;
    position: relative;
    z-index: 1;
}

/* Gold accent bar */
.ueber-visual::after {
    content: '';
    position: absolute;
    left: -20px;
    top: 10%;
    width: 4px;
    height: 40%;
    background: var(--gold);
    border-radius: 2px;
}

.ueber-text .section-subtitle {
    margin-bottom: 2rem;
    max-width: none;
}

.ueber-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.ueber-list li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.95rem;
    color: var(--text);
}

.ueber-list li svg {
    width: 20px;
    height: 20px;
    stroke: var(--gold);
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

/* =============================================
   KONTAKT
============================================= */
#kontakt {
    background: var(--off-black);
}

#kontakt .section-title { color: var(--white); }
#kontakt .section-subtitle { color: var(--gray-mid); }

.kontakt-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 5rem;
    align-items: start;
}

.kontakt-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.kontakt-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.kontakt-item-icon {
    width: 44px;
    height: 44px;
    background: rgba(219,201,175,0.15);
    border: 1px solid rgba(219,201,175,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kontakt-item-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--gold);
    fill: none;
    stroke-width: 1.5;
}

.kontakt-item-text strong {
    display: block;
    color: var(--gold-light);
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.kontakt-item-text a,
.kontakt-item-text span {
    color: var(--gray-mid);
    font-size: 0.95rem;
    transition: color var(--transition);
}

.kontakt-item-text a:hover { color: var(--gold); }

/* Whatsapp Button */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #25D366;
    color: #0e0e0d;            /* dunkle Schrift: 9,7:1 Kontrast (WCAG AA) */
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background var(--transition), transform var(--transition);
    margin-top: 1.5rem;
}
.whatsapp-btn:hover { background: #1da851; transform: translateY(-2px); }
.whatsapp-btn svg { width: 20px; height: 20px; fill: currentColor; }

/* Form */
.kontakt-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-light);
}

.form-group input,
.form-group textarea,
.form-group select {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(219,201,175,0.25);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    color: var(--white);
    font-size: 0.95rem;
    font-family: var(--font-ui);
    transition: border-color var(--transition), background var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(162,162,156,0.5); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--gold);
    background: rgba(219,201,175,0.07);
}

.form-group select option { background: var(--off-black); color: var(--white); }

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

/* Honeypot */
.hp-field { display: none !important; visibility: hidden !important; }

.form-submit-btn {
    background: var(--gold);
    color: #000;
    padding: 1rem 2.5rem;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 20px rgba(219,201,175,0.3);
    align-self: flex-start;
}

.form-submit-btn:hover {
    background: #c9b596;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(219,201,175,0.4);
}

.form-msg {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    display: none;
}
.form-msg.success { background: rgba(37,211,102,0.15); color: #25D366; border: 1px solid rgba(37,211,102,0.3); display: block; }
.form-msg.error   { background: rgba(220,50,50,0.15); color: #ff6b6b; border: 1px solid rgba(220,50,50,0.3); display: block; }

/* =============================================
   FOOTER
============================================= */
footer {
    background: var(--black);
    border-top: 1px solid rgba(219,201,175,0.2);
    padding: 3rem 2rem 0;
    color: var(--gray-dark);
    font-size: 0.85rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 3rem;
    align-items: start;
    padding-bottom: 2.5rem;
}

.footer-logo { background: var(--gold); padding: 0.4rem 0.75rem; border-radius: var(--radius); display: inline-block; }
.footer-logo img, .footer-logo .logo-svg { height: 44px; width: auto; display: block; }

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    padding-top: 0.5rem;
}

.footer-links a {
    color: var(--gray-mid);
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }

.footer-cookie-btn {
    background: transparent;
    border: 1px solid rgba(219,201,175,0.3);
    color: var(--gray-mid);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: var(--font-display);
    transition: border-color var(--transition), color var(--transition);
    cursor: pointer;
    white-space: nowrap;
}
.footer-cookie-btn:hover { border-color: var(--gold); color: var(--gold); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy { color: #8a8a84; font-size: 0.8rem; }

/* =============================================
   COOKIE BANNER
============================================= */
#cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9000;
    background: var(--off-black);
    border: 1px solid rgba(219,201,175,0.3);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    max-width: 560px;
    width: calc(100% - 2rem);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    display: none;
}

#cookie-banner.show { display: block; animation: slideUp 0.4s ease forwards; }

@keyframes slideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.cookie-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
}

.cookie-text {
    font-size: 0.85rem;
    color: var(--gray-mid);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.cookie-text a { color: var(--gold); text-decoration: underline; }

.cookie-btns {
    display: flex;
    gap: 0.75rem;
}

.cookie-accept {
    background: var(--gold);
    color: #000;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background var(--transition);
    cursor: pointer;
    border: none;
}
.cookie-accept:hover { background: #c9b596; }

.cookie-decline {
    background: transparent;
    border: 1px solid rgba(219,201,175,0.3);
    color: var(--gray-mid);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: border-color var(--transition), color var(--transition);
    cursor: pointer;
}
.cookie-decline:hover { border-color: var(--gold); color: var(--gold); }

/* =============================================
   FOCUS VISIBLE
============================================= */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 2px;
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1024px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .kontakt-grid { grid-template-columns: 1fr; gap: 3rem; }
    .ueber-grid { grid-template-columns: 1fr; gap: 3rem; }
    .ueber-visual { max-width: 500px; }
}

@media (max-width: 768px) {
    .navbar-links { display: none; }
    .hamburger { display: flex; }
    .cards-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; text-align: center; }
    .footer-links { justify-content: center; }
    .footer-bottom { flex-direction: column; text-align: center; }
    section { padding: 4rem 1.25rem; }
}

@media (max-width: 480px) {
    .hero-ctas { flex-direction: column; align-items: center; }
}
/* ---- BACK TO TOP ---- */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 8000;
    width: 46px;
    height: 46px;
    background: var(--gold);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    cursor: pointer;
    border: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s, transform 0.3s, background 0.2s;
    pointer-events: none;
}
#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
#back-to-top:hover { background: var(--gold-light); }
#back-to-top svg { width: 20px; height: 20px; }

/* Fade-in-up beim Scrollen (nur mit .js-reveal, d. h. nur wenn JS + IntersectionObserver aktiv) */
.js-reveal .section-header,
.js-reveal .svc-card,
.js-reveal .ablauf-step,
.js-reveal .faq-item,
.js-reveal .ueber-visual,
.js-reveal .ueber-text,
.js-reveal .kontakt-grid > *,
.js-reveal .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.js-reveal .is-visible {
    opacity: 1 !important;
    transform: none !important;
}

/* Kontraste im hellen Abschnitt „Über uns“ (WCAG AA) */
#ueber-uns .section-label { color: #7a5c32; }
#ueber-uns :focus-visible { outline-color: var(--off-black); }

/* Cookie-Banner: Auswahl Statistik/Marketing */
.cookie-options { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.25rem; }
.cookie-options[hidden] { display: none; }
.cookie-opt { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.85rem; color: var(--gray-mid); line-height: 1.5; cursor: pointer; }
.cookie-opt input { width: 18px; height: 18px; margin-top: 0.15rem; accent-color: var(--gold); flex-shrink: 0; }
.cookie-opt strong { color: var(--white); font-weight: 500; }
.cookie-btns { flex-wrap: wrap; }
.cookie-btns [hidden] { display: none; }

/* ---- ABLAUF ---- */
#ablauf { background: var(--black); border-top: 1px solid rgba(219,201,175,0.12); }
#ablauf .section-title { color: var(--white); }
#ablauf .section-subtitle { color: var(--gray-mid); }
.ablauf-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    list-style: none;
    counter-reset: step;
}
.ablauf-step {
    position: relative;
    padding: 1.75rem 1.5rem;
    border: 1px solid rgba(219,201,175,0.15);
    border-radius: 6px;
    background: #161615;
}
.ablauf-step::before {
    counter-increment: step;
    content: '0' counter(step);
    display: block;
    font-family: var(--font-display);
    font-size: 2.25rem;
    line-height: 1;
    color: var(--gold);
    margin-bottom: 1rem;
}
.ablauf-step h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 0.5rem;
}
.ablauf-step p { font-size: 0.92rem; color: #d6d2cb; line-height: 1.6; }

/* ---- FAQ ---- */
#faq { background: var(--black); }
#faq .section-title { color: var(--white); }
#faq .section-subtitle { color: var(--gray-mid); }
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
    background: #161615;
    border: 1px solid rgba(219,201,175,0.15);
    border-radius: 6px;
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--white);
    line-height: 1.4;
}
.faq-item summary svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; transition: transform 0.3s; }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item[open] { border-color: rgba(219,201,175,0.35); }
.faq-item p {
    padding: 0 1.5rem 1.25rem;
    font-size: 0.95rem;
    color: #d6d2cb;
    line-height: 1.7;
    animation: svcOpen 0.35s ease;
}

@media (max-width: 1024px) { .ablauf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .ablauf-grid { grid-template-columns: 1fr; } }

/* ---- WHATSAPP (rund, schwebend, über „nach oben“) ---- */
#whatsapp-float {
    position: fixed;
    right: calc(2rem - 5px);
    bottom: calc(2rem + 46px + 0.75rem);
    z-index: 8000;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
    transition: transform var(--transition), background var(--transition);
}
#whatsapp-float:hover { background: #1ebe5b; transform: translateY(-2px); }
#whatsapp-float svg { width: 30px; height: 30px; fill: currentColor; }

/* ---- COOKIE-BANNER kompakt ---- */
#cookie-banner { padding: 1.1rem 1.35rem; max-width: 540px; max-height: calc(100vh - 3rem); overflow-y: auto; }
.cookie-title { margin-bottom: 0.35rem; }
.cookie-text { font-size: 0.82rem; margin-bottom: 0.9rem; }
.cookie-text[hidden], .cookie-details[hidden] { display: none; }
.cookie-btns { gap: 0.5rem; }
.cookie-btns button { flex: 1 1 auto; padding: 0.55rem 0.9rem; font-size: 0.72rem; white-space: nowrap; min-height: 40px; }
@media (max-width: 480px) {
    /* Handy: zwei Buttons nebeneinander, dritter darunter -> immer max. 2 Zeilen */
    .cookie-btns { display: grid; grid-template-columns: 1fr 1fr; }
    #cookie-customize, #cookie-save { grid-column: 1 / -1; }
    .cookie-btns button { padding: 0.55rem 0.5rem; }
}

/* Footer-Credit */
.footer-credit a { color: var(--gray-mid); text-decoration: underline; text-underline-offset: 3px; transition: color var(--transition); }
.footer-credit a:hover { color: var(--gold); }

@media (max-width: 768px) {
    .hero-fan { width: 62vw; opacity: 0.14; }
}

/* =============================================
   LEISTUNGEN-MENÜ (Aufklappmenü)
============================================= */
.nav-dd { position: relative; }
.nav-dd-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gold-light);
    font-family: var(--font-display);
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.5rem 0;
}
.nav-dd-btn svg { width: 12px; height: 12px; transition: transform var(--transition); }
.nav-dd.open .nav-dd-btn svg { transform: rotate(180deg); }
.nav-dd-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 250px;
    list-style: none;
    background: rgba(14,14,13,0.98);
    border: 1px solid rgba(219,201,175,0.2);
    border-radius: 6px;
    padding: 0.5rem 0;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 1001;
}
/* unsichtbare Brücke, damit das Menü beim Wechsel mit der Maus offen bleibt */
.nav-dd-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-dd.open .nav-dd-menu { opacity: 1; visibility: visible; transform: translateX(-50%); }
@media (hover: hover) {
    .nav-dd:hover .nav-dd-menu { opacity: 1; visibility: visible; transform: translateX(-50%); }
}
.navbar-links .nav-dd-menu a {
    display: block;
    padding: 0.6rem 1.25rem;
    font-size: 0.8rem;
    color: var(--gold-light);
}
.navbar-links .nav-dd-menu a::after { display: none; }
.navbar-links .nav-dd-menu a:hover,
.navbar-links .nav-dd-menu a:focus-visible { background: rgba(219,201,175,0.08); color: var(--white); }
.navbar-links .nav-dd-menu a[aria-current="page"] { color: var(--white); background: rgba(219,201,175,0.06); }
.nav-dd-all { border-top: 1px solid rgba(219,201,175,0.12); margin-top: 0.35rem; padding-top: 0.35rem; }

/* Handy-Menü: Akkordeon */
.mm-dd-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
    color: var(--gold-light);
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.85rem 0;
    text-align: left;
}
.mm-dd-btn svg { width: 14px; height: 14px; transition: transform var(--transition); }
.mm-dd-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.mm-dd[hidden] { display: none; }
.mobile-menu .mm-dd a {
    font-size: 0.95rem;
    padding: 0.6rem 0 0.6rem 1rem;
    color: var(--gray-mid);
}
.mobile-menu .mm-dd a[aria-current="page"] { color: var(--white); }

/* Link „Mehr zu …“ auf den Leistungskarten der Startseite */
.svc-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 44px;
    margin-top: 0.25rem;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(219,201,175,0.4);
    transition: color var(--transition), border-color var(--transition);
}
.svc-more:hover { color: var(--gold); border-color: var(--gold); }

/* =============================================
   LEISTUNGSSEITEN
============================================= */
.sp-wrap { max-width: 1200px; margin: 0 auto; }
.sp-hero { background: var(--off-black); padding: 8.5rem 2rem 5rem; position: relative; overflow: hidden; }
.sp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 80% 30%, rgba(219,201,175,0.10) 0%, transparent 60%);
    pointer-events: none;
}
.sp-hero-grid {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 3.5rem;
    align-items: center;
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.78rem; color: var(--gray-mid); margin-bottom: 1.5rem; }
.breadcrumb li + li::before { content: '›'; margin-right: 0.4rem; color: var(--gray-dark); }
.breadcrumb a { color: var(--gold); }
.breadcrumb a:hover { text-decoration: underline; }
.sp-hero h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 1.1rem;
}
.sp-sub { font-family: var(--font-body); font-size: 1.1rem; color: var(--gray-mid); max-width: 520px; margin-bottom: 2rem; line-height: 1.7; }
.sp-ctas { justify-content: flex-start; }
.sp-hero-img img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.45);
}

.sp-intro { background: var(--white); color: var(--off-black); }
.sp-intro-text { max-width: 780px; margin-bottom: 3.5rem; }
.sp-intro-text p { font-size: 1.08rem; color: #3a3a37; line-height: 1.8; margin-bottom: 1.25rem; }
.sp-benefits-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--off-black);
    margin-bottom: 1.5rem;
}
.sp-benefits { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.sp-benefit { background: #fff; border: 1px solid #e8e2d8; border-radius: 6px; padding: 1.5rem; }
.sp-benefit svg { width: 30px; height: 30px; color: #7a5c32; margin-bottom: 0.9rem; }
.sp-benefit h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--off-black);
    margin-bottom: 0.35rem;
}
.sp-benefit p { font-size: 0.92rem; color: #4a4a46; line-height: 1.6; }

.sp-scope { background: var(--off-black); }
.sp-scope .section-title { color: var(--white); margin-bottom: 2rem; }
.sp-scope-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3rem; align-items: start; }
.sp-scope-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 2rem; }
.sp-scope-list li { display: flex; gap: 0.75rem; align-items: flex-start; color: #e8e4de; font-size: 0.98rem; line-height: 1.5; }
.sp-scope-list svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; margin-top: 0.05rem; }
.sp-more { background: #161615; border: 1px solid rgba(219,201,175,0.15); border-radius: 8px; padding: 1.75rem; }
.sp-more-title { font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.sp-more ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.sp-more ul a {
    display: inline-block;
    padding: 0.45rem 0.95rem;
    border: 1px solid rgba(219,201,175,0.35);
    border-radius: 999px;
    color: var(--gold-light);
    font-size: 0.85rem;
    transition: background var(--transition), color var(--transition);
}
.sp-more ul a:hover { background: var(--gold); color: #000; }
.sp-more-cta { display: block; text-align: center; }

/* FAQ in heller Variante (Leistungsseiten) */
#faq.faq-light { background: var(--white); }
#faq.faq-light .section-title { color: var(--off-black); }
#faq.faq-light .section-label { color: #7a5c32; }
#faq.faq-light .faq-item { background: #fff; border-color: #e5e0d8; }
#faq.faq-light .faq-item[open] { border-color: #cbbfa9; }
#faq.faq-light .faq-item h3 { color: var(--off-black); }
#faq.faq-light .faq-item p { color: #4a4a46; }
#faq.faq-light .faq-item summary svg { color: #7a5c32; }
#faq.faq-light :focus-visible { outline-color: var(--off-black); }

@media (max-width: 1024px) {
    .sp-benefits { grid-template-columns: repeat(2, 1fr); }
    .sp-scope-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .sp-hero { padding: 7rem 1.25rem 3.5rem; }
    .sp-hero-grid { grid-template-columns: 1fr; gap: 2.25rem; }
    .sp-scope-list { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .sp-benefits { grid-template-columns: 1fr; }
}

/* =============================================
   FEHLERSEITE (404/403)
============================================= */
.err-page { background: var(--off-black); min-height: 80vh; display: flex; align-items: center; padding: 9rem 2rem 5rem; }
.err-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.err-page h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.15; color: var(--white); margin-bottom: 1rem; }
.err-text { color: var(--gray-mid); font-size: 1.05rem; margin-bottom: 2rem; }
.err-ctas { justify-content: center; margin-bottom: 3rem; }
.err-sub { font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.err-links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.err-links a { display: inline-block; padding: 0.45rem 0.95rem; border: 1px solid rgba(219,201,175,0.35); border-radius: 999px; color: var(--gold-light); font-size: 0.85rem; transition: background var(--transition), color var(--transition); }
.err-links a:hover { background: var(--gold); color: #000; }

/* =============================================
   REFERENZEN – Startseite „Ausgewählte Projekte“
============================================= */
#projekte { background: var(--white); color: var(--off-black); }
#projekte .section-label, .sp-projects .section-label, .ref-section .section-label { color: #7a5c32; }
#projekte :focus-visible, .sp-projects :focus-visible, .ref-section :focus-visible { outline-color: var(--off-black); }
.proj-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.25rem; }
.proj-tiles { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 1.25rem; }
.ref-tile { position: relative; display: block; border-radius: 6px; overflow: hidden; background: #e8e2d8; color: #fff; }
.proj-feature { aspect-ratio: 4 / 4.6; }
.proj-tile { min-height: 200px; }
.ref-media { position: absolute; inset: 0; overflow: hidden; }
.ref-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.ref-tile:hover .ref-media img { transform: scale(1.05); }
.proj-cap {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    padding: 2.25rem 1.1rem 0.9rem;
    background: linear-gradient(to top, rgba(14,14,13,0.88), transparent);
    font-family: var(--font-display); font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase;
    transform: translateY(100%); transition: transform 0.4s ease;
}
.proj-feature .proj-cap, .ref-tile:hover .proj-cap, .ref-tile:focus-visible .proj-cap { transform: none; }
.proj-feature .proj-cap { font-size: 1rem; }
.ref-roller { position: absolute; top: 0; bottom: 0; left: 0; width: 10px; background: var(--gold); box-shadow: 0 0 18px rgba(219,201,175,0.9); opacity: 0; z-index: 1; pointer-events: none; }
/* Farbroller-Wisch: nur aktiv, wenn site.js .ref-anim setzt – fehlt das Skript, bleiben die Bilder sichtbar */
.ref-anim .ref-tile .ref-media { clip-path: inset(0 100% 0 0); }
.ref-anim .ref-tile .ref-media img { transform: scale(1.12); }
.ref-anim .ref-tile.is-visible .ref-media { animation: refWipe 1s cubic-bezier(0.65, 0, 0.35, 1) var(--d, 0s) forwards; }
.ref-anim .ref-tile.is-visible .ref-media img { transform: scale(1); transition: transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0s); }
.ref-anim .ref-tile.is-visible:hover .ref-media img { transform: scale(1.05); transition-delay: 0s; transition-duration: 0.7s; }
.ref-anim .ref-tile.is-visible .ref-roller { animation: refRoller 1s cubic-bezier(0.65, 0, 0.35, 1) var(--d, 0s) forwards; }
@keyframes refWipe { to { clip-path: inset(0 0 0 0); } }
@keyframes refRoller { 0% { left: 0; opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 10px); opacity: 0; } }
.proj-more { margin-top: 2.5rem; text-align: center; }
.proj-hint { display: none; text-align: center; font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: #707070; margin-top: 0.75rem; }
.btn-dark {
    display: inline-block; background: var(--off-black); color: var(--white);
    padding: 0.9rem 2rem; border-radius: var(--radius);
    font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
    transition: background var(--transition);
}
.btn-dark:hover { background: #3a3a37; }

/* =============================================
   REFERENZEN – Galerie (Seite /referenzen + Leistungsseiten)
============================================= */
.sp-projects, .ref-section { background: var(--white); color: var(--off-black); }
.sp-projects .section-title { color: var(--off-black); }
.page-hero { background: var(--off-black); padding: 8.5rem 2rem 4rem; }
.page-hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.1; color: var(--white); margin-bottom: 1rem; }
.page-hero .sp-sub { max-width: 680px; margin-bottom: 0; }
.ref-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.ref-filter button {
    background: #fff; border: 1px solid #d9d1c3; color: var(--off-black);
    border-radius: 999px; padding: 0.55rem 1.1rem; min-height: 44px; cursor: pointer;
    font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
    transition: background var(--transition), border-color var(--transition);
}
.ref-filter button:hover { border-color: #7a5c32; }
.ref-filter button[aria-pressed="true"] { background: var(--off-black); border-color: var(--off-black); color: var(--white); }
.ref-n { opacity: 0.7; font-size: 0.75em; margin-left: 0.2rem; }
.ref-status { font-size: 0.85rem; color: #5e5f5a; margin-bottom: 1.5rem; }
.ref-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.ref-item { margin: 0; }
.ref-item[hidden] { display: none; }
.ref-link { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: #e8e2d8; }
.ref-link img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.ref-link:hover img { transform: scale(1.05); }
.ref-zoom {
    position: absolute; top: 0.75rem; right: 0.75rem; width: 38px; height: 38px; border-radius: 50%;
    background: rgba(14,14,13,0.65); color: #fff; display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity var(--transition);
}
.ref-zoom svg { width: 18px; height: 18px; }
.ref-link:hover .ref-zoom, .ref-link:focus-visible .ref-zoom { opacity: 1; }
.ref-item figcaption { font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: #5e5f5a; margin-top: 0.55rem; }
.sp-projects .proj-more { margin-top: 2rem; }
.ref-services { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid #e5e0d8; }
.ref-services-title { font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; color: #7a5c32; margin-bottom: 1rem; }
.ref-services ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ref-services a { display: inline-block; padding: 0.5rem 1rem; border: 1px solid #d9d1c3; border-radius: 999px; color: var(--off-black); font-size: 0.88rem; }
.ref-services a:hover { border-color: #7a5c32; color: #7a5c32; }

/* Großansicht (natives <dialog>: Fokus bleibt im Dialog, Escape schließt) */
.lightbox { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; }
.lightbox::backdrop { background: rgba(10,10,9,0.94); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
html.lb-open { overflow: hidden; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; touch-action: pan-y; }
.lb-img { max-width: min(92vw, 1400px); max-height: 82vh; width: auto; height: auto; object-fit: contain; border-radius: 4px; user-select: none; -webkit-user-drag: none; cursor: zoom-out; }
.lb-caption { color: var(--gold-light); font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; }
.lb-count { color: var(--gray-mid); margin-left: 0.5rem; letter-spacing: 0.05em; }
.lb-btn {
    position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(219,201,175,0.35);
    background: rgba(14,14,13,0.7); color: var(--white); cursor: pointer; z-index: 2;
    display: flex; align-items: center; justify-content: center; transition: background var(--transition);
}
.lb-btn:hover { background: rgba(219,201,175,0.25); }
.lb-btn:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 1rem; right: 1rem; width: 56px; height: 56px; background: var(--gold); color: #000; border-color: var(--gold); }
.lb-close:hover { background: #c9b596; }
.lb-close svg { width: 26px; height: 26px; }
.lb-prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.25rem; top: 50%; transform: translateY(-50%); }
.lb-single .lb-prev, .lb-single .lb-next { display: none; }

@media (max-width: 760px) {
    .proj-grid { grid-template-columns: 1fr; }
    .proj-feature { aspect-ratio: 4 / 5; }
    /* Handy: Kacheln als Wisch-Karussell */
    .proj-tiles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0.9rem; margin: 0 -1.25rem; padding: 0 1.25rem 0.5rem; scrollbar-width: none; }
    .proj-tiles::-webkit-scrollbar { display: none; }
    .proj-tile { flex: 0 0 78%; scroll-snap-align: center; aspect-ratio: 4 / 5; }
    .proj-tile .proj-cap { transform: none; }
    .proj-hint { display: block; }
    .ref-gallery { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .page-hero { padding: 7rem 1.25rem 3rem; }
    .lb-prev, .lb-next { top: auto; bottom: 1.25rem; transform: none; }
    .lb-img { max-height: 75vh; }
}
@media (max-width: 400px) {
    .ref-gallery { grid-template-columns: 1fr; }
}

/* =============================================
   FOOTER – beiges Band unten (Roller-Animation)
============================================= */
.footer-bottom {
    position: relative;
    overflow: hidden;
    margin: 0 -2rem;                 /* volle Breite trotz Footer-Innenabstand */
    padding: 1.15rem 2rem calc(1.15rem + env(safe-area-inset-bottom, 0px));
    display: block;
}
.footer-bottom::before { content: ''; position: absolute; inset: 0; background: var(--gold); }
.footer-bottom-inner {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}
.footer-bottom .footer-copy { color: #2b2b28; }
.footer-bottom .footer-credit a { color: #000; }
.footer-bottom .footer-credit a:hover { color: #5a4325; }
.footer-bottom :focus-visible { outline-color: #000; }
.nowrap { white-space: nowrap; }
.footer-roller {
    position: absolute; top: 0; bottom: 0; left: 0; width: 18px; z-index: 2;
    border-radius: 4px;
    background: linear-gradient(90deg, #c9b596, #efe4d2 55%, #c9b596);
    box-shadow: 0 0 18px rgba(219,201,175,0.8);
    opacity: 0; pointer-events: none;
}
/* Animation nur, wenn site.js .band-anim setzt – sonst ist das Band sofort fertig */
.band-anim .footer-bottom::before { transform: scaleX(0); transform-origin: left center; }
.band-anim .footer-bottom-inner { clip-path: inset(0 100% 0 0); }
.band-anim .footer-bottom.is-visible::before { animation: bandPaint 1.4s cubic-bezier(0.65, 0, 0.35, 1) forwards; }
.band-anim .footer-bottom.is-visible .footer-bottom-inner { animation: bandText 1.4s cubic-bezier(0.65, 0, 0.35, 1) forwards; }
.band-anim .footer-bottom.is-visible .footer-roller { animation: bandRoller 1.4s cubic-bezier(0.65, 0, 0.35, 1) forwards; }
@keyframes bandPaint { to { transform: scaleX(1); } }
@keyframes bandText { to { clip-path: inset(0 0 0 0); } }
@keyframes bandRoller { 0% { left: 0; opacity: 1; } 88% { opacity: 1; } 100% { left: calc(100% - 18px); opacity: 0; } }

/* Desktop schmaler als 1240 px: rechts Platz für die runden Buttons */
@media (max-width: 1240px) and (min-width: 769px) {
    .footer-bottom-inner, .footer-top { padding-right: 90px; }
}

/* Footer am Handy */
@media (max-width: 768px) {
    .footer-logo { justify-self: center; }                     /* kompakt und mittig statt volle Breite */
    .footer-bottom-inner {
        flex-direction: column; text-align: center; gap: 0.35rem;
        padding: 0.4rem 72px;                                  /* Text bleibt frei von WhatsApp/Pfeil-Button */
    }
    .footer-addr span { display: block; }
    .footer-addr .footer-sep { display: none; }
    .footer-addr .nowrap { display: inline; }
}

/* =============================================
   COOKIE-BANNER am Handy: kompakte Leiste unten
============================================= */
@media (max-width: 600px) {
    #cookie-banner {
        left: 0; right: 0; bottom: 0; transform: none;
        width: 100%; max-width: none;
        border-width: 1px 0 0; border-radius: 12px 12px 0 0;
        padding: 0.75rem 1rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
        max-height: 85vh;
    }
    #cookie-banner.show { animation: slideUpMobile 0.35s ease forwards; }
    /* Titel nur für Screenreader (Leiste ist selbsterklärend) – in den Einstellungen sichtbar */
    #cookie-banner:not(.details-open) .cookie-title {
        position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
    }
    .cookie-text { font-size: 0.78rem; line-height: 1.45; margin-bottom: 0.6rem; }
    .cookie-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .cookie-btns button { min-height: 42px; padding: 0.5rem 0.4rem; font-size: 0.7rem; letter-spacing: 0.06em; }
    /* „Einstellungen“ als dezenter Textlink unter den beiden gleichwertigen Buttons */
    #cookie-customize {
        grid-column: 1 / -1; min-height: 28px; padding: 0.1rem;
        background: none; border: none; color: var(--gray-mid);
        text-decoration: underline; text-underline-offset: 3px; letter-spacing: 0.04em; text-transform: none; font-size: 0.78rem;
    }
    #cookie-save { grid-column: 1 / -1; }
}
/* Kurztext im Banner: am PC ausführlich, am Handy kompakt */
.ck-short { display: none; }
@media (max-width: 600px) {
    .ck-long { display: none; }
    .ck-short { display: inline; }
}
@keyframes slideUpMobile { from { transform: translateY(100%); } to { transform: none; } }

/* Nutzer mit "Bewegung reduzieren": Animationen sofort am Endzustand */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
