/* ==========================================================
   Tanja Neubert – Website
   Raster: 10 Spalten zwischen den Rändern (wie Photoshop-Entwurf,
   2496 px Artboard = 1248 CSS-Pixel). Alle Maße skalieren mit
   der Fensterbreite und sind auf großen Bildschirmen gedeckelt.
   ========================================================== */

@font-face {
  font-family: 'selaris';
  src: url('../fonts/selaris-webfont.woff2') format('woff2'),
       url('../fonts/selaris-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #111;
  --muted: #8c8c8c;
  --line: #8f8f8f;
  --bg: #fff;

  --display: 'selaris', 'Times New Roman', serif;
  --copy: 'kepler-3-variable', 'kepler-std', Georgia, serif;
  --ui: 'kepler-std', 'kepler-3-variable', Georgia, serif;

  /* Raster */
  --margin: 8.46vw;
  --gap: 1.92vw;
  --maxw: 1760px;

  /* vertikale Abstände */
  --s1: clamp(10px, 1.1vw, 20px);
  --s2: clamp(18px, 2.2vw, 40px);
  --s3: clamp(32px, 4.6vw, 84px);
  --s4: clamp(56px, 7.8vw, 140px);
  --s5: clamp(80px, 11vw, 200px);
}

/* 1rem = 18 px bei 1248 px Breite, wächst bis 22 px */
html { font-size: clamp(16px, 0.6vw + 10.5px, 22px); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--copy);
  font-size: 1rem;
  line-height: 1.38;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-weight: normal; }

/* ---------- Schriften ---------- */

/* HL 01: Selaris 24, leicht verstärkt (fake bold) */
.hl {
  font-family: var(--display);
  font-size: 1.333rem;
  -webkit-text-stroke: 0.014em currentColor;
  paint-order: stroke fill;
  line-height: 1.15;
  letter-spacing: 0.01em;
  font-weight: normal;
}
/* HL 02: Kepler semibold 17 */
.hl2 {
  font-family: var(--copy);
  font-style: normal;
  font-weight: 600;
  font-size: 0.944rem;
  line-height: 1.35;
  margin-bottom: 1.4rem;
}
/* HL 03: Kepler regular 18 */
.hl3 { font-family: var(--ui); font-size: 1rem; font-weight: 400; }

/* Copy: Kepler Std regular 17 */
.copy { font-family: var(--ui); font-style: normal; font-weight: 400; font-size: 0.944rem; line-height: 1.33; }
/* Bildunterschriften: Kepler 3 Caption Condensed Medium Italic */
.caption, .hero-caption, .card-meta .copy, .vcredit {
  font-family: var(--copy);
  font-style: italic;
  font-weight: 500;
  font-variation-settings: 'opsz' 8, 'wdth' 50;
}
/* Photo-Text 14 */
.photo-credit {
  font-family: var(--copy);
  font-style: italic;
  font-variation-settings: 'opsz' 8, 'wdth' 50;
  font-size: 0.778rem;
  color: var(--muted);
  margin-top: 0.7rem;
}

/* Link: Kepler Std regular 17, unterstrichen, mit Pfeil */
.link {
  font-family: var(--ui);
  font-style: normal;
  font-size: 0.944rem;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.25em;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
}
.link span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.24em; }
.link .arr { width: 0.62em; height: 0.62em; transition: transform .35s ease; flex: none; align-self: center; position: relative; top: -0.03em; }
.link:hover .arr { transform: translateX(4px); }

/* ---------- Raster ---------- */

.wrap {
  padding-inline: var(--margin);
  max-width: calc(var(--maxw) + 2 * var(--margin));
  margin-inline: auto;
}
.grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  column-gap: var(--gap);
}
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Kopfzeile ---------- */

