/* Toku Kataloge – Farben aus der Welt der Alu-Überdachungen:
   Anthrazit RAL 7016, Aluminium, Glas und Toku-Sonnengelb als Akzent */
:root {
  --anthrazit: #383e42;
  --anthrazit-2: #2c3134;
  --anthrazit-3: #4a5156;
  --alu: #eef0ee;
  --alu-2: #e3e6e4;
  --glas: #ffffff;
  --ink: #23292c;
  --muted: #5d666a;
  --line: #d3d8d6;
  --sonne: #e4ed64;
  --sonne-2: #d6e04a;
  --font: "Switzer", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1360px;
  --book-h: 252px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  background: var(--alu);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sonne-2); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--dark { background: var(--anthrazit); color: #fff; }
.btn--dark:hover { background: var(--anthrazit-2); }
.btn--sun { background: var(--sonne); color: var(--anthrazit-2); }
.btn--sun:hover { background: var(--sonne-2); }
.btn--line { border-color: currentColor; color: inherit; }
.btn--line:hover { background: rgba(255,255,255,.08); }

/* Kopfzeile */
.site-head {
  max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo img { width: 124px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav__link { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--muted); transition: color .2s; }
.site-nav__link:hover { color: var(--ink); }

/* Einstieg */
.hero { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.hero__panel {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 24px;
  min-height: 520px; padding: clamp(36px, 6vw, 80px);
  border-radius: 28px; color: #fff;
  background: var(--anthrazit);
}
/* Lichtstreifen wie durch die Lamellen eines Terrassendachs */
.hero__panel::before {
  content: ""; position: absolute; inset: -20%; z-index: -1;
  background:
    repeating-linear-gradient(104deg, rgba(255,255,255,0) 0 46px, rgba(255,255,255,.055) 46px 92px);
  mask-image: radial-gradient(ellipse 70% 80% at 78% 30%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 78% 30%, #000 0%, transparent 72%);
}
.hero__panel::after {
  content: ""; position: absolute; z-index: -1; right: -10%; top: -30%; width: 70%; height: 120%;
  background: radial-gradient(closest-side, rgba(228, 237, 100, .10), transparent 70%);
}
.hero h1 {
  font-size: clamp(44px, 5.2vw, 76px); line-height: .98; letter-spacing: -0.045em; font-weight: 600;
  text-wrap: balance; hyphens: auto;
}
.hero__copy { position: relative; z-index: 2; }
.hero__lead { margin-top: 26px; max-width: 40ch; font-size: clamp(17px, 1.4vw, 19px); color: rgba(255,255,255,.76); line-height: 1.6; }
.hero__brands { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__brand {
  display: grid; gap: 2px; width: 100%; text-align: left; cursor: pointer;
  padding: 11px 16px 11px 14px; min-width: 0;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 14px;
  transition: background-color .2s, border-color .2s, transform .25s var(--ease);
}
.hero__brand:hover { background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.3); transform: translateY(-2px); }
.hero__brand strong { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.hero__brand span { font-size: 13px; color: rgba(255,255,255,.6); }

/* Fächer aus Katalogen */
.hero__fan { position: relative; height: 420px; perspective: 1600px; }
.fan__item {
  --x: 0px; --y: 0px; --rot: 0deg; --z: 0;
  position: absolute; left: 50%; bottom: 8%; width: var(--w); height: var(--h);
  padding: 0; border: 0; background: none; cursor: pointer; z-index: var(--z);
  transform: translate(-50%, 0) translate(0, 30px) rotate(0deg) scale(.92);
  opacity: 0; transform-origin: 50% 100%;
  transition: transform 1s var(--ease), opacity .6s ease, filter .3s;
  transition-delay: calc(var(--i) * 70ms);
}
.hero__fan.is-fanned .fan__item {
  opacity: 1;
  transform: translate(-50%, 0) translate(var(--x), var(--y)) rotate(var(--rot));
}
.hero__fan.is-fanned .fan__item:hover,
.hero__fan.is-fanned .fan__item:focus-visible {
  transform: translate(-50%, 0) translate(var(--x), calc(var(--y) - 18px)) rotate(var(--rot)) scale(1.03);
  transition-delay: 0s; transition-duration: .45s;
}
.fan__item img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 3px 6px 6px 3px;
  box-shadow: 0 30px 50px -24px rgba(0,0,0,.65), 0 2px 6px rgba(0,0,0,.25);
}
.fan__item::after { /* Buchrücken */
  content: ""; position: absolute; inset: 0; border-radius: 3px 6px 6px 3px; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.22) 0, rgba(255,255,255,.18) 2.5%, rgba(0,0,0,0) 6%);
}

/* Filterleiste */
.library { max-width: var(--max); margin: 0 auto; padding: 56px var(--gutter) 40px; }
.filters { position: sticky; top: 0; z-index: 20; margin: 0 calc(var(--gutter) * -1); padding: 12px var(--gutter); }
.filters::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(238, 240, 238, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.filters.is-stuck::before { border-bottom-color: var(--line); }
.filters__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.seg {
  display: flex; gap: 4px; padding: 4px; background: var(--alu-2); border-radius: 999px;
  overflow-x: auto; scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.seg__btn {
  display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap;
  min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font-size: 15px; font-weight: 500; color: var(--muted);
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.seg__btn small { font-size: 12px; font-weight: 500; color: inherit; opacity: .7; font-variant-numeric: tabular-nums; }
.seg__btn:hover { color: var(--ink); }
.seg__btn[aria-pressed="true"] { background: var(--glas); color: var(--ink); box-shadow: 0 1px 2px rgba(35,41,44,.12), 0 4px 14px -6px rgba(35,41,44,.25); }
.search {
  position: relative; flex: 0 1 340px; display: flex; align-items: center;
}
.search__icon { position: absolute; left: 14px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search__icon svg { display: block; }
.search input {
  width: 100%; min-height: 46px; padding: 0 16px 0 44px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--glas); color: var(--ink);
  font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.search input::placeholder { color: #8a9296; }
.search input:focus { outline: none; border-color: var(--anthrazit); box-shadow: 0 0 0 4px rgba(228,237,100,.55); }
.chips { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; font-size: 14px; font-weight: 500; color: var(--muted);
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: #aab1ae; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--anthrazit); border-color: var(--anthrazit); color: #fff; }

/* Regale */
.shelves { margin-top: 28px; }
.shelf-section { padding: 44px 0 20px; }
.shelf-section + .shelf-section { border-top: 1px solid var(--line); }
.shelf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.shelf-head h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.02; letter-spacing: -0.035em; }
.shelf-head p { margin-top: 10px; max-width: 58ch; color: var(--muted); font-size: 16px; }
.shelf-head__meta { display: flex; align-items: center; gap: 18px; flex: none; font-size: 15px; color: var(--muted); }
.shelf-head__meta a { color: var(--ink); text-underline-offset: 4px; text-decoration-color: var(--line); }
.shelf-head__meta a:hover { text-decoration-color: var(--ink); }

.shelf {
  display: flex; flex-wrap: wrap; align-items: flex-start;
  column-gap: 40px; row-gap: 52px; list-style: none; margin: 0; padding: 0 10px;
}
.book { position: relative; width: calc(var(--book-h) * var(--r)); max-width: 100%; display: flex; flex-direction: column; }
.book__open {
  position: relative; display: block; width: 100%; height: var(--book-h); padding: 0; border: 0; background: none;
  cursor: pointer; perspective: 1100px; border-radius: 4px;
}
.book__open:focus-visible { outline-offset: 6px; }
/* Alu-Regalleiste unter jedem Buch – fügt sich zu einer durchgehenden Leiste */
.book__open::after {
  content: ""; position: absolute; left: -18px; right: -18px; bottom: -11px; height: 11px; z-index: -1;
  background: linear-gradient(180deg, #fbfcfb 0, #d7dbd9 30%, #c3c8c6 70%, #aeb4b2 100%);
  box-shadow: 0 10px 14px -10px rgba(35,41,44,.45);
}
.book__pages, .book__cover {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 100%;
}
.book__pages { /* Papierkante, sichtbar beim Aufklappen */
  border-radius: 2px 5px 5px 2px;
  background: repeating-linear-gradient(90deg, #fff 0 2px, #eceeed 2px 3px);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.book__cover {
  transform-origin: 0 50%; transform-style: preserve-3d;
  transition: transform .7s var(--ease), box-shadow .7s var(--ease);
  box-shadow: 0 16px 22px -16px rgba(35,41,44,.55), 0 1px 2px rgba(35,41,44,.2);
  border-radius: 2px 5px 5px 2px; overflow: hidden; background: #fff;
}
.book__cover img { width: 100%; height: 100%; object-fit: cover; }
.book__cover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.2) 0, rgba(255,255,255,.22) 1.6%, rgba(0,0,0,0) 4.5%),
              linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,0) 40%);
}
.book__open:hover .book__cover,
.book__open:focus-visible .book__cover {
  transform: rotateY(-24deg) translateZ(0);
  box-shadow: 18px 22px 30px -18px rgba(35,41,44,.5), 0 1px 2px rgba(35,41,44,.2);
}
.book__open:active .book__cover { transform: rotateY(-34deg); }
.book__badge {
  position: absolute; top: 10px; left: 10px; z-index: 2; padding: 4px 9px; border-radius: 999px;
  background: var(--sonne); color: var(--anthrazit-2); font-size: 12px; font-weight: 600;
  transition: opacity .3s;
}
.book__open:hover .book__badge { opacity: 0; }

.book__meta { hyphens: auto; -webkit-hyphens: auto; display: grid; grid-template-columns: 1fr auto; column-gap: 6px; margin-top: 26px; }
.book__brand { grid-column: 1; font-size: 13px; color: var(--muted); }
.book__title { grid-column: 1; font-size: 16px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }
.book__sub { grid-column: 1; margin-top: 3px; font-size: 14px; line-height: 1.35; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.book__pages-count { grid-column: 1; margin-top: 4px; font-size: 13px; color: #7d8589; font-variant-numeric: tabular-nums; }
.book__dl {
  grid-column: 2; grid-row: 1 / span 4; align-self: start;
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  color: var(--muted); text-decoration: none; transition: background-color .2s, color .2s;
}
.book__dl:hover { background: var(--alu-2); color: var(--ink); }
.book__dl svg { width: 19px; height: 19px; }

.empty { padding: 72px 0; text-align: center; }
.empty h2 { font-size: 28px; }
.empty p { margin: 10px auto 22px; max-width: 44ch; color: var(--muted); }

.shelves__loading { display: flex; gap: 36px; align-items: flex-end; padding: 60px 10px; }
.shelves__loading span { width: 167px; height: var(--book-h); border-radius: 3px; background: linear-gradient(100deg, var(--alu-2) 30%, #f4f5f4 50%, var(--alu-2) 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }
.load-error { padding: 72px 0; text-align: center; color: var(--muted); }

/* Ausstellung */
.visit { max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter) 0; }
.visit__inner {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end;
  padding: clamp(32px, 5vw, 64px); border-radius: 28px; background: var(--anthrazit); color: #fff;
}
.visit h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1; letter-spacing: -0.04em; }
.visit p { margin-top: 16px; max-width: 50ch; color: rgba(255,255,255,.74); }
.visit__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.visit address { margin-top: 22px; font-style: normal; font-size: 15px; color: rgba(255,255,255,.65); line-height: 1.7; }
.visit address a { color: #fff; }

.site-foot {
  max-width: var(--max); margin: 0 auto; padding: 32px var(--gutter) 40px;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; font-size: 14px; color: var(--muted);
}
.site-foot nav { display: flex; gap: 18px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }
.site-foot__note { flex-basis: 100%; font-size: 13px; }

/* Anpassungen für kleinere Bildschirme */
@media (max-width: 1080px) {
  .hero__panel { grid-template-columns: 1fr; min-height: 0; }
  .hero__fan { height: 320px; margin-top: 8px; }
  .visit__inner { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .site-nav__link { display: none; }
  .site-nav { gap: 12px; }
  .filters__row { flex-direction: column; align-items: stretch; gap: 10px; }
  .search { flex-basis: auto; }
  .shelf-head { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 560px) {
  :root { --book-h: 172px; }
  body { font-size: 16px; }
  .site-head { padding-top: 12px; padding-bottom: 12px; }
  .logo img { width: 104px; }
  .site-nav .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
  .hero__panel { border-radius: 22px; padding: 32px 22px 12px; }
  .hero__lead { margin-top: 18px; }
  .hero__brands { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: clamp(40px, 12vw, 56px); }
  .hero__brand { min-width: 0; }
  .hero__fan { height: 250px; }
  .library { padding-top: 32px; }
  .shelf { column-gap: 22px; row-gap: 38px; padding: 0 4px; }
  .book__open::after { left: -11px; right: -11px; }
  .book__title { font-size: 15px; }
  .book__sub { font-size: 13px; }
  .book__dl { width: 34px; height: 34px; margin-right: -8px; }
  .shelf-section { padding-top: 34px; }
  .visit__inner { border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}
