
:root {
  --panel: rgba(244, 246, 247, 0.96);
  --panel-solid: #f4f6f7;
  --text: #111;
  --accent: #a87551;
  --accent-dark: #744b31;
  --line: rgba(0,0,0,.16);
  --shadow: 0 18px 45px rgba(0,0,0,.26);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.58;
  background: #2f2d2d url('../img/pattern.jpg') repeat;
}
.site-bg {
  display: none;
}
a { color: var(--accent-dark); text-underline-offset: .18em; }
a:hover { color: #3b2416; }
.page-shell {
  width: min(1080px, calc(100% - 34px));
  margin: 22px auto 34px;
  background: rgba(200,200,200,.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px 14px;
}
.brand img {
  display: block;
  max-width: min(560px, 100%);
  height: auto;
}
.badge-wrap img {
  display: block;
  max-width: min(240px, 34vw);
  height: auto;
}
.navigation {
  padding: 0 26px 14px;
}
.navigation ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 8px;
  background: rgba(255,255,255,.65);
  border-radius: 6px;
}
.navigation a {
  display: block;
  padding: 8px 16px;
  border-radius: 5px;
  color: #333;
  text-decoration: none;
}
.navigation li.active a,
.navigation a:hover {
  color: #fff;
  background: var(--accent);
}
.content-card {
  margin: 0 26px 26px;
  padding: 26px clamp(18px, 3.5vw, 38px);
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}
h1,h2,h3,h4,h5,h6 {
  color: var(--accent);
  text-shadow: 1px 1px 1px rgba(0,0,0,.35);
  line-height: 1.2;
}
h1 { font-size: clamp(1.35rem, 2.4vw, 2rem); }
h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.85rem);
  margin-top: 1.2em;
  padding-left: 34px;
  background: url('../img/footprint.png') left .18em / 24px auto no-repeat;
}
h3 { font-size: clamp(1.08rem, 1.7vw, 1.35rem); }
.item-title:first-child, h2:first-child { margin-top: 0; }
p { margin: 0 0 1em; }
ul { padding-left: 1.35em; }
img { max-width: 100%; height: auto; }
.content-card > .blog-featured img,
.content-card p img {
  border-radius: 3px;
}
.content-card p[style*="text-align: center"] img {
  margin: 5px;
}
.content-card img[src*="P4265709_800"] {
  display: block;
  width: min(800px, 100%);
  margin: 0 auto;
  border-radius: 5px;
}
.content-card img[src*="impressionen"] {
  width: 220px;
  max-width: calc(33.333% - 14px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  vertical-align: middle;
}
.content-card img[src*="exklusive5"] {
  max-width: 240px;
}
.blog-featured .leading-0 {
  text-align: center;
}
.blog-featured .leading-1,
.blog-featured .leading-2,
.item-page,
.contact {
  margin-top: 2.2em;
}
.blog-featured .leading-0 + .leading-1 {
  border-top: 1px solid var(--line);
  padding-top: 1.4em;
}
.blog-featured .leading-2 {
  border-top: 1px solid var(--line);
  padding-top: 1.4em;
}
strong span[style*="color: #ff0000"] {
  display: inline-block;
  padding: .35em .65em;
  border-radius: 6px;
  background: #fff2f2;
}
[style*="courier new"] {
  font-family: "Courier New", Courier, monospace !important;
}
.footer {
  width: min(1080px, calc(100% - 34px));
  margin: 0 auto 30px;
}
.footer-inner {
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  color: #333;
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.footer p { margin: 0; }

@media (max-width: 760px) {
  body { font-size: 15px; }
  .site-bg {
  display: none;
}
  .page-shell, .footer { width: min(100% - 18px, 1080px); margin-top: 9px; }
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 16px 10px;
  }
  .badge-wrap img { max-width: 220px; }
  .navigation { padding: 0 16px 12px; }
  .navigation ul { gap: 4px; }
  .navigation a { padding: 8px 12px; }
  .content-card { margin: 0 12px 14px; padding: 18px 14px; }
  .content-card img[src*="impressionen"] {
    max-width: calc(50% - 14px);
  }
}
@media (max-width: 430px) {
  .content-card img[src*="impressionen"] {
    max-width: 100%;
    width: 100%;
  }
}


/* V2 Feinabstimmung */
#start, #hundestube, #impressionen {
  scroll-margin-top: 18px;
}
.welcome-image-wrap {
  text-align: center !important;
}
.welcome-main-image {
  display: block !important;
  margin: 0 auto !important;
  width: min(800px, 100%) !important;
  height: auto !important;
}
.modal-link {
  font-weight: 700;
}

/* Reine HTML/CSS-Modals fuer Nachweise */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.modal-toggle:checked + .modal {
  display: flex;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
}
.modal-box {
  position: relative;
  z-index: 1;
  width: min(920px, 96vw);
  max-height: 92vh;
  overflow: auto;
  background: #f4f6f7;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 25px 80px rgba(0,0,0,.55);
  padding: 18px;
}
.modal-box h2 {
  margin: 0 44px 16px 0;
}
.modal-box img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 4px;
}
.modal-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #a87551;
  color: #fff;
  text-decoration: none;
  font-size: 28px;
  line-height: 1;
}
.modal-close:hover {
  background: #744b31;
  color: #fff;
}


/* V3: Modal ohne Scroll-Sprung / ohne URL-Hash */
.modal-toggle {
  position: fixed;
  opacity: 0;
  pointer-events: none;
}
.modal-link {
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: .18em;
}
.modal-link:focus {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}
.modal-backdrop,
.modal-close {
  cursor: pointer;
  user-select: none;
}


/* V5: Kontaktblock auf der Startseite */
#kontakt {
  scroll-margin-top: 18px;
}
.embedded-contact {
  margin: 1.8em 0 2.1em;
  padding: 1.2em 1.35em;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.42);
}
.embedded-contact h2 {
  margin-top: 0;
}
.embedded-contact .contact {
  margin-top: .5em;
}
.embedded-contact dl,
.embedded-contact dd {
  margin-left: 0;
}
.embedded-contact .thumbnail {
  display: none;
}
.embedded-contact .contact-position,
.embedded-contact legend {
  display: none;
}


/* V6: Kontakt unten und Menüpunkt rechts */
.navigation ul {
  align-items: center;
}
.navigation .nav-contact {
  margin-left: auto;
}
.embedded-contact {
  margin-top: 2.5em;
  margin-bottom: 0;
  border-top: 2px solid var(--line);
}
@media (max-width: 760px) {
  .navigation .nav-contact {
    margin-left: 0;
  }
}