.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: transform .45s ease, background-color .3s ease;
}
.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: clamp(18px, 2.6vw, 44px);
  padding-bottom: clamp(14px, 1.6vw, 26px);
}
.site-header.is-fixed { position: fixed; background: rgba(255,255,255,.96); transform: translateY(-100%); }
.site-header.is-fixed.is-shown { transform: translateY(0); }
.site-header.is-fixed .wrap { padding-top: clamp(14px, 1.4vw, 24px); }

.logo {
  font-family: var(--display);
  font-size: clamp(22px, 2.62vw, 46px);
  line-height: 1;
  text-decoration: none;
  letter-spacing: 0.005em;
  white-space: nowrap;
}
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(14px, 1.55vw, 30px); }
.main-nav a, .sub-nav a, .tabs button {
  font-family: var(--ui);
  font-size: 1rem;
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
}
/* animierte Unterstreichung */
.main-nav a::after, .sub-nav a::after, .tabs button::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.main-nav a:hover::after, .main-nav a:focus-visible::after, .main-nav a[aria-current="page"]::after,
.sub-nav a:hover::after, .sub-nav a.is-active::after,
.tabs button:hover::after, .tabs button[aria-selected="true"]::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  background: none; border: 0; padding: 6px 0; cursor: pointer;
  font-family: var(--ui); font-size: 1rem; color: inherit;
}

/* ---------- Seiten ohne Titelbild ---------- */
.page-plain main { padding-top: clamp(110px, 12.5vw, 230px); }

/* ---------- Titelbild ---------- */

.hero { position: relative; height: 55.3vw; max-height: 92vh; min-height: 320px; overflow: hidden; }
.hero img { width: 100%; height: 126%; object-fit: cover; position: absolute; top: -13%; left: 0; will-change: transform; }

.page-title { margin-bottom: var(--s3); }

/* ---------- Bild-Rahmen mit Scale-on-Scroll ---------- */

.frame { display: block; position: relative; overflow: hidden; background: #eee; }
/* Hover wie bei Spazio: schnelles, leichtes Heranzoomen */
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.6,.2,1); will-change: transform; }
a.frame:hover img { transform: scale(1.03); }
.ratio-45 { aspect-ratio: 4 / 5; }
.ratio-sq { aspect-ratio: 1 / 1; }
.ratio-wide { aspect-ratio: 16 / 9; }

/* zwei Bilder übereinander (Hover/Scroll-Wechsel) */
.frame .alt { position: absolute; inset: 0; }
/* beim Hover direkter Wechsel, ohne Ueberblendung */
.frame.swap .alt { opacity: 0; }
.frame.swap:hover .alt, .frame.swap.is-lit .alt { opacity: 1; }

/* scroll-gesteuerter Bildwechsel (Moon Vase Odette) */
.frame.reveal .alt { clip-path: inset(calc(var(--rv, 0) * -1% + 100%) 0 0 0); transition: none; }

/* ---------- Startseite ---------- */

.hero-caption { grid-column: 6 / 11; text-align: right; margin-top: var(--s1); font-size: 0.944rem; }

.home-about { margin-top: var(--s2); padding-bottom: var(--s4); }
.home-about .hl { margin-bottom: var(--s2); }
.home-about .copy { grid-column: 1 / 6; margin-bottom: 0.9rem; }
.home-about .more { grid-column: 1 / 6; }

.currently { padding-block: var(--s3) var(--s4); align-items: start; }
.currently figure { grid-column: 1 / 6; margin: 0; }
.currently .text { grid-column: 6 / 11; padding-top: clamp(40px, 10.6vw, 200px); }
.currently .hl { margin-bottom: var(--s2); }
.currently .hl2 { margin-bottom: 0; }
.currently .meta { margin-bottom: 1.4rem; }

.selected { padding-top: var(--s4); }
.selected > .wrap > .hl { margin-bottom: var(--s3); }

.card-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 0.9rem; gap: 1rem; }
.card-meta .copy { font-size: 1rem; line-height: 1.25; }
.card a { text-decoration: none; }

