/*
Theme Name: Quadrans
Theme URI: https://www.quadrans.at/
Author: Grossruck Media
Description: Eigenständiges Theme für den Quadrans Verlag & Medienagentur. One-Pager mit Neuerscheinungs-Slider, Buchprogramm aus dem Inhaltstyp "Bücher" und unverbindlicher Bestellanfrage ohne Onlineshop.
Version: 1.4.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: quadrans
*/
/* ================================================================
   Quadrans Verlag & Medienagentur
   ================================================================ */

:root {
  --petrol-900: #12313F;
  --petrol-800: #1B4658;
  --petrol-700: #275C72;
  --petrol:     #37718A;
  --petrol-300: #7FA9BC;
  --petrol-100: #DCE8EE;
  --petrol-50:  #F1F6F8;

  --gold:       #F2B233;
  --gold-600:   #D9930F;
  --gold-100:   #FDF0D5;

  --ink:        #16242C;
  --ink-soft:   #4A5F6B;
  --ink-faint:  #7C8D97;

  --paper:      #FBFAF7;
  --paper-warm: #F5F1EA;
  --white:      #FFFFFF;
  --line:       #E3E0D9;

  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-sans:  ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(18, 49, 63, .06), 0 4px 12px rgba(18, 49, 63, .05);
  --shadow-md: 0 8px 24px rgba(18, 49, 63, .10), 0 2px 6px rgba(18, 49, 63, .06);
  --shadow-lg: 0 28px 60px rgba(18, 49, 63, .22), 0 8px 20px rgba(18, 49, 63, .12);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--petrol-900); color: #fff; padding: 12px 20px; text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--gold-600); outline-offset: 3px; border-radius: 2px; }

.eyebrow, .kicker {
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--petrol); margin: 0 0 18px;
}
.eyebrow.light { color: var(--gold); }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 250, 247, 0);
  transition: background .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s;
}
.site-header.is-stuck {
  background: rgba(251, 250, 247, .92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(18, 49, 63, .05);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--petrol); }
.brand-mark { width: 34px; height: 34px; flex: none; color: var(--gold); transition: transform .5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); }
.brand-text { display: block; line-height: 1; }
.brand-name { display: block; font-weight: 700; font-size: 20px; letter-spacing: .1em; color: var(--petrol-800); }
.brand-sub { display: block; font-size: 11px; letter-spacing: .12em; color: var(--ink-faint); margin-top: 4px; }
.brand-sub span { margin: 0 2px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; text-decoration: none; font-size: 15px; font-weight: 500;
  color: var(--ink-soft); padding: 10px 14px; border-radius: var(--radius);
  transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--petrol-800); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--petrol-800); }

.nav .nav-cta {
  background: var(--petrol-800); color: #fff; margin-left: 10px; padding: 11px 22px;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: var(--petrol-900); transform: translateY(-1px); color: #fff; }

.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--petrol-800); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger span + span { margin-top: 6px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: var(--radius); border: 1.5px solid transparent;
  font-family: var(--font-sans); font-size: 15px; font-weight: 600; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.btn-primary { background: var(--petrol-800); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--petrol-900); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { border-color: var(--petrol-300); color: var(--petrol-800); background: transparent; }
.btn-ghost:hover { border-color: var(--petrol-800); background: var(--petrol-50); transform: translateY(-2px); }

/* ---------------- Hero ---------------- */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 120px); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 620px at 82% 18%, rgba(55, 113, 138, .13), transparent 62%),
    radial-gradient(680px 500px at 8% 82%, rgba(242, 178, 51, .12), transparent 60%),
    linear-gradient(180deg, var(--paper-warm) 0%, var(--paper) 58%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(55, 113, 138, .16) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(760px 560px at 78% 26%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(760px 560px at 78% 26%, #000 0%, transparent 72%);
  opacity: .5;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px); align-items: center;
}

.hero-copy h1 { font-size: clamp(40px, 6.2vw, 68px); margin-bottom: 26px; color: var(--petrol-900); }
.hero-copy h1 em { font-style: italic; color: var(--petrol); position: relative; white-space: nowrap; }
.hero-copy h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .10em;
  background: var(--gold); opacity: .5; border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  animation: underline 1s var(--ease) .7s forwards;
}
@keyframes underline { to { transform: scaleX(1); } }

