/*
Theme Name: Studio Catherine Hazotte
Theme URI: https://catherinehazotte.studio
Author: Catherine Hazotte
Author URI: https://catherinehazotte.studio
Description: Editoriales WordPress-Theme für das Journal von Catherine Hazotte. Heller Papierton, Haarlinien statt Boxen, Playfair Display für Displaygrößen, Arimo für alles andere.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
Text Domain: catherinehazotte
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ==========================================================================
   Fonts (self-hosted, DSGVO-konform)
   ========================================================================== */

@font-face {
  font-family: 'Arimo';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/arimo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('assets/fonts/playfair-display-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/playfair-display-italic-latin.woff') format('woff');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

/* ==========================================================================
   Design tokens
   ========================================================================== */

:root {
  --paper: #f0efec;
  --ink: #111111;
  --ink-form: #141414;
  --muted: #6b6a66;
  --faint: #b4b1ac;
  --accent: #8f8e8a;
  --accent-ink: #f0efec;
  --hairline: #dedbd5;
  --hairline-table: #d4d2cc;
  --hover: #e7e5e0;

  --font-display: 'Playfair Display', Times, serif;
  --font-text: 'Arimo', 'Helvetica Neue', Arial, sans-serif;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.ch-has-cursor,
body.ch-has-cursor a,
body.ch-has-cursor button,
body.ch-has-cursor input,
body.ch-has-cursor textarea,
body.ch-has-cursor select,
body.ch-has-cursor sup {
  cursor: none;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

img { display: block; max-width: 100%; }
button { font: inherit; }
input, textarea { font-family: inherit; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.ch-site { width: 100%; min-height: 100vh; background: var(--paper); position: relative; }

/* ==========================================================================
   Custom cursor dot
   ========================================================================== */

.ch-cursor-dot {
  position: fixed;
  left: 0; top: 0;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  will-change: transform;
  pointer-events: none;
  z-index: 99999;
}

.ch-cursor-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99999;
}

/* ==========================================================================
   Page transition overlay
   ========================================================================== */

.ch-page-transition {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 90000;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.42s cubic-bezier(0.45, 0, 0.15, 1);
}

.ch-page-transition.is-hidden { opacity: 0; }
.ch-page-transition.is-blocking { pointer-events: auto; }

/* ==========================================================================
   Navigation (header.php)
   ========================================================================== */

.ch-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: clamp(16px, 2.4vw, 34px);
  padding: 20px clamp(16px, 4vw, 40px);
  font-size: 15px;
  border-bottom: 1px solid var(--ink);
  list-style: none;
}

.ch-nav__item sup {
  font-size: 11px;
  margin-right: 3px;
}

/* ==========================================================================
   Footer (footer.php)
   ========================================================================== */

.ch-footer {
  padding: clamp(36px, 6vw, 64px) clamp(20px, 4vw, 56px) 40px;
  border-top: 1px solid var(--ink);
}

.ch-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 48px;
  align-items: flex-start;
}

.ch-footer__col--thanks {
  display: flex;
  flex-direction: column;
  gap: 26px;
  font-size: 15px;
}

.ch-footer__legal { display: flex; gap: 16px; }
.ch-footer__social { display: flex; flex-wrap: wrap; gap: 8px; }

.ch-footer__col--search {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 240px;
  width: 100%;
}

.ch-footer__search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--ink-form);
  padding-bottom: 6px;
}

.ch-footer__search-form input[type="search"] {
  flex: 1; min-width: 0;
  border: none; outline: none;
  background: transparent;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-form);
}

.ch-footer__search-form button {
  border: none; background: none;
  font-size: 12px; letter-spacing: 0.06em;
  padding: 0;
}

.ch-footer__col--newsletter {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 520px;
  width: 100%;
}

.ch-footer__newsletter-copy {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.ch-footer__newsletter-form {
  display: flex;
  align-items: center;
  border: 1px solid var(--ink-form);
  border-radius: 999px;
  padding: 6px 6px 6px 24px;
}

.ch-footer__newsletter-form input[type="email"] {
  flex: 1;
  border: none; outline: none;
  background: transparent;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-form);
}

.ch-footer__newsletter-form button {
  border: none; background: none;
  font-size: 14px; letter-spacing: 0.06em;
  padding: 8px 22px;
}