.pair { align-items: start; }
.pair-a .c1 { grid-column: 1 / 6; }
.pair-a .c2 { grid-column: 7 / 11; margin-top: 0; }
.pair-b { margin-top: var(--s5); }
.pair-b .c1 { grid-column: 1 / 5; margin-top: clamp(40px, 9.8vw, 180px); }
.pair-b .c2 { grid-column: 6 / 11; }

.fullbleed { margin-top: var(--s4); }
.fullbleed .frame { height: 64vw; max-height: 100vh; }
.fullbleed .frame img { height: 122%; position: absolute; top: -11%; }
.fullbleed .vcredit {
  position: absolute; left: clamp(12px, 2.2vw, 40px); bottom: clamp(16px, 1.7vw, 30px);
  writing-mode: vertical-rl; transform: rotate(180deg);
  color: #fff; font-size: 0.722rem; z-index: 2;
}
.fullbleed .card-meta { grid-column: 1 / 6; }

/* ---------- Work ---------- */

.tabs, .sub-nav { display: flex; justify-content: center; gap: clamp(18px, 1.6vw, 30px); padding-block: var(--s2) 0; }
.tabs button { background: none; border: 0; cursor: pointer; color: inherit; padding-inline: 0; }
.sub-nav { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); padding-block: var(--s2) var(--s1); }
.sub-nav a { cursor: pointer; }

.work-intro { padding-top: var(--s3); }
.work-intro .hl { margin-bottom: var(--s2); }

.project { align-items: center; padding-bottom: var(--s5); scroll-margin-top: 40px; }
.project .media { grid-column: 1 / 6; }
.project .text { grid-column: 6 / 11; }
.project.flip .media { grid-column: 6 / 11; grid-row: 1; }
.project.flip .text { grid-column: 1 / 6; grid-row: 1; }
.project .text .copy p { margin-bottom: 0.75em; }
.project .text .link { margin-top: 0.5rem; }
.project.wide { display: block; }
.project.wide .frame { height: 56vw; max-height: 100vh; }
.project.wide .frame img { height: 122%; position: absolute; top: -11%; }
.project.wide .text { padding-top: var(--s3); }
.project.wide .text > div { grid-column: 1 / 6; }

.tabpanel[hidden] { display: none; }

