/* Kalou – Galerie-Stil mit Seitenleisten-Navigation */
@font-face {
  font-family: "Roboto";
  src: url("fonts/roboto-var.woff") format("woff");
  font-weight: 100 900;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --panel: #f2f2f2;
  --panel-2: #ebebeb;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --line: #dcdcdc;
  --accent: #a0642a;
  --heading: #14285a;
  --hero-bg: #e2e1e6;
  --side: 280px;
  --font: "Roboto", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0; background: var(--bg); color: var(--text); color-scheme: light;
  font-family: var(--font); font-weight: 300; font-size: 1.05rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand, .side-nav a, .kicker, figcaption, .hero-slogan, .eyebrow {
  font-family: var(--font); font-stretch: 75%;
  text-transform: uppercase;
}
h1, h2, h3 { color: var(--heading); font-weight: 700; letter-spacing: .03em; line-height: 1.05; margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Seitenleiste */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 30;
  background: var(--panel); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 2.6rem 2.2rem 2rem;
}
.brand { display: block; color: var(--text); font-weight: 700; font-size: 3rem; letter-spacing: .06em; line-height: 1; }
.brand:hover { text-decoration: none; }
.brand small { display: block; margin-top: .7rem; font-size: .8rem; font-weight: 400; letter-spacing: .28em; color: var(--muted); }
.menu-btn { display: none; }
.side-nav { margin-top: 3.4rem; }
.side-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.side-nav a {
  position: relative; display: block; padding: .45rem 0 .45rem 0;
  font-size: 1.15rem; font-weight: 500; letter-spacing: .14em; color: var(--muted);
  transition: color .25s, padding-left .3s cubic-bezier(.2, .7, .2, 1);
}
.side-nav a::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 0; height: 2px; background: var(--accent);
  transition: width .3s cubic-bezier(.2, .7, .2, 1);
}
.side-nav a:hover, .side-nav a.active { color: var(--text); text-decoration: none; padding-left: 2.1rem; }
.side-nav a:hover::before, .side-nav a.active::before { width: 1.4rem; }
.side-foot { margin-top: auto; font-size: .78rem; font-weight: 300; color: var(--muted); letter-spacing: .02em; }

/* Seite */
.page { margin-left: var(--side); }
.wrap { width: min(1100px, 100% - 7rem); margin-inline: auto; }

