
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{background:#eee7d7;color:#2c2c2c;font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.55}
.wrapper{width:1080px;max-width:calc(100% - 28px);margin:0 auto;background:#fffaf0;min-height:100vh;box-shadow:0 0 16px rgba(0,0,0,.18)}
.header{background:#fffaf0;text-align:center;padding:22px 20px 14px;border-top:8px solid #34482d}
.logo-box{display:flex;justify-content:center;align-items:center;gap:2px}
.logo-box img{height:50px;width:auto;max-width:115px;object-fit:contain}
.site-title{font-family:Georgia,"Times New Roman",serif;font-size:2.45rem;color:#33482e;line-height:1.1}
.site-subtitle{color:#766f5f;margin-top:4px;font-size:1rem}
.nav{background:#34482d;border-top:4px solid #a98445;border-bottom:1px solid #263620;display:flex;justify-content:center;flex-wrap:wrap;position:sticky;top:0;z-index:50}
.nav a{color:#fff;text-decoration:none;padding:14px 18px;border-left:1px solid rgba(255,255,255,.15);font-size:.98rem}
.nav a:last-child{border-right:1px solid rgba(255,255,255,.15)}
.nav a:hover{background:#49613f}
.hero{min-height:530px;background:linear-gradient(rgba(0,0,0,.08),rgba(0,0,0,.22)),url("bilder/startbild.jpg");background-size:cover;background-position:center;position:relative}
.hero-card{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:78%;max-width:720px;background:rgba(255,250,240,.88);border:1px solid #cdb98f;padding:30px 34px;text-align:center;box-shadow:0 5px 22px rgba(0,0,0,.22)}
.hero-card h1{margin:0 0 10px;color:#33482d;font-family:Georgia,"Times New Roman",serif;font-size:2.75rem}
.hero-card p{margin:0 0 14px;font-size:1.14rem}
.content{padding:28px 34px 42px}
.intro-grid{display:grid;grid-template-columns:2fr 1fr;gap:24px}
.box{background:#fff;border:1px solid #d7c6a6;padding:22px;margin-bottom:22px}
h1,h2,h3{font-family:Georgia,"Times New Roman",serif;color:#33482d}
h1{font-size:2.1rem;margin:0 0 18px}
h2{font-size:1.45rem;margin:0 0 12px;padding-bottom:8px;border-bottom:1px solid #d7c6a6}
.btn{display:inline-block;background:#34482d;color:#fff;padding:10px 16px;text-decoration:none;border-bottom:3px solid #a98445;margin-top:8px}
.small{color:#6a6458;font-size:.95rem}
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px}
.gallery a{display:block;background:#fff;border:1px solid #d7c6a6;padding:7px;text-decoration:none}
.gallery img{width:100%;height:190px;object-fit:cover;display:block}
.feature-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px}
.feature-grid img{width:100%;height:245px;object-fit:cover;border:1px solid #d7c6a6;background:#fff;padding:6px}
.wurf-hero{width:100%;max-height:none;object-fit:contain;border:1px solid #d7c6a6;padding:6px;background:white}
.footer{background:#34482d;color:#f2ead8;text-align:center;padding:18px 12px;border-top:4px solid #a98445;font-size:.9rem}
.footer a{color:#f4d18d;text-decoration:none}
@media(max-width:760px){
.wrapper{max-width:100%;box-shadow:none}.logo-box{gap:10px}.logo-box img{height:58px}.site-title{font-size:1.75rem}.site-subtitle{font-size:.88rem}.nav a{width:50%;text-align:center;padding:12px 8px}.hero{min-height:470px}.hero-card{width:88%;padding:24px 20px}.hero-card h1{font-size:2rem}.content{padding:24px 18px 34px}.intro-grid{grid-template-columns:1fr}.gallery img{height:160px}
}


/* Galerie-Einzelseiten */
.gallery a{
  transition:transform .15s ease, box-shadow .15s ease;
}
.gallery a:hover{
  transform:scale(1.02);
  box-shadow:0 3px 12px rgba(0,0,0,.18);
}
.image-page-box{
  background:#fff;
  border:1px solid #d7c6a6;
  padding:18px;
  text-align:center;
}
.image-page-box img{
  max-width:100%;
  max-height:78vh;
  width:auto;
  height:auto;
  object-fit:contain;
  display:block;
  margin:0 auto 18px;
}
.image-nav{
  display:flex;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
  margin-top:12px;
}
.back-btn{
  display:inline-block;
  background:#34482d;
  color:#fff;
  padding:10px 18px;
  text-decoration:none;
  border-bottom:3px solid #a98445;
}
.back-btn:hover{background:#49613f}

body{padding-top:60px!important;}
.nav{position:fixed!important;top:110px!important;left:0!important;right:0!important;z-index:999!important;}
.image-page-box img{max-height:60vh!important;}
.content{padding-top:40px!important;}

/* KORREKTUR: kompletter Header fest oben */
body{
  padding-top:185px!important;
}

.header{
  position:fixed!important;
  top:0!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  width:1080px!important;
  max-width:calc(100% - 28px)!important;
  z-index:1001!important;
}

.nav{
  position:fixed!important;
  top:122px!important;
  left:50%!important;
  right:auto!important;
  transform:translateX(-50%)!important;
  width:1080px!important;
  max-width:calc(100% - 28px)!important;
  z-index:1000!important;
}

.hero{
  margin-top:0!important;
}

@media(max-width:760px){
  body{
    padding-top:170px!important;
  }
  .header{
    max-width:100%!important;
    width:100%!important;
  }
  .nav{
    top:112px!important;
    max-width:100%!important;
    width:100%!important;
  }
}

/* FINALE HEADER-KORREKTUR:
   Header + brauner/cremefarbener Bereich bleiben als geschlossener Block stehen.
   Kein Bild läuft mehr sichtbar dahinter durch. */
body{
  padding-top:190px!important;
}

.header{
  position:fixed!important;
  top:0!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  width:1080px!important;
  max-width:calc(100% - 28px)!important;
  z-index:2001!important;
  background:#fffaf0!important;
  border-top:8px solid #34482d!important;
  border-left:1px solid rgba(0,0,0,.08)!important;
  border-right:1px solid rgba(0,0,0,.08)!important;
  box-shadow:0 2px 12px rgba(0,0,0,.18)!important;
}

.header::before{
  content:""!important;
  position:fixed!important;
  top:0!important;
  left:0!important;
  right:0!important;
  height:190px!important;
  background:#eee7d7!important;
  z-index:-1!important;
}

.nav{
  position:fixed!important;
  top:122px!important;
  left:50%!important;
  right:auto!important;
  transform:translateX(-50%)!important;
  width:1080px!important;
  max-width:calc(100% - 28px)!important;
  z-index:2002!important;
  background:#34482d!important;
  border-top:4px solid #a98445!important;
  border-bottom:1px solid #263620!important;
  box-shadow:0 3px 8px rgba(0,0,0,.18)!important;
}

.wrapper{
  overflow:visible!important;
}

.hero{
  margin-top:0!important;
}

@media(max-width:760px){
  body{
    padding-top:178px!important;
  }
  .header{
    width:100%!important;
    max-width:100%!important;
  }
  .header::before{
    height:178px!important;
  }
  .nav{
    top:112px!important;
    width:100%!important;
    max-width:100%!important;
  }
}

/* Kompaktere Galerie */
.image-page-box img{
    max-height:50vh !important;
}
.image-page-box{
    padding:10px !important;
}
.image-nav{
    margin-top:6px !important;
}
.image-nav .back-btn{
    padding:8px 14px !important;
}
.content{
    padding-top:15px !important;
}
.gallery-title-small{
    font-size:1rem !important;
    color:#666;
    margin:0 0 8px 0;
    font-family:Arial,Helvetica,sans-serif;
    font-weight:normal;
}

/* Galerie ohne weißen Hintergrund */
body.gallery-page{
  background:#1f2f1c!important;
}
body.gallery-page .wrapper{
  background:#1f2f1c!important;
}
body.gallery-page .content{
  background:#1f2f1c!important;
}
body.gallery-page .image-page-box{
  background:transparent!important;
  border:none!important;
  box-shadow:none!important;
}
body.gallery-page .gallery-title-small,
body.gallery-page .image-caption{
  color:#f4ead8!important;
}
.image-caption{
  font-size:1.15rem;
  margin:8px 0 12px;
  color:#33482d;
  font-family:Georgia,"Times New Roman",serif;
}
.caption-note{
  font-size:.9rem;
  color:#766f5f;
  margin-top:10px;
}
.gallery .caption{
  display:block;
  padding:7px 5px 2px;
  color:#33482d;
  font-size:.95rem;
  text-align:center;
}
.awurf-gallery-button{
  text-align:center;
  margin:18px 0 4px;
}

/* RESPONSIVE + VOLLBILD GALERIE FINAL */
img{max-width:100%;height:auto}

.wrapper{
  width:min(1080px,100%)!important;
  max-width:100%!important;
}

.header,
.nav{
  max-width:100%!important;
}

.gallery{
  grid-template-columns:repeat(auto-fill,minmax(180px,1fr))!important;
}

.gallery a{
  cursor:pointer;
}

.fullscreen-btn{
  display:inline-block;
  background:#a98445;
  color:#fff;
  padding:8px 14px;
  text-decoration:none;
  border-bottom:3px solid #6f552c;
  margin-top:8px;
}

.fullscreen-overlay{
  display:none;
  position:fixed;
  inset:0;
  z-index:99999;
  background:rgba(0,0,0,.94);
  align-items:center;
  justify-content:center;
  flex-direction:column;
  padding:18px;
}

.fullscreen-overlay:target{
  display:flex;
}

.fullscreen-overlay img{
  max-width:96vw;
  max-height:82vh;
  object-fit:contain;
  border:none!important;
  box-shadow:0 0 22px rgba(255,255,255,.18);
}

.fullscreen-controls{
  margin-top:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
}

.fullscreen-controls a{
  color:#fff;
  background:#34482d;
  padding:9px 14px;
  text-decoration:none;
  border-bottom:3px solid #a98445;
}

@media(max-width:900px){
  body{
    padding-top:165px!important;
  }

  .header{
    padding:14px 10px 10px!important;
  }

  .logo-box{
    flex-direction:column!important;
    gap:6px!important;
  }

  .logo-box img{
    height:54px!important;
  }

  .site-title{
    font-size:1.55rem!important;
    text-align:center!important;
  }

  .site-subtitle{
    font-size:.85rem!important;
  }

  .nav{
    top:112px!important;
  }

  .nav a{
    width:auto!important;
    flex:1 1 50%!important;
    font-size:.9rem!important;
    padding:10px 6px!important;
  }

  .hero{
    min-height:430px!important;
  }

  .hero-card{
    width:90%!important;
    padding:22px 18px!important;
  }

  .hero-card h1{
    font-size:1.9rem!important;
  }

  .content{
    padding:18px 12px 30px!important;
  }

  .gallery{
    grid-template-columns:repeat(2,1fr)!important;
    gap:10px!important;
  }

  .gallery img{
    height:145px!important;
  }

  .image-page-box img{
    max-height:48vh!important;
  }
}

@media(max-width:480px){
  body{
    padding-top:178px!important;
  }

  .nav a{
    flex:1 1 100%!important;
  }

  .hero{
    min-height:390px!important;
  }

  .hero-card h1{
    font-size:1.55rem!important;
  }

  .gallery{
    grid-template-columns:1fr!important;
  }

  .gallery img{
    height:210px!important;
  }

  .image-nav .back-btn,
  .fullscreen-controls a{
    width:100%;
    text-align:center;
  }
}

/* Hamburger-Menü responsive */
.menu-toggle{
  display:none;
  background:#34482d;
  color:#fff;
  border:1px solid #a98445;
  border-radius:4px;
  padding:9px 12px;
  font-size:1.35rem;
  cursor:pointer;
}

@media(max-width:900px){
  .logo-box{
    position:relative;
  }

  .menu-toggle{
    display:block!important;
    margin:10px auto 0;
  }

  .nav{
    display:none!important;
    position:fixed!important;
    top:142px!important;
    left:0!important;
    right:0!important;
    width:100%!important;
    max-width:100%!important;
    transform:none!important;
    flex-direction:column!important;
    z-index:3000!important;
  }

  .nav.open{
    display:flex!important;
  }

  .nav a{
    width:100%!important;
    flex:none!important;
    border-left:none!important;
    border-bottom:1px solid rgba(255,255,255,.18)!important;
  }

  body{
    padding-top:150px!important;
  }
}

@media(max-width:480px){
  .nav{
    top:150px!important;
  }
}

/* Bereich Verpaarung */
.verpaarung-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
  align-items:start;
}
.verpaarung-grid img{
  width:100%;
  height:auto;
  border:1px solid #d7c6a6;
  background:#fff;
  padding:6px;
}
.verpaarung-data{
  background:#fffaf0;
  border:1px solid #d7c6a6;
  padding:16px;
  margin-top:14px;
}
.verpaarung-data p{
  margin:7px 0;
}
@media(max-width:760px){
  .verpaarung-grid{
    grid-template-columns:1fr;
  }
}

/* FINAL: Bildbeschreibung nur im Vollbild */
.image-caption,
.gallery .caption,
.caption{
  display:none !important;
}

/* Normale Einzelbildseite kompakt */
.image-page-box{
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
  padding:8px !important;
}
.image-page-box img{
  max-height:50vh !important;
}

/* Vollbild / Lightbox */
.fullscreen-overlay{
  display:none;
  position:fixed;
  inset:0;
  z-index:99999;
  background:rgba(0,0,0,.96);
  align-items:center;
  justify-content:center;
  flex-direction:column;
  padding:14px;
}
.fullscreen-overlay:target{
  display:flex;
}
.fullscreen-overlay img{
  max-width:96vw;
  max-height:78vh;
  object-fit:contain;
  box-shadow:0 0 25px rgba(255,255,255,.18);
}
.fullscreen-caption{
  display:block !important;
  color:#f4ead8;
  font-size:1.05rem;
  margin:10px 0 0;
  text-align:center;
  font-family:Georgia,"Times New Roman",serif;
}
.fullscreen-caption:empty{
  display:none !important;
}
.fullscreen-controls{
  margin-top:12px;
  display:flex;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
}
.fullscreen-controls a{
  color:#fff;
  background:#34482d;
  padding:9px 14px;
  text-decoration:none;
  border-bottom:3px solid #a98445;
}
.full-arrow{
  position:fixed;
  top:50%;
  transform:translateY(-50%);
  color:white;
  background:rgba(52,72,45,.85);
  text-decoration:none;
  font-size:2.4rem;
  width:48px;
  height:58px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-bottom:3px solid #a98445;
}
.full-arrow.prev{left:18px;}
.full-arrow.next{right:18px;}
.close-x{
  position:fixed;
  top:16px;
  right:18px;
  color:white;
  background:rgba(0,0,0,.4);
  text-decoration:none;
  font-size:2rem;
  padding:4px 12px;
}
@media(max-width:700px){
  .fullscreen-overlay img{
    max-height:72vh;
  }
  .full-arrow{
    width:40px;
    height:48px;
    font-size:1.8rem;
  }
  .full-arrow.prev{left:6px;}
  .full-arrow.next{right:6px;}
}

/* FINAL FIX: Beschriftung sicher nur im Vollbild */
.image-caption,
.gallery .caption,
.caption{
  display:none !important;
}
.fullscreen-caption{
  display:block !important;
  color:#f4ead8 !important;
  font-size:1.08rem !important;
  margin:10px 0 0 !important;
  text-align:center !important;
  font-family:Georgia,"Times New Roman",serif !important;
}
.fullscreen-caption:empty{
  display:none !important;
}
/* Galerie direkt in A-Wurf */
.awurf-inline-gallery{
  margin-top:12px;
}
.awurf-inline-gallery .gallery{
  margin-top:12px;
}


/* =========================================================
   FINALER RESPONSIVE HEADER - alte Header-Regeln überschrieben
   ========================================================= */

body{
  padding-top:178px !important;
}

.fixed-head{
  position:fixed !important;
  top:0 !important;
  left:50% !important;
  transform:translateX(-50%) !important;
  width:1080px !important;
  max-width:calc(100% - 28px) !important;
  z-index:10000 !important;
  background:#fffaf0 !important;
  box-shadow:0 3px 14px rgba(0,0,0,.22) !important;
}

.fixed-head .header{
  position:static !important;
  transform:none !important;
  left:auto !important;
  top:auto !important;
  width:100% !important;
  max-width:100% !important;
  z-index:auto !important;
  box-shadow:none !important;
  padding:18px 20px 12px !important;
  border-top:8px solid #34482d !important;
  background:#fffaf0 !important;
}

.fixed-head .nav{
  position:static !important;
  transform:none !important;
  left:auto !important;
  right:auto !important;
  top:auto !important;
  width:100% !important;
  max-width:100% !important;
  z-index:auto !important;
  display:flex !important;
  justify-content:center !important;
  flex-wrap:wrap !important;
  background:#34482d !important;
  border-top:4px solid #a98445 !important;
  border-bottom:1px solid #263620 !important;
}

.fixed-head .nav a{
  color:#fff !important;
  text-decoration:none !important;
}

.menu-toggle{
  display:none !important;
  width:100% !important;
  background:#34482d !important;
  color:#fff !important;
  border:0 !important;
  border-top:4px solid #a98445 !important;
  padding:12px 14px !important;
  font-size:1.05rem !important;
  cursor:pointer !important;
  text-align:center !important;
}

@media(max-width:900px){
  body{
    padding-top:128px !important;
  }

  .wrapper{
    max-width:100% !important;
    width:100% !important;
  }

  .fixed-head{
    left:0 !important;
    transform:none !important;
    width:100% !important;
    max-width:100% !important;
  }

  .fixed-head .header{
    padding:10px 12px 8px !important;
    border-top:6px solid #34482d !important;
  }

  .fixed-head .logo-box{
    flex-direction:row !important;
    justify-content:center !important;
    gap:10px !important;
  }

  .fixed-head .logo-box img{
    height:48px !important;
    max-width:70px !important;
  }

  .fixed-head .site-title{
    font-size:1.35rem !important;
    line-height:1.1 !important;
    text-align:left !important;
  }

  .fixed-head .site-subtitle{
    display:none !important;
  }

  .menu-toggle{
    display:block !important;
  }

  .fixed-head .nav{
    display:none !important;
    flex-direction:column !important;
    align-items:stretch !important;
    max-height:calc(100vh - 120px) !important;
    overflow:auto !important;
  }

  .fixed-head .nav.open{
    display:flex !important;
  }

  .fixed-head .nav a{
    width:100% !important;
    padding:13px 16px !important;
    text-align:center !important;
    border-left:0 !important;
    border-right:0 !important;
    border-bottom:1px solid rgba(255,255,255,.18) !important;
    font-size:1rem !important;
  }

  .hero{
    min-height:420px !important;
  }

  .hero-card{
    width:90% !important;
    padding:22px 18px !important;
  }

  .hero-card h1{
    font-size:1.8rem !important;
  }

  .content{
    padding:18px 12px 32px !important;
  }

  .gallery{
    grid-template-columns:repeat(2,1fr) !important;
    gap:10px !important;
  }

  .gallery img{
    height:145px !important;
  }
}

@media(max-width:480px){
  body{
    padding-top:124px !important;
  }

  .fixed-head .site-title{
    font-size:1.18rem !important;
  }

  .fixed-head .logo-box img{
    height:42px !important;
  }

  .hero{
    min-height:370px !important;
  }

  .hero-card h1{
    font-size:1.5rem !important;
  }

  .gallery{
    grid-template-columns:1fr !important;
  }

  .gallery img{
    height:210px !important;
  }
}

/* Galerie Handy kompakt + Bildbeschriftung */
.image-caption-inline{
  display:block!important;
  color:#f4ead8;
  font-size:1rem;
  margin:6px 0 10px;
  text-align:center;
  font-family:Georgia,"Times New Roman",serif;
}
.image-caption-inline:empty{
  display:none!important;
}
.fullscreen-caption{
  display:block!important;
  color:#f4ead8!important;
  font-size:1rem!important;
  margin:8px 0 0!important;
  text-align:center!important;
}
.fullscreen-caption:empty{
  display:none!important;
}

@media(max-width:700px){
  .image-nav{
    gap:5px!important;
    margin-top:5px!important;
  }
  .image-nav .back-btn,
  .image-nav .fullscreen-btn{
    width:auto!important;
    flex:1 1 auto!important;
    min-width:0!important;
    padding:6px 7px!important;
    font-size:.78rem!important;
    line-height:1.2!important;
    border-bottom-width:2px!important;
  }
  .fullscreen-controls{
    gap:5px!important;
    margin-top:7px!important;
  }
  .fullscreen-controls a{
    width:auto!important;
    flex:1 1 auto!important;
    padding:6px 8px!important;
    font-size:.78rem!important;
    line-height:1.2!important;
    border-bottom-width:2px!important;
  }
  .full-arrow{
    width:34px!important;
    height:42px!important;
    font-size:1.5rem!important;
  }
  .close-x{
    font-size:1.4rem!important;
    padding:2px 9px!important;
  }
  .gallery-title-small{
    font-size:.82rem!important;
    margin-bottom:4px!important;
  }
  .image-page-box img{
    max-height:45vh!important;
  }
}

/* ROBUSTE BILDBESCHREIBUNG */
.image-caption-inline{
  display:block !important;
  color:#f4ead8 !important;
  background:rgba(0,0,0,.35) !important;
  padding:7px 10px !important;
  border-radius:4px !important;
  margin:8px auto 10px !important;
  text-align:center !important;
  font-size:1rem !important;
  max-width:900px !important;
}
.image-caption-inline:empty{
  display:none !important;
}
.fullscreen-caption{
  display:block !important;
  color:#ffffff !important;
  background:rgba(0,0,0,.55) !important;
  padding:8px 12px !important;
  border-radius:4px !important;
  margin:10px auto 0 !important;
  text-align:center !important;
  font-size:1.05rem !important;
  max-width:92vw !important;
  z-index:100000 !important;
}
.fullscreen-caption:empty{
  display:none !important;
}
/* Keine Beschriftungen unter Vorschaubildern */
.gallery .caption,
.caption{
  display:none !important;
}

/* Galerie Hintergrund wieder wie normale Seiten */
body.gallery-page{
  background:#eee7d7!important;
}
body.gallery-page .wrapper{
  background:#fffaf0!important;
}
body.gallery-page .content{
  background:#fffaf0!important;
}
body.gallery-page .image-page-box{
  background:#fff!important;
  border:1px solid #d7c6a6!important;
}

/* Vollbild-Beschreibung sichtbar */
.fullscreen-caption{
  display:block!important;
  color:#fff!important;
  background:rgba(0,0,0,.72)!important;
  padding:9px 14px!important;
  border-radius:4px!important;
  margin:10px auto 0!important;
  text-align:center!important;
  font-size:1.05rem!important;
  max-width:92vw!important;
  position:relative!important;
  z-index:100002!important;
}
.fullscreen-caption:empty{
  display:none!important;
}

/* Kosmetik Galerie */
.gallery-title-small{
  color:#34482d !important;
  font-weight:bold !important;
}

body.gallery-page .image-page-box{
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
}

body.gallery-page .wrapper{
  background:#fffaf0 !important;
}

body.gallery-page .content{
  background:#fffaf0 !important;
}

/* Bildnummer dunkler */
.gallery-title-small{
  color:#34482d !important;
  font-weight:700 !important;
}

/* Beschreibungsbox Ourewald-Grün */
.image-caption-inline,
.fullscreen-caption{
  background:#34482d !important;
  color:#ffffff !important;
  border-left:4px solid #a98445 !important;
  border-radius:4px !important;
  padding:10px 14px !important;
  box-shadow:none !important;
}

/* Automatische Galerie ohne einzelne HTML-Bildseiten */
.auto-gallery .gallery-item{
  display:block;
  background:#fff;
  border:1px solid #d7c6a6;
  padding:7px;
}
.auto-gallery .gallery-item img{
  width:100%;
  height:190px;
  object-fit:cover;
  display:block;
}
.auto-lightbox{
  display:none;
  position:fixed;
  inset:0;
  z-index:999999;
  background:rgba(0,0,0,.94);
  align-items:center;
  justify-content:center;
  flex-direction:column;
  padding:14px;
}
.auto-lightbox.open{
  display:flex;
}
.auto-lightbox img{
  max-width:94vw;
  max-height:78vh;
  object-fit:contain;
}
.lb-caption{
  background:#34482d;
  color:#fff;
  border-left:4px solid #a98445;
  padding:10px 14px;
  border-radius:4px;
  margin:10px auto 0;
  max-width:92vw;
  text-align:center;
}
.lb-close,.lb-prev,.lb-next{
  position:fixed;
  border:0;
  cursor:pointer;
  color:#fff;
  background:rgba(52,72,45,.9);
  border-bottom:3px solid #a98445;
}
.lb-close{
  top:16px;
  right:18px;
  font-size:2rem;
  padding:3px 12px;
}
.lb-prev,.lb-next{
  top:50%;
  transform:translateY(-50%);
  font-size:2.4rem;
  width:48px;
  height:58px;
}
.lb-prev{left:18px;}
.lb-next{right:18px;}

@media(max-width:700px){
  .auto-gallery .gallery-item img{height:145px;}
  .lb-prev,.lb-next{
    width:36px;
    height:46px;
    font-size:1.8rem;
  }
  .lb-prev{left:6px;}
  .lb-next{right:6px;}
  .lb-close{
    top:8px;
    right:8px;
    font-size:1.5rem;
  }
}

/* Handy-Fix: Balken unter Hamburger-Menü nicht verdecken */
@media(max-width:900px){
  body{
    padding-top:158px !important;
  }

  .fixed-head{
    background:#fffaf0 !important;
  }

  .menu-toggle{
    display:block !important;
    position:relative !important;
    z-index:10002 !important;
    margin:0 !important;
    width:100% !important;
    border-top:4px solid #a98445 !important;
    border-bottom:1px solid #263620 !important;
  }

  .fixed-head .nav{
    position:relative !important;
    top:auto !important;
    left:auto !important;
    right:auto !important;
    transform:none !important;
    width:100% !important;
    max-width:100% !important;
    z-index:10001 !important;
  }

  .fixed-head .nav.open{
    display:flex !important;
  }

  .hero,
  main.content{
    margin-top:0 !important;
  }
}

@media(max-width:480px){
  body{
    padding-top:154px !important;
  }
}


.header{display:flex;justify-content:space-between;align-items:center}
#logoImage{cursor:pointer}
.header-dog img{height:85px;width:auto}
.logo-modal{display:none;position:fixed;inset:0;background:rgba(0,0,0,.92);z-index:99999;justify-content:center;align-items:center}
.logo-modal.active{display:flex}
.logo-modal-image{max-width:90%;max-height:90%}
.logo-close{position:absolute;top:15px;right:25px;color:#fff;font-size:50px;cursor:pointer}
@media(max-width:768px){
 .header-dog img{height:55px}
}

/* Header mit Silhouette rechts und klickbarem Logo */
.logo-box{
  display:grid !important;
  grid-template-columns:auto 1fr auto !important;
  align-items:center !important;
  gap:18px !important;
}

.logo-box .logo-click{
  cursor:pointer !important;
  display:inline-block !important;
}

.logo-box .logo-click img{
  cursor:pointer !important;
}

.header-dog{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
}

.header-dog img{
  height:82px !important;
  width:auto !important;
  display:block !important;
  object-fit:contain !important;
}

.logo-modal{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.92);
  z-index:999999;
  align-items:center;
  justify-content:center;
  padding:22px;
}

.logo-modal.open{
  display:flex;
}

.logo-modal img{
  max-width:92vw;
  max-height:88vh;
  object-fit:contain;
  background:#fffaf0;
  padding:14px;
  border-radius:6px;
}

.logo-modal-close{
  position:fixed;
  top:14px;
  right:20px;
  color:#fff;
  font-size:2.4rem;
  line-height:1;
  background:rgba(52,72,45,.9);
  border:0;
  padding:4px 13px;
  cursor:pointer;
  border-bottom:3px solid #a98445;
}

@media(max-width:900px){
  .logo-box{
    grid-template-columns:auto 1fr auto !important;
    gap:8px !important;
  }
  .header-dog img{
    height:46px !important;
  }
}

@media(max-width:480px){
  .header-dog img{
    height:36px !important;
  }
  .site-title{
    font-size:1.08rem !important;
  }
}

/* Header final korrigiert: mittig und ohne Conrad-Bild */
.fixed-head .header{
  text-align:center !important;
}

.logo-box{
  display:grid !important;
  grid-template-columns:120px 1fr 180px !important;
  align-items:center !important;
  justify-items:center !important;
  gap:14px !important;
  width:100% !important;
}

.logo-box > div:not(.header-dog){
  text-align:center !important;
  justify-self:center !important;
}

.logo-click{
  justify-self:center !important;
}

.logo-click img,
.logo-box > img{
  max-height:74px !important;
  width:auto !important;
}

.header-dog{
  justify-self:center !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

.header-dog img{
  height:74px !important;
  width:auto !important;
  max-width:170px !important;
  object-fit:contain !important;
}

.site-title{
  text-align:center !important;
}

.site-subtitle{
  text-align:center !important;
}

@media(max-width:900px){
  .logo-box{
    grid-template-columns:58px 1fr 72px !important;
    gap:6px !important;
  }

  .logo-click img,
  .logo-box > img{
    max-height:46px !important;
  }

  .header-dog img{
    height:42px !important;
    max-width:70px !important;
  }

  .site-title{
    font-size:1.25rem !important;
    text-align:center !important;
  }
}

@media(max-width:480px){
  .logo-box{
    grid-template-columns:48px 1fr 58px !important;
  }

  .logo-click img,
  .logo-box > img{
    max-height:38px !important;
  }

  .header-dog img{
    height:34px !important;
    max-width:58px !important;
  }

  .site-title{
    font-size:1.05rem !important;
  }
}

/* Header: Text exakt mittig, Bilder direkt daneben */
.logo-box{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:14px !important;
  width:100% !important;
}

.logo-box > div:not(.header-dog){
  text-align:center !important;
  flex:0 0 auto !important;
}

.logo-click{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex:0 0 auto !important;
  cursor:pointer !important;
}

.logo-click img{
  cursor:pointer !important;
}

.header-dog{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex:0 0 auto !important;
}

.site-title{
  text-align:center !important;
  white-space:nowrap !important;
}

/* Logo-Vollbild */
.logo-modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:999999;
  background:rgba(0,0,0,.92);
  align-items:center;
  justify-content:center;
  padding:20px;
}

.logo-modal.open{
  display:flex;
}

.logo-modal img{
  max-width:92vw;
  max-height:88vh;
  background:#fffaf0;
  padding:14px;
  border-radius:6px;
}

.logo-modal-close{
  position:fixed;
  top:14px;
  right:20px;
  color:#fff;
  font-size:2.4rem;
  background:#34482d;
  border:0;
  padding:4px 13px;
  cursor:pointer;
  border-bottom:3px solid #a98445;
}

@media(max-width:900px){
  .logo-box{
    gap:8px !important;
  }
  .site-title{
    font-size:1.15rem !important;
  }
}

@media(max-width:480px){
  .logo-box{
    gap:5px !important;
  }
  .site-title{
    font-size:.95rem !important;
  }
}

/* Logo-Hintergrund passend zur Webseite + robuste Lightbox */
.logo-click{
  cursor:pointer !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:#fffaf0 !important;
  border:0 !important;
  padding:0 !important;
}

.logo-click img{
  background:#fffaf0 !important;
}

.logo-lightbox{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.92);
  z-index:9999999;
  align-items:center;
  justify-content:center;
  padding:20px;
}

.logo-lightbox.open{
  display:flex;
}

.logo-lightbox img{
  max-width:92vw;
  max-height:88vh;
  object-fit:contain;
  background:#fffaf0;
  padding:14px;
  border-radius:6px;
}

.logo-lightbox-close{
  position:fixed;
  top:14px;
  right:20px;
  color:#fff;
  background:#34482d;
  border:0;
  font-size:2.2rem;
  line-height:1;
  padding:6px 14px;
  cursor:pointer;
  border-bottom:3px solid #a98445;
}

/* TEST: Startseite mit Logo statt großem Bild/Kasten */
.hero{
  background:#fffaf0 !important;
  min-height:520px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

.hero-card{
  position:static !important;
  transform:none !important;
  width:auto !important;
  max-width:520px !important;
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
  padding:20px !important;
}

.hero-card::before{
  content:"" !important;
  display:block !important;
  width:260px !important;
  height:260px !important;
  margin:0 auto 22px !important;
  background:url("logo_web_bg.png") center/contain no-repeat !important;
}

.hero-card h1{
  color:#34482d !important;
  font-size:2.4rem !important;
}

.hero-card p{
  color:#5f5748 !important;
}

@media(max-width:700px){
  .hero{
    min-height:430px !important;
  }
  .hero-card::before{
    width:190px !important;
    height:190px !important;
  }
  .hero-card h1{
    font-size:1.7rem !important;
  }
}

.hero-logo img,
.hero-card img,
.hero-card::before{
    border:none !important;
    box-shadow:none !important;
    background:transparent !important;
    outline:none !important;
}
.hero-card{
    background:transparent !important;
    border:none !important;
    box-shadow:none !important;
}

/* SAUBERER LOGO-FIX */
.logo-click,
.logo-click img,
.logo-box img{
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
  outline:none !important;
}

.logo-click img{
  height:74px !important;
  width:auto !important;
  object-fit:contain !important;
}

.hero{
  background:#fffaf0 !important;
  min-height:520px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

.hero-card{
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
  padding:20px !important;
  max-width:620px !important;
  text-align:center !important;
}

.hero-card::before{
  content:none !important;
  display:none !important;
}

.start-logo{
  display:block !important;
  width:min(520px, 88vw) !important;
  height:auto !important;
  margin:0 auto 22px !important;
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
  outline:none !important;
}

@media(max-width:700px){
  .logo-click img{
    height:46px !important;
  }
  .start-logo{
    width:min(360px, 88vw) !important;
  }
}

/* FINAL: Startseite aufgeräumt */
body.index-page .logo-lightbox,
body.index-page .logo-modal{
  display:none !important;
}

.hero{
  background:#fffaf0 !important;
  padding-top:0 !important;
  margin-top:0 !important;
}

.hero-card{
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
}

.hero-card h1,
.hero-card p,
.hero-card .btn,
.hero-card a.btn{
  display:none !important;
}

/* andersfarbigen Streifen unter grüner Leiste entfernen */
.nav,
.fixed-head .nav{
  margin-bottom:0 !important;
}

.nav + .hero,
.fixed-head + .hero,
.fixed-head + main,
.wrapper > .hero,
.wrapper > main.hero{
  margin-top:0 !important;
  padding-top:0 !important;
}

.header,
.fixed-head .header{
  margin-bottom:0 !important;
}

/* falls alte beiger/andersfarbiger Trennbereich gesetzt wurde */
.hero::before{
  display:none !important;
}

/* FINAL FIX: kein Streifen unter grüner Leiste */
.fixed-head{
  margin-bottom:0 !important;
  padding-bottom:0 !important;
}

.fixed-head .nav,
.nav{
  margin-bottom:0 !important;
  border-bottom:0 !important;
}

body.index-page{
  background:#fffaf0 !important;
}

body.index-page .wrapper{
  background:#fffaf0 !important;
}

body.index-page .hero{
  margin-top:0 !important;
  padding-top:0 !important;
  background:#fffaf0 !important;
}

body.index-page .hero::before,
body.index-page .hero::after{
  content:none !important;
  display:none !important;
}

body.index-page main,
body.index-page .content{
  margin-top:0 !important;
  padding-top:0 !important;
  background:#fffaf0 !important;
}

/* falls eine alte Trennfläche vom Hero kommt */
.wrapper > .hero:first-of-type{
  border-top:0 !important;
}


/* Kontakt & Impressum im Header vertikal mittig */
.nav a,
.fixed-head .nav a{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-height:42px !important;
    line-height:1.2 !important;
    padding-top:0 !important;
    padding-bottom:0 !important;
    vertical-align:middle !important;
}

/* Menü sauber ausrichten */
.nav,
.fixed-head .nav{
  display:flex !important;
  align-items:stretch !important;
  justify-content:center !important;
  flex-wrap:wrap !important;
  background:#34482d !important;
}

.nav a,
.fixed-head .nav a{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:46px !important;
  line-height:1.2 !important;
  padding:0 18px !important;
  box-sizing:border-box !important;
  color:#fff !important;
  text-decoration:none !important;
}

.nav a:hover,
.fixed-head .nav a:hover{
  background:#49613f !important;
}

@media(max-width:900px){
  .nav a,
  .fixed-head .nav a{
    min-height:42px !important;
    padding:0 12px !important;
  }
}

/* FINAL REPAIR: Menü, Streifen, Qubi-Seite, Responsive */
.nav,
.fixed-head .nav{
  list-style:none !important;
  margin:0 !important;
  padding:0 !important;
  border-bottom:0 !important;
  display:flex !important;
  align-items:stretch !important;
  justify-content:center !important;
  flex-wrap:wrap !important;
  background:#34482d !important;
}

.nav *{
  list-style:none !important;
}

.nav a,
.fixed-head .nav a{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:46px !important;
  line-height:1.2 !important;
  padding:0 18px !important;
  margin:0 !important;
  color:#fff !important;
  text-decoration:none !important;
  box-sizing:border-box !important;
}

.nav a::before,
.fixed-head .nav a::before{
  content:none !important;
}

.hero,
.wrapper > .hero{
  border-top:0 !important;
  margin-top:0 !important;
  padding-top:0 !important;
}

body.index-page .hero,
body.index-page .wrapper,
body.index-page{
  background:#fffaf0 !important;
}

.qubi-page .content{
  max-width:980px !important;
  margin:0 auto !important;
}

.qubi-page .box{
  font-size:1.05rem !important;
  line-height:1.65 !important;
}

.qubi-page .wurf-hero,
.qubi-page img.wurf-hero{
  width:100% !important;
  max-height:520px !important;
  object-fit:contain !important;
  background:#fffaf0 !important;
  border:none !important;
  padding:0 !important;
  box-shadow:none !important;
}

@media(max-width:900px){
  .menu-toggle{
    display:block !important;
  }

  .fixed-head .nav{
    display:none !important;
    flex-direction:column !important;
    align-items:stretch !important;
  }

  .fixed-head .nav.open{
    display:flex !important;
  }

  .fixed-head .nav a{
    min-height:42px !important;
    width:100% !important;
    padding:0 12px !important;
  }
}

/* FINAL: Kein Streifen unter der grünen Menüleiste */
html, body{
  background:#fffaf0 !important;
}

.wrapper{
  background:#fffaf0 !important;
}

.fixed-head{
  background:#fffaf0 !important;
  padding-bottom:0 !important;
  margin-bottom:0 !important;
  border-bottom:0 !important;
}

.fixed-head .header{
  margin-bottom:0 !important;
  padding-bottom:10px !important;
  border-bottom:0 !important;
}

.fixed-head .nav,
.nav{
  margin-top:0 !important;
  margin-bottom:0 !important;
  padding-top:0 !important;
  padding-bottom:0 !important;
  border-bottom:0 !important;
  box-shadow:none !important;
}

.fixed-head + *,
.nav + *,
.wrapper > main:first-of-type,
.wrapper > section:first-of-type{
  margin-top:0 !important;
}

main.content{
  background:#fffaf0 !important;
}

body:not(.index-page) main.content{
  padding-top:18px !important;
}

/* Auf A-Wurf-Seite kein Logo/Hero-Flash */
body.awurf-page .hero,
body.awurf-page .hero-card,
body.awurf-page .start-logo{
  display:none !important;
}

@media(max-width:900px){
  body{
    background:#fffaf0 !important;
  }
  .fixed-head{
    background:#fffaf0 !important;
    margin-bottom:0 !important;
    padding-bottom:0 !important;
  }
  .fixed-head .header{
    margin-bottom:0 !important;
    padding-bottom:8px !important;
  }
  .menu-toggle{
    margin:0 !important;
    border-bottom:0 !important;
  }
  .fixed-head .nav{
    margin:0 !important;
    border-top:0 !important;
    border-bottom:0 !important;
  }
  .fixed-head .nav.open{
    margin:0 !important;
  }
  main.content{
    padding-top:12px !important;
  }
}

/* FINAL: Überschriften kleiner */
h1{
  font-size:1.75rem !important;
}

h2{
  font-size:1.25rem !important;
}

h3{
  font-size:1.08rem !important;
}

.hero-card h1{
  font-size:1.85rem !important;
}

/* Header überall gleich breit, kein Zusammenziehen */
.fixed-head{
  width:1080px !important;
  max-width:calc(100% - 28px) !important;
  left:50% !important;
  transform:translateX(-50%) !important;
}

.wrapper{
  width:1080px !important;
  max-width:calc(100% - 28px) !important;
}

/* Startseite Header wie alle anderen Seiten */
body.index-page .fixed-head,
body.index-page .wrapper{
  width:1080px !important;
  max-width:calc(100% - 28px) !important;
}

/* Unsere Qubi: weißen Rand ums Bild entfernen */
.qubi-page .box:first-of-type,
.qubi-page section.box:first-of-type{
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
  padding:0 !important;
}

.qubi-page .wurf-hero,
.qubi-page img.wurf-hero{
  border:none !important;
  background:transparent !important;
  padding:0 !important;
  box-shadow:none !important;
}

/* Mobil wieder volle Breite */
@media(max-width:900px){
  .fixed-head,
  .wrapper,
  body.index-page .fixed-head,
  body.index-page .wrapper{
    width:100% !important;
    max-width:100% !important;
    left:0 !important;
    transform:none !important;
  }

  h1{
    font-size:1.45rem !important;
  }

  h2{
    font-size:1.15rem !important;
  }

  h3{
    font-size:1rem !important;
  }
}

/* Startseite gleiche Höhe wie Unterseiten */
body.index-page main.content{
    padding-top:18px !important;
    min-height:auto !important;
}

body.index-page::before{
    content:" ";
    display:block;
    height:42px;
}

@media(max-width:900px){
    body.index-page::before{
        height:34px;
    }
}



/* REPARATUR: stabiles Layout, kein kaputter Global-Reset */
html, body{
  margin:0;
  padding:0;
  background:#eee7d7 !important;
}

.wrapper{
  width:1080px !important;
  max-width:calc(100% - 28px) !important;
  margin:0 auto !important;
  background:#fffaf0 !important;
  min-height:100vh !important;
  box-shadow:0 0 16px rgba(0,0,0,.18) !important;
}

.fixed-head{
  position:fixed !important;
  top:0 !important;
  left:50% !important;
  transform:translateX(-50%) !important;
  width:1080px !important;
  max-width:calc(100% - 28px) !important;
  z-index:10000 !important;
  background:#fffaf0 !important;
  box-shadow:0 3px 14px rgba(0,0,0,.18) !important;
  padding:0 !important;
  margin:0 !important;
}

.fixed-head .header{
  background:#fffaf0 !important;
  border-top:8px solid #34482d !important;
  padding:18px 20px 12px !important;
  margin:0 !important;
}

.fixed-head .nav{
  display:flex !important;
  align-items:stretch !important;
  justify-content:center !important;
  flex-wrap:wrap !important;
  background:#34482d !important;
  border-top:4px solid #a98445 !important;
  border-bottom:0 !important;
  margin:0 !important;
  padding:0 !important;
  box-shadow:none !important;
}

.fixed-head .nav a{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:46px !important;
  padding:0 18px !important;
  margin:0 !important;
  color:#fff !important;
  text-decoration:none !important;
  line-height:1.2 !important;
  list-style:none !important;
}

body{
  padding-top:178px !important;
}

main.content{
  padding:28px 34px 42px !important;
  background:#fffaf0 !important;
}

.hero{
  background:#fffaf0 !important;
  margin:0 !important;
  padding:0 !important;
}

/* Startseite ohne Zusatzstreifen */
body.index-page .hero{
  padding-top:0 !important;
  margin-top:0 !important;
  border-top:0 !important;
}

body.index-page::before{
  display:none !important;
  content:none !important;
}

/* Qubi-Bild ohne weißen Rand */
.qubi-page .box:first-of-type{
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
  padding:0 !important;
}

.qubi-page .wurf-hero{
  border:none !important;
  background:transparent !important;
  padding:0 !important;
  box-shadow:none !important;
}

@media(max-width:900px){
  body{
    padding-top:128px !important;
  }

  .wrapper,
  .fixed-head{
    width:100% !important;
    max-width:100% !important;
    left:0 !important;
    transform:none !important;
  }

  .fixed-head .header{
    padding:10px 12px 8px !important;
    border-top:6px solid #34482d !important;
  }

  .menu-toggle{
    display:block !important;
    width:100% !important;
    background:#34482d !important;
    color:#fff !important;
    border:0 !important;
    border-top:4px solid #a98445 !important;
    padding:12px 14px !important;
    margin:0 !important;
  }

  .fixed-head .nav{
    display:none !important;
    flex-direction:column !important;
    align-items:stretch !important;
    margin:0 !important;
    border-top:0 !important;
  }

  .fixed-head .nav.open{
    display:flex !important;
  }

  .fixed-head .nav a{
    width:100% !important;
    min-height:42px !important;
    padding:0 12px !important;
    border-bottom:1px solid rgba(255,255,255,.15) !important;
  }

  main.content{
    padding:18px 12px 32px !important;
  }
}

/* RESPONSIVE FIX: Header/Balken darf Überschriften nicht verdecken */
@media(max-width:900px){
  body{
    padding-top:175px !important;
  }

  main.content{
    padding-top:34px !important;
  }

  .wrapper > main.content:first-of-type{
    margin-top:0 !important;
  }

  h1:first-child{
    margin-top:0 !important;
    padding-top:0 !important;
  }

  .fixed-head{
    z-index:10000 !important;
  }

  .fixed-head .nav{
    z-index:10001 !important;
  }
}

@media(max-width:480px){
  body{
    padding-top:178px !important;
  }

  main.content{
    padding-top:36px !important;
  }
}

/* Header überall gleich hoch */
.fixed-head{
    min-height:auto !important;
}

.fixed-head .header{
    height:110px !important;
    min-height:110px !important;
    max-height:110px !important;
    box-sizing:border-box !important;
}

/* Dunklen/goldenen Trennstreifen komplett entfernen */
.fixed-head .nav,
.nav{
    border-top:none !important;
    border-bottom:none !important;
    box-shadow:none !important;
}

/* Keine zusätzliche Trennlinie unter Header */
.fixed-head .header{
    border-bottom:none !important;
    box-shadow:none !important;
}

@media(max-width:900px){
    .fixed-head .header{
        height:95px !important;
        min-height:95px !important;
        max-height:95px !important;
    }
}

/* FINAL: Logo springt beim Seitenwechsel nicht mehr */
.fixed-head{
  height:156px !important;
  min-height:156px !important;
  max-height:156px !important;
  overflow:visible !important;
}

.fixed-head .header{
  height:110px !important;
  min-height:110px !important;
  max-height:110px !important;
  padding:0 20px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  box-sizing:border-box !important;
}

.logo-box{
  height:100% !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:14px !important;
  margin:0 !important;
  padding:0 !important;
}

.logo-click,
.logo-click img,
.logo-box > img{
  display:block !important;
  height:74px !important;
  max-height:74px !important;
  width:auto !important;
  margin:0 !important;
  padding:0 !important;
  line-height:0 !important;
  vertical-align:middle !important;
}

.header-dog,
.header-dog img{
  height:74px !important;
  max-height:74px !important;
  width:auto !important;
  margin:0 !important;
  padding:0 !important;
}

.site-title,
.site-subtitle{
  margin:0 !important;
  padding:0 !important;
}

/* Inhalt beginnt immer gleich unter dem festen Header */
body{
  padding-top:156px !important;
}

@media(max-width:900px){
  .fixed-head{
    height:137px !important;
    min-height:137px !important;
    max-height:137px !important;
  }

  .fixed-head .header{
    height:95px !important;
    min-height:95px !important;
    max-height:95px !important;
    padding:0 12px !important;
  }

  .logo-click,
  .logo-click img,
  .logo-box > img{
    height:46px !important;
    max-height:46px !important;
  }

  .header-dog,
  .header-dog img{
    height:46px !important;
    max-height:46px !important;
  }

  body{
    padding-top:137px !important;
  }
}

@media(max-width:480px){
  .logo-click,
  .logo-click img,
  .logo-box > img{
    height:38px !important;
    max-height:38px !important;
  }

  .header-dog,
  .header-dog img{
    height:38px !important;
    max-height:38px !important;
  }
}

/* =====================================================
   STABILER HEADER FINAL
   - kein Wackeln durch wechselnde Höhen
   - kein Streifen unter dem grünen Menü
   - Überschriften werden nicht verdeckt
   ===================================================== */

:root{
  --head-desktop:156px;
  --head-mobile:156px;
  --bg-page:#fffaf0;
  --green:#34482d;
}

/* feste Headerhöhe überall */
.fixed-head{
  height:var(--head-desktop) !important;
  min-height:var(--head-desktop) !important;
  max-height:var(--head-desktop) !important;
  background:var(--bg-page) !important;
  overflow:visible !important;
  box-shadow:none !important;
  border:0 !important;
}

.fixed-head .header{
  height:110px !important;
  min-height:110px !important;
  max-height:110px !important;
  background:var(--bg-page) !important;
  border-top:8px solid var(--green) !important;
  border-bottom:0 !important;
  box-shadow:none !important;
  margin:0 !important;
  padding:0 20px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  box-sizing:border-box !important;
}

/* grüne Leiste ohne zusätzlichen Streifen */
.fixed-head .nav,
.nav{
  height:46px !important;
  min-height:46px !important;
  max-height:46px !important;
  background:var(--green) !important;
  border:0 !important;
  box-shadow:none !important;
  margin:0 !important;
  padding:0 !important;
}

.fixed-head .nav a,
.nav a{
  height:46px !important;
  min-height:46px !important;
  max-height:46px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 18px !important;
  margin:0 !important;
  line-height:1 !important;
  box-sizing:border-box !important;
}

/* Header-Bilder bekommen feste Maße, damit nichts springt */
.logo-box{
  height:110px !important;
  min-height:110px !important;
  max-height:110px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:14px !important;
  margin:0 !important;
  padding:0 !important;
}

.logo-click,
.logo-click img,
.logo-box > img,
.header-dog,
.header-dog img{
  height:74px !important;
  max-height:74px !important;
  width:auto !important;
  margin:0 !important;
  padding:0 !important;
  line-height:0 !important;
  vertical-align:middle !important;
}

/* Inhalt beginnt immer sicher unter dem festen Header */
html, body{
  background:var(--bg-page) !important;
}

body{
  padding-top:calc(var(--head-desktop) + 18px) !important;
}

.wrapper{
  background:var(--bg-page) !important;
}

main.content{
  background:var(--bg-page) !important;
  padding-top:22px !important;
}

/* Startseite ohne Zusatzstreifen */
body.index-page::before,
.hero::before,
.hero::after{
  display:none !important;
  content:none !important;
}

.hero{
  margin-top:0 !important;
  border-top:0 !important;
  background:var(--bg-page) !important;
}

/* Mobile: Header bleibt geschlossen und Inhalt rutscht darunter */
@media(max-width:900px){
  .fixed-head{
    height:var(--head-mobile) !important;
    min-height:var(--head-mobile) !important;
    max-height:var(--head-mobile) !important;
  }

  .fixed-head .header{
    height:95px !important;
    min-height:95px !important;
    max-height:95px !important;
    border-top:6px solid var(--green) !important;
    padding:0 12px !important;
  }

  .logo-box{
    height:95px !important;
    min-height:95px !important;
    max-height:95px !important;
  }

  .logo-click,
  .logo-click img,
  .logo-box > img,
  .header-dog,
  .header-dog img{
    height:46px !important;
    max-height:46px !important;
  }

  .menu-toggle{
    height:61px !important;
    min-height:61px !important;
    max-height:61px !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    background:var(--green) !important;
    color:#fff !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    box-shadow:none !important;
  }

  .fixed-head .nav{
    position:absolute !important;
    top:156px !important;
    left:0 !important;
    right:0 !important;
    height:auto !important;
    max-height:none !important;
    background:var(--green) !important;
    z-index:10001 !important;
    border:0 !important;
    box-shadow:none !important;
  }

  .fixed-head .nav:not(.open){
    display:none !important;
  }

  .fixed-head .nav.open{
    display:flex !important;
  }

  .fixed-head .nav a{
    height:42px !important;
    min-height:42px !important;
    max-height:42px !important;
  }

  body{
    padding-top:calc(var(--head-mobile) + 24px) !important;
  }

  main.content{
    padding-top:28px !important;
  }
}

@media(max-width:480px){
  body{
    padding-top:184px !important;
  }

  main.content{
    padding-top:32px !important;
  }
}


/* Qubi-Galerie */
.qubi-gallery-box{
  background:#fffaf0;
}

.qubi-gallery{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
  gap:14px;
  margin-top:14px;
}

.qubi-gallery a{
  display:block;
  background:transparent;
  border:none;
  box-shadow:none;
  text-decoration:none;
}

.qubi-gallery img{
  width:100%;
  height:190px;
  object-fit:cover;
  display:block;
  border-radius:10px;
  box-shadow:0 2px 8px rgba(0,0,0,.18);
}

@media(max-width:700px){
  .qubi-gallery{
    grid-template-columns:repeat(2, 1fr);
    gap:10px;
  }
  .qubi-gallery img{
    height:145px;
  }
}


/* Qubi Galerie Fix */
.qubi-gallery{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
  gap:14px;
  margin-top:14px;
}

.qubi-gallery .gallery-item{
  display:block;
  text-decoration:none;
}

.qubi-gallery img{
  width:100%;
  height:190px;
  object-fit:cover;
  display:block;
  border-radius:10px;
  box-shadow:0 2px 8px rgba(0,0,0,.18);
}

@media(max-width:700px){
  .qubi-gallery{
    grid-template-columns:repeat(2, 1fr);
    gap:10px;
  }
  .qubi-gallery img{
    height:145px;
  }
}


/* QUBI-SEITE FIX: Logo-Lightbox auf Hunde-Seite nie anzeigen */
body.qubi-page .logo-lightbox,
body.qubi-page .logo-modal{
  display:none !important;
  visibility:hidden !important;
  opacity:0 !important;
}

/* Qubi-Galerie sichtbar und klickbar */
.qubi-gallery{
  display:grid !important;
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap:14px !important;
  margin-top:14px !important;
}

.qubi-gallery .gallery-item{
  display:block !important;
  padding:7px !important;
  background:#fffaf0 !important;
  border:1px solid #d7c6a6 !important;
  text-decoration:none !important;
}

.qubi-gallery img{
  width:100% !important;
  height:190px !important;
  object-fit:cover !important;
  display:block !important;
  border-radius:8px !important;
}

/* Galerie-Lightbox */
.auto-lightbox{
  display:none !important;
}
.auto-lightbox.open{
  display:flex !important;
}

@media(max-width:700px){
  .qubi-gallery{
    grid-template-columns:repeat(2, 1fr) !important;
    gap:10px !important;
  }
  .qubi-gallery img{
    height:145px !important;
  }
}

/* Qubi-Galerie: gleiche Optik wie A-Wurf + 5 Bilder pro Zeile */
.qubi-gallery-box{
  background:#fffaf0 !important;
  border:1px solid #d7c6a6 !important;
}

.qubi-gallery{
  display:grid !important;
  grid-template-columns:repeat(5, 1fr) !important;
  gap:14px !important;
  margin-top:14px !important;
}

.qubi-gallery .gallery-item{
  display:block !important;
  background:#fff !important;
  border:1px solid #d7c6a6 !important;
  padding:7px !important;
  box-shadow:none !important;
  text-decoration:none !important;
}

.qubi-gallery img{
  width:100% !important;
  height:160px !important;
  object-fit:cover !important;
  display:block !important;
  border-radius:0 !important;
  box-shadow:none !important;
}

@media(max-width:1000px){
  .qubi-gallery{
    grid-template-columns:repeat(4, 1fr) !important;
  }
}

@media(max-width:760px){
  .qubi-gallery{
    grid-template-columns:repeat(2, 1fr) !important;
    gap:10px !important;
  }
  .qubi-gallery img{
    height:145px !important;
  }
}


/* Qubi Galerie exakt weiß wie A-Wurf */
.qubi-gallery-box,
.qubi-gallery,
.qubi-gallery .gallery-item{
    background:#ffffff !important;
}


.qubi-bild-kasten{
  background:#ffffff;
  border:1px solid #d7c6a6;
  padding:12px;
  margin-bottom:20px;
  box-shadow:0 1px 3px rgba(0,0,0,0.08);
}

.qubi-bild-kasten img{
  display:block;
  width:100%;
}


/* Button Ahnentafel */
.btn-ahnentafel{
  display:inline-block;
  padding:10px 18px;
  background:#b89b5e;
  color:#fff !important;
  text-decoration:none;
  font-weight:600;
  border:1px solid #9d844f;
}

.btn-ahnentafel:hover{
  background:#9d844f;
}


/* Zusatzbild Conrad Ares */
.deckruede-zusatzbild{
  margin-top:16px;
  text-align:center;
}

.deckruede-zusatzbild img{
  width:100%;
  max-width:700px;
  height:auto;
  display:block;
  border:1px solid #d7c6a6;
  background:#ffffff;
  padding:6px;
}


/* iPad/Tablet: A-Wurf Galerie wie Qubi mit 4 Bildern pro Reihe */
@media (min-width:701px) and (max-width:1100px){
  .auto-gallery,
  .gallery.auto-gallery,
  .awurf-inline-gallery .gallery,
  .awurf-inline-gallery .auto-gallery{
    display:grid !important;
    grid-template-columns:repeat(4, 1fr) !important;
    gap:14px !important;
  }

  .auto-gallery .gallery-item img,
  .awurf-inline-gallery .gallery img{
    height:160px !important;
    object-fit:cover !important;
  }
}


/* Videos von Qubi */
.qubi-video-box{
  background:#ffffff !important;
  border:1px solid #d7c6a6 !important;
}

.qubi-video-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:16px;
  margin-top:14px;
}

.qubi-video-item{
  background:#ffffff;
  border:1px solid #d7c6a6;
  padding:7px;
}

.qubi-video-item video{
  width:100%;
  height:auto;
  display:block;
  background:#000;
}

@media(max-width:760px){
  .qubi-video-grid{
    grid-template-columns:1fr;
    gap:12px;
  }
}


/* Video vom A-Wurf */
.awurf-video-box{
  background:#ffffff !important;
  border:1px solid #d7c6a6 !important;
}

.awurf-video-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:16px;
  margin-top:14px;
}

.awurf-video-item{
  background:#ffffff;
  border:1px solid #d7c6a6;
  padding:7px;
}

.awurf-video-item video{
  width:100%;
  height:auto;
  display:block;
  background:#000;
}

@media(max-width:760px){
  .awurf-video-grid{
    grid-template-columns:1fr;
    gap:12px;
  }
}