.ch-footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  margin-top: 64px;
}

.ch-footer__credit { letter-spacing: 0.04em; }

/* ==========================================================================
   Cookie banner
   ========================================================================== */

.ch-cookie {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9000;
  background: var(--paper);
  border-top: 1px solid var(--ink);
}

.ch-cookie[hidden] { display: none !important; }

.ch-cookie__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
}

.ch-cookie__text {
  padding: 26px 32px;
  border-right: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ch-cookie__label {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--faint);
}

.ch-cookie__copy {
  max-width: 640px;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.ch-cookie__copy a { text-decoration: underline; }

.ch-cookie__settings {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--ink);
  margin-top: 6px;
}

.ch-cookie__settings[hidden] { display: none !important; }

.ch-cookie__cell {
  flex: 1 1 160px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  padding: 14px 18px;
  border: none;
  border-right: 1px solid var(--ink);
  font-family: inherit;
  text-align: left;
  background: transparent;
  color: var(--faint);
}

.ch-cookie__cell:last-child { border-right: none; }
.ch-cookie__cell.is-on { background: var(--ink); color: var(--paper); }
.ch-cookie__cell--static { color: var(--faint); }
.ch-cookie__cell--static span:last-child { color: var(--faint); }

.ch-cookie__actions {
  display: flex;
  flex-direction: column;
  min-width: 230px;
}

.ch-cookie__action {
  flex: 1;
  border: none;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--ink);
  padding: 18px 28px;
  text-align: left;
}

.ch-cookie__action:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
.ch-cookie__action--muted { color: var(--muted); }
.ch-cookie__action--ghost { color: var(--faint); border-bottom: none; }
.ch-cookie__action--ghost:hover { background: transparent; color: var(--ink); }

/* ==========================================================================
   Shared layout helpers
   ========================================================================== */

.ch-stack { display: grid; }
.ch-side { position: relative; }
.ch-dot {
  position: absolute;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--accent);
}

/* ==========================================================================
   Home (front-page.php)
   ========================================================================== */

.ch-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(28px, 5vw, 48px) clamp(20px, 4vw, 40px) clamp(32px, 5vw, 56px);
  text-align: center;
}

.ch-hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 7.5vw, 104px);
  line-height: 1;
  letter-spacing: 0.01em;
  margin-bottom: 36px;
}

.ch-hero__portrait {
  width: 100%;
  max-width: 460px;
  height: auto;
  margin-bottom: 36px;
  border: 1px solid var(--ink);
}

.ch-hero__intro {
  max-width: 820px;
  text-transform: uppercase;
  font-size: 14px;
  line-height: 1.65;
  letter-spacing: 0.02em;
}

.ch-hero__intro a { text-decoration: underline; }

.ch-home-grid {
  grid-template-columns: 15% 1fr 28%;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  position: relative;
}

.ch-home-grid__featured-label {
  border-right: 1px solid var(--ink);
  padding: 16px 0 0 18px;
}

.ch-home-grid__featured-label span {
  font-size: 12px;
  letter-spacing: 0.04em;
}

.ch-home-grid__featured-label .ch-dot { top: 46%; right: -6px; }

.ch-home-grid__list { min-width: 0; }

.ch-featured-post {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 300px);
  gap: 36px;
  align-items: center;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 3.5vw, 44px);
  min-width: 0;
  border-bottom: 1px solid var(--ink);
}

.ch-featured-post:last-child { border-bottom: none; }

.ch-featured-post__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.ch-featured-post__cat {
  font-size: 11px;
  letter-spacing: 0.09em;
}

.ch-featured-post__title {
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
}

.ch-featured-post__date {
  font-size: 14px;
  align-self: center;
}

.ch-featured-post__img {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 3/4;
  border: 1px solid var(--ink);
  background-size: cover;
  background-position: center;
}

.ch-load-more {
  display: flex;
  justify-content: center;
  padding: 44px 0;
}

.ch-load-more a { font-size: 14px; font-weight: 700; }

.ch-cat-col { border-left: 1px solid var(--ink); }
.ch-cat-col .ch-dot { top: 60%; left: -6px; }

.ch-cat-col__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ink);
}

.ch-cat-col__head span { font-size: 11px; letter-spacing: 0.12em; color: var(--faint); }