/* Titelbild */
.hero { position: relative; height: 100vh; min-height: 560px; background: var(--hero-bg); overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 0%; display: block; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--bg)); pointer-events: none; }
.hero-text { position: absolute; z-index: 1; top: clamp(2rem, 6vh, 4rem); right: clamp(1.5rem, 5vw, 5rem); text-align: right; }
.eyebrow { margin: 0 0 .5rem; font-size: 1rem; font-weight: 500; letter-spacing: .3em; color: #8f5622; }
.hero h1 { color: var(--heading); font-size: clamp(5rem, 12vw, 11rem); font-weight: 800; letter-spacing: .02em; line-height: .88; }
.hero .subtitle { margin: 1rem 0 0; font-family: var(--font); font-stretch: 75%; text-transform: uppercase; font-size: clamp(1rem, 1.8vw, 1.5rem); font-weight: 500; letter-spacing: .22em; color: #2e2e2e; }

/* Abschnitte */
.section { padding: clamp(4rem, 9vw, 7rem) 0 clamp(1.5rem, 4vw, 3rem); }
.section.alt { background: var(--panel); border-block: 1px solid var(--line); padding-bottom: clamp(4rem, 8vw, 6rem); margin-top: clamp(2rem, 5vw, 4rem); }
.section-head { max-width: 760px; margin: 0 0 clamp(2rem, 4vw, 3rem); }
.section-head .kicker { margin: 0 0 .9rem; font-size: .9rem; font-weight: 500; letter-spacing: .3em; color: var(--accent); }
.section-head h2 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
.section-head h2::after { content: ""; display: block; width: 3.5rem; height: 3px; background: var(--accent); margin-top: 1.1rem; }
.section-head p { margin: 1.2rem 0 0; font-size: 1.15rem; color: var(--muted); }

/* Rasse */
.breed-text { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); }
.breed-text p { margin: 0; font-size: 1.12rem; color: #3d3d3d; }
.breed-story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.breed-photo { margin: 0; }
.breed-photo img { width: 100%; height: auto; display: block; border-radius: 3px; background: #e6e6e6; }
.breed-story h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1.2rem; }
.breed-story p { margin: 0 0 1.1rem; font-size: 1.08rem; color: #3d3d3d; }

/* Galerie */
.gallery { columns: 3 260px; column-gap: 1.25rem; }
.gallery figure { margin: 0 0 1.25rem; break-inside: avoid; position: relative; }
.gallery .img-wrap { overflow: hidden; background: #e6e6e6; border-radius: 3px; }
.gallery img { width: 100%; height: auto; display: block; cursor: zoom-in; }
/* Bildtexte nur in der Großansicht (Lightbox) */
.gallery figcaption { display: none; color: #fff; }

/* Lightbox */
dialog#lightbox { border: 0; padding: 0; background: transparent; color: #f5f5f7; width: 100vw; height: 100vh; max-width: none; max-height: none; }
dialog#lightbox::backdrop { background: rgba(0, 0, 0, .88); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
dialog#lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; animation: fade .3s ease; }
dialog#lightbox img { max-width: min(94vw, 1400px); max-height: 80vh; border-radius: 3px; display: block; }
dialog#lightbox p { margin: 1rem 1rem 0; padding: .45rem 1rem; background: #000; border-radius: 3px; font-size: .85rem; font-weight: 500; font-family: var(--font); font-stretch: 75%; text-transform: uppercase; letter-spacing: .16em; color: #fff; text-align: center; }
dialog#lightbox button { position: absolute; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
dialog#lightbox button:hover { background: rgba(255, 255, 255, .26); }
#lb-close { top: 1.2rem; right: 1.2rem; }
#lb-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
#lb-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Fußzeile */
.site-footer { margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: .8rem; padding: 1.6rem 0 1.8rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; justify-content: space-between; }
.site-footer a { color: #3d3d3d; }

/* Impressum */
.legal { padding: clamp(3.5rem, 8vw, 6rem) 0 3rem; min-height: 80vh; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(1.5rem, 6vw, 4.2rem); margin-bottom: 1.8rem; }
.legal h1::after { content: ""; display: block; width: 3.5rem; height: 3px; background: var(--accent); margin-top: 1.1rem; }
.legal address { font-style: normal; margin: 0 0 1.6rem; font-size: 1.05rem; line-height: 1.55; }
.legal h2 { font-size: 1.5rem; margin: 2.2rem 0 .7rem; letter-spacing: .04em; }
.legal ul { margin: 0 0 1.2rem; padding-left: 1.3rem; font-size: .95rem; line-height: 1.65; color: #3d3d3d; }
.legal li { margin-bottom: .25rem; }
.legal .note { margin: 0 0 1.4rem; font-size: 1.05rem; }
.legal p { margin: 0 0 1.2rem; font-size: .95rem; line-height: 1.65; color: #3d3d3d; }
.legal .copyright { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* Einblenden */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* Tablet und Handy: Seitenleiste wird zur Kopfleiste mit Menü */
@media (max-width: 900px) {
  :root { --side: 0px; }
  .sidebar {
    inset: 0 0 auto 0; width: 100%; height: 56px; padding: 0 1.1rem; flex-direction: row; align-items: center; justify-content: space-between;
    border-right: 0; border-bottom: 1px solid var(--line); background: rgba(242, 242, 242, .92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  }
  .brand { font-size: 1.6rem; display: flex; align-items: baseline; gap: .7rem; }
  .brand small { margin: 0; font-size: .65rem; letter-spacing: .22em; }
  .menu-btn { display: block; border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 3px; padding: .35rem .8rem; font: 500 .8rem var(--font); font-stretch: 75%; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; }
  .side-nav { position: fixed; left: 0; right: 0; top: 56px; margin: 0; padding: 1.2rem 1.4rem 1.6rem; background: var(--panel); border-bottom: 1px solid var(--line); display: none; }
  .side-nav.open { display: block; }
  .side-foot { display: none; }
  .page { margin-left: 0; padding-top: 56px; }
  .wrap { width: calc(100% - 2.2rem); }
  .hero { height: auto; min-height: 0; display: flex; flex-direction: column; }
  .hero-text { position: relative; order: -1; top: auto; right: auto; text-align: center; padding: 2rem 1rem 0; }
  .hero h1 { font-size: clamp(4.6rem, 26vw, 8rem); }
  .hero > img {
    position: relative; inset: auto; height: 62svh; min-height: 340px; object-position: 14% 20%; margin-top: -1rem;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 90%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 90%, transparent 100%);
  }
  .breed-text { grid-template-columns: 1fr; gap: 1rem; }
  .breed-story { grid-template-columns: 1fr; }
  .gallery { columns: 2 140px; column-gap: .75rem; }
  .gallery figure { margin-bottom: .75rem; }
  #lb-prev, #lb-next { top: auto; bottom: 1.4rem; transform: none; }
  #lb-prev { left: calc(50% - 56px); }
  #lb-next { right: calc(50% - 56px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .side-nav a, .side-nav a::before { transition: none; }
}

/* Für Züchter */
.breeder { max-width: 780px; }
.breeder h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 1rem; }
.breeder h3:not(:first-child) { margin-top: clamp(2.2rem, 4vw, 3rem); }
.breeder p { margin: 0 0 .8rem; font-size: 1.05rem; color: #3d3d3d; }
.doc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.doc-list li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .2rem 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.doc-list a { font-weight: 500; word-break: break-word; }
.doc-meta { font-size: .8rem; color: var(--muted); letter-spacing: .04em; }
.topic-list { margin: 0; padding-left: 1.2rem; font-size: 1.05rem; color: #3d3d3d; line-height: 1.7; }

/* Comic im Impressum */
.legal .comic { margin: clamp(2.5rem, 6vw, 4rem) 0 0; text-align: center; }
.legal .comic img { width: min(100%, 340px); height: auto; border-radius: 6px; display: inline-block; }
dialog#lightbox p:empty { display: none; }
