/* ============================================
   HOPLA THEME – MAIN STYLESHEET
   Design: "Werkstatt+ (Kiefernholz)" – Holz als Akzent, Content hell.
   Basis: Kunden-Entwurf "HoPla Startseite (E) – Handoff", übernommen mit
   echten Inhalten, selbst gehosteten Schriften (DSGVO) und Sägeblatt-Logo.
   ============================================ */

/* ===== SCHRIFTEN (selbst gehostet) ======================================= */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/newsreader-normal-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/newsreader-italic-400-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/libre-franklin-latin.woff2') format('woff2');
}

/* ===== DESIGN TOKENS ====================================================== */
:root {
  --bg:     #f4eee2;   /* heller, warmer Seitenhintergrund */
  --paper:  #fbf7ee;   /* hellere Sektion (Leistungen) */
  --ink:    #241b11;   /* Haupttext / dunkel */
  --sub:    #675849;   /* sekundärer Text */
  --line:   rgba(50,34,18,0.14);
  --accent: oklch(0.52 0.13 42);  /* warmes Rostrot (Buttons, Eyebrow, Links) */
  --cream:  #fffaf1;   /* heller Kontrastton auf Kiefernholz */
  --brass:  #a97a33;   /* warmer Harz-/Messingakzent (auf hellem Holz lesbar) */

  --serif: 'Newsreader', Georgia, serif;
  --sans:  'Libre Franklin', system-ui, sans-serif;

  --header-height: 92px;

  /* Holzmaserung (vertikale Bretter): mehrere interferierende Streifen-
     Verläufe → wirkt organisch statt wie ein Barcode. */
  --vein:
    repeating-linear-gradient(90deg, rgba(255,248,232,.30) 0 1px, transparent 1px 2px, transparent 2px 6px),
    repeating-linear-gradient(89.3deg, rgba(166,106,42,.26) 0 1px, transparent 1px 4px, transparent 4px 11px),
    repeating-linear-gradient(90.6deg, rgba(150,94,36,.16) 0 1px, transparent 1px 3px, transparent 3px 19px),
    repeating-linear-gradient(90deg, rgba(255,246,226,.22) 0 1px, transparent 1px 5px, transparent 5px 29px);
  /* Bretterfugen alle ~232px */
  --seam: repeating-linear-gradient(90deg, rgba(138,88,34,.42) 0 1px, rgba(255,247,228,.35) 1px 2.5px, transparent 2.5px 3px, transparent 3px 232px);
  /* Kiefer: hell-sandiger Grundton, warme Harzstreifen, breite Splint-/Kernholzbahnen (7 Ebenen) */
  --holz: var(--vein), var(--seam),
    repeating-linear-gradient(90deg, rgba(160,101,38,.10) 0 90px, rgba(255,249,235,.16) 90px 180px),
    linear-gradient(180deg,#d7b787,#c39a67);
}

/* ===== HOLZ-OBERFLÄCHEN (reines CSS, kein Texturbild) ==================== */
.wood-oak    { background-color:#d0aa78; background-image: var(--vein), var(--seam), linear-gradient(180deg,#d7b787,#c49867); }
.wood-honey  { background-color:#c39562; background-image: var(--vein), var(--seam),
               repeating-linear-gradient(90deg, rgba(150,94,36,.06) 0 80px, rgba(255,250,238,.06) 80px 160px),
               linear-gradient(180deg,#cba26e,#b6854c); }
/* Kiefer: hell-sandiger Grundton, warme Harzstreifen, breite Splint-/Kernholzbahnen */
.wood-walnut,
.wp-block-group.is-style-holz,
.is-style-holz > .wp-block-button__link,
.wp-block-separator.is-style-holzleiste,
.wp-site-blocks::before,
.hero::before,
.card:not(.card-cta)::before,
.service-header::before { background-color:#d0aa78; background-image: var(--holz); }
/* Hirnholz-Marke (z.B. für spätere Badges) */
.wood-end    { background-color:#dcb98d; background-image:
               repeating-radial-gradient(circle at 42% 44%, rgba(160,101,38,.22) 0 2px, transparent 2px 8px, rgba(160,101,38,.13) 8px 10px, transparent 10px 20px),
               linear-gradient(135deg,#eacfa6,#cfa06a); }

/* ===== BASIS ============================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
::selection { background: rgba(160,90,50,.25); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 80px; }
.is-style-eyebrow { font: 600 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }

/* Holz-Trennband zwischen Sektionen */
.plank-divider { height: 16px; box-shadow: inset 0 1px 0 rgba(255,252,244,.5), inset 0 -2px 4px rgba(120,74,28,.28); }
/* schmale Holzleiste ganz oben */
.ledge { height: 12px; box-shadow: inset 0 -3px 6px rgba(120,74,28,.3); }

/* ===== LOGO ================================================================ */
.logo { display: flex; align-items: center; gap: 13px; }
.logo-ring {
  width: 72px; height: 72px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream); overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 2px 6px rgba(120,80,35,.22);
}
.logo-ring img { width: 80%; height: 80%; object-fit: contain; }
.logo-wordmark { height: 58px; width: auto; display: block; }

/* ===== HEADER / NAV ======================================================= */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--bg); }
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; height: var(--header-height); }

.nav { display: flex; align-items: center; gap: 32px; }
.nav .nav-list { display: flex; align-items: center; gap: 28px; }
.nav .nav-list a {
  font: 500 15px/1 var(--sans); white-space: nowrap; color: var(--ink);
  padding: 8px 0; border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav .nav-list a:hover,
.nav .nav-list .current-menu-item a,
.nav .nav-list .current_page_item a { color: var(--accent); border-bottom-color: var(--accent); }

.btn { font: 600 15px/1 var(--sans); white-space: nowrap; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; border: none; }
.btn-wood   { color: var(--ink); padding: 13px 24px; box-shadow: inset 0 0 0 1px rgba(140,90,38,.35), 0 4px 12px rgba(120,80,35,.22); }
.btn-accent { color: #fff; background: var(--accent); padding: 16px 28px; }
.btn-link   { color: var(--ink); border-bottom: 2px solid var(--accent); border-radius: 0; padding-bottom: 3px; }

/* Hamburger (mobil) */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: .5rem;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ===== HERO ================================================================ */
.hero { position: relative; }
.hero-side { position: absolute; left: 0; top: 0; bottom: 0; width: 26px; box-shadow: inset -3px 0 6px rgba(120,74,28,.3); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-top: 80px; padding-bottom: 76px; }
.hero-plaque { display: inline-block; color: var(--ink); padding: 9px 16px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(140,90,38,.3), 0 4px 12px rgba(120,80,35,.22); }
.hero h1 { font: 500 62px/1.06 var(--serif); letter-spacing: -0.02em; margin-top: 22px; text-wrap: balance; color: var(--ink); }
.hero h1 em { color: var(--accent); font-style: italic; }
.hero-lead { font: 400 19px/1.65 var(--sans); color: var(--sub); max-width: 460px; margin-top: 26px; }
.hero-actions { display: flex; gap: 14px; margin-top: 36px; align-items: center; flex-wrap: wrap; }

/* Foto auf Holzplatte montiert (mit Fase) */
.frame      { padding: 22px; border-radius: 8px; box-shadow: 0 26px 54px rgba(110,70,26,.3), inset 0 0 0 1px rgba(255,252,244,.45); }
.frame-bevel{ padding: 6px; border-radius: 4px; background: rgba(122,78,30,.35); }
.frame-bevel img { border-radius: 3px; box-shadow: 0 6px 18px rgba(90,58,20,.35); }
/* Platzhalter, solange noch keine echten Fotos vorliegen */
.frame-placeholder {
  border-radius: 3px; box-shadow: 0 6px 18px rgba(90,58,20,.35);
  background: var(--cream); color: var(--sub);
  font: 500 14px/1.5 var(--sans); text-align: center;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem; aspect-ratio: 4 / 3;
}
.hero .frame-placeholder { aspect-ratio: 3 / 4; }

/* Echtes Foto im Holzrahmen (Querformat) */
.frame-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

/* Hero-Bilder-Slider: Slides liegen übereinander und blenden über */
.hero-slider { position: relative; aspect-ratio: 3 / 4; border-radius: 3px; overflow: hidden; box-shadow: 0 6px 18px rgba(90,58,20,.35); }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .8s ease; }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slider .hero-slide img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; }
.hero-slide-label {
  position: absolute; top: 14px; left: 14px;
  padding: 6px 12px; border-radius: 4px;
  background: rgba(255,252,244,.9); color: var(--ink);
  font: 600 13px/1.2 var(--sans); letter-spacing: .02em;
  box-shadow: 0 4px 12px rgba(90,58,20,.25);
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide, .otto-slide { transition: none; }
}
.hero-slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: rgba(255,252,244,.85); color: var(--ink);
  font: 400 22px/1 var(--sans); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(90,58,20,.35);
  transition: background .15s; z-index: 2;
}
.hero-slider-arrow:hover { background: #fff; }
.hero-slider-prev { left: 14px; }
.hero-slider-next { right: 14px; }
.hero-slider-dots {
  position: absolute; left: 0; right: 0; bottom: 16px; z-index: 2;
  display: flex; justify-content: center; gap: 8px;
}
.hero-slider-dot {
  width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0;
  background: rgba(255,252,244,.55); cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(36,27,17,.3);
  transition: background .15s, transform .15s;
}
.hero-slider-dot.is-active { background: var(--accent); transform: scale(1.2); }

/* Foto mit Partner-Abzeichen (Gashandel: Air Liquide) */
.photo-badge-wrap { position: relative; }
.photo-badge {
  position: absolute; left: 14px; bottom: 14px;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 4px;
  background: rgba(255,255,255,.95); box-shadow: 0 6px 18px rgba(40,25,10,.3);
  font: 500 13px/1.3 var(--sans); color: var(--sub); text-decoration: none;
  transition: transform .15s;
}
.photo-badge:hover { transform: translateY(-2px); color: var(--accent); }
.frame-bevel .photo-badge img { width: 90px; height: auto; border-radius: 0; box-shadow: none; }

/* ===== PARTNER-LEISTE ===================================================== */
.partners-section { background: var(--paper); border-top: 1px solid rgba(40,24,8,.08); border-bottom: 1px solid rgba(40,24,8,.08); }
.partners-title { text-align: center; font: 500 22px/1 var(--serif); color: var(--sub); margin-bottom: 40px; }
.partners-grid { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 40px 60px; }
.partner-logo { display: flex; align-items: center; transition: opacity .2s; }
.partner-logo img { height: 44px; width: auto; max-width: 160px; object-fit: contain; filter: grayscale(1); opacity: .45; transition: filter .2s, opacity .2s; }
.partner-logo:hover img { filter: grayscale(0); opacity: 1; }

/* ===== LEISTUNGEN (Cards) ================================================= */
.section-pad { padding-top: 76px; padding-bottom: 82px; }
.section-head { text-align: center; margin-bottom: 46px; }
.section-head h2 { font: 500 44px/1.1 var(--serif); letter-spacing: -0.02em; margin-top: 14px; color: var(--ink); }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 30px rgba(40,25,10,.08); border: 1px solid var(--line); display: flex; }
.card-spine { width: 12px; flex: 0 0 auto; }
.card-body { padding: 30px 32px; display: flex; gap: 22px; }
.card-badge {
  width: 52px; height: 52px; border-radius: 10px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font: 600 22px/1 var(--serif); color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(140,90,38,.32), 0 4px 10px rgba(120,80,35,.2);
}
.card h3 { font: 600 22px/1.25 var(--serif); margin: 4px 0 8px; color: var(--ink); }
.card p { font: 400 16px/1.6 var(--sans); color: var(--sub); }
.section-cta { text-align: center; margin-top: 46px; }

.card-cta {
  background: var(--paper); border: 1.5px dashed var(--accent); cursor: pointer;
  transition: background .15s, border-style .15s;
}
.card-cta:hover { background: #fff; border-style: solid; }
.card-cta-body { padding: 30px 32px; display: flex; align-items: center; justify-content: space-between; gap: 22px; width: 100%; }
.card-cta h3 { font: 600 22px/1.25 var(--serif); margin: 0 0 6px; color: var(--accent); }
.card-cta p { font: 400 15px/1.5 var(--sans); color: var(--sub); }
.card-cta-arrow { font: 600 24px/1 var(--sans); color: var(--accent); flex: 0 0 auto; }

/* ===== LEISTUNGEN-GRID ===================================================== */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-item {
    text-align: left; padding: 24px 28px;
    background: #fff; border-radius: 10px;
    border: 1px solid var(--line);
    box-shadow: 0 4px 16px rgba(40,25,10,.06);
    transition: box-shadow .2s, transform .2s;
    cursor: default;
}
.service-item:hover { box-shadow: 0 12px 32px rgba(40,25,10,.13); transform: translateY(-2px); }
.service-header { display: flex; align-items: center; gap: 18px; }
.service-icon {
    width: 64px; height: 64px; border-radius: 12px; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: var(--ink);
    box-shadow: inset 0 0 0 1px rgba(140,90,38,.32), 0 4px 10px rgba(120,80,35,.2);
}
.service-item h3 { font: 600 20px/1.3 var(--serif); color: var(--ink); }
.service-desc {
    font: 400 15px/1.6 var(--sans); color: var(--sub);
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height .3s ease, opacity .25s ease, margin-top .25s ease;
    margin-top: 0; padding-left: 82px;
}
.service-item:hover .service-desc { max-height: 8em; opacity: 1; margin-top: 10px; }

/* ===== KENNZAHLEN (auf Holz) ============================================== */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; padding-top: 56px; padding-bottom: 56px; color: var(--ink); }
.stat { text-align: center; }
.stat + .stat { border-left: 1px solid rgba(36,27,17,.18); }
.stat-n { font: 500 46px/1 var(--serif); color: var(--ink); }
.stat-l { font: 400 14px/1.4 var(--sans); color: rgba(36,27,17,.82); margin-top: 8px; }

/* ===== ÜBER UNS ============================================================ */
.about { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; padding-top: 84px; padding-bottom: 84px; }
.about-text { border-left: 4px solid; border-image: linear-gradient(180deg,#d9b183,#a97a33) 1; padding-left: 26px; }
.about-text h2 { font: 500 40px/1.12 var(--serif); letter-spacing: -0.02em; margin: 14px 0 20px; color: var(--ink); }
.about-text p { font: 400 17px/1.75 var(--sans); color: var(--sub); max-width: 520px; }
.about-text p + p { margin-top: 18px; }
.about-text .btn-link { display: inline-flex; margin-top: 22px; }
.about .frame { padding: 18px; box-shadow: 0 24px 48px rgba(110,70,26,.28), inset 0 0 0 1px rgba(255,252,244,.45); }

/* ===== REFERENZEN (auf Holz) ============================================== */
.refs-section { position: relative; }
.refs-overlay { position: absolute; inset: 0; background: rgba(255,247,232,.2); }
.refs-inner { position: relative; padding-top: 78px; padding-bottom: 84px; }
.refs-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 38px; flex-wrap: wrap; gap: 16px; }
.refs-head h2 { font: 500 40px/1.1 var(--serif); letter-spacing: -0.02em; margin-top: 14px; color: var(--ink); }
.refs-head .is-style-eyebrow, .refs-head .more { color: var(--ink); }
.refs-head .more { font: 600 15px/1 var(--sans); }
.refs-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.ref { padding: 12px; border-radius: 8px; box-shadow: 0 14px 30px rgba(110,70,26,.3), inset 0 0 0 1px rgba(255,252,244,.5); }
.ref-inner { border-radius: 4px; overflow: hidden; background: #fff; }
.ref-inner img,
.ref-inner .frame-placeholder { width: 100%; height: 280px; object-fit: cover; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.ref-cap { padding: 16px 18px; }
.ref-cap h3 { font: 600 19px/1.25 var(--serif); margin-bottom: 5px; color: var(--ink); }
.ref-cap p { font: 400 14px/1.4 var(--sans); color: var(--sub); }

/* ===== REFERENZEN-GALERIE (Seite /referenzen/) ============================ */
/* ===== REFERENZEN: Kategorien-Übersicht ===================================== */
.ref-cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
@media (max-width: 1100px) {
  .ref-cats { grid-template-columns: repeat(2, 1fr); }
}
.ref-cat-tile {
    position: relative; overflow: hidden; border-radius: 10px;
    cursor: pointer; padding: 0; border: none; background: none;
    box-shadow: 0 4px 20px rgba(40,25,10,.1);
    transition: transform .2s, box-shadow .2s;
}
.ref-cat-tile:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(40,25,10,.18); }
.ref-cat-tile img { width: 100%; height: 220px; object-fit: cover; display: block; transition: transform .35s; }
.ref-cat-tile:hover img { transform: scale(1.04); }
.ref-cat-label {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(24,14,4,.82) 0%, rgba(24,14,4,0) 100%);
    padding: 32px 16px 16px;
    display: flex; flex-direction: column; gap: 3px;
}
.ref-cat-label span { font: 600 17px/1.25 var(--serif); color: #f6ecd6; overflow-wrap: anywhere; hyphens: auto; }
.ref-cat-label small { font: 400 13px/1 var(--sans); color: rgba(243,231,210,.7); }

/* ===== REFERENZEN: Detailansicht ============================================ */
.ref-cats.is-hidden { display: none; }
.ref-detail.is-hidden { display: none; }
.ref-detail-back {
    margin-top: 32px;
    display: inline-flex; align-items: center; gap: 8px;
    font: 600 14px/1 var(--sans); color: var(--accent);
    background: none; border: 1px solid var(--accent); border-radius: 999px;
    padding: 10px 20px; cursor: pointer; margin-bottom: 32px;
    transition: background .15s, color .15s;
}
.ref-detail-back:hover { background: var(--accent); color: #fff; }
.ref-detail-head { margin-bottom: 28px; }
.ref-detail-head h2 { font: 600 28px/1.2 var(--serif); color: var(--ink); margin-bottom: 8px; }
.ref-detail-head p { font: 400 16px/1.6 var(--sans); color: var(--sub); max-width: 680px; }


.ref-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.ref-tile {
  position: relative; padding: 0; border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden; background: #fff; cursor: pointer; text-align: left;
  box-shadow: 0 10px 24px rgba(40,25,10,.06); transition: transform .15s, box-shadow .15s;
}
.ref-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(40,25,10,.12); }
.ref-tile img { width: 100%; height: 220px; object-fit: cover; border-radius: 0; }
.ref-tile-label {
  display: block; padding: 10px 14px; font: 600 14px/1.3 var(--sans); color: var(--ink);
}
.ref-tile.is-hidden { display: none; }

/* Lightbox */
.ref-lightbox {
  display: none; position: fixed; inset: 0; z-index: 1000;
  align-items: center; justify-content: center;
}
.ref-lightbox.is-open { display: flex; }
.ref-lb-backdrop { position: absolute; inset: 0; background: rgba(20,12,4,.92); }
.ref-lb-content {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center;
  max-width: 92vw; max-height: 92vh; gap: 16px;
}
.ref-lb-img { max-width: 90vw; max-height: 70vh; width: auto; height: auto; border-radius: 6px; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.ref-lb-cap { text-align: center; max-width: 620px; }
.ref-lb-title { font: 600 22px/1.25 var(--serif); color: var(--cream); margin-bottom: 6px; }
.ref-lb-desc { font: 400 15px/1.5 var(--sans); color: rgba(243,231,210,.82); }
.ref-lb-close, .ref-lb-prev, .ref-lb-next {
  position: absolute; border: none; border-radius: 999px; background: rgba(243,231,210,.12);
  color: var(--cream); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.ref-lb-close:hover, .ref-lb-prev:hover, .ref-lb-next:hover { background: rgba(243,231,210,.25); }
.ref-lb-close { top: -48px; right: 0; width: 40px; height: 40px; font-size: 24px; }
.ref-lb-prev, .ref-lb-next { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 20px; }
.ref-lb-prev { left: -64px; }
.ref-lb-next { right: -64px; }

body.no-scroll { overflow: hidden; }

/* ===== KONTAKT-CTA (auf Holz) ============================================= */
.cta { position: relative; }
.cta-overlay { position: absolute; inset: 0; background: rgba(255,247,232,.2); }
.cta-inner { position: relative; text-align: center; color: var(--ink); padding-top: 86px; padding-bottom: 86px; }
.cta h2 { font: 500 50px/1.1 var(--serif); letter-spacing: -0.02em; max-width: 720px; margin: 0 auto 18px; }
.cta p { font: 400 18px/1.6 var(--sans); color: rgba(36,27,17,.86); max-width: 520px; margin: 0 auto 34px; }
.cta-actions { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.pill { font: 600 16px/1 var(--sans); white-space: nowrap; padding: 17px 30px; border-radius: 999px; }
.pill-cream { color: #fff; background: var(--accent); box-shadow: 0 6px 16px rgba(120,80,35,.22); }
.pill-ghost { color: var(--ink); background: rgba(255,252,244,.55); box-shadow: inset 0 0 0 1.5px rgba(36,27,17,.45); }

/* ===== FOOTER ============================================================== */
.site-footer { color: rgba(36,27,17,.72); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; padding-top: 50px; padding-bottom: 50px; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 320px; }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand .logo-ring { width: 34px; height: 34px; }
.logo-wordmark--footer { height: 30px; }
.footer-brand p { font: 400 14px/1.7 var(--sans); margin: 0; }
.footer-hours { display: grid; grid-template-columns: auto 1fr; gap: 0 0.75em; margin: 0; font: 400 14px/1.7 var(--sans); }
.footer-hours dt, .footer-hours dd { margin: 0; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col { font: 400 14px/2 var(--sans); }
.footer-col .footer-nav-list li { line-height: 2; }
.footer-col a:hover { color: var(--accent); }
.footer-col .hl { color: var(--ink); }
.footer-bottom { border-top: 1px solid rgba(36,27,17,.18); text-align: center; padding: 18px 0; font: 400 13px/1.4 var(--sans); }

/* Easter Egg: Mitarbeiter des Monats */
.otto-trigger {
  background: none; border: none; cursor: pointer; font-size: 14px; line-height: 1;
  padding: 0; margin-left: 8px; vertical-align: middle; opacity: .35;
  transition: opacity .2s, transform .2s;
}
.otto-trigger:hover { opacity: 1; transform: scale(1.25) rotate(-8deg); }

.otto-modal {
  display: none; position: fixed; inset: 0; z-index: 1000;
  align-items: center; justify-content: center;
}
.otto-modal.is-open { display: flex; }
.otto-modal-backdrop { position: absolute; inset: 0; background: rgba(20,12,4,.85); }
.otto-modal-content {
  position: relative; z-index: 1; max-width: 92vw; max-height: 90vh;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.otto-slider {
  position: relative; height: min(70vh, 120vw); aspect-ratio: 3 / 4;
  border-radius: 10px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
.otto-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.otto-slide.is-active { opacity: 1; }
.otto-slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(255,252,244,.8); color: var(--ink);
  font: 400 20px/1 var(--sans); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.otto-slider-arrow:hover { background: #fff; }
.otto-slider-prev { left: 10px; }
.otto-slider-next { right: 10px; }
.otto-slider-dots { display: flex; gap: 8px; }
.otto-slider-dot {
  width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
  background: rgba(243,231,210,.35); transition: background .15s, transform .15s;
}
.otto-slider-dot.is-active { background: var(--cream); transform: scale(1.2); }
.otto-modal-cap { font: 600 18px/1.3 var(--serif); color: var(--cream); text-align: center; margin: 0; }
.otto-modal-close {
  position: absolute; top: -48px; right: 0; width: 40px; height: 40px;
  border: none; border-radius: 999px; background: rgba(243,231,210,.12);
  color: var(--cream); font-size: 24px; cursor: pointer; display: flex;
  align-items: center; justify-content: center; transition: background .15s;
}
.otto-modal-close:hover { background: rgba(243,231,210,.25); }

/* ===== SEITEN-HERO (Unterseiten) =========================================== */
.page-hero-inner { padding-top: 64px; padding-bottom: 64px; }
.page-hero h1 { font: 500 48px/1.12 var(--serif); letter-spacing: -0.02em; margin-top: 18px; color: var(--ink); max-width: 760px; }
.page-hero-lead { font: 400 18px/1.65 var(--sans); color: rgba(36,27,17,.82); max-width: 620px; margin-top: 18px; }
.page-hero .is-style-eyebrow { color: var(--ink); }

/* ===== HINWEISBANNER (Betriebsferien, Stellenanzeige) ===================== */
.banner { border-bottom: 1px solid rgba(40,24,8,.12); }
.banner-inner {
  display: flex; align-items: center; gap: 14px;
  padding-top: 13px; padding-bottom: 13px;
}
.banner-icon { font-size: 21px; flex: 0 0 auto; line-height: 1; }
.banner-text { font: 400 15px/1.5 var(--sans); margin: 0; }
.banner-text strong { font-weight: 600; }
.banner-zusatz { display: block; font-size: 14px; opacity: .85; margin-top: 2px; }

/* Betriebsferien: warnender Ton, hebt sich klar vom Holz ab */
.banner-ferien { background: var(--accent); color: var(--cream); }
.banner-ferien .banner-icon { color: var(--cream); opacity: .9; }

/* Stellenanzeige: Holzoptik wie die uebrigen Akzentflaechen */
.banner-jobs { color: var(--ink); }
.banner-jobs .banner-icon { color: var(--ink); opacity: .7; }
.banner-btn {
  margin-left: auto; flex: 0 0 auto;
  padding: 9px 20px; border-radius: 999px;
  background: var(--cream); color: var(--ink);
  font: 600 14px/1 var(--sans); text-decoration: none;
  box-shadow: 0 3px 10px rgba(90,58,20,.28);
  transition: background .15s, transform .15s;
}
.banner-btn:hover { background: #fff; transform: translateY(-1px); }

/* ===== ENGAGEMENT / UNTERSTÜTZTE VEREINE (Über uns) ======================= */
.support { padding-top: 8px; padding-bottom: 78px; }
.support-inner { max-width: 620px; }
.support h2 { font: 500 34px/1.15 var(--serif); letter-spacing: -0.02em; margin-top: 14px; color: var(--ink); }
.support-lead { font: 400 17px/1.7 var(--sans); color: var(--sub); margin-top: 16px; }
.support-list { list-style: none; margin-top: 26px; }
.support-list li {
  position: relative; padding-left: 20px;
  font: 400 17px/1.6 var(--sans); color: var(--ink);
}
.support-list li + li { margin-top: 12px; }
.support-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brass);
}
.support-list a { color: var(--ink); text-decoration: none; box-shadow: inset 0 -1px 0 var(--line); transition: color .15s, box-shadow .15s; }
.support-list a:hover { color: var(--accent); box-shadow: inset 0 -1px 0 var(--accent); }

/* ===== INHALTE AUS DEM WORDPRESS-EDITOR (the_content) ===================== */
.page-body { font: 400 17px/1.75 var(--sans); color: var(--sub); padding-top: 56px; padding-bottom: 84px; }
.page-body h2 { font: 500 32px/1.2 var(--serif); color: var(--ink); margin: 1.6em 0 .6em; }
.page-body h3 { font: 600 22px/1.3 var(--serif); color: var(--ink); margin: 1.4em 0 .5em; }
.page-body h2:first-child, .page-body h3:first-child { margin-top: 0; }
.page-body p { margin: 0 0 1.2em; }
.page-body ul, .page-body ol { margin: 0 0 1.2em; padding-left: 1.4em; list-style: revert; }
.page-body li { margin-bottom: .4em; }
.page-body a { color: var(--accent); text-decoration: underline; }
.page-body strong, .page-body b { color: var(--ink); }
.page-body img { border-radius: 6px; margin: 1.5em 0; }
.page-body blockquote { border-left: 4px solid var(--accent); padding-left: 1.2em; margin: 1.5em 0; font-style: italic; }

/* WordPress-Standardklassen */
.screen-reader-text {
  border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.alignleft  { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 1.5em auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font: 400 13px/1.4 var(--sans); color: var(--sub); text-align: center; margin-top: .5em; }

/* ===== CHRONIK / ZEITLEISTE ================================================ */
.timeline { position: relative; max-width: 760px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; top: 6px; bottom: 6px; left: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-left: 38px; padding-bottom: 32px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: 0; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 4px var(--paper);
}
.tl-year { font: 500 24px/1 var(--serif); color: var(--accent); margin-bottom: 4px; display: block; }
.tl-text { font: 400 16px/1.6 var(--sans); color: var(--sub); }

/* ===== ZERTIFIZIERUNGEN ==================================================== */
.certs { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 48px; }
.is-style-pille {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 12px 22px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font: 400 15px/1 var(--sans); color: var(--sub);
}
.is-style-pille strong { font-weight: 600; color: var(--ink); }

/* ===== KONTAKT ============================================================== */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start; }

.contact-info h2 { font: 500 32px/1.2 var(--serif); letter-spacing: -0.02em; margin: 14px 0 20px; color: var(--ink); }
.contact-info p { font: 400 17px/1.75 var(--sans); color: var(--sub); margin: 0 0 1.2em; }
.contact-info a { color: var(--accent); text-decoration: underline; }
.contact-info strong { color: var(--ink); }

.contact-form-card {
  background: #fff; border-radius: 8px; border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(40,25,10,.08); padding: 36px;
}
.contact-form-card h2 { font: 500 28px/1.2 var(--serif); letter-spacing: -0.02em; margin: 0 0 24px; color: var(--ink); }

/* Contact Form 7 */
.contact-form-card .wpcf7-form label { display: block; font: 600 14px/1.4 var(--sans); color: var(--ink); margin-bottom: 18px; }
.contact-form-card .wpcf7-form input[type="text"],
.contact-form-card .wpcf7-form input[type="email"],
.contact-form-card .wpcf7-form input[type="tel"],
.contact-form-card .wpcf7-form textarea {
  display: block; width: 100%; margin-top: 8px; padding: 12px 14px;
  font: 400 16px/1.5 var(--sans); color: var(--ink);
  border: 1px solid var(--line); border-radius: 6px; background: var(--paper);
  box-sizing: border-box;
}
.contact-form-card .wpcf7-form input:focus,
.contact-form-card .wpcf7-form textarea:focus {
  outline: none; border-color: var(--accent); background: #fff;
}
.contact-form-card .wpcf7-form textarea { min-height: 140px; resize: vertical; }
.contact-form-card .wpcf7-form .wpcf7-acceptance {
  display: block; font: 400 14px/1.6 var(--sans); color: var(--sub); margin-bottom: 22px;
}
.contact-form-card .wpcf7-form .wpcf7-list-item { margin: 0; display: flex; gap: 10px; align-items: flex-start; }
.contact-form-card .wpcf7-form .wpcf7-list-item input { margin-top: 4px; }
.contact-form-card .wpcf7-form input[type="submit"] {
  font: 600 15px/1 var(--sans); color: #fff; background: var(--accent);
  border: none; border-radius: 999px; padding: 15px 32px; cursor: pointer;
}
.contact-form-card .wpcf7-form input[type="submit"]:hover { opacity: .92; }
.contact-form-card .wpcf7-not-valid-tip { display: block; font: 400 13px/1.4 var(--sans); color: oklch(0.55 0.18 25); margin-top: 6px; }
.contact-form-card .wpcf7-response-output {
  margin-top: 22px; padding: 14px 18px; border-radius: 6px;
  font: 400 15px/1.5 var(--sans); border: 1px solid var(--line);
}
.contact-form-card form.sent .wpcf7-response-output { border-color: oklch(0.6 0.13 145); color: oklch(0.4 0.1 145); background: oklch(0.96 0.03 145); }
.contact-form-card form.failed .wpcf7-response-output,
.contact-form-card form.aborted .wpcf7-response-output,
.contact-form-card form.spam .wpcf7-response-output { border-color: oklch(0.55 0.18 25); color: oklch(0.4 0.15 25); background: oklch(0.96 0.03 25); }
.contact-form-card form.invalid .wpcf7-response-output { border-color: var(--accent); color: var(--accent); background: var(--paper); }

/* ===== ANFAHRT / KARTE ====================================================== */
.map-embed {
  position: relative; width: 100%; aspect-ratio: 16 / 7; border-radius: 8px;
  overflow: hidden; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(40,25,10,.08);
}
.map-embed { background: #f2efe9; }
/* Kartenbild in fester Größe, immer auf die Bildmitte (= Standort) zentriert */
.map-img { position: absolute; left: 50%; top: 50%; width: 1400px; height: 1000px; max-width: none; transform: translate(-50%, -50%); }
/* Pin: Spitze liegt genau in der Mitte des Rahmens */
.map-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; filter: drop-shadow(0 4px 6px rgba(0,0,0,.3)); pointer-events: none; }
.map-pin svg { display: block; }
.map-pin-label { background: #fff; color: var(--ink); font: 600 13px/1 var(--sans); padding: 7px 10px; border-radius: 4px; margin-bottom: 5px; white-space: nowrap; }
.map-credit { position: absolute; right: 0; bottom: 0; background: rgba(255,255,255,.85); color: #333; font: 400 11px/1 var(--sans); padding: 4px 8px; border-top-left-radius: 6px; }
.map-credit:hover { text-decoration: underline; }
.map-link { text-align: center; margin-top: 18px; }
.map-link a { color: var(--accent); text-decoration: underline; font: 600 15px/1 var(--sans); }

/* ===== RESPONSIVE ========================================================== */
@media (max-width: 900px) {
  /* Längsschreibweise statt Shorthand: würde sonst padding-top/-bottom
     von .about/.section-pad/.hero-grid/.refs-inner/.cta-inner/.page-hero-inner
     (die jeweils zusammen mit .wrap auf demselben Element stehen) auf 0
     zurücksetzen und alle Sektions-Übergänge auf Mobile zusammenquetschen */
  .wrap { padding-left: 24px; padding-right: 24px; }
  .hero-grid, .about, .cards, .refs-grid, .stats, .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .service-desc { padding-left: 0; }
  .hero h1 { font-size: 44px; }
  .section-head h2, .about-text h2, .refs-head h2, .page-hero h1 { font-size: 30px; }
  .cta h2 { font-size: 34px; }
  .contact-form-card { padding: 24px; }
  .map-embed { aspect-ratio: 4 / 3; }
  .stat + .stat { border-left: none; border-top: 1px solid rgba(36,27,17,.18); padding-top: 16px; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .banner-inner { flex-wrap: wrap; gap: 10px; }
  .banner-text { flex: 1 1 200px; font-size: 14px; }
  .banner-btn { margin-left: 0; width: 100%; text-align: center; }

  /* Referenzen-Galerie */
  .ref-cats { grid-template-columns: repeat(2, 1fr); }
  .ref-cat-tile img { height: 160px; }
  .ref-cat-label { padding: 28px 12px 12px; }
  .ref-cat-label span { font-size: 15px; }
  .ref-gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .ref-tile img { height: 150px; }
  .ref-lb-prev, .ref-lb-next { top: auto; bottom: -56px; transform: none; width: 44px; height: 44px; }
  .ref-lb-prev { left: 0; }
  .ref-lb-next { right: 0; }
  .ref-lb-close { top: -44px; }
  .ref-lb-content { max-width: 94vw; max-height: 88vh; }
  .ref-lb-img { max-height: 60vh; }

  /* Mobile-Navigation (Hamburger, gesteuert von main.js) */
  .nav-toggle { display: flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); box-shadow: 0 12px 24px rgba(40,24,8,.18);
    border-top: 1px solid var(--line); padding: 8px 24px 20px;
  }
  .nav.is-open { display: flex; }
  .nav .nav-list { flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
  .nav .nav-list a { display: block; padding: 10px 0; font-size: 1rem; }
  .nav .btn { margin-top: 12px; }

  /* Dekorativer Holzstreifen am Hero-Rand überlappt auf schmalen Screens
     das .wrap-Padding und schneidet Badges/Buttons links an – auf Mobile aus */
  .hero-side { display: none; }
  .hero-slide-label { top: 10px; left: 10px; font-size: 12px; padding: 5px 10px; }
  .photo-badge { left: 10px; bottom: 10px; padding: 8px 10px; font-size: 12px; }
  .frame-bevel .photo-badge img { width: 70px; }
}

/* ===== KONTAKTFORMULAR: Honeypot (für Menschen unsichtbar, siehe functions.php) ===== */
.hopla-hp { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   BLOCK-THEME (Stand 3.0)
   Ab hier: Anpassungen, damit die WordPress-Blöcke so aussehen wie der
   abgenommene Stand 2.9. Die Regeln oben stammen unverändert aus 2.9.
   ========================================================================== */

/* ----- Grundlage ----- */
figure { margin: 0; }
.wp-site-blocks::before { content: ""; display: block; height: 12px; box-shadow: inset 0 -3px 6px rgba(120,74,28,.3); } /* Holzleiste ganz oben */
.wp-block-group.is-style-papier { background: var(--paper); }
.wp-block-separator.is-style-holzleiste {
  height: 16px; border: none; margin: 0; max-width: none; width: auto; opacity: 1;
  box-shadow: inset 0 1px 0 rgba(255,252,244,.5), inset 0 -2px 4px rgba(120,74,28,.28);
}
/* Dachzeile war in 2.9 ein <span>, jetzt ein Absatz: Regeln wie „.about-text p" dürfen sie nicht überschreiben */
p.is-style-eyebrow.is-style-eyebrow { display: inline-block; font: 600 13px/1 var(--sans); margin: 0; max-width: none; color: var(--accent); }
.page-hero p.is-style-eyebrow.is-style-eyebrow,
.refs-head p.is-style-eyebrow.is-style-eyebrow,
p.hero-plaque.is-style-eyebrow.is-style-eyebrow { color: var(--ink); }
.card p.card-badge { font: 600 22px/1 var(--serif); color: var(--ink); }
.card p.card-cta-arrow { font: 600 24px/1 var(--sans); color: var(--accent); }
.h2-kompakt.h2-kompakt { font-size: 38px; } /* wie in 2.9 auch mobil 38px */

/* ----- Buttons ----- */
.wp-block-buttons > .wp-block-button { display: flex; }
.wp-block-button__link {
  font: 600 15px/1 var(--sans); white-space: nowrap; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; border: none; padding: 16px 28px;
  color: #fff; background: var(--accent);
}
.is-style-holz > .wp-block-button__link { color: var(--ink); padding: 13px 24px; box-shadow: inset 0 0 0 1px rgba(140,90,38,.35), 0 4px 12px rgba(120,80,35,.22); }
.is-style-textlink > .wp-block-button__link { color: var(--ink); background: none; border-bottom: 2px solid var(--accent); border-radius: 0; padding: 0 0 3px; }
.is-style-akzent > .wp-block-button__link { font-size: 16px; padding: 17px 30px; color: #fff; background: var(--accent); box-shadow: 0 6px 16px rgba(120,80,35,.22); }
.is-style-hell > .wp-block-button__link { font-size: 16px; padding: 17px 30px; color: var(--ink); background: rgba(255,252,244,.55); box-shadow: inset 0 0 0 1.5px rgba(36,27,17,.45); }
/* Textlink unter dem Fließtext: steht wie in 2.9 als Inline-Element in einer eigenen Zeile */
.about-text .wp-block-buttons { display: block; }
.about-text .wp-block-buttons > .wp-block-button { display: inline-flex; margin-top: 22px; }

/* ----- Kopfzeile ----- */
header.wp-block-template-part { position: sticky; top: 0; z-index: 100; }
.logo-ring a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
figure.logo-wordmark { height: auto; }
.logo-wordmark a { display: block; }
.logo-wordmark img { height: 58px; width: auto; display: block; }
.logo-wordmark--footer img { height: 30px; }

/* Menü (Navigations-Block) */
.primary-nav.wp-block-navigation { position: static; gap: 28px; }
.primary-nav .wp-block-navigation__container { gap: 28px; align-items: center; flex-wrap: nowrap; }
.primary-nav .wp-block-navigation-item { display: block; color: var(--ink); transition: color .15s; }
.primary-nav .wp-block-navigation-item__content {
  display: inline; font: 500 15px/1 var(--sans); white-space: nowrap;
  padding: 8px 0; border-bottom: 2px solid transparent; transition: border-color .15s;
}
.primary-nav .wp-block-navigation-item:hover,
.primary-nav .wp-block-navigation-item.current-menu-item { color: var(--accent); }
.primary-nav .wp-block-navigation-item:hover > .wp-block-navigation-item__content,
.primary-nav .current-menu-item > .wp-block-navigation-item__content { border-bottom-color: var(--accent); }
/* Hamburger: drei Striche wie in 2.9 */
.primary-nav .wp-block-navigation__responsive-container-open {
  box-sizing: content-box; width: 24px; height: 16px; padding: .5rem; border: none; cursor: pointer;
  background: linear-gradient(var(--ink), var(--ink)) 0 0 / 24px 2px no-repeat content-box,
              linear-gradient(var(--ink), var(--ink)) 0 7px / 24px 2px no-repeat content-box,
              linear-gradient(var(--ink), var(--ink)) 0 14px / 24px 2px no-repeat content-box;
}
.primary-nav .wp-block-navigation__responsive-container-open svg,
.primary-nav .wp-block-navigation__responsive-container-close { display: none; }
html.has-modal-open { overflow: visible; }

/* ----- Hero ----- */
.hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 26px; box-shadow: inset -3px 0 6px rgba(120,74,28,.3); }

/* ----- Bild im Holzrahmen (Stil „Holzrahmen" am Bild-Block) ----- */
.wp-block-image.is-style-holzrahmen {
  padding: 18px; border-radius: 8px;
  box-shadow: 0 24px 48px rgba(110,70,26,.28), inset 0 0 0 1px rgba(255,252,244,.45);
  background-color: #d0aa78;
  background-image: linear-gradient(rgba(122,78,30,.35), rgba(122,78,30,.35)), var(--holz);
  background-clip: content-box, border-box, border-box, border-box, border-box, border-box, border-box, border-box;
}
.wp-block-image.is-style-holzrahmen img {
  display: block; margin: 6px; width: calc(100% - 12px); height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 3px; box-shadow: 0 6px 18px rgba(90,58,20,.35);
}
.frame-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
figure.frame-photo { aspect-ratio: auto; }
.photo-badge a { color: inherit; }

/* ----- Karten ----- */
.card:not(.card-cta)::before { content: ""; width: 12px; flex: 0 0 auto; }
.card-cta { position: relative; }
.card-cta h3 a { color: inherit; }
.card-cta h3 a::after { content: ""; position: absolute; inset: 0; }

/* ----- Leistungs-Kacheln: Symbol über die Klasse icon-NAME an der Kopf-Gruppe ----- */
.service-header::before {
  width: 64px; height: 64px; border-radius: 12px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-family: "Phosphor"; font-size: 28px; line-height: 1; font-weight: normal; color: var(--ink);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  box-shadow: inset 0 0 0 1px rgba(140,90,38,.32), 0 4px 10px rgba(120,80,35,.2);
}

/* ----- Flächen auf Holz: heller Schleier (früher eigenes Element) ----- */
.refs-section::before, .cta::before { content: ""; position: absolute; inset: 0; background: rgba(255,247,232,.2); }
.cta .wp-block-buttons.cta-actions { display: inline-flex; }

/* ----- Partner-Leiste ----- */
.partner-logo a { display: flex; align-items: center; }

/* ----- Karte (Kontakt) ----- */
.map-embed .wp-block-image img { position: absolute; left: 50%; top: 50%; width: 1400px; height: 1000px; max-width: none; transform: translate(-50%, -50%); }
.map-embed .map-pin-label {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, calc(-100% - 50px)); margin: 0;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.3)); pointer-events: none;
}
.map-embed .map-pin-label::after {
  content: ""; position: absolute; left: 50%; top: 100%; margin-top: 5px; transform: translateX(-50%); width: 34px; height: 45px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Cpath d='M12 0C5.4 0 0 5.4 0 12c0 9 12 20 12 20s12-11 12-20C24 5.4 18.6 0 12 0z' fill='%23a54a24'/%3E%3Ccircle cx='12' cy='12' r='5' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ----- Footer ----- */
.site-footer { background: var(--bg); }
.footer-adresse { margin-bottom: 1.7em !important; }
.site-footer .wp-block-navigation__container { flex-direction: column; align-items: flex-start; gap: 0; }
.site-footer .wp-block-navigation-item__content { line-height: 2; }
.footer-col .hl-telefon { margin-top: 12px; }
.footer-bottom a[href="#otto"] {
  display: inline-block; font-size: 14px; line-height: 1; margin-left: 8px; vertical-align: middle; opacity: .35;
  transition: opacity .2s, transform .2s;
}
.footer-bottom a[href="#otto"]:hover { opacity: 1; transform: scale(1.25) rotate(-8deg); }

/* Easter Egg: die zwei Bilder liegen als Bild-Blöcke im Footer */
.otto-slider .wp-block-image { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.otto-slider .wp-block-image.is-active { opacity: 1; }
.otto-slider .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .otto-slider .wp-block-image { transition: none; } }

/* ----- Referenzen ohne Umbau (falls die Gruppe einmal nicht erkannt wird) ----- */
.ref-kategorie + .ref-kategorie { margin-top: 48px; }

/* ----- Mobil ----- */
@media (max-width: 900px) {
  .hero::before { display: none; }

  /* Menü klappt wie in 2.9 unter der Kopfzeile auf (statt Vollbild-Menü von WordPress).
     !important nur dort, wo das Standard-CSS des Navigations-Blocks sonst gewinnt. */
  .primary-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: block; }
  .primary-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
  .primary-nav .wp-block-navigation__responsive-container.is-menu-open {
    position: absolute; top: 100%; left: 0; right: 0; bottom: auto; z-index: 100;
    display: flex; flex-direction: column; align-items: flex-start; gap: 0; overflow: visible;
    animation: none !important; opacity: 1;
    background-color: var(--bg) !important; color: var(--ink) !important;
    box-shadow: 0 12px 24px rgba(40,24,8,.18); border-top: 1px solid var(--line);
    padding: 8px 24px 20px !important;
  }
  .primary-nav .is-menu-open .wp-block-navigation__responsive-close,
  .primary-nav .is-menu-open .wp-block-navigation__responsive-dialog { position: static; width: 100%; max-width: none; margin: 0 !important; gap: 0; }
  .primary-nav .is-menu-open .wp-block-navigation__responsive-container-content { padding: 0 !important; align-items: flex-start !important; width: 100%; gap: 0; }
  .primary-nav .is-menu-open .wp-block-navigation__container { flex-direction: column; align-items: flex-start !important; gap: 4px !important; width: 100%; }
  .primary-nav .is-menu-open .wp-block-navigation-item { display: block !important; color: var(--ink) !important; }
  .primary-nav .is-menu-open .wp-block-navigation-item:hover,
  .primary-nav .is-menu-open .wp-block-navigation-item.current-menu-item { color: var(--accent) !important; }
  .primary-nav .is-menu-open .wp-block-navigation-item__content { display: block !important; padding: 10px 0 !important; font-size: 1rem; }
}