.ch-cat-col__shuffle {
  border: none; background: transparent;
  font-family: inherit; font-size: 11px; letter-spacing: 0.12em;
  color: var(--faint); padding: 0;
}

.ch-cat-col__shuffle:hover { color: var(--ink); text-decoration: none; }

.ch-cat-row { border-bottom: 1px solid var(--ink); }

.ch-cat-row__toggle {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 15px 20px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  color: var(--faint);
}

.ch-cat-row__toggle:hover,
.ch-cat-row.is-open .ch-cat-row__toggle {
  color: var(--ink);
  text-decoration: none;
}

.ch-cat-row__toggle .ch-cat-row__count { font-size: 10px; letter-spacing: 0.1em; }

.ch-cat-row__posts {
  display: none;
  flex-direction: column;
}

.ch-cat-row.is-open .ch-cat-row__posts { display: flex; }

.ch-cat-row__post {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 20px 16px;
  border-top: 1px solid var(--hairline);
  text-decoration: none;
}

.ch-cat-row__post:hover { background: var(--hover); text-decoration: none; }

.ch-cat-row__post-title {
  font-size: 13px;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--ink);
}

.ch-cat-row__post-date { font-size: 11px; color: var(--faint); }

/* ==========================================================================
   Journal (index.php / archive.php / category.php / search.php)
   ========================================================================== */

.ch-journal-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 40px 44px;
  text-align: center;
}

.ch-journal-title h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1;
  letter-spacing: 0.01em;
}

.ch-journal-filter {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 22px clamp(20px, 4vw, 40px);
}

.ch-journal-filter__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
}

.ch-pill {
  display: inline-block;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 9px 18px;
  border-radius: 999px;
}

.ch-pill:hover { text-decoration: none; }

.ch-pill.is-active,
.ch-pill[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.ch-journal-search-row,
.ch-journal-status-row {
  border-bottom: 1px solid var(--ink);
  padding: 16px clamp(20px, 4vw, 40px);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.ch-journal-search-row__clear {
  border: none; background: transparent;
  font-family: inherit; font-size: 12px; letter-spacing: 0.06em;
  color: var(--muted);
}

.ch-journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.ch-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(20px, 3vw, 32px);
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
}

.ch-card:hover { text-decoration: none; }
.ch-card:hover .ch-card__title { text-decoration: underline; }

.ch-card__img {
  aspect-ratio: 4/5;
  overflow: hidden;
  border: 1px solid var(--ink);
}

.ch-card__img img { width: 100%; height: 100%; object-fit: cover; }

.ch-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11px;
  letter-spacing: 0.09em;
}

.ch-card__meta span:last-child { color: var(--muted); }

.ch-card__title {
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
}

.ch-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 32px 40px 48px;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.ch-pagination .nav-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; }
.ch-pagination .page-numbers { color: var(--muted); }
.ch-pagination .page-numbers.current { color: var(--ink); font-weight: 700; }
.ch-pagination a.page-numbers:hover { color: var(--ink); }

.ch-journal-empty {
  padding: 80px 40px;
  text-align: center;
  font-size: 15px;
  color: var(--muted);
}

/* ==========================================================================
   Single post (single.php)
   ========================================================================== */

.ch-post {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  border-bottom: 1px solid var(--ink);
}

.ch-post__main {
  border-right: 1px solid var(--ink);
  padding: clamp(24px, 3.5vw, 48px) clamp(20px, 3.5vw, 48px) clamp(40px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 40px);
  min-width: 0;
}

.ch-post__title {
  font-weight: 400;
  font-size: clamp(30px, 4.6vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: pretty;
}

.ch-post__meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.ch-post__meta a:hover { color: var(--ink); }

.ch-post__thumb { width: 100%; height: auto; }

.ch-post__body {
  padding: clamp(24px, 3.5vw, 48px) clamp(20px, 3.5vw, 48px) clamp(40px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  font-size: 16px;
  line-height: 1.6;
}

.ch-post__body p { font-size: 16px; line-height: 1.6; }
.ch-post__body a { text-decoration: underline; }
.ch-post__body img,
.ch-post__body figure { display: none; }

.ch-image-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
}

.ch-image-layout__label {
  font-size: 11px;
  letter-spacing: 0.09em;
  color: var(--muted);
}

.ch-image-layout__options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ch-pill--small {
  font-size: 11px;
  letter-spacing: 0.09em;
  padding: 7px 14px;
}

.ch-gallery {
  display: grid;
  grid-template-columns: repeat(var(--ch-cols, 2), minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
  margin-top: 12px;
}

.ch-gallery__item {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
}

.ch-gallery__thumb {
  display: block;
  width: 100%;
  aspect-ratio: var(--ch-ratio, 4/5);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--ink);
}

.ch-further-reading {
  border-top: 1px solid var(--ink);
  padding: clamp(22px, 3vw, 32px) clamp(20px, 3.5vw, 48px) clamp(36px, 5vw, 56px);
}

.ch-further-reading h2 {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.ch-further-reading__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(20px, 2.4vw, 34px);
}

.ch-further-reading__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
}

