:root {
  --text: #3c3c3c;
  --muted: #7a7a7a;
  --line: #d9d9d9;
  --bg: #fff;
  --accent: #9b6b4c;
  --font: "Source Sans Pro", "Source Sans 3", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 300 16px/1.6 var(--font); }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: relative; z-index: 20; max-width: 1180px; margin: 0 auto; height: 97px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 16px;
}
.logo { font-size: 16px; font-weight: 300; text-decoration: none; letter-spacing: .01em; white-space: nowrap; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; }
.menu > li { position: relative; }
.menu > li + li { border-left: 1px solid var(--line); }
.menu a { display: block; padding: 6px 15px; font-size: 10px; letter-spacing: .04em; text-decoration: none; color: #555; white-space: nowrap; }
.menu a:hover, .menu .active > a { color: #aaa; }
.menu ul {
  list-style: none; margin: 0; padding: 6px 0; position: absolute; left: 0; top: 100%; min-width: 100%;
  background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.08); display: none;
}
.menu li:hover > ul, .menu li:focus-within > ul { display: block; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px 0; }

/* Startseite: Kopfzeile liegt über der Diashow */
.home .site-header { position: absolute; left: 0; right: 0; top: 0; color: #fff; }
.home .menu > li > a { color: #fff; }
.home .menu > li + li { border-left-color: rgba(255,255,255,.7); }
.home .menu ul a { color: #555; }

/* ---------- Inhalt ---------- */
.wrap { max-width: 1385px; margin: 0 auto; padding: 0 30px; }
.pad { padding-top: 30px; padding-bottom: 60px; }
.txt { max-width: 920px; margin: 0 auto 28px; }
.txt p, .txt h1, .txt h2, .txt h3, .txt h4, .txt h5, .txt h6 { margin: 0; font-weight: 300; }
.txt h1, .txt h2 { font-size: 34px; line-height: 1.25; letter-spacing: .08em; margin-top: 36px; }
.txt h3, .txt h4 { font-size: 20px; line-height: 1.4; }
.txt .sp { height: 1em; }
.txt strong { font-weight: 600; }
.ta-center { text-align: center; }
.ta-right { text-align: right; }
.ta-justify { text-align: justify; }

/* Galerie-Raster (Wix Pro Gallery: 4 Spalten, 16:9 beschnitten) */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-bottom: 40px; }
.grid a { display: block; overflow: hidden; background: #f2f2f2; }
.grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s, opacity .3s; }
.grid a:hover img { transform: scale(1.03); opacity: .9; }
.grid.square { grid-template-columns: repeat(5, 1fr); gap: 18px; max-width: 920px; margin: 0 auto 40px; }
.grid.square img { aspect-ratio: 1; }

.imgrow { display: flex; justify-content: center; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin: 0 auto 40px; }
.imgrow a { display: block; }
.imgrow img { height: 210px; width: auto; object-fit: cover; }

/* Kachel-Navigation (Startseite, Fotografie, Baudokumentation) */
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px 12px; max-width: 980px; margin: 40px auto 0; }
.tile { text-decoration: none; text-align: center; }
.tile img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: opacity .3s; }
.tile:hover img { opacity: .8; }
.tile span { display: block; margin-top: 10px; font-size: 18px; letter-spacing: .02em; }
.narrow-text .txt { margin-bottom: 10px; }

/* Diashow Startseite */
.slideshow { position: relative; height: min(100vh, 58vw); min-height: 360px; background: #111; overflow: hidden; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s ease; }
.slide.on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.sl-count { position: absolute; right: 30px; left: auto; bottom: 26px; color: #fff; font-size: 13px; }
.sl-prev, .sl-next {
  position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 130px; border: 0; cursor: pointer;
  background: rgba(0,0,0,.25); color: #fff; font-size: 30px; transition: background .2s;
}
.sl-prev { left: 0; } .sl-next { right: 0; }
.sl-prev:hover, .sl-next:hover { background: rgba(0,0,0,.5); }

/* 360°-Rundgänge */
.tour { width: 100%; max-width: 980px; margin: 0 auto 60px; background: #eee; }
.tour.wide { max-width: none; }
.tour iframe { width: 100%; height: 100%; border: 0; display: block; }

.full { max-width: 980px; margin: 0 auto 40px; }
.tour + .full { margin-top: -50px; }

/* Referenzen */
.refs { display: grid; grid-template-columns: 522px 1fr; gap: 60px; max-width: 920px; margin: 0 auto; }
.refs .logos { width: 100%; margin-bottom: 36px; }
.reflist { font-size: 20px; line-height: 1.5; color: #666; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.card img { width: 100%; aspect-ratio: 295 / 323; object-fit: cover; }
.card h3 { font-weight: 400; font-size: 20px; margin: 16px 24px 10px; }
.card .txt { margin: 0 24px; font-size: 15px; }

/* Kontakt */
.contact { max-width: 700px; margin: 0 auto; }
.contact h1 { font-weight: 300; font-size: 34px; margin: 0 0 30px; }
.contact input, .contact textarea {
  width: 100%; font: inherit; padding: 14px 4px; border: 0; border-bottom: 1px solid #999; margin-bottom: 12px; background: transparent;
}
.contact textarea { border: 1px solid #999; padding: 10px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact button { font: inherit; padding: 10px 40px; border: 1px solid var(--text); background: var(--text); color: #fff; cursor: pointer; float: right; }
.contact button:hover { background: #fff; color: var(--text); }
.thanks { clear: both; padding-top: 20px; }

/* Imagefilm */
.player { max-width: 760px; margin: 20px auto 20px; }
.player video { width: 100%; aspect-ratio: 16 / 9; background: #000; display: none; }
.player.has-video video { display: block; }
.vmsg { text-align: center; color: var(--muted); }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; max-width: 980px; margin: 0 auto; }
.vid { position: relative; border: 0; padding: 0; background: #000; cursor: pointer; text-align: left; color: #fff; font: inherit; }
.vid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: .8; transition: opacity .2s; }
.vid:hover img { opacity: 1; }
.vid .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -70%); font-size: 26px; }
.vid .vt { position: absolute; left: 10px; bottom: 8px; font-size: 14px; }
.vid .vd { position: absolute; right: 10px; bottom: 8px; font-size: 12px; }

/* Fußzeile */
.site-footer { border-top: 1px solid #eee; padding: 30px 16px 50px; text-align: center; font-size: 12px; color: var(--muted); }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(255,255,255,.97); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
.lb img { max-width: calc(100vw - 140px); max-height: calc(100vh - 80px); object-fit: contain; box-shadow: 0 2px 20px rgba(0,0,0,.12); }
.lb button { position: absolute; background: none; border: 0; font-size: 44px; color: #444; cursor: pointer; padding: 10px 18px; line-height: 1; }
.lb .lb-prev { left: 8px; } .lb .lb-next { right: 8px; }
.lb .lb-count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- Mobil ---------- */
@media (max-width: 1000px) {
  .burger { display: block; }
  .site-header nav { position: absolute; top: 80px; right: 16px; background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.15); display: none; }
  .site-header.open nav { display: block; }
  .menu { flex-direction: column; min-width: 220px; padding: 8px 0; }
  .menu > li + li { border-left: 0; }
  .menu a, .home .menu > li > a { color: #444; font-size: 13px; padding: 10px 20px; }
  .menu ul { position: static; display: block; box-shadow: none; padding: 0 0 0 14px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .refs { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .site-header { height: 72px; }
  .site-header nav { top: 60px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .grid.square { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tiles { grid-template-columns: 1fr; gap: 20px 10px; }
  .tile span { font-size: 15px; }
  .cards { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .imgrow img { height: auto; width: 100%; }
  .imgrow a { width: 100%; }
  .slideshow { height: 70vh; }
  
  .sl-count { right: 16px; left: auto; text-align: right; }
  .txt h1, .txt h2 { font-size: 26px; }
  .reflist { font-size: 17px; }
  .lb img { max-width: 100vw; max-height: 85vh; }
  .lb .lb-prev, .lb .lb-next { bottom: 30px; top: auto; }
}




/* Einheitlich kräftiges Schwarz für die Texte */
:root { --text: #000; --muted: #000; }
body { color: #000; }
body a, .logo, .menu a, .txt, .tile span, .site-footer, .reflist,
.contact h1, .contact label, .contact input, .contact textarea,
.card h3, .card .txt { color: #000; }

/* Desktop: ursprüngliche Navigation beibehalten */
@media (min-width: 768px) {
  .burger { display: none !important; }
  .site-header nav { position: static; display: block; visibility: visible; transform: none;
    width: auto; height: auto; max-height: none; overflow: visible; padding: 0;
    background: transparent; box-shadow: none; }
  .menu { flex-direction: row; min-width: 0; width: auto; max-width: none; margin: 0; }
  .menu > li { border-bottom: 0 !important; }
  .menu a { color: #000 !important; }
  .home .menu > li > a { color: #000 !important; }
  .home .site-header { color: #000; }
  .home .menu > li + li { border-left-color: #000; }
  .contact-fab, .back-to-top { display: none !important; }
}

/* Smartphone: Vollbildnavigation und mobile Zusatzfunktionen */
@media (max-width: 767px) {
  .site-header { z-index: 200; padding: 0 18px; }
  .logo { color: #000 !important; font-weight: 500; position: relative; z-index: 203; }
  .burger { display: block; color: #000; position: relative; z-index: 204; }
  .burger span { background: #000; }
  .site-header nav {
    position: fixed; inset: 0; z-index: 201; width: 100vw; height: 100vh; height: 100dvh;
    max-height: 100dvh; overflow-y: auto; display: block; visibility: hidden;
    background: rgba(255,255,255,.99); box-shadow: none; padding: 86px 28px 34px;
    transform: translateX(-100%); transition: transform .55s cubic-bezier(.22,.75,.25,1), visibility .55s;
  }
  .site-header.open nav { display: block; visibility: visible; transform: translateX(0); }
  .menu { display: flex; flex-direction: column; min-width: 0; width: 100%; max-width: 620px;
    margin: 0 auto; padding: 0; gap: 0; }
  .menu > li { border: 0 !important; border-bottom: 1px solid #e8e8e8 !important;
    opacity: 0; transform: translateX(-22px); }
  .site-header.open .menu > li { animation: menuItemIn .42s ease forwards; }
  .site-header.open .menu > li:nth-child(1) { animation-delay: .08s; }
  .site-header.open .menu > li:nth-child(2) { animation-delay: .13s; }
  .site-header.open .menu > li:nth-child(3) { animation-delay: .18s; }
  .site-header.open .menu > li:nth-child(4) { animation-delay: .23s; }
  .site-header.open .menu > li:nth-child(5) { animation-delay: .28s; }
  .site-header.open .menu > li:nth-child(6) { animation-delay: .33s; }
  .site-header.open .menu > li:nth-child(7) { animation-delay: .38s; }
  .site-header.open .menu > li:nth-child(8) { animation-delay: .43s; }
  @keyframes menuItemIn { to { opacity: 1; transform: translateX(0); } }
  .menu a, .home .menu > li > a, .home .menu ul a {
    color: #000 !important; font-size: clamp(17px,4.5vw,22px); font-weight: 500;
    line-height: 1.35; padding: 13px 8px; }
  .menu ul { position: static; display: block; padding: 0 0 5px 18px; box-shadow: none; }
  .menu ul a { font-size: 16px !important; }
  body.menu-open { overflow: hidden; }

  .contact-fab { position: fixed; right: 12px; bottom: 18px; z-index: 180;
    display: flex; flex-direction: column; align-items: flex-end; gap: 10px; font-family: var(--font); }
  .contact-fab .fab-item { display: flex; align-items: center; gap: 12px; text-decoration: none; }
  .contact-fab .fab-label { background: #fff; color: #000; padding: 10px 16px; border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0,0,0,.18); font-size: 15px; font-weight: 500; }
  .contact-fab .fab-icon, .contact-fab .fab-toggle { width: 54px; height: 54px; border-radius: 50%;
    display: grid; place-items: center; color: #fff; border: 0; box-shadow: 0 5px 16px rgba(0,0,0,.2); }
  .contact-fab .fab-icon svg { width: 27px; height: 27px; fill: currentColor; }
  .contact-fab .phone { background: #59c653; }
  .contact-fab .email { background: #c41468; }
  .contact-fab .fab-toggle { background: #0788ef; cursor: pointer; font-size: 30px; line-height: 1; }
  .contact-fab.collapsed .fab-item { display: none; }
  .back-to-top { position: fixed; right: 12px; bottom: 88px; z-index: 170; width: 52px; height: 52px;
    border: 0; background: #333; color: #fff; font-size: 34px; line-height: 1; cursor: pointer;
    display: none; box-shadow: 0 4px 14px rgba(0,0,0,.22); }
  .back-to-top.visible { display: block; }
}


/* Korrektur: zuverlässige Smartphone-Menüanimation */
@media (max-width: 767px) {
  .site-header nav {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow-y: auto !important;
    z-index: 201 !important;
    background: rgba(255,255,255,.99) !important;
    padding: 86px 28px 34px !important;
    box-shadow: none !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(-100%,0,0);
    transition: transform .6s cubic-bezier(.22,.75,.25,1), opacity .25s ease, visibility 0s linear .6s;
    will-change: transform;
  }
  .site-header.open nav {
    display: block !important;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0,0,0);
    transition: transform .6s cubic-bezier(.22,.75,.25,1), opacity .25s ease, visibility 0s;
  }
  .site-header nav .menu > li {
    opacity: 0;
    transform: translate3d(-18px,0,0);
    animation: none;
  }
  .site-header.open nav .menu > li {
    animation: nmMenuItemIn .38s ease both;
  }
  .site-header.open nav .menu > li:nth-child(1) { animation-delay: .12s; }
  .site-header.open nav .menu > li:nth-child(2) { animation-delay: .18s; }
  .site-header.open nav .menu > li:nth-child(3) { animation-delay: .24s; }
  .site-header.open nav .menu > li:nth-child(4) { animation-delay: .30s; }
  .site-header.open nav .menu > li:nth-child(5) { animation-delay: .36s; }
  .site-header.open nav .menu > li:nth-child(6) { animation-delay: .42s; }
  .site-header.open nav .menu > li:nth-child(7) { animation-delay: .48s; }
  .site-header.open nav .menu > li:nth-child(8) { animation-delay: .54s; }
  @keyframes nmMenuItemIn {
    from { opacity: 0; transform: translate3d(-18px,0,0); }
    to { opacity: 1; transform: translate3d(0,0,0); }
  }
}
@media (min-width: 768px) {
  /* Desktop/Mac: Navigation beim Laden sichtbar von links nach rechts einblenden.
     Kein transform:none!important, damit die Keyframes die Bewegung ausführen können. */
  .site-header nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    animation: desktopMenuIn 1.1s cubic-bezier(.22,.75,.25,1) .15s both;
    will-change: transform, opacity;
  }
  @keyframes desktopMenuIn {
    from { opacity: 0; transform: translateX(-90px); }
    to   { opacity: 1; transform: translateX(0); }
  }
}


/* Einheitliche Typografie: Source Sans Pro Light, ohne Textschatten */
:root { --font: "Source Sans Pro", "Source Sans 3", sans-serif; }
html, body, body * {
  font-family: var(--font) !important;
  text-shadow: none !important;
}
body, body *:not(svg):not(path) {
  font-weight: 300;
}
body { color: #000; }

/* Smartphone-Menü nach Vorlage Bild 5: Vollbild, warmbeiger Grund, schwarze Schrift */
@media (max-width: 767px) {
  .site-header { position: relative; z-index: 500; }
  .site-header.open .logo { opacity: 0; visibility: hidden; }
  .burger { z-index: 510; }
  .burger span { transition: transform .3s ease, opacity .2s ease; transform-origin: center; }
  .site-header.open .burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .site-header.open .burger span:nth-child(2) { opacity: 0; }
  .site-header.open .burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-header nav,
  .site-header.open nav {
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 505 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow-y: auto !important;
    padding: max(72px, env(safe-area-inset-top)) 28px max(36px, env(safe-area-inset-bottom)) !important;
    background: #d9c6bb !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(-100%,0,0);
    transition: transform .58s cubic-bezier(.22,.75,.25,1), opacity .22s ease, visibility 0s linear .58s;
    will-change: transform;
  }
  .site-header.open nav {
    display: flex !important;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0,0,0);
    transition: transform .58s cubic-bezier(.22,.75,.25,1), opacity .22s ease, visibility 0s;
  }
  .menu {
    width: min(100%, 620px);
    max-width: 620px;
    min-width: 0;
    margin: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: clamp(13px, 2.7vh, 30px);
  }
  .menu > li {
    position: relative;
    width: 100%;
    border: 0 !important;
    border-bottom: 0 !important;
    opacity: 0;
    transform: translate3d(-20px,0,0);
  }
  .site-header.open nav .menu > li {
    animation: nmFullMenuItemIn .42s ease both;
  }
  .site-header.open nav .menu > li:nth-child(1) { animation-delay: .10s; }
  .site-header.open nav .menu > li:nth-child(2) { animation-delay: .16s; }
  .site-header.open nav .menu > li:nth-child(3) { animation-delay: .22s; }
  .site-header.open nav .menu > li:nth-child(4) { animation-delay: .28s; }
  .site-header.open nav .menu > li:nth-child(5) { animation-delay: .34s; }
  .site-header.open nav .menu > li:nth-child(6) { animation-delay: .40s; }
  .site-header.open nav .menu > li:nth-child(7) { animation-delay: .46s; }
  .site-header.open nav .menu > li:nth-child(8) { animation-delay: .52s; }
  @keyframes nmFullMenuItemIn {
    to { opacity: 1; transform: translate3d(0,0,0); }
  }
  .menu > li > a {
    display: block;
    width: 100%;
    padding: 5px 48px !important;
    color: #000 !important;
    text-align: center;
    font-size: clamp(22px, 5.8vw, 30px) !important;
    line-height: 1.25 !important;
    letter-spacing: .015em;
    font-weight: 300 !important;
  }
  .menu > li.has-submenu > a { padding-right: 56px !important; }
  .menu .submenu-toggle {
    position: absolute;
    right: 8px;
    top: 0;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: #000;
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0;
  }
  .menu .submenu-toggle::before {
    content: "";
    width: 11px;
    height: 11px;
    border-right: 1.5px solid #000;
    border-bottom: 1.5px solid #000;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .2s ease;
  }
  .menu li.submenu-open > .submenu-toggle::before {
    transform: rotate(225deg) translate(-2px,-1px);
  }
  .menu ul {
    display: none !important;
    position: static !important;
    width: 100%;
    padding: 8px 0 0 !important;
    margin: 0;
    background: transparent !important;
    box-shadow: none !important;
    text-align: center;
  }
  .menu li.submenu-open > ul { display: block !important; }
  .menu ul a {
    padding: 9px 8px !important;
    color: #000 !important;
    font-size: clamp(18px, 4.8vw, 22px) !important;
    line-height: 1.25;
    text-align: center;
    font-weight: 300 !important;
  }
  body.menu-open { overflow: hidden; }

  /* Kontakt-Floating-Menü beim Laden geschlossen */
  .contact-fab { right: 12px; bottom: 18px; }
  .contact-fab.collapsed .fab-item { display: none; }
}


/* Tablet: dieselbe horizontale Navigation wie auf Mac/PC; Smartphone-Menue bleibt unveraendert. */
@media (min-width: 768px) and (max-width: 1100px) {
  .site-header {
    height: 86px;
    padding-left: 14px;
    padding-right: 14px;
    gap: 8px;
  }
  .logo {
    font-size: 13px;
    flex: 0 0 auto;
  }
  .site-header nav {
    position: static !important;
    display: block !important;
    visibility: visible !important;
    width: auto;
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: transparent;
    box-shadow: none;
    flex: 0 1 auto;
  }
  .burger { display: none !important; }
  .menu {
    display: flex;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: center;
    min-width: 0;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    gap: 0;
  }
  .menu > li { border-bottom: 0 !important; }
  .menu > li + li { border-left: 1px solid #000 !important; }
  .menu a, .home .menu > li > a {
    color: #000 !important;
    font-size: 8.5px;
    padding: 6px 7px;
    white-space: nowrap;
  }
  .menu ul {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    min-width: 145px;
    padding: 6px 0;
    background: #fff;
    box-shadow: 0 6px 24px rgba(0,0,0,.15);
  }
  .menu li:hover > ul, .menu li:focus-within > ul { display: block; }
  .menu ul a { font-size: 9px; padding: 8px 12px; color: #444 !important; }
  .home .menu > li + li { border-left-color: #000 !important; }
}


/* Tablet: Smartphone-Vollbildmenü wie in der Vorlage; Desktop ab 1101 px unverändert. */
@media (min-width: 768px) and (max-width: 1100px) {
  .site-header {
    z-index: 500;
    padding-left: 22px;
    padding-right: 22px;
    height: 86px;
  }
  .site-header.open .logo { opacity: 0; visibility: hidden; }
  .burger {
    display: block !important;
    position: relative;
    z-index: 510;
    color: #c00000 !important;
    padding: 12px;
  }
  .burger span {
    width: 30px;
    height: 3px;
    margin: 6px 0;
    background: #c00000 !important;
    transition: transform .3s ease, opacity .2s ease;
    transform-origin: center;
  }
  .site-header.open .burger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .site-header.open .burger span:nth-child(2) { opacity: 0; }
  .site-header.open .burger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  .site-header nav,
  .site-header.open nav {
    position: fixed !important;
    inset: 0 !important;
    z-index: 505 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow-y: auto !important;
    padding: max(72px, env(safe-area-inset-top)) 36px max(36px, env(safe-area-inset-bottom)) !important;
    background: #d9c6bb !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(-100%,0,0);
    transition: transform .58s cubic-bezier(.22,.75,.25,1), opacity .22s ease, visibility 0s linear .58s;
    will-change: transform;
  }
  .site-header.open nav {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0,0,0);
    transition: transform .58s cubic-bezier(.22,.75,.25,1), opacity .22s ease, visibility 0s;
  }
  .menu {
    width: min(100%, 700px);
    max-width: 700px;
    min-width: 0;
    margin: auto;
    padding: 0;
    display: flex;
    flex-direction: column !important;
    align-items: stretch;
    justify-content: center;
    gap: clamp(13px, 2.7vh, 30px);
  }
  .menu > li {
    position: relative;
    width: 100%;
    border: 0 !important;
    opacity: 0;
    transform: translate3d(-20px,0,0);
  }
  /* Entfernt die vertikalen Trenner aus der horizontalen Tablet-Navigation. */
  .menu > li + li { border-left: 0 !important; }
  .menu > li::before, .menu > li::after,
  .menu > li > a::before, .menu > li > a::after { content: none !important; display: none !important; }
  .site-header.open nav .menu > li { animation: nmTabletMenuItemIn .42s ease both; }
  .site-header.open nav .menu > li:nth-child(1) { animation-delay: .10s; }
  .site-header.open nav .menu > li:nth-child(2) { animation-delay: .16s; }
  .site-header.open nav .menu > li:nth-child(3) { animation-delay: .22s; }
  .site-header.open nav .menu > li:nth-child(4) { animation-delay: .28s; }
  .site-header.open nav .menu > li:nth-child(5) { animation-delay: .34s; }
  .site-header.open nav .menu > li:nth-child(6) { animation-delay: .40s; }
  .site-header.open nav .menu > li:nth-child(7) { animation-delay: .46s; }
  .site-header.open nav .menu > li:nth-child(8) { animation-delay: .52s; }
  @keyframes nmTabletMenuItemIn { to { opacity: 1; transform: translate3d(0,0,0); } }
  .menu > li > a {
    display: block;
    width: 100%;
    padding: 5px 58px !important;
    color: #000 !important;
    text-align: center;
    font-size: clamp(23px, 3.2vw, 32px) !important;
    line-height: 1.25 !important;
    letter-spacing: .015em;
    font-weight: 300 !important;
  }
  .menu > li.has-submenu > a { padding-right: 68px !important; }
  .menu .submenu-toggle {
    position: absolute;
    right: 8px;
    top: 0;
    width: 48px;
    height: 48px;
    border: 0;
    background: transparent;
    color: #000;
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0;
  }
  .menu .submenu-toggle::before {
    content: "";
    width: 12px;
    height: 12px;
    border-right: 1.5px solid #000;
    border-bottom: 1.5px solid #000;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .2s ease;
  }
  .menu li.submenu-open > .submenu-toggle::before { transform: rotate(225deg) translate(-2px,-1px); }
  .menu ul {
    display: none !important;
    position: static !important;
    width: 100%;
    padding: 8px 0 5px !important;
    margin: 0;
    background: transparent !important;
    box-shadow: none !important;
    text-align: center;
  }
  .menu li.submenu-open > ul { display: block !important; }
  .menu ul a {
    padding: 9px 8px !important;
    color: #000 !important;
    font-size: clamp(18px, 2.5vw, 23px) !important;
    line-height: 1.25;
    text-align: center;
    font-weight: 300 !important;
  }
  body.menu-open { overflow: hidden; }
}


/* Tablet-Sicherheitsregel: geschlossene Navigation darf keinen Seiteninhalt verdecken. */
@media (min-width: 768px) and (max-width: 1100px) {
  .site-header:not(.open) nav { display: none !important; }
  .site-header.open nav { display: flex !important; }
}