.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-soft); max-width: 50ch; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 44px; }

.hero-facts { list-style: none; margin: 0; padding: 28px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hero-facts li { display: flex; flex-direction: column; gap: 4px; }
.hero-facts strong { font-family: var(--font-serif); font-size: 17px; font-weight: 400; color: var(--petrol-800); }
.hero-facts span { font-size: 13px; line-height: 1.45; color: var(--ink-faint); }

/* ---------------- Slider ---------------- */
.slider { position: relative; }
.slider-label {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-600); background: var(--gold-100); border: 1px solid rgba(217, 147, 15, .28);
  padding: 7px 15px; border-radius: 100px; margin: 0 0 26px;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-600); position: relative; flex: none; }
.pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid var(--gold-600); animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

.slider-stage { perspective: 1400px; height: clamp(300px, 34vw, 400px); margin-bottom: 30px; }
.stack { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }

.slide {
  position: absolute; top: 0; left: 0; margin: 0;
  height: 100%; width: auto;
  transition: transform .8s var(--ease), opacity .6s var(--ease), filter .8s var(--ease);
  will-change: transform, opacity;
}
.slide img {
  height: 100%; width: auto; max-width: none;
  border-radius: 3px;
  box-shadow: var(--shadow-lg);
  background: var(--white);
}
/* Buchrücken-Andeutung */
.slide::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 9px; border-radius: 3px 0 0 3px;
  background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(0,0,0,.06) 55%, transparent);
  pointer-events: none; z-index: 2;
}

.slide[data-pos="0"] { transform: translate3d(0, 0, 0) rotateY(0deg) scale(1); opacity: 1; z-index: 5; }
.slide[data-pos="1"] { transform: translate3d(15%, 3%, -110px) rotateY(-13deg) scale(.94); opacity: .62; filter: saturate(.75); z-index: 4; }
.slide[data-pos="2"] { transform: translate3d(27%, 6%, -220px) rotateY(-19deg) scale(.88); opacity: .3; filter: saturate(.5); z-index: 3; }
.slide[data-pos="3"] { transform: translate3d(36%, 9%, -330px) rotateY(-23deg) scale(.83); opacity: .12; filter: saturate(.35); z-index: 2; }
.slide[data-pos="hidden"] { transform: translate3d(42%, 11%, -400px) scale(.8); opacity: 0; z-index: 1; }

.slider-info { min-height: 230px; }
.info { animation: infoIn .55s var(--ease) both; }
@keyframes infoIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.info-author { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--petrol); margin: 0 0 8px; }
.info-title { font-size: clamp(24px, 2.6vw, 31px); color: var(--petrol-900); margin: 0 0 8px; }
.info-sub { font-family: var(--font-serif); font-style: italic; font-size: 17px; color: var(--gold-600); margin: 0 0 12px; }
.info-text { font-size: 15.5px; color: var(--ink-soft); line-height: 1.62; margin: 0 0 14px; max-width: 46ch; }
.info-meta { font-size: 13px; color: var(--ink-faint); letter-spacing: .01em; margin: 0; }