.ch-further-reading__item:hover { text-decoration: none; }
.ch-further-reading__item:hover span:first-of-type { text-decoration: underline; }

.ch-further-reading__item img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border: 1px solid var(--ink);
}

.ch-further-reading__title {
  font-size: 15px;
  line-height: 1.3;
  text-transform: uppercase;
}

.ch-further-reading__date { font-size: 14px; color: var(--muted); }

/* Lightbox */

.ch-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}

.ch-lightbox[hidden] { display: none !important; }

.ch-lightbox__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px clamp(16px, 3vw, 32px);
  border-bottom: 1px solid var(--ink);
}

.ch-lightbox__counter { font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }

.ch-lightbox__close {
  border: none; background: transparent;
  font-family: inherit; font-size: 12px; letter-spacing: 0.1em;
  min-height: 44px; padding: 0 4px;
}

.ch-lightbox__body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 40px);
  padding: clamp(16px, 3vw, 40px);
  min-height: 0;
}

.ch-lightbox__arrow {
  border: none; background: transparent;
  font-size: 22px; font-family: inherit;
  min-width: 44px; min-height: 44px; flex: none;
}

.ch-lightbox__image {
  flex: 1;
  align-self: stretch;
  min-width: 0; min-height: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* ==========================================================================
   Info page
   ========================================================================== */

.ch-info {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.ch-info__grid { grid-template-columns: 44% 1fr; align-items: start; }

.ch-info__portrait-col {
  border-right: 1px solid var(--ink);
  padding: clamp(20px, 4vw, 48px);
  position: sticky;
  top: 0;
}

.ch-info__portrait-col img { width: 100%; height: auto; border: 1px solid var(--ink); }

.ch-info__text {
  padding: clamp(24px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-size: 15px;
  line-height: 1.65;
  max-width: 660px;
}

/* ==========================================================================
   Contact page
   ========================================================================== */

.ch-contact {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.ch-contact__grid { grid-template-columns: 15% 1fr; min-height: 60vh; }

.ch-contact__label-col { border-right: 1px solid var(--ink); padding: 16px 0 16px 18px; }
.ch-contact__label-col span { font-size: 12px; letter-spacing: 0.04em; }

.ch-contact__main {
  padding: clamp(28px, 5vw, 56px) clamp(20px, 3.5vw, 44px);
  max-width: 720px;
}

.ch-contact__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1;
  margin-bottom: 24px;
}

.ch-contact__intro {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 520px;
}

.ch-contact__notice {
  font-size: 14px;
  line-height: 1.6;
  padding: 16px 18px;
  border: 1px solid var(--ink);
  max-width: 560px;
  margin-bottom: 24px;
}

.ch-form {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ink);
  max-width: 560px;
}

.ch-form input,
.ch-form textarea {
  border: none;
  border-bottom: 1px solid var(--ink);
  outline: none;
  background: transparent;
  padding: 16px 18px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink);
  resize: vertical;
}

.ch-form button {
  border: none;
  background: var(--ink);
  color: var(--paper);
  padding: 16px 18px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-align: left;
}

.ch-form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   Shop page
   ========================================================================== */

.ch-shop-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(28px, 5vw, 44px) clamp(20px, 4vw, 40px) 40px;
  text-align: center;
}

.ch-shop-hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 1;
  margin-bottom: 22px;
}

.ch-shop-hero__intro {
  max-width: 640px;
  text-transform: uppercase;
  font-size: 14px;
  line-height: 1.65;
  letter-spacing: 0.02em;
}

