/* Zwinger vom Morgentau – Ergänzungen: Menü, Bild-Grossansicht, Responsive */

h1, h2, h3 { overflow-wrap: break-word; }
@media (max-width: 640px) { h1, h2, h3 { hyphens: auto; } }

/* ---------- Header & Menü ---------- */
.site-header { position: sticky !important; top: 0; z-index: 40; transition: box-shadow .25s ease, background .25s ease; }
.site-header > div { transition: padding .25s ease; }
.scrolled .site-header { box-shadow: 0 10px 30px -18px rgba(60,40,25,.45); background: rgba(250,246,241,.96) !important; }
@media (min-width: 961px) { .scrolled .site-header > div { padding-top: 10px !important; padding-bottom: 10px !important; } }
@media (max-width: 960px) { [id] { scroll-margin-top: 90px !important; } .scrolled .site-header > div { padding-top: 10px !important; padding-bottom: 10px !important; } }
.menu-toggle {
  display: none; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px;
  border: 0; border-radius: 999px; background: #4A3426; color: #FFFFFF;
  font: inherit; font-weight: 800; font-size: 15px; cursor: pointer;
  box-shadow: 0 8px 20px -14px rgba(60,40,25,.6);
}
.menu-toggle:focus-visible, .nav a:focus-visible, .lb-btn:focus-visible, .zoomable:focus-visible {
  outline: 3px solid #D4914C; outline-offset: 3px;
}
.menu-toggle .bars { position: relative; width: 18px; height: 12px; }
.menu-toggle .bars i { position: absolute; left: 0; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .2s, top .25s; }
.menu-toggle .bars i:nth-child(1) { top: 0; }
.menu-toggle .bars i:nth-child(2) { top: 5px; }
.menu-toggle .bars i:nth-child(3) { top: 10px; }
.menu-open .menu-toggle .bars i:nth-child(1) { top: 5px; transform: rotate(45deg); }
.menu-open .menu-toggle .bars i:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle .bars i:nth-child(3) { top: 5px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .site-header > div { flex-wrap: nowrap !important; padding: 16px 18px !important; }
  .menu-toggle { display: inline-flex; flex: none; }
  .site-header nav.nav {
    display: none !important; position: absolute; top: calc(100% - 4px); left: 16px; right: 16px;
    flex-direction: column; gap: 4px !important; padding: 10px !important; border-radius: 26px !important;
    box-shadow: 0 24px 48px -20px rgba(60,40,25,.45) !important;
  }
  .menu-open .site-header nav.nav { display: flex !important; animation: menuIn .18s ease-out; }
  .site-header nav.nav a { padding: 13px 18px; font-size: 17px; border-radius: 18px; }
  .logo { gap: 10px !important; min-width: 0; }
  .logo > svg { width: 68px !important; height: 47px !important; }
  .logo > span:last-child { min-width: 0; }
  .logo > span:last-child > span:first-child { font-size: 19px !important; }
  .logo .hand { font-size: 16px !important; }
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Bild-Grossansicht ---------- */
.zoomable { cursor: zoom-in; transition: transform .25s ease, filter .25s ease; }
.zoomable:hover { filter: brightness(1.04); }
.lb { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center;
  background: rgba(28,30,24,.93); padding: 64px 72px; }
.lb.open { display: flex; animation: lbIn .2s ease-out; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; max-height: 100%; }
.lb img { display: block; width: auto; height: auto; max-width: min(1200px, 100%); max-height: calc(100vh - 170px);
  object-fit: contain; border-radius: 10px; background: #FFFFFF; padding: 8px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); cursor: default; }
.lb figcaption { color: #F3EDE6; font-family: Caveat, cursive; font-size: 26px; text-align: center; line-height: 1.15; }
.lb-count { position: absolute; top: 20px; left: 24px; color: #E6DACB; font-weight: 800; font-size: 15px; }
.lb-btn { position: absolute; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border: 0; border-radius: 50%; background: #FFFFFF; color: #2A221D; cursor: pointer; box-shadow: 0 10px 24px -12px rgba(0,0,0,.6); }
.lb-btn:hover { background: #F1E3D3; }
.lb-close { top: 14px; right: 16px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb.single .lb-prev, .lb.single .lb-next, .lb.single .lb-count { display: none; }
body.lb-lock { overflow: hidden; }
@media (max-width: 640px) {
  .lb { padding: 64px 10px 84px; }
  .lb img { max-height: calc(100vh - 200px); padding: 5px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lb-prev { left: calc(50% - 64px); } .lb-next { right: calc(50% - 64px); }
  .lb figcaption { font-size: 22px; }
}

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  main section[style*="padding: 100px"], main section[style*="padding: 96px"] { padding-top: 76px !important; }
  .card[style*="padding: 40px"] { padding: 30px !important; }
}

/* ---------- Handy ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: clamp(36px, 10.5vw, 46px) !important; }
  h1.hero-title { font-size: clamp(38px, 11vw, 50px) !important; }
  h2 { font-size: clamp(26px, 7.6vw, 32px) !important; }
  h3 { font-size: clamp(20px, 6vw, 24px) !important; }
  main section[style*="padding: 100px"], main section[style*="padding: 96px"] { padding-top: 60px !important; }
  main > section:first-child, main > div:first-child { padding-top: 24px !important; }

  .card[style*="padding: 40px"], .card[style*="padding: 32px"], .card[style*="padding: 34px"] { padding: 20px !important; }
  .card[style*="gap: 48px"] { gap: 28px !important; }
  .card[style*="gap: 34px"] { gap: 26px !important; }
  [style*="border-radius: 40px"] { padding: 26px 22px !important; border-radius: 30px !important; }
  [style*="border-radius: 28px; padding: 30px"] { padding: 18px !important; border-radius: 22px !important; }

  /* Steckbrief-Kacheln zweispaltig */
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
  .tile { padding: 10px 12px; border-radius: 14px; }
  .tile b { font-size: 14.5px; }
  .tile[style*="flex-direction: row"] { flex-direction: column !important; gap: 0 !important; }

  /* Welpen & Rudel: drei pro Reihe */
  .pups, .rudel { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 18px 10px !important; }
  .pups b { font-size: 15px !important; }
  .rudel b { font-size: 16px !important; }
  .pups > div > span:first-child, .rudel span[style*="border: 6px"] { border-width: 3px !important; }
  .s { font-size: 11px; padding: 2px 8px; text-align: center; }

  .rudel2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 28px 16px !important; }
  .rudel2 .s { font-size: 10.5px; }
  .rudel2 a > div:last-child > span:last-child { font-size: 13px !important; }
  a[style*="width: 150px"] { width: 30% !important; gap: 6px !important; }
  a[style*="width: 150px"] > span:first-child { width: 84px !important; height: 84px !important; border-width: 4px !important; }
  a[style*="width: 150px"] b { font-size: 18px !important; }
  a[style*="width: 150px"] > span:last-child { font-size: 12px !important; }

  /* Wurf-Buchstabe kleiner */
  [style*="width: 96px; height: 96px"] { width: 64px !important; height: 64px !important; font-size: 36px !important; }

  /* Galerie Welpen: zweispaltig */
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
  .gallery > div { border-radius: 14px !important; }

  /* Polaroids im Fliesstext nicht zu breit */
  .pol .cap { font-size: 21px; }
  .chip { min-height: 40px; padding: 0 14px; font-size: 15px; }
  .btn { min-height: 48px; padding: 0 22px; }

  /* Footer kompakter */
  footer > div > div:first-child { gap: 28px !important; padding-top: 28px !important; }
}