/* Bilder-Slider */
.slider { position: relative; }
.slides { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #eee; cursor: pointer; }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease, transform 1.2s cubic-bezier(.2,.7,.2,1); transform: scale(1.025); }
.slides img.is-current { opacity: 1; transform: scale(1); z-index: 1; }
.slides .half { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 3; }
.slides .half.prev { left: 0; cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='19' fill='white' fill-opacity='.85'/%3E%3Cpath d='M26 20H14m5-5-5 5 5 5' fill='none' stroke='%23111' stroke-width='1.2'/%3E%3C/svg%3E") 20 20, w-resize; }
.slides .half.next { right: 0; cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='19' fill='white' fill-opacity='.85'/%3E%3Cpath d='M14 20h12m-5-5 5 5-5 5' fill='none' stroke='%23111' stroke-width='1.2'/%3E%3C/svg%3E") 20 20, e-resize; }
.slider-arrows { position: absolute; left: 50%; bottom: clamp(12px, 1.5vw, 26px); transform: translateX(-50%); display: flex; gap: clamp(18px, 2.2vw, 40px); z-index: 4; }
.slider-arrows button { background: none; border: 0; padding: 6px; cursor: pointer; color: #fff; line-height: 0; }
.slider-arrows svg { width: clamp(14px, 1.05vw, 20px); height: auto; filter: drop-shadow(0 0 3px rgba(0,0,0,.25)); transition: transform .3s; }
.slider-arrows .p:hover svg { transform: translateX(-3px); }
.slider-arrows .n:hover svg { transform: translateX(3px); }
.counter { margin-top: 0.9rem; font-size: 1rem; font-variant-numeric: tabular-nums; }
.slider.single .slider-arrows, .slider.single .half { display: none; }
.slider.single .slides { cursor: default; }

/* ---------- Studio ---------- */

.st-about { padding-top: var(--s3); padding-bottom: var(--s4); scroll-margin-top: 70px; }
.st-about .hl { margin-bottom: var(--s2); }
.st-about .copy { grid-column: 1 / 7; }
.st-about .copy p { margin-bottom: 1.4em; }

.exhibitions { padding-block: var(--s3) var(--s4); scroll-margin-top: 70px; }
.exhibitions .inner { grid-column: 5 / 11; }
.exhibitions .hl { margin-bottom: var(--s3); }
.ex-list { list-style: none; margin: 0; padding: 0; }
.ex-list li { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; padding-block: 1.5rem 1.6rem; border-bottom: 1px solid var(--line); }
.ex-list li:first-child { padding-top: 0; }
.ex-list li:last-child { border-bottom: 0; }
.ex-list .year { flex: none; }

.references { padding-top: var(--s3); scroll-margin-top: 70px; }
.references > .wrap > .hl { margin-bottom: var(--s3); }
.ref { align-items: start; padding-bottom: var(--s4); }
.ref + .ref { padding-top: var(--s4); }
.ref .text { grid-column: 1 / 6; }
.ref .media { grid-column: 7 / 11; margin: 0; }
.ref.flip .media { grid-column: 1 / 5; grid-row: 1; }
.ref.flip .text { grid-column: 6 / 11; grid-row: 1; }
.ref .hl { margin-bottom: var(--s2); }
.ref .copy p { margin-bottom: 1.25em; }
.ref .media img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ---------- Journal ---------- */

.j-list { padding-top: var(--s2); }
.j-entry { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; padding-block: var(--s4); border-top: 1px solid var(--line); scroll-margin-top: 40px; }
.j-entry:first-child { border-top: 0; padding-top: var(--s3); }
.j-entry[hidden] { display: none; }
.j-img { margin: 0; }
.j-img img { width: 100%; height: auto; }
.j-entry.img-left .j-img { grid-column: 1 / 5; }
.j-entry.img-left .j-text { grid-column: 6 / 11; }
.j-entry.img-right .j-text { grid-column: 1 / 6; grid-row: 1; }
.j-entry.img-right .j-img { grid-column: 7 / 11; grid-row: 1; }
.j-entry.first .j-img { grid-column: 2 / 6; }
.j-entry.img-left.narrow-gap .j-img { grid-column: 1 / 5; }
.j-entry.img-right.mid .j-img { grid-column: 6 / 10; }
.j-entry.img-right.mid .j-text { grid-column: 1 / 6; }
.j-text .hl { margin-bottom: var(--s2); }
.j-text .copy a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.j-entry.is-new { animation: fadeUp .8s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.j-more { border-top: 1px solid var(--line); padding-top: var(--s1); display: flex; justify-content: space-between; }

/* ---------- Kontakt ---------- */

.contact-grid { padding-top: var(--s2); align-items: start; }
.contact-grid .left { grid-column: 1 / 6; }
.contact-grid .right { grid-column: 7 / 11; }
.contact-grid .hl3 { margin-bottom: var(--s3); }
.field { display: block; margin-bottom: var(--s3); }
.field input {
  width: 100%;
  border: 0; border-bottom: 1px solid var(--line);
  padding: 0.2rem 0 0.35rem;
  font-family: var(--ui); font-size: 0.944rem; color: var(--ink);
  background: transparent; border-radius: 0;
  outline: none;
}
.field input::placeholder { color: var(--muted); opacity: 1; }
.field input:focus { border-bottom-color: var(--ink); }
.consent { font-size: 0.778rem; color: var(--muted); margin-top: var(--s2); max-width: 32em; }
.consent a { color: inherit; }
.form-msg { margin-top: var(--s1); font-size: 0.944rem; min-height: 1.4em; }
.address { font-family: var(--ui); font-size: 0.944rem; line-height: 1.4; margin-bottom: var(--s3); }
.contact-links { display: flex; gap: clamp(28px, 3.4vw, 64px); flex-wrap: wrap; }

/* ---------- Rechtliches ---------- */

.legal .inner { grid-column: 1 / 8; }
/* Imprint/Privacy: Überschriften in Kepler Std bold statt Selaris */
.legal .hl { font-family: var(--ui); font-weight: 700; -webkit-text-stroke: 0; letter-spacing: 0; }
.legal .hl.page-title { font-size: 0.944rem; }
.legal h2.hl { margin: var(--s3) 0 var(--s1); font-size: 0.944rem; }
.legal h3 { font-family: var(--ui); font-weight: 700; font-size: 0.944rem; margin: 1.6rem 0 0.4rem; }
.legal .copy a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.12em; }
.legal .note { font-size: 0.778rem; color: var(--muted); }

/* ---------- Fußzeile ---------- */

.site-footer { margin-top: clamp(120px, 27vw, 480px); padding-bottom: clamp(48px, 6vw, 110px); }
.site-footer .rule { margin-bottom: var(--s1); }
.site-footer .row { display: flex; gap: clamp(20px, 2.2vw, 40px); align-items: baseline; font-family: var(--ui); font-size: 0.944rem; color: var(--muted); }
.site-footer a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.14em; }
.site-footer a:hover { color: var(--ink); }
.site-footer .totop { margin-left: auto; text-decoration: none; }

/* ---------- Einblenden beim Scrollen ---------- */
.fade { opacity: 0; transform: translateY(26px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.fade.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade { opacity: 1; transform: none; transition: none; }
  .frame img, .slides img { transition: none; }
}

/* ==========================================================
   Tablet
   ========================================================== */
@media (max-width: 1024px) {
  :root { --margin: 6vw; --gap: 2.4vw; }
  .currently .text { padding-top: 0; align-self: center; }
  .project .text, .project.flip .text { align-self: center; }
}

/* ==========================================================
   Mobil
   ========================================================== */
@media (max-width: 760px) {
  :root { --margin: 20px; --gap: 16px; --s4: 64px; --s5: 88px; }
  html { font-size: 16.5px; }

  .menu-toggle { display: block; position: relative; z-index: 60; }
  .main-nav {
    position: fixed; inset: 0; background: #fff; z-index: 55;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s;
  }
  .main-nav.open { opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: center; gap: 26px; }
  .main-nav a { font-family: var(--display); font-size: 30px; text-transform: uppercase; }
  .logo { position: relative; z-index: 60; }
  .site-header.menu-open { background: transparent !important; transform: none !important; }

  .hero { height: 78vh; height: 78svh; }
  .hero-caption { grid-column: 1 / -1; text-align: left; font-size: 0.85rem; }

  .grid > *, .project > *, .ref > *, .j-entry > *, .contact-grid > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .currently .text { padding-top: var(--s2); }
  .pair-a .c2, .pair-b .c1, .pair-b .c2 { margin-top: var(--s4); }
  .pair-a .c2 { width: 82%; margin-left: auto; }
  .pair-b .c1 { width: 82%; margin-top: var(--s4); }
  .pair-b { margin-top: 0; }
  .fullbleed .frame { height: 110vw; }

  .project { padding-bottom: var(--s4); }
  .project .text { padding-top: var(--s2); }
  .project.flip .media { order: 0; }
  .project.flip .text { order: 1; }
  .project { display: flex; flex-direction: column; align-items: stretch; }
  .project.wide .frame { height: 100vw; }

  .slides .half { display: none; }
  .slider-arrows button { padding: 10px; }

  .ref, .j-entry { display: flex; flex-direction: column; }
  .ref .media, .j-img { order: -1; margin-bottom: var(--s2); }
  .j-img { max-width: 100%; }

  .exhibitions .inner { grid-column: 1 / -1; }
  .contact-grid .right { margin-top: var(--s4); }
  .legal .inner { grid-column: 1 / -1; }

  .sub-nav, .tabs { gap: 22px; }
  .site-footer .row { flex-wrap: wrap; }
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Startseite: Bildausschnitt wie im Entwurf */
.hero img.hero-home { max-width: none; width: 140%; height: auto; left: -3%; top: -150%; }
@media (max-width: 760px) { .hero img.hero-home { width: 100%; height: 118%; left: 0; top: -9%; object-position: 30% 70%; } }

/* Startseite: rechte Poldi-Lampen weiter oben im Ausschnitt (unten weniger abgeschnitten) */
.pair-a .c2 .frame img:not(.alt) { object-position: 50% 100%; }

/* Hauptnavigation: Strich naeher am Text */
.main-nav a, .sub-nav a { padding-bottom: 0; }
.main-nav a::after, .sub-nav a::after { bottom: 0.08em; }

/* Work/Tableware: Titelbild wie im Entwurf (ganze Bildhoehe, mehr von den Tellern) */
.hero img.hero-tw { height: 104%; top: -2%; object-position: 55% 50%; }

/* Modular Side Tables (Startseite + Work): Ausschnitt wie im Entwurf, obere Tische ganz sichtbar */
.fullbleed .frame, .project.wide .frame { height: 74.5vw; max-height: 1400px; }
.fullbleed .frame img, .project.wide .frame img { object-position: 50% 15%; }
@media (max-width: 760px) { .fullbleed .frame { height: 110vw; } .project.wide .frame { height: 100vw; } }

/* Studio/References: Projekt mit mehreren Bildern im 4:5-Format (Slider) */
.ref .media .slides img { aspect-ratio: auto; height: 100%; }

/* Imprint/Privacy: alle Ueberschriften wie die Projekt-Ueberschriften (HL 02) */
.legal .hl, .legal h3 { font-family: var(--copy); font-style: normal; font-weight: 600; font-variation-settings: normal; font-size: 0.944rem; line-height: 1.35; -webkit-text-stroke: 0; letter-spacing: 0; }

/* Journal: ohne Trennlinien (zum Ausprobieren) */
.j-entry, .j-more { border-top: 0; }

/* Kopfzeile: Navigation auf derselben Grundlinie wie das Logo */
.site-header .wrap { align-items: baseline; }
.main-nav ul { align-items: baseline; }

/* ==========================================================
   Mobil – Feinschliff
   ========================================================== */
@media (max-width: 760px) {
  /* Bildunterschrift Startseite rechtsbündig */
  .hero-caption { text-align: right; }

  /* Logo größer und so kräftig wie die Überschriften */
  .logo { font-size: 29px; -webkit-text-stroke: 0.014em currentColor; paint-order: stroke fill; }

  /* Burger-Menü: drei Striche, geöffnet ein X */
  .menu-toggle { width: 30px; height: 22px; padding: 0; position: relative; align-self: center; }
  .menu-toggle span { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .35s ease, opacity .2s ease, top .35s ease; }
  .menu-toggle span:nth-child(1) { top: 3px; }
  .menu-toggle span:nth-child(2) { top: 10px; }
  .menu-toggle span:nth-child(3) { top: 17px; }
  .menu-open .menu-toggle span:nth-child(1) { top: 10px; transform: rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

  /* Menüpunkte zentriert */
  .main-nav ul { align-items: center; text-align: center; }
  .site-header .wrap { align-items: center; }
}

/* Mobil: CURRENTLY-Überschrift über dem Bild, Abstände wie bei SELECTED WORKS */
@media (max-width: 760px) {
  .currently { display: flex; flex-direction: column; padding-top: var(--s4); }
  .currently .text { display: contents; }
  .currently .hl { order: -1; margin-bottom: var(--s3); }
  .currently figure { margin-bottom: var(--s2); }
}

/* Mobil: Logo + Burger etwas tiefer, Logo etwas weniger kräftig */
@media (max-width: 760px) {
  .site-header:not(.is-fixed) .wrap { padding-top: 32px; }
  .logo { -webkit-text-stroke-width: 0.007em; }
}

/* Mobil: mehr Weissraum zwischen Bildunterschrift und ABOUT */
@media (max-width: 760px) { .home-about { margin-top: 56px; } }

/* Work: Striche unter Furniture/Tableware so nah am Text wie bei Hauptnavigation und Studio */
.tabs button { padding-bottom: 0; }
.tabs button::after { bottom: 0.08em; }

/* Mobil Works: mehr Luft um WORKS und zwischen Zaehler und Projekt-Ueberschrift */
@media (max-width: 760px) {
  .work-intro { padding-top: 56px; }
  .work-intro .hl { margin-bottom: 40px; }
  .project .text { padding-top: 40px; }
}

/* Mobil: einheitlicher Abstand Sektions-Ueberschrift -> Inhalt (wie CURRENTLY / SELECTED WORKS) */
@media (max-width: 760px) {
  .work-intro .hl, .references > .wrap > .hl, .exhibitions .hl, .st-about .hl, .home-about .hl, .currently .hl, .selected > .wrap > .hl { margin-bottom: var(--s3); }
}

/* Mobil: Antippen der linken/rechten Bildhaelfte blaettert zurueck/weiter (zusaetzlich zum Wischen) */
@media (max-width: 760px) { .slides .half { display: block; -webkit-tap-highlight-color: transparent; } .slider.single .half { display: none; } }

/* Mobil Studio/References: Bilder volle Breite, mehr Abstand Bild -> Ueberschrift */
@media (max-width: 760px) {
  .ref .media { width: 100%; margin-bottom: var(--s3); }
  .ref-slider .counter { margin-bottom: 0; }
}

/* Touch-Geräte: kein "hängenbleibender" Hover-Strich nach dem Antippen */
@media (hover: none) {
  .sub-nav a:hover:not(.is-active)::after,
  .tabs button:hover:not([aria-selected="true"])::after,
  .main-nav a:hover:not([aria-current="page"])::after { transform: scaleX(0); }
}

/* Mobil Journal: Abstand Bild -> Ueberschrift wie bei References */
@media (max-width: 760px) { .j-img { margin-bottom: var(--s3); } }
@media (max-width: 760px) { .j-list { padding-top: 0; } .j-entry:first-child { padding-top: 0; } }
@media (max-width: 760px) { .j-img { margin-bottom: 44px; } }

/* Journal mobil: Ueberschriften wie Works-Projekte (Kepler semibold 17), Desktop bleibt Selaris */
@media (max-width: 760px) { .j-text .hl { font-family: var(--copy); font-style: normal; font-weight: 600; font-variation-settings: normal; font-size: 0.944rem; line-height: 1.35; -webkit-text-stroke: 0; letter-spacing: 0; text-transform: none; } }

@media (max-width: 760px) { .ref .media { margin-bottom: 44px; } }

/* ---------- Contact NEU (Entwurf 05_contact_NEW) ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page-contact main { padding-top: clamp(130px, 16.5vw, 300px); }
.contact-grid { padding-top: 0; }
.contact-form { grid-column: 1 / 6; }
.cfield { display: block; }
.cfield + .cfield { margin-top: 30px; }
.cfield span { display: block; font-family: var(--ui); font-size: 0.944rem; color: #5f5f5f; }
.cfield input, .cfield textarea {
  display: block; width: 100%; margin: 0; padding: 0.4rem 0 0.5rem;
  border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent;
  font-family: var(--ui); font-size: 0.944rem; line-height: 1.4; color: var(--ink); outline: none;
}
.cfield input { height: 54px; padding-top: 16px; }
.cfield textarea { height: 140px; resize: none; }
.contact-form button.link { margin-top: 34px; }
.contact-form .form-msg { margin-top: var(--s1); }
.contact-rule { margin-top: clamp(64px, 8vw, 150px); }
.contact-info { padding-top: 70px; }
.contact-info .right { grid-column: 7 / 11; }
.contact-info p { margin: 0; }
.contact-info p + p { margin-top: 26px; }
.contact-info .address { margin-bottom: 0; }
@media (max-width: 760px) {
  .contact-rule { margin-top: 64px; }
  .contact-info { padding-top: 44px; }
  .cfield input { height: 50px; }
  .page-contact main { padding-top: 150px; }
}

/* ---------- Journal NEU (Entwurf 04_journal_NEW): weitere Einträge ohne Bild, mit Monat/Jahr ---------- */
.j-sep { margin-top: var(--s3); }
.j-entry.j-plain { padding-block: 0; }
.j-sep + .j-plain { padding-top: clamp(56px, 7vw, 120px); }
.j-plain + .j-plain { padding-top: clamp(64px, 8.5vw, 150px); }
.j-entry.j-plain .j-text { grid-column: 1 / 7; }
.j-date { font-family: var(--ui); font-size: 0.944rem; line-height: 1.4; margin: 0 0 4px; }
.j-title { font-family: var(--copy); font-style: normal; font-weight: 600; font-variation-settings: normal; font-size: 0.944rem; line-height: 1.35; margin: 0 0 1.4em; letter-spacing: 0; }
.j-more { border-top: 1px solid var(--line); margin-top: var(--s3); padding-top: var(--s1); }
.j-plain:not([hidden]) ~ .j-more, .j-list:has(.j-plain:not([hidden])) + .j-more { margin-top: clamp(80px, 11vw, 190px); }
@media (max-width: 760px) {
  .j-entry.j-plain { display: block; }
  .j-sep { margin-top: 56px; }
}
/* Journal NEU: ohne Seitenüberschrift, erstes Bild ab Spalte 1 */
.page-journal .j-list { padding-top: 0; }
.page-journal .j-entry.first { padding-top: 0; }
.j-entry.first .j-img { grid-column: 1 / 5; }
.j-entry.first .j-text { grid-column: 6 / 11; }
.page-journal main { padding-top: clamp(120px, 16vw, 290px); }
@media (max-width: 760px) { .page-journal main { padding-top: 150px; } }
#back-to-top[hidden] { display: none; }
/* Journal mobil: alle Einträge sichtbar, Trennstrich unter dem ersten, kein See more */
@media (max-width: 760px) {
  .page-journal .j-entry.j-plain[hidden], .page-journal .j-sep[hidden] { display: block; }
  .page-journal #see-more { display: none; }
  .page-journal #back-to-top[hidden] { display: inline-flex; }
  .page-journal .j-more { justify-content: flex-end; }
  .page-journal .j-sep { margin-top: 56px; }
}
.ref .media.r45 img { aspect-ratio: 4 / 5; }
/* Referenzen: etwas weniger Abstand zwischen den Beiträgen */
.ref { padding-bottom: var(--s3); }
.ref + .ref { padding-top: var(--s3); }
@media (max-width: 760px) { .ref { padding-bottom: 48px; } .ref + .ref { padding-top: 48px; } }
@media (max-width: 760px) { .project { padding-bottom: 96px; } } /* TEST Works mobil: mehr Abstand zwischen Projekten (vorher 56px) */
/* Kontaktformular: unsichtbares Feld gegen Spam-Bots */
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg a { color: inherit; text-decoration: underline; text-underline-offset: 0.2em; }
/* Mobil: Menü im Vollbild so groß und kräftig wie TANJA NEUBERT */
@media (max-width: 760px) {
  .main-nav a { font-size: 29px; letter-spacing: 0.005em; -webkit-text-stroke: 0.007em currentColor; paint-order: stroke fill; }
}