.ch-shop {
  grid-template-columns: 15% 1fr;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.ch-shop__label-col { border-right: 1px solid var(--ink); padding: 16px 0 16px 18px; }
.ch-shop__label-col span { font-size: 12px; letter-spacing: 0.04em; }
.ch-shop__label-col .ch-dot { top: 40%; right: -6px; }

.ch-shop__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.ch-product {
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
}

.ch-product__img {
  border-bottom: 1px solid var(--ink);
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--hairline);
}

.ch-product__img img { width: 100%; height: 100%; object-fit: cover; }

.ch-product__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.ch-product__cat { font-size: 11px; letter-spacing: 0.09em; }

.ch-product__title {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
}

.ch-product__desc { font-size: 13px; line-height: 1.55; color: #555; flex: 1; }

.ch-product__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.ch-product__price { font-size: 16px; }

.ch-product__cta {
  border: 1px solid var(--ink);
  background: transparent;
  padding: 9px 20px;
  font-size: 12px;
  letter-spacing: 0.08em;
  border-radius: 999px;
  font-family: inherit;
}

/* ==========================================================================
   Legal pages (Impressum / Datenschutz)
   ========================================================================== */

.ch-legal {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.ch-legal__grid { grid-template-columns: 15% 1fr; }

.ch-legal__label-col { border-right: 1px solid var(--ink); padding: 16px 0 16px 18px; }
.ch-legal__label-col span { font-size: 12px; letter-spacing: 0.04em; }

.ch-legal__main {
  padding: 56px 44px;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.ch-legal__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 5.5vw, 72px);
  line-height: 1;
}

.ch-legal__block { display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.7; }
.ch-legal__block h2 { font-size: 11px; letter-spacing: 0.09em; margin-bottom: 6px; font-weight: 400; }
.ch-legal__block a { text-decoration: underline; }
.ch-legal__note { font-size: 13px; line-height: 1.7; color: var(--muted); }

.ch-legal__body { display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.7; }
.ch-legal__body h2 { font-size: 11px; letter-spacing: 0.09em; font-weight: 400; margin-top: 12px; }
.ch-legal__body a { text-decoration: underline; }

/* ==========================================================================
   Generic page fallback (page.php)
   ========================================================================== */

.ch-page {
  padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 40px);
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.ch-page__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 5.5vw, 72px);
  line-height: 1;
}

.ch-page__body { font-size: 15px; line-height: 1.7; display: flex; flex-direction: column; gap: 18px; }

/* ==========================================================================
   404
   ========================================================================== */

.ch-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: clamp(60px, 10vw, 140px) 40px;
  text-align: center;
}

.ch-404__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .ch-stack { grid-template-columns: 1fr !important; }
  .ch-side { border-right: none !important; border-bottom: 1px solid var(--ink) !important; position: static !important; }
  .ch-info__portrait-col { position: static; }
  .ch-dot { display: none !important; }
}

@media (max-width: 900px) {
  .ch-cookie__inner { grid-template-columns: 1fr; }
  .ch-cookie__text { border-right: none; border-bottom: 1px solid var(--ink); }
}

@media (max-width: 760px) {
  .ch-nav {
    justify-content: flex-start;
    gap: 4px 14px;
    padding: 14px 16px;
    font-size: 14px;
  }
  .ch-nav__item a { padding: 7px 0; display: inline-block; }
  .ch-nav__item sup { display: none; }

  .ch-footer { padding: 34px 20px 32px; }
  .ch-footer__top { gap: 30px; }
  .ch-footer__bottom { margin-top: 38px; }

  .ch-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 480px) {
  .ch-gallery { grid-template-columns: 1fr !important; }
}

/* Touch: kein eigener Cursor, größere Ziele */
@media (pointer: coarse) {
  body.ch-has-cursor,
  body.ch-has-cursor a,
  body.ch-has-cursor button,
  body.ch-has-cursor input,
  body.ch-has-cursor textarea,
  body.ch-has-cursor select,
  body.ch-has-cursor sup {
    cursor: auto !important;
  }
  .ch-cursor-layer,
  .ch-cookie__settings + .ch-cursor-layer { display: none !important; }
  .ch-cursor-dot { display: none !important; }
  a, button { -webkit-tap-highlight-color: rgba(143, 142, 138, 0.18); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