.slider-controls { display: flex; align-items: center; gap: 18px; margin-top: 26px; }
.s-btn {
  width: 44px; height: 44px; flex: none; border-radius: 50%; cursor: pointer;
  border: 1.5px solid var(--petrol-100); background: var(--white); color: var(--petrol-800);
  display: grid; place-items: center; padding: 10px;
  transition: border-color .25s, background .25s, transform .25s var(--ease), box-shadow .25s;
}
.s-btn:hover { border-color: var(--petrol); background: var(--petrol-50); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.s-btn svg { width: 20px; height: 20px; }

.dots { display: flex; align-items: center; gap: 8px; }
.dot {
  height: 4px; width: 22px; border: 0; padding: 0; cursor: pointer; border-radius: 100px;
  background: var(--petrol-100); position: relative; overflow: hidden;
  transition: width .45s var(--ease), background .3s;
}
.dot:hover { background: var(--petrol-300); }
.dot[aria-selected="true"] { width: 48px; background: var(--petrol-100); }
.dot[aria-selected="true"]::after {
  content: ""; position: absolute; inset: 0; border-radius: 100px; background: var(--gold);
  transform-origin: left; transform: scaleX(0);
  animation: progress var(--slide-duration, 6s) linear forwards;
}
.slider.is-paused .dot[aria-selected="true"]::after { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }

/* ---------------- Sections ---------------- */
.section { padding: clamp(72px, 10vw, 130px) 0; }
.section-head { max-width: 660px; margin-bottom: clamp(44px, 6vw, 68px); }
.section-head h2 { font-size: clamp(32px, 4.4vw, 48px); color: var(--petrol-900); margin-bottom: 18px; }
.section-lead { font-size: 18px; color: var(--ink-soft); max-width: 58ch; }

/* --- Über den Verlag --- */
.about { background: var(--white); border-block: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 76px); align-items: start; }
.about-intro h2 { font-size: clamp(32px, 4.4vw, 48px); color: var(--petrol-900); }
.about-body p { color: var(--ink-soft); }
.about-body .big { font-size: clamp(19px, 1.8vw, 22px); line-height: 1.6; color: var(--ink); font-family: var(--font-serif); margin-bottom: 1.2em; }

blockquote {
  margin: 34px 0 0; padding: 26px 30px;
  background: var(--petrol-50); border-left: 3px solid var(--gold);
  font-family: var(--font-serif); font-size: 18px; line-height: 1.6; color: var(--petrol-900);
}
blockquote cite { display: block; margin-top: 14px; font-family: var(--font-sans); font-style: normal; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }

.focus-list {
  list-style: none; margin: clamp(48px, 6vw, 76px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.focus-list li {
  background: var(--white); padding: 30px 26px;
  font-family: var(--font-serif); font-size: 18px; line-height: 1.35; color: var(--petrol-900);
  transition: background .3s var(--ease);
}
.focus-list li:hover { background: var(--petrol-50); }
.focus-no { display: block; font-family: var(--font-sans); font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--gold-600); margin-bottom: 14px; }

/* --- Leistungen --- */
.services { background: var(--paper); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 32px); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(30px, 4vw, 44px);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--petrol-100); }
.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.card-icon { width: 30px; height: 30px; flex: none; color: var(--gold-600); }
.card h3 { font-size: 27px; color: var(--petrol-900); }
.card-lead { color: var(--ink-soft); font-size: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }

.ticks { list-style: none; margin: 22px 0 0; padding: 0; }
.ticks li { position: relative; padding: 9px 0 9px 30px; font-size: 15.5px; color: var(--ink); }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 17px; width: 11px; height: 6px;
  border-left: 2px solid var(--gold-600); border-bottom: 2px solid var(--gold-600);
  transform: rotate(-45deg);
}

