:root {
  color-scheme: dark;
  --bg: #171719;
  --bg-soft: #1f1f23;
  --panel: #25252a;
  --text: #f2f0ee;
  --muted: #aaa6ad;
  --muted-2: #77737b;
  --line: rgba(255,255,255,.12);
  --lavender: #b9a9c9;
  --lavender-bright: #d4c3e2;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
  --hero-inset: 1cm;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.65; overflow-x: hidden; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .18; background-image: radial-gradient(rgba(255,255,255,.13) .55px, transparent .55px); background-size: 5px 5px; mask-image: linear-gradient(to bottom, #000, transparent 75%); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.page-glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(120px); opacity: .12; pointer-events: none; z-index: -1; }
.page-glow-one { top: 100px; right: -240px; background: #9073a7; }
.page-glow-two { top: 740px; left: -330px; background: #5b7885; }
.site-header { position: relative; z-index: 10; min-height: 116px; padding: 26px clamp(24px, 7vw, 112px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(23,23,25,.76); backdrop-filter: blur(18px); }
.brand { display: flex; flex-direction: column; line-height: 1.1; gap: 7px; }
.brand-kicker { color: var(--muted); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; }
.brand-name { font-family: var(--serif); font-size: clamp(24px, 2.5vw, 34px); letter-spacing: -.04em; }
.brand-name em { color: var(--lavender-bright); font-weight: 500; }
.primary-nav { display: flex; align-items: center; gap: clamp(22px, 3.3vw, 52px); }
.primary-nav a { color: #ddd9de; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; transition: color .2s ease; }
.primary-nav a:hover { color: var(--lavender-bright); }
.menu-toggle { display: none; }
.hero { position: relative; min-height: min(730px, calc(100vh - 116px)); padding: 76px clamp(24px, 10vw, 160px) 84px; display: grid; grid-template-columns: minmax(300px, .82fr) minmax(400px, 1.18fr); align-items: center; gap: clamp(40px, 7vw, 112px); border-bottom: 1px solid var(--line); }
.hero-copy { position: relative; z-index: 2; max-width: 520px; padding-bottom: 34px; }
.eyebrow { margin: 0 0 22px; display: flex; align-items: center; gap: 12px; color: var(--lavender); font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow-line { width: 29px; height: 1px; background: var(--lavender); display: inline-block; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-weight: 500; letter-spacing: -.045em; }
.hero h1 { max-width: 590px; margin: 0 0 26px; font-family: var(--serif); font-size: clamp(48px, 6.4vw, 88px); line-height: 1.05; }
h1 i, h2 i { color: var(--lavender-bright); font-weight: 500; }
.hero-intro { max-width: 405px; margin-bottom: 34px; color: #b6b2b9; font-size: 15px; line-height: 1.9; }
.text-link { display: inline-flex; align-items: center; gap: 25px; padding-bottom: 9px; border-bottom: 1px solid rgba(212,195,226,.55); color: #f2edf4; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.text-link span { color: var(--lavender-bright); font-size: 18px; transition: transform .2s ease; }
.text-link:hover span { transform: translate(4px,-3px); }
.hero-art { position: relative; min-height: 530px; max-height: 650px; width: 100%; isolation: isolate; }
.hero-art::before { content: ''; position: absolute; z-index: -1; inset: calc(-5% + var(--hero-inset)) calc(5% - 8mm + var(--hero-inset)) var(--hero-inset) calc(12% - 8mm + var(--hero-inset)); border: 1px solid rgba(199,178,212,.42); transform: rotate(5deg); }
.hero-art::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: min(calc(58vw - var(--hero-inset) - var(--hero-inset)), calc(440px - var(--hero-inset) - var(--hero-inset)));
  height: min(calc(58vw - var(--hero-inset) - var(--hero-inset)), calc(440px - var(--hero-inset) - var(--hero-inset)));
  left: calc(-8% + var(--hero-inset));
  bottom: calc(3% + var(--hero-inset));
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  transform: rotate(-23deg);
}
.hero-main-image { position: absolute; width: calc(84% - var(--hero-inset) - var(--hero-inset)); height: calc(90% - var(--hero-inset) - var(--hero-inset)); top: calc(1% + var(--hero-inset)); right: calc(4% + var(--hero-inset)); object-fit: cover; box-shadow: 0 30px 90px rgba(0,0,0,.42); }
.hero-image-caption { position: absolute; z-index: 2; right: var(--hero-inset); bottom: calc(3% + var(--hero-inset) - 1.7cm); width: 56%; padding: 22px 25px; background: rgba(34,33,38,.93); border: 1px solid rgba(255,255,255,.11); backdrop-filter: blur(12px); display: flex; flex-direction: column; gap: 4px; }
.hero-image-caption span { color: var(--lavender); font-size: 9px; text-transform: uppercase; letter-spacing: .17em; }
.hero-image-caption strong { font-family: var(--serif); font-size: 18px; font-weight: 500; }
.hero-index { position: absolute; left: 0; bottom: 0; color: #c7c0ca; font-size: 10px; letter-spacing: .17em; }
.hero-index i { padding: 0 8px; color: var(--muted-2); font-style: normal; }
.hero-vertical-note { position: absolute; right: 25px; top: 45%; writing-mode: vertical-rl; color: #79747d; font-size: 9px; letter-spacing: .24em; }
.abstract-canvas { position: absolute; width: calc(84% - var(--hero-inset) - var(--hero-inset)); height: calc(90% - var(--hero-inset) - var(--hero-inset)); top: calc(1% + var(--hero-inset)); right: calc(4% + var(--hero-inset)); overflow: hidden; background: linear-gradient(135deg, #2b272e 0%, #59515c 46%, #9a837f 100%); box-shadow: 0 30px 90px rgba(0,0,0,.42); }
.abstract-canvas::before, .abstract-canvas::after { content: ''; position: absolute; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; transform: rotate(-26deg); }
.abstract-canvas::before { width: 75%; height: 130%; left: -20%; top: -15%; }
.abstract-canvas::after { width: 88%; height: 90%; right: -22%; bottom: -25%; border-color: rgba(29,24,35,.55); }
.canvas-shape { position: absolute; display: block; border-radius: 50%; filter: blur(1px); }
.shape-a { width: 62%; height: 62%; top: 9%; left: 13%; background: radial-gradient(ellipse at 55% 45%, #d9c5ae 0 5%, #8b748b 32%, #39343e 70%); mix-blend-mode: screen; opacity: .74; }
.shape-b { width: 58%; height: 45%; right: -5%; bottom: 4%; background: radial-gradient(ellipse, #d4a87c, #7a504d 42%, transparent 72%); transform: rotate(-34deg); }
.shape-c { width: 30%; height: 85%; left: 43%; top: 9%; background: linear-gradient(180deg, rgba(13,13,18,.1), rgba(13,13,18,.88)); transform: rotate(24deg); }
.canvas-stroke { position: absolute; width: 130%; height: 32%; left: -18%; top: 48%; border-top: 2px solid rgba(239,220,226,.5); border-radius: 50%; transform: rotate(-16deg); }
.canvas-signature { position: absolute; right: 13%; bottom: 9%; color: rgba(255,255,255,.65); font-family: var(--serif); font-size: 90px; font-style: italic; }
.section-wrap { padding-left: clamp(24px, 10vw, 160px); padding-right: clamp(24px, 10vw, 160px); }
.gallery-section { padding-top: 118px; padding-bottom: 126px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 42px; }
.section-heading h2, .artist-copy h2, .news-inner h2, .contact-section h2 { margin: 0; font-family: var(--serif); font-size: clamp(40px, 5vw, 64px); line-height: 1.1; }
.section-note { max-width: 290px; margin: 0 0 5px; color: var(--muted); font-size: 13px; }
.category-row { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 34px; }
.category-pill { display: inline-flex; align-items: center; min-height: 36px; padding: 7px 15px; border: 1px solid rgba(255,255,255,.14); border-radius: 30px; color: #bdb8c0; font-size: 10px; letter-spacing: .06em; transition: all .2s ease; }
.category-pill:hover, .category-pill.is-active { background: var(--lavender); border-color: var(--lavender); color: #201d23; }
/* Galerie: einheitliche Vorschaubilder; object-fit: cover füllt den Rahmen und beschneidet nur die Vorschau mittig. Das Original wird im Dialog vollständig angezeigt. */
.art-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 34px 22px; align-items: stretch; max-width: 1320px; margin-inline: auto; }
.art-card { grid-column: span 3; display: block; width: 100%; margin-top: 0; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: zoom-in; }
.art-card-2, .art-card-5 { margin-top: 0; }
.art-image-wrap { display: block; position: relative; width: 100%; height: auto; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 14px; background: #29262d; }
.art-image-wrap::after { content: ''; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.13); border-radius: inherit; pointer-events: none; }
.art-image-wrap img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center center; border-radius: inherit; background: #29262d; transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .4s ease; }
.art-card:hover .art-image-wrap img { transform: scale(1.045); filter: saturate(1.08); }
.art-card-meta { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 15px 2px 0; }
.art-card-meta span { display: flex; flex-direction: column; }
.art-card-meta strong { font-family: var(--serif); font-size: 18px; font-weight: 500; }
.art-card-meta small { color: var(--muted-2); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.art-card-meta i { color: var(--lavender); font-size: 20px; font-style: normal; transition: transform .2s ease; }
.art-card:hover .art-card-meta i { transform: translate(3px,-3px); }
.empty-gallery { min-height: 310px; padding: 55px; display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: 60px; border: 1px solid var(--line); background: linear-gradient(115deg, rgba(255,255,255,.035), rgba(170,143,190,.055)); }
.empty-gallery h3 { max-width: 470px; margin-bottom: 12px; font-family: var(--serif); font-size: clamp(25px, 3vw, 37px); font-weight: 500; line-height: 1.2; }
.empty-gallery p:not(.eyebrow) { max-width: 490px; margin-bottom: 0; color: var(--muted); font-size: 13px; }
.empty-art-mark { position: relative; width: min(100%, 280px); aspect-ratio: 1; margin: auto; border: 1px solid rgba(199,178,212,.3); border-radius: 50%; transform: rotate(-24deg); }
.empty-art-mark::before, .empty-art-mark::after { content: ''; position: absolute; inset: 12%; border: 1px solid rgba(199,178,212,.25); border-radius: 50%; }
.empty-art-mark::after { inset: 25%; border-color: rgba(255,255,255,.2); }
.empty-art-mark span { position: absolute; width: 16%; height: 54%; left: 42%; top: 23%; border-radius: 50%; background: linear-gradient(180deg, #b7a3c5, #5b4a65); filter: blur(1px); transform: rotate(45deg); }
.empty-art-mark span:nth-child(2) { transform: rotate(110deg); opacity: .75; }
.empty-art-mark span:nth-child(3) { transform: rotate(175deg); opacity: .5; }
.artist-section { padding-top: 100px; padding-bottom: 110px; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(60px, 10vw, 150px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.018); }
.artist-mark {
  position: relative;
  width: min(100%, var(--artist-mark-size, 420px));
  aspect-ratio: 1;
  margin: auto;
  display: grid;
  place-items: center;
  border: var(--artist-mark-circle-width, 1px) solid var(--artist-mark-circle-color, rgba(185,169,201,.35));
  border-radius: 50%;
}
.artist-mark::before {
  content: '';
  position: absolute;
  inset: 10%;
  border: var(--artist-mark-ellipse1-width, 1px) solid var(--artist-mark-ellipse1-color, rgba(185,169,201,.25));
  border-radius: 50%;
  transform: rotate(var(--artist-mark-ellipse1-rotation, 45deg)) scaleX(var(--artist-mark-ellipse1-scale, .62));
  display: var(--artist-mark-ellipse1-display, block);
  pointer-events: none;
  z-index: 2;
}
.artist-mark::after {
  content: '';
  position: absolute;
  inset: 10%;
  border: var(--artist-mark-ellipse2-width, 1px) solid var(--artist-mark-ellipse2-color, rgba(185,169,201,.25));
  border-radius: 50%;
  transform: rotate(var(--artist-mark-ellipse2-rotation, -45deg)) scaleX(var(--artist-mark-ellipse2-scale, .62));
  display: var(--artist-mark-ellipse2-display, block);
  pointer-events: none;
  z-index: 2;
}
.artist-mark-image {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84%;
  height: 84%;
  max-width: none;
  object-fit: var(--artist-mark-image-fit, cover);
  object-position: var(--artist-mark-image-x, 50%) var(--artist-mark-image-y, 50%);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(var(--artist-mark-image-scale, 1));
  z-index: 1;
}
.artist-mark span {
  position: relative;
  z-index: 1;
  color: #d7c8df;
  font-family: var(--serif);
  font-size: clamp(100px, 17vw, 190px);
  font-style: italic;
  font-weight: 500;
}
.artist-mark i {
  position: absolute;
  width: 8px;
  height: 8px;
  right: 18%;
  top: 22%;
  border-radius: 50%;
  background: var(--lavender-bright);
  box-shadow: 0 0 30px 10px rgba(212,195,226,.23);
}
.artist-copy { max-width: 600px; }
.artist-copy h2 { margin-bottom: 25px; }
.artist-copy > p:not(.eyebrow):not(.artist-signature) { max-width: 570px; color: var(--muted); font-size: 14px; line-height: 2; }
.artist-signature { margin: 28px 0 0; color: var(--lavender-bright); font-family: var(--serif); font-size: 25px; font-style: italic; }
.news-section { padding-top: 94px; padding-bottom: 94px; }
.news-inner { padding: 45px 0; display: flex; align-items: end; justify-content: space-between; gap: 48px; border-bottom: 1px solid var(--line); }
.news-inner h2 { max-width: 660px; }
.news-inner > p { max-width: 300px; margin: 0 0 5px; color: var(--muted); font-size: 13px; }
.contact-section { padding-top: 100px; padding-bottom: 118px; text-align: center; background: radial-gradient(ellipse at 50% 100%, rgba(117,91,133,.17), transparent 58%); }
.contact-section .eyebrow { justify-content: center; }
.contact-section h2 { max-width: 800px; margin: 0 auto 20px; }
.contact-section > p:not(.eyebrow) { max-width: 500px; margin: 0 auto 30px; color: var(--muted); font-size: 13px; }
.contact-button { display: inline-flex; align-items: center; gap: 35px; padding: 13px 22px; background: var(--lavender-bright); color: #211d24; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; transition: background .2s ease, transform .2s ease; }
.contact-button:hover { transform: translateY(-2px); background: #eee1f3; }
.contact-button span { font-size: 18px; }
.contact-hint { color: var(--muted-2); font-size: 11px; }
.site-footer { min-height: 95px; padding: 24px clamp(24px, 7vw, 112px); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 22px; color: var(--muted-2); font-size: 10px; }
.footer-brand { color: #aaa2ae; font-family: var(--serif); font-size: 20px; }
.footer-brand i { color: var(--lavender); font-size: 23px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a:hover { color: var(--lavender-bright); }
.art-dialog { position: fixed; width: min(1000px, calc(100% - 36px)); max-width: none; max-height: min(90vh, 900px); padding: 0; border: 1px solid rgba(255,255,255,.15); background: #1b1a1e; color: var(--text); box-shadow: 0 25px 100px rgba(0,0,0,.6); }
.art-dialog::backdrop { background: rgba(5,5,7,.84); backdrop-filter: blur(7px); }
.dialog-close { position: absolute; z-index: 2; top: 12px; right: 14px; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: rgba(15,15,17,.7); color: white; font-size: 27px; cursor: pointer; }
.dialog-image-wrap { min-height: 200px; max-height: 68vh; display: grid; place-items: center; background: #101012; }
.dialog-image-wrap img { display: block; max-width: 100%; max-height: 68vh; object-fit: contain; }
.dialog-info { padding: 23px 30px 28px; }
.dialog-info .eyebrow { margin-bottom: 7px; }
.dialog-info h2 { margin-bottom: 5px; font-family: var(--serif); font-size: 30px; font-weight: 500; }
.dialog-info p:not(.eyebrow) { margin: 5px 0; color: #c5c0c8; font-size: 13px; }
.dialog-info small { color: var(--muted-2); }
@media (min-width: 1500px) { .hero { padding-left: max(160px, calc((100vw - 1220px)/2)); padding-right: max(160px, calc((100vw - 1220px)/2)); } }
@media (max-width: 980px) {
  :root { --hero-inset: 22px; }
  .site-header { min-height: 100px; }
  .primary-nav { gap: 20px; }
  .primary-nav a { font-size: 10px; }
  .hero { grid-template-columns: 1fr 1fr; padding-left: 7vw; padding-right: 7vw; gap: 35px; }
  .hero-art { min-height: 420px; }
  .hero-vertical-note { display: none; }
  .section-wrap { padding-left: 7vw; padding-right: 7vw; }
  .art-card { grid-column: span 4; }
  .art-card-2, .art-card-5 { margin-top: 0; }
  .artist-section { gap: 55px; }
}
@media (max-width: 700px) {
  :root { --hero-inset: 14px; }
  html { scroll-padding-top: 76px; }
  .site-header { min-height: 82px; padding: 17px 22px; }
  .brand-name { font-size: 25px; }
  .menu-toggle { width: 42px; height: 42px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
  .menu-toggle span { width: 18px; height: 1px; background: var(--text); transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .primary-nav { position: absolute; top: calc(100% - 1px); left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 22px 20px; border-bottom: 1px solid var(--line); background: rgba(23,23,25,.98); }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 11px; }
  .primary-nav a:last-child { border-bottom: 0; }
  .hero { min-height: 0; padding: 66px 22px 58px; grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { padding-bottom: 0; }
  .hero h1 { max-width: 450px; font-size: clamp(49px, 14vw, 70px); }
  .hero-intro { font-size: 14px; }
  .hero-art { min-height: 390px; max-height: 490px; width: 100%; }
.hero-art::before { inset: calc(8% + var(--hero-inset) - 2mm) calc(5% + var(--hero-inset) - 2mm) calc(var(--hero-inset) - 2mm) calc(12% - 8mm + var(--hero-inset) - 2mm); }
  .hero-art::after {
    width: min(calc(58vw - var(--hero-inset) - var(--hero-inset) + 4mm), calc(440px - var(--hero-inset) - var(--hero-inset) + 4mm));
    height: min(calc(58vw - var(--hero-inset) - var(--hero-inset) + 4mm), calc(440px - var(--hero-inset) - var(--hero-inset) + 4mm));
    left: calc(var(--hero-inset) - 2mm);
    bottom: calc(3% + var(--hero-inset) - 2mm);
  }
  .hero-art::after { left: var(--hero-inset); }
  .hero-main-image, .abstract-canvas { width: calc(84% - var(--hero-inset) - var(--hero-inset)); height: calc(84% - var(--hero-inset) - var(--hero-inset)); top: calc(8% + var(--hero-inset)); right: calc(4% + var(--hero-inset)); }
  /* Auf Smartphones bleibt das Kunstwerk in einem quadratischen Bildfeld.
     contain zeigt das vollständige Gemälde, ohne es abzuschneiden. */
  .hero-main-image { width: calc(84% - var(--hero-inset) - var(--hero-inset)); height: auto; aspect-ratio: 1 / 1; object-fit: contain; background: var(--bg); }
  /* Die Beschriftung sitzt auf dem iPhone 5 mm höher als zuvor. */
  .hero-image-caption { width: 70%; right: var(--hero-inset); bottom: calc(var(--hero-inset) - 1.2cm); }
  .section-wrap { padding-left: 22px; padding-right: 22px; }
  .gallery-section { padding-top: 76px; padding-bottom: 82px; }
  .section-heading { display: block; margin-bottom: 28px; }
  .section-heading h2, .artist-copy h2, .news-inner h2, .contact-section h2 { font-size: clamp(39px, 11vw, 54px); }
  .section-note { margin-top: 16px; }
  .category-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; margin-right: -22px; scrollbar-width: thin; }
  .category-pill { flex: 0 0 auto; }
  .art-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 30px 13px; }
  .art-card, .art-card-4 { grid-column: auto; }
  .art-card-2, .art-card-5 { margin-top: 0; }
  .art-image-wrap { height: auto; aspect-ratio: 4 / 5; }
  .art-card-meta { padding-top: 10px; }
  .art-card-meta strong { font-size: 15px; }
  .art-card-meta small { font-size: 8px; }
  .empty-gallery { grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; }
  .empty-art-mark { width: 170px; }
  .artist-section { padding-top: 70px; padding-bottom: 76px; grid-template-columns: 1fr; gap: 38px; }
  .artist-mark { width: min(68vw, var(--artist-mark-size, 420px)); }
  .artist-mark span { font-size: 120px; }
  .artist-copy h2 { margin-bottom: 20px; }
  .news-section { padding-top: 64px; padding-bottom: 64px; }
  .news-inner { display: block; padding: 26px 0 34px; }
  .news-inner > p { margin-top: 18px; }
  .contact-section { padding-top: 76px; padding-bottom: 83px; }
  .site-footer { align-items: flex-start; flex-wrap: wrap; padding: 22px; }
  .site-footer > span { order: 3; width: 100%; }
  .footer-links { gap: 15px; }
  .dialog-info { padding: 18px 20px 22px; }
}
@media (max-width: 380px) {
  .art-grid { grid-template-columns: 1fr; }
  .art-card, .art-card-4 { max-width: 300px; margin-inline: auto; }
  .art-card-2, .art-card-5 { margin-top: 0; }
  .art-image-wrap { height: auto; aspect-ratio: 4 / 5; max-height: none; }
  .hero-art { min-height: 320px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* ArtStudio v0.6 – kompakte Galerieübersichten.
   Große Bildansicht / Lightbox bleibt unverändert und zeigt das vollständige Werk. */
.gallery-all-works .art-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px 12px;
  max-width: 1440px;
}
.gallery-all-works .art-card,
.gallery-category .art-card {
  grid-column: auto;
  min-width: 0;
}
.gallery-all-works .art-card-meta {
  gap: 5px;
  padding: 8px 1px 0;
}
.gallery-all-works .art-card-meta strong {
  font-size: 10px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.gallery-all-works .art-card-meta small {
  font-size: 7px;
  letter-spacing: .035em;
}
.gallery-all-works .art-card-meta i {
  font-size: 14px;
}

.gallery-category .art-grid {
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 20px 14px;
  max-width: 1360px;
}
.gallery-category .art-card-meta {
  gap: 7px;
  padding: 10px 1px 0;
}
.gallery-category .art-card-meta strong {
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.gallery-category .art-card-meta small {
  font-size: 8px;
}
.gallery-category .art-card-meta i {
  font-size: 16px;
}

/* Notebook-Bildschirme: etwas weniger Spalten für gut erkennbare Vorschaubilder. */
@media (max-width: 1399px) and (min-width: 981px) {
  .gallery-all-works .art-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .gallery-category .art-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

/* Tablets */
@media (max-width: 980px) and (min-width: 701px) {
  .gallery-all-works .art-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 11px; }
  .gallery-category .art-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px 12px; }
  .gallery-all-works .art-card-meta strong { font-size: 10px; }
  .gallery-category .art-card-meta strong { font-size: 11px; }
}

/* Smartphones: vier kleine Kacheln bei Alle Werke, zwei bei einer Kategorie. */
@media (max-width: 700px) and (min-width: 381px) {
  .gallery-all-works .art-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 19px 9px; }
  .gallery-category .art-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 10px; }
  .gallery-all-works .art-card-meta { padding-top: 7px; }
  .gallery-all-works .art-card-meta strong { font-size: 9px; }
  .gallery-all-works .art-card-meta small { font-size: 6.5px; }
  .gallery-category .art-card-meta strong { font-size: 10px; }
}

/* Sehr schmale Smartphones: zwei Spalten, damit Titel lesbar bleiben. */
@media (max-width: 380px) {
  .gallery-all-works .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .gallery-category .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .gallery-all-works .art-card,
  .gallery-category .art-card { max-width: none; margin-inline: 0; }
  .gallery-all-works .art-card-meta strong { font-size: 10px; }
  .gallery-category .art-card-meta strong { font-size: 11px; }
}

/* ArtStudio – Galerie: alle Vorschaubilder sauber oben ausrichten */
.gallery-category .art-grid,
.gallery-all-works .art-grid {
    display: grid;
    grid-auto-flow: row;
    align-items: start !important;
}

.gallery-category .art-grid > .art-card,
.gallery-all-works .art-grid > .art-card {
    align-self: start !important;
    margin-top: 0 !important;
    transform: none !important;
}

.gallery-category .art-grid .art-image-wrap,
.gallery-all-works .art-grid .art-image-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
}

.gallery-category .art-grid .art-image-wrap img,
.gallery-all-works .art-grid .art-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* ArtStudio – kompaktere Großansicht der Kunstwerke */
.art-dialog {
    width: min(1200px, calc(100% - 36px));
    max-height: 92vh;
}

.dialog-image-wrap {
    min-height: 160px;
    max-height: 72vh;
    padding: 10px;
}

.dialog-image-wrap img {
    display: block;
    width: auto;
    max-width: min(82vw, 950px);
    max-height: 66vh;
    object-fit: contain;
    margin: auto;
}

/* Smartphones: Bild weiterhin gut erkennbar */
@media (max-width: 700px) {
    .art-dialog {
        width: calc(100% - 24px);
        max-height: 92vh;
    }

    .dialog-image-wrap {
        max-height: 54vh;
    }

    .dialog-image-wrap img {
        max-width: calc(100vw - 56px);
        max-height: 52vh;
    }
}

/* ArtStudio – iPhone: horizontales Verschieben verhindern */
html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 700px) {
    .category-row {
        margin-right: 0 !important;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* ArtStudio – endgültige Begrenzung des mobilen Viewports */
html,
body {
    max-width: 100%;
    overflow-x: clip !important;
    overscroll-behavior-x: none;
}

/* Fallback für ältere Safari-Versionen */
@supports not (overflow: clip) {
    html,
    body {
        overflow-x: hidden !important;
    }
}

@media (max-width: 700px) {
    .hero,
    .hero-art,
    .section-wrap,
    .artist-section,
    .news-section,
    .contact-section,
    .site-header,
    .site-footer {
        max-width: 100%;
        min-width: 0;
    }

    .hero-art {
        overflow: clip;
    }

    .page-glow {
        pointer-events: none;
    }
}

/* iPhone: überstehende dekorative Hintergrundkreise deaktivieren */
@media (max-width: 700px) {
    .page-glow-one,
    .page-glow-two {
        display: none !important;
    }
}

/* Weißer Passepartout direkt um das Gemälde */
.dialog-image-wrap {
    background: #101012 !important;
    padding: 0 !important;
}

.dialog-image-wrap img {
    border: 18px solid #ffffff !important;
    box-sizing: border-box;
    border-radius: 0 !important;
    background: #ffffff;
}

/* iPhone und iPad */
@media (max-width: 700px) {
    .dialog-image-wrap {
        padding: 6px !important;
    }

    .dialog-image-wrap img {
        border-width: 10px !important;
    }
}

/* iPhone: Beschriftungsbox darf nach unten herausragen */
@media (max-width: 700px) {
    .hero-art {
        overflow-x: clip;
        overflow-y: visible;
    }
}

/* ArtStudio – Rahmen und Kreis vollständig sichtbar */
.hero-art::before,
.hero-art::after {
    z-index: 1 !important;
    pointer-events: none;
}

.hero-main-image,
.hero-art > .abstract-canvas {
    z-index: 0;
}

.hero-image-caption {
    z-index: 2;
}


/* ArtStudio v0.13 – gemeinsame Bildpaar-Vergleichsansicht */
.dialog-image-wrap > img[hidden],
.dialog-pair-view[hidden] {
    display: none !important;
}

.dialog-pair-view {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 12px 52px;
}

.dialog-pair-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.dialog-pair-item img {
    display: block;
    width: 100%;
    height: 58vh;
    max-width: 100%;
    max-height: 58vh;
    object-fit: contain;
    box-sizing: border-box;
}

.dialog-pair-item figcaption {
    color: var(--text, #f2f0ee);
    font-size: 12px;
    text-align: center;
}

@media (max-width: 700px) {
    .dialog-pair-view {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 8px 36px;
    }

    .dialog-pair-item img {
        height: 42vh;
        max-height: 42vh;
    }

    .dialog-pair-item figcaption {
        font-size: 10px;
    }
}

/* Bildpaare – Rahmen direkt um das tatsächliche Bild */
.dialog-pair-item img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    max-height: 58vh;
    object-fit: contain;
    background: transparent !important;
    border: 6px solid #ffffff !important;
    box-sizing: border-box;
    border-radius: 0 !important;
}

/* Smartphone */
@media (max-width: 700px) {
    .dialog-pair-item img {
        max-height: 42vh;
        border-width: 4px !important;
    }
}


/* Künstlerporträt: Kreisform erzwingen */
.artist-mark img.artist-mark-image {
    display: block;
    width: 84%;
    height: 84%;
    aspect-ratio: 1 / 1;
    object-fit: var(--artist-mark-image-fit, cover);
    object-position: var(--artist-mark-image-x, 50%) var(--artist-mark-image-y, 50%);
    border-radius: 50%;
    clip-path: circle(50% at 50% 50%);
}


/* Individuelle Überschriften-Gestaltung aus dem Adminbereich */
.hero h1,
.section-heading h2,
.artist-copy h2 {
  font-family: var(--heading-font, var(--serif));
  font-weight: var(--heading-weight, 500);
  font-style: var(--heading-style, normal);
  color: var(--heading-color, #F7F2F8);
  line-height: var(--heading-line-height, 1.1);
  letter-spacing: var(--heading-letter-spacing, -.045em);
}
.hero h1 {
  font-size: var(--heading-size, 88px);
}
.section-heading h2,
.artist-copy h2 {
  font-size: var(--heading-size, 64px);
}
.hero h1 i,
.section-heading h2 i,
.artist-copy h2 i {
  color: var(--heading-accent-color, var(--lavender-bright));
  font-style: var(--heading-style, italic);
}
@media (max-width: 700px) {
  .hero h1 {
    font-size: var(--heading-mobile-size, 70px);
  }
  .section-heading h2,
  .artist-copy h2 {
    font-size: var(--heading-mobile-size, 54px);
  }
}


/* Einheitliche Schriftgröße innerhalb der Hauptüberschriften */
.hero h1 *,
.section-heading h2 *,
.artist-copy h2 * {
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
}


/* Rich-Text-Schriftgrößen in Hauptüberschriften neutralisieren */
.hero h1 [class*="rt-size-"],
.section-heading h2 [class*="rt-size-"],
.artist-copy h2 [class*="rt-size-"] {
    font-size: inherit !important;
}


/* ArtStudio: Künstlerbild-Darstellung und horizontale Verschiebung */
.artist-mark img.artist-mark-image {
    left: calc(50% + var(--artist-mark-image-offset-x, 0px));
    border-radius: 50%;
    clip-path: circle(50% at 50% 50%);
}

.artist-mark--image-original img.artist-mark-image {
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    clip-path: none;
}


/* Startseitenbild-Beschriftung: Position und Schrift je Text separat */
.hero-image-caption > span {
    transform: translateX(var(--hero-caption-top-offset-x, 0px));
    font-family: var(--hero-caption-top-font, 'DM Sans', Arial, sans-serif);
    font-weight: var(--hero-caption-top-weight, 400);
    font-style: var(--hero-caption-top-style, normal);
}

.hero-image-caption > strong {
    transform: translateX(var(--hero-caption-bottom-offset-x, 0px));
    font-family: var(--hero-caption-bottom-font, 'Cormorant Garamond', Georgia, serif);
    font-weight: var(--hero-caption-bottom-weight, 500);
    font-style: var(--hero-caption-bottom-style, normal);
}