.steps { margin-top: clamp(48px, 6vw, 76px); padding: clamp(32px, 4vw, 48px); background: var(--petrol-900); border-radius: var(--radius); color: #fff; }
.steps-title { font-family: var(--font-serif); font-size: 22px; color: var(--gold); margin-bottom: 30px; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; }
.steps li { display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; line-height: 1.55; color: rgba(255, 255, 255, .68); }
.steps li span {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid rgba(242, 178, 51, .5); color: var(--gold); font-size: 14px; font-weight: 600; margin-bottom: 6px;
}
.steps li strong { font-family: var(--font-serif); font-weight: 400; font-size: 19px; color: #fff; }

/* --- Programm --- */
.programme { background: var(--white); border-block: 1px solid var(--line); }
/* Wächst automatisch mit – neue Titel füllen die Reihe auf */
.book-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: clamp(26px, 3vw, 40px); align-items: start; }
/* Quadratische Bühne je Buch: alle Cover werden exakt gleich hoch, egal welches
   Buchformat – auch ein quadratisches 20×20-Cover passt ohne Stauchung hinein. */
.book-cover {
  margin-bottom: 20px; perspective: 800px;
  aspect-ratio: 1 / 1;
  display: flex; align-items: flex-end; justify-content: center;
}
.book-cover img {
  height: 100%; width: auto; max-width: 100%;
  border-radius: 2px; box-shadow: var(--shadow-md);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.book:hover .book-cover img { transform: translateY(-6px) rotateY(-6deg) scale(1.02); box-shadow: var(--shadow-lg); }
.book h3 { font-size: 19px; line-height: 1.25; color: var(--petrol-900); margin-bottom: 6px; }
.book-author { font-size: 14px; color: var(--gold-600); font-weight: 600; margin-bottom: 10px; }
.book-meta { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 4px; }
.book-isbn { font-size: 12.5px; color: var(--ink-faint); }

/* --- Kontakt --- */
.contact { background: var(--petrol-900); color: #fff; position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(760px 520px at 88% 8%, rgba(242, 178, 51, .13), transparent 62%),
    radial-gradient(620px 480px at 4% 96%, rgba(127, 169, 188, .14), transparent 60%);
}
.contact-grid { position: relative; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(40px, 6vw, 76px); align-items: start; }
.contact h2 { font-size: clamp(32px, 4.2vw, 46px); color: #fff; margin-bottom: 20px; }
.contact-lead { color: rgba(255, 255, 255, .68); font-size: 16.5px; max-width: 44ch; }

.contact-person { margin: 36px 0 26px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .14); }
.cp-name { font-family: var(--font-serif); font-size: 24px; color: #fff; margin: 0 0 4px; }
.cp-role { font-size: 14px; color: var(--gold); letter-spacing: .04em; margin: 0; }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: start; }
.cl-label { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .42); padding-top: 4px; }
.cl-value { font-size: 16px; color: rgba(255, 255, 255, .92); text-decoration: none; line-height: 1.5; transition: color .2s; }
a.cl-value { border-bottom: 1px solid rgba(242, 178, 51, .35); padding-bottom: 1px; width: fit-content; }
a.cl-value:hover { color: var(--gold); border-color: var(--gold); }

/* --- Formular --- */
.contact-form-wrap {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius); padding: clamp(26px, 3.4vw, 42px);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.field label span { color: var(--gold); }

.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-sans); font-size: 16px; color: #fff;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius); padding: 13px 15px;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 118px; line-height: 1.55; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23F2B233' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 18px; padding-right: 40px;
}
.field select option { background: var(--petrol-900); color: #fff; }
.field ::placeholder { color: rgba(255, 255, 255, .34); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: rgba(255, 255, 255, .09);
  box-shadow: 0 0 0 3px rgba(242, 178, 51, .16);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #E88; }

.hp { position: absolute; left: -9999px; opacity: 0; }

.check { display: flex; align-items: flex-start; gap: 11px; margin: 6px 0 26px; font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .6); cursor: pointer; }
.check input { width: 17px; height: 17px; flex: none; margin-top: 2px; accent-color: var(--gold); cursor: pointer; }
.check a { color: var(--gold); }

.btn-submit { width: 100%; background: var(--gold); color: var(--petrol-900); position: relative; }
.btn-submit:hover { background: #FFC24D; }
.btn-submit:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.spinner { display: none; width: 17px; height: 17px; border: 2px solid rgba(18, 49, 63, .3); border-top-color: var(--petrol-900); border-radius: 50%; animation: spin .7s linear infinite; }
.btn-submit.is-loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status { margin: 16px 0 0; font-size: 14.5px; min-height: 1.2em; }
.form-status.ok { color: #86E0B0; }
.form-status.err { color: #FFA9A9; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--petrol-900); color: rgba(255, 255, 255, .55); border-top: 1px solid rgba(255, 255, 255, .1); padding: 46px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 26px 40px; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand .brand-mark { width: 30px; height: 30px; color: var(--gold); }
.f-name { font-size: 16px; font-weight: 700; letter-spacing: .1em; color: #fff; margin: 0; }
.f-sub { font-size: 11px; letter-spacing: .1em; margin: 3px 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-nav a { font-size: 14px; text-decoration: none; transition: color .2s; }
.footer-nav a:hover { color: var(--gold); }
.copy { font-size: 12.5px; width: 100%; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); margin: 0; }

.legal { margin-top: 30px; display: grid; gap: 10px; }
.legal details { border-top: 1px solid rgba(255, 255, 255, .1); }
.legal summary {
  cursor: pointer; list-style: none; padding: 14px 0;
  font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255, 255, 255, .6); display: flex; align-items: center; gap: 10px;
  transition: color .2s;
}
.legal summary::-webkit-details-marker { display: none; }
.legal summary::before {
  content: "+"; font-size: 16px; line-height: 1; color: var(--gold);
  transition: transform .3s var(--ease);
}
.legal details[open] summary::before { transform: rotate(45deg); }
.legal summary:hover { color: var(--gold); }
.legal-body { padding: 4px 0 22px; max-width: 78ch; font-size: 13.5px; line-height: 1.65; color: rgba(255, 255, 255, .5); }
.legal-body strong { color: rgba(255, 255, 255, .78); font-weight: 600; }
.legal-body a { color: var(--gold); }

/* ---------------- Reveal ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease) var(--reveal-delay, 0s), transform .7s var(--ease) var(--reveal-delay, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1040px) {
  .about-grid { grid-template-columns: 1fr; }
  .focus-list { grid-template-columns: repeat(2, 1fr); }
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps ol { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 76px; }
  .header-inner { min-height: 68px; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: 68px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 26px;
    box-shadow: 0 16px 40px rgba(18, 49, 63, .12);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 15px 4px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a::after { display: none; }
  .nav .nav-cta { margin: 18px 0 0; border-bottom: 0; justify-content: center; display: flex; border-radius: var(--radius); }

  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy h1 br { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .slider-stage { height: clamp(260px, 52vw, 330px); }
  .slider-info { min-height: 250px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero-facts { grid-template-columns: 1fr; gap: 16px; }
  .focus-list { grid-template-columns: 1fr; }
  /* minmax(0,…) verhindert, dass lange ISBN-Zeilen eine Spalte breiter ziehen */
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
  .book-isbn { overflow-wrap: anywhere; }
  .steps ol { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 1fr; gap: 0; }
  .contact-list li { grid-template-columns: 1fr; gap: 3px; }
  .cl-label { padding-top: 0; }
  .brand-sub { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .slider-info { min-height: 285px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-copy h1 em::after { transform: scaleX(1); }
}

/* ================================================================
   WordPress-Ergänzungen
   Merkliste, fehlende Cover, Einzelseiten
   ================================================================ */

/* ---- Schaltfläche „Zur Anfrage" am Buch ---- */
.btn-merken {
  margin-top: 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 7px 14px;
  border: 1px solid var(--petrol-300);
  border-radius: 100px;
  background: transparent;
  color: var(--petrol-800);
  cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease),
              color .25s var(--ease), transform .25s var(--ease);
}
.btn-merken:hover { background: var(--petrol-50); border-color: var(--petrol-800); transform: translateY(-1px); }
.btn-merken:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.btn-merken .bm-done { display: none; }
.btn-merken.is-merkt { background: var(--petrol-800); border-color: var(--petrol-800); color: #fff; }
.btn-merken.is-merkt .bm-add { display: none; }
.btn-merken.is-merkt .bm-done { display: inline; }

/* ---- Zähler in der Kopfzeile ---- */
.nav-merk {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: 100px;
  background: var(--gold); color: var(--petrol-900) !important;
  font-size: 14px; font-weight: 700; text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.nav-merk:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.nav-merk .nm-icon { font-size: 13px; }
.nav-merk .nm-count {
  display: inline-grid; place-items: center;
  min-width: 21px; height: 21px; padding: 0 5px;
  border-radius: 100px; background: var(--petrol-900); color: #fff;
  font-size: 12px; line-height: 1;
}
@keyframes qd-merk-puls { 0%,100% { transform: scale(1); } 40% { transform: scale(1.18); } }
.nav-merk.is-neu { animation: qd-merk-puls .45s var(--ease); }

/* ---- Merkliste im Formular (dunkler Bereich) ---- */
.merkliste {
  margin-bottom: 24px; padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
}
.ml-title {
  display: flex; align-items: center; gap: 9px;
  margin: 0 0 12px; color: #fff;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.ml-count {
  display: inline-grid; place-items: center;
  min-width: 21px; height: 21px; padding: 0 5px;
  border-radius: 100px; background: var(--gold); color: var(--petrol-900);
  font-size: 12px; font-weight: 700; letter-spacing: 0;
}
.ml-list { list-style: none; margin: 0; padding: 0; }
.ml-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .1);
}
.ml-list li:first-child { border-top: 0; }
.ml-titel { flex: 1; color: rgba(255, 255, 255, .92); font-size: 14.5px; line-height: 1.35; }
.ml-menge {
  width: 58px; padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--radius);
  background: rgba(255, 255, 255, .08); color: #fff;
  font: inherit; font-size: 14px; text-align: center;
}
.ml-menge:focus { outline: none; border-color: var(--gold); background: rgba(255, 255, 255, .14); }
.ml-weg {
  flex: none; width: 26px; height: 26px; padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .7);
  font-size: 15px; line-height: 1; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.ml-weg:hover { background: rgba(255, 120, 100, .3); color: #fff; }
.ml-note {
  margin: 12px 0 0; padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .55); font-size: 12.5px; line-height: 1.5;
}

/* ---- Platzhalter, solange kein Cover hochgeladen ist ---- */
.cover-fehlt {
  width: 67%; height: 100%;
  display: grid; place-items: center; padding: 18px;
  border: 1px dashed var(--petrol-300); border-radius: 2px;
  background: var(--petrol-50);
}
.cover-fehlt span {
  color: var(--petrol-700); font-family: var(--font-serif);
  font-size: 15px; line-height: 1.3; text-align: center;
}
.slide .cover-fehlt { width: 267px; max-width: 100%; }

.programme-leer { color: var(--ink-soft); font-size: 17px; }
.programme-leer a { color: var(--petrol); font-weight: 600; }

/* ---- Einzelseiten (Buch, Beitrag, 404) ---- */
.inner-page { padding-top: clamp(120px, 14vw, 170px); }
.inner-wrap { max-width: 940px; }
.inner-article { display: grid; grid-template-columns: 260px 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.inner-cover img { width: 100%; height: auto; border-radius: 2px; box-shadow: var(--shadow-md); }
.inner-body h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; color: var(--petrol-900); margin: 6px 0 10px; }
.inner-author { font-size: 16px; }
.inner-content { margin: 20px 0; color: var(--ink-soft); line-height: 1.7; }
.inner-content p { margin: 0 0 16px; }
.inner-back { margin-top: 26px; }

@media (max-width: 720px) {
  .inner-article { grid-template-columns: 1fr; }
  .inner-cover { max-width: 200px; }
}

/* Auf schmalen Geräten steht der Zähler unter den Menüpunkten */
@media (max-width: 900px) {
  .nav-merk { align-self: flex-start; margin-top: 4px; }
}

/* ================================================================
   Katalogseite /programm/
   ================================================================ */

.katalog { padding-top: clamp(118px, 13vw, 160px); padding-bottom: 0; }
.katalog-head { margin-bottom: clamp(26px, 3.5vw, 40px); }
.katalog-head h1 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(30px, 4.4vw, 46px); line-height: 1.12;
  color: var(--petrol-900); margin: 0 0 14px;
}
.katalog-grid { margin-bottom: clamp(40px, 5vw, 64px); }

/* ---- Filterleiste nach Schwerpunkt ---- */
.filter {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: clamp(30px, 4vw, 46px);
  padding-bottom: clamp(22px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
}
.filter-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 100px;
  background: var(--white); color: var(--ink-soft);
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: border-color .25s var(--ease), color .25s var(--ease),
              background .25s var(--ease), transform .25s var(--ease);
}
.filter-chip:hover { border-color: var(--petrol-300); color: var(--petrol-800); transform: translateY(-1px); }
.filter-chip.is-active { background: var(--petrol-800); border-color: var(--petrol-800); color: #fff; }
.fc-count {
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 100px; background: var(--petrol-50); color: var(--petrol-700);
  font-size: 11.5px; line-height: 1;
}
.filter-chip.is-active .fc-count { background: rgba(255, 255, 255, .22); color: #fff; }

/* Buchtitel und Cover sind im Katalog anklickbar */
.book h3 a { text-decoration: none; transition: color .2s var(--ease); }
.book h3 a:hover { color: var(--petrol); }
.book-cover a { display: contents; }

.programme-mehr { margin-top: clamp(30px, 4vw, 44px); text-align: center; }

/* ---- Blättern ---- */
.pagination { margin-bottom: clamp(44px, 6vw, 72px); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers {
  display: inline-grid; place-items: center;
  min-width: 42px; height: 42px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--ink-soft);
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease);
}
.pagination .page-numbers:hover { border-color: var(--petrol-300); color: var(--petrol-800); }
.pagination .page-numbers.current {
  background: var(--petrol-800); border-color: var(--petrol-800); color: #fff;
}
.pagination .page-numbers.dots { border-color: transparent; background: transparent; }

@media (max-width: 620px) {
  .filter { gap: 8px; }
  .filter-chip { padding: 7px 13px; font-size: 13px; }
}

/* ---- Einzelne Buchseite ---- */
.brotkrumen {
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px;
  margin-bottom: clamp(22px, 3vw, 32px);
  color: var(--ink-faint); font-size: 13.5px;
}
.brotkrumen a { color: var(--ink-soft); text-decoration: none; transition: color .2s var(--ease); }
.brotkrumen a:hover { color: var(--petrol); }
.brotkrumen [aria-current] { color: var(--petrol-900); font-weight: 600; }

.buch-daten { margin: 26px 0 0; border-top: 1px solid var(--line); }
.buch-daten div {
  display: grid; grid-template-columns: 140px 1fr; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.buch-daten dt {
  color: var(--ink-faint); font-size: 12.5px; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
}
.buch-daten dd { margin: 0; color: var(--ink); font-size: 15.5px; }
.buch-daten dd a { color: var(--petrol); text-decoration: none; }
.buch-daten dd a:hover { text-decoration: underline; }

.buch-aktion { margin-top: 28px; }
.btn-merken-gross { font-size: 15px; padding: 12px 24px; }
.buch-hinweis { margin: 12px 0 0; color: var(--ink-faint); font-size: 13px; line-height: 1.55; max-width: 46ch; }

.weitere { margin-top: clamp(56px, 7vw, 88px); }
.weitere .section-head { margin-bottom: clamp(22px, 3vw, 32px); }
.weitere .section-head h2 { font-size: clamp(23px, 3vw, 30px); }

@media (max-width: 620px) {
  .buch-daten div { grid-template-columns: 1fr; gap: 3px; }
}

/* ---- Anklickbare Cover im Neuerscheinungen-Slider ---- */
.slide-link { display: block; height: 100%; width: auto; position: relative; pointer-events: none; }
/* Nur das vorderste Cover reagiert – die dahinter liegenden sind Deko */
.slide[data-pos="0"] .slide-link { pointer-events: auto; }

.slide-lupe {
  position: absolute; left: 50%; bottom: 18px; transform: translate(-50%, 8px);
  padding: 8px 17px; border-radius: 100px;
  background: rgba(18, 49, 63, .9); color: #fff;
  font-size: 13px; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.slide[data-pos="0"] .slide-link:hover .slide-lupe,
.slide[data-pos="0"] .slide-link:focus-visible .slide-lupe { opacity: 1; transform: translate(-50%, 0); }
.slide[data-pos="0"] .slide-link:hover img { box-shadow: 0 34px 70px rgba(18,49,63,.3), 0 10px 24px rgba(18,49,63,.16); }
.slide-link img { transition: box-shadow .35s var(--ease); }
/* Während eines Wischs keine Klickreaktion */
.slider.is-wischen .slide-link { pointer-events: none; }

.info-title a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
.info-title a:hover { color: var(--petrol); }

.info-mehr { margin: 14px 0 0; }
.info-mehr a {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--petrol); font-size: 14.5px; font-weight: 600; text-decoration: none;
}
.info-mehr a span { transition: transform .25s var(--ease); }
.info-mehr a:hover span { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  .slide-lupe, .info-mehr a span { transition: none; }
}

/* Region unter der Anschrift im Kontaktbereich */
.cl-region { color: rgba(255, 255, 255, .5); font-size: 13.5px; }
