@font-face {
  font-family: "Overused Grotesk";
  src: url("../fonts/OverusedGrotesk-Roman.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Overused Grotesk";
  src: url("../fonts/OverusedGrotesk-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Overused Grotesk";
  src: url("../fonts/OverusedGrotesk-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Overused Grotesk";
  src: url("../fonts/OverusedGrotesk-MediumItalic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

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

:root {
  /* Warm clay / cream – softer contrast with photo palette */
  --bg: oklch(0.94 0.018 78);
  --ink: oklch(0.34 0.028 52);
  --ink-soft: color-mix(in oklch, var(--ink) 42%, transparent);
  --panel: oklch(0.955 0.014 78);
    --accent-blue: #4f7eb8;
  --accent-terra: #e06a32;
  --accent-mint: #3f8f78;
  --orb-opacity: 0.72;
  --pad: 1rem;
  --index-lh: 0.95;
  --focus-ring: 2px solid var(--ink);
  --focus-offset: 3px;
  --panel-pad-inline: max(var(--pad), env(safe-area-inset-right, 0px));
  --fit-w: 100%;
  /* Desktop: 50% Fit-Breite */
  --panel-w: calc(var(--fit-w) * 0.5);
  --portrait-w: min(28vw, 22rem);
}

html {
  height: 100%;
  overflow-x: clip;
}

body {
  min-height: 100%;
  font-family: "Overused Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-synthesis: none;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0, "dlig" 0, "calt" 0;
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  left: var(--pad);
  top: 0;
  z-index: 400;
  padding: 0.55rem 1rem;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.85rem;
  text-decoration: none;
  transform: translateY(-120%);
}

.skip-link:focus-visible {
  transform: translateY(var(--pad));
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

/* Blur-Orbs: wechselt durch die gesetzten Farbkreis-Farben */
.bg-orb {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-orb__layer {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(110vmin, 52rem);
  height: min(110vmin, 52rem);
  border-radius: 50%;
  opacity: 0;
  filter: blur(48px) saturate(1.28);
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.85s ease;
  animation: hero-orb-grow 5.5s ease-in-out infinite alternate;
  background: radial-gradient(
    circle at 48% 42%,
    color-mix(in srgb, var(--orb-layer-color) 94%, transparent) 0%,
    color-mix(in srgb, var(--orb-layer-color) 70%, transparent) 22%,
    color-mix(in srgb, var(--orb-layer-color) 40%, transparent) 48%,
    color-mix(in srgb, var(--orb-layer-color) 15%, transparent) 68%,
    transparent 78%
  );
}

.bg-orb__layer.is-active {
  opacity: var(--orb-opacity);
}

@keyframes hero-orb-grow {
  0% {
    transform: translate(-50%, -50%) scale(0.82);
  }

  100% {
    transform: translate(-50%, -50%) scale(1.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-orb__layer {
    animation: none;
    transition: none;
  }
}

.shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  padding:
    max(var(--pad), env(safe-area-inset-top, 0px))
    max(var(--pad), env(safe-area-inset-right, 0px))
    max(var(--pad), env(safe-area-inset-bottom, 0px))
    max(var(--pad), env(safe-area-inset-left, 0px));
}

.index {
  width: 100%;
  max-width: min(100%, calc(100vw - var(--portrait-w) - 3rem));
}

.index__fit {
  display: block;
  width: 100%;
  margin: 0;
  font-size: 2.5rem; /* JS fit-text überschreibt */
  font-weight: 400;
  line-height: var(--index-lh);
  letter-spacing: -0.015em;
}

.index__brand {
  display: block;
  width: 100%;
  margin-bottom: 0.85em;
}

.index__nav {
  display: block;
  width: 100%;
}

.index__block {
  display: block;
  width: 100%;
}

.index__link {
  display: block;
  width: fit-content;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  white-space: nowrap;
  color: inherit;
  text-decoration: none;
  /* Farbe weich; Spiegelung ohne sichtbaren Flip (0s), Hover verzögert */
  transition:
    color 0.85s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0s linear 0s;
  outline: none;
  transform: scaleX(1);
  transform-origin: center;
}

.index__link--brand {
  display: block;
}

.index__link--nav {
  display: block;
}

.index__link:hover,
.index__link:focus-visible {
  transform: scaleX(-1);
  transition:
    color 0.85s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0s linear 0.22s;
}

.index__link.is-active {
  transform: scaleX(-1);
  transition:
    color 0.85s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0s linear 0s;
}

.index__link[data-accent]:hover,
.index__link[data-accent]:focus-visible,
.index__link[data-accent].is-active {
  color: var(--item-accent);
  text-decoration: none;
}

.index__link:focus-visible {
  outline: none;
}

/* Portrait rechts, vertikal ruhig mittig — größer als Corner-Pin */
.corner-portrait {
  position: fixed;
  right: max(var(--pad), env(safe-area-inset-right, 0px));
  top: 50%;
  bottom: auto;
  z-index: 2;
  display: block;
  width: var(--portrait-w);
  max-height: min(72vh, 32rem);
  line-height: 0;
  text-decoration: none;
  color: inherit;
  transform: translateY(-50%);
}

.corner-portrait__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(72vh, 32rem);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 42%;
  background: color-mix(in oklch, var(--ink) 5%, var(--bg));
}

.corner-portrait:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

body.is-modal-open .corner-portrait {
  pointer-events: none;
}

/* Impressum-Link im Kontakt-Modal */
.panel__impressum {
  margin-top: 1rem;
  padding-top: 0;
  border-top: 0;
  font-size: 14px;
  font-weight: 500;
  font-style: normal;
  line-height: 1.25;
}

.panel__impressum a {
  font-size: 14px;
  font-weight: 500;
  font-style: normal;
  color: var(--ink);
  text-decoration: none;
}

.panel__meta,
.panel__meta * {
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.25;
}

.panel__impressum a:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

/* Modal: rechts oben, Breite bis optische Mitte, Fade */
.panel {
  position: fixed;
  inset: 0;
  z-index: 400;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding:
    max(var(--pad), env(safe-area-inset-top, 0px))
    var(--panel-pad-inline)
    max(var(--pad), env(safe-area-inset-bottom, 0px))
    max(var(--pad), env(safe-area-inset-left, 0px));
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: auto;
}

.panel::backdrop {
  background: transparent;
}

.panel[open] {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  overflow: visible;
}

.panel__inner {
  --panel-tone: var(--panel);
  --panel-glow: transparent;
  --panel-glow-soft: transparent;
  position: relative;
  display: flex;
  flex-direction: column;
  width: var(--panel-w);
  max-width: var(--panel-w);
  height: 100%;
  max-height: none;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--panel-tone);
  color: var(--ink);
  font-weight: 500;
  padding: 0.75rem 0.85rem 1.1rem;
  opacity: 0;
  transition: opacity 0.35s ease;
  will-change: opacity;
  /*
   * Schicht 1: gleiche Tone-Farbe weich ausbreiten (= kein harter Rand)
   * Schicht 2–3: stärkerer Blur wie zuvor
   */
  box-shadow:
    0 0 18px 10px var(--panel-tone),
    0 0 36px 22px var(--panel-glow),
    0 0 68px 40px var(--panel-glow-soft);
}

.panel__inner[data-accent] {
  --panel-tone: color-mix(in srgb, var(--accent) 42%, white);
  --panel-glow: color-mix(in srgb, var(--accent) 55%, transparent);
  --panel-glow-soft: color-mix(in srgb, var(--accent) 28%, transparent);
}

.panel.is-in .panel__inner {
  opacity: 1;
}

.panel.is-out .panel__inner {
  opacity: 0;
}

.panel__inner--media {
  width: var(--panel-w);
  max-width: var(--panel-w);
  height: 100%;
  min-height: 100%;
  padding: 0;
  background: var(--panel-tone);
}

.panel__inner--media .panel__top {
  padding: 0.75rem 0.85rem 0;
  flex-shrink: 0;
}

.panel__inner--media .panel__caption {
  flex-shrink: 0;
  margin-top: auto;
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}

.panel__view {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.panel__view[hidden] {
  display: none !important;
}

.panel__view--media {
  min-height: 0;
}

.panel__view--text {
  overflow: auto;
  padding: 0 0.85rem;
}

.panel__inner--media[data-panel-view="text"] .panel__view--text .panel__hero {
  margin-top: 1.75rem;
  margin-bottom: 2rem;
}

.panel__inner--media .panel__figure {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.panel__inner--media .panel__photo {
  flex: none;
  min-height: 0;
  max-height: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

/* Portrait-Slider (4 Varianten) */
.panel__slider {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.panel__slider-viewport {
  position: relative;
  flex: 1 1 auto;
  min-height: 12rem;
  overflow: hidden;
  cursor: pointer;
  /*
   * Weicher Bildrand (wie Panel-Glow): Mitte scharf,
   * alle vier Kanten leicht in --panel-tone auslaufen.
   */
  -webkit-mask-image:
    linear-gradient(
      to right,
      transparent 0%,
      #000 7%,
      #000 93%,
      transparent 100%
    ),
    linear-gradient(
      to bottom,
      transparent 0%,
      #000 6%,
      #000 94%,
      transparent 100%
    );
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(
      to right,
      transparent 0%,
      #000 7%,
      #000 93%,
      transparent 100%
    ),
    linear-gradient(
      to bottom,
      transparent 0%,
      #000 6%,
      #000 94%,
      transparent 100%
    );
  mask-composite: intersect;
}

.panel__slider-viewport::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  box-shadow:
    inset 0 0 18px 10px var(--panel-tone),
    inset 0 0 36px 22px color-mix(in oklch, var(--panel-tone) 55%, transparent);
}

.panel__slider-track {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  width: 100%;
  height: 100%;
}

.panel__slider-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.panel__slider-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.panel__slider-slide .panel__photo {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center 42%;
  background: color-mix(in oklch, var(--ink) 5%, var(--bg));
}

.panel__slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.65rem 0.15rem;
}

.panel__slider-btn {
  appearance: none;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  font-style: normal;
  line-height: 1.25;
  letter-spacing: -0.02em;
  padding: 0.15rem 0.2rem;
  cursor: pointer;
}

.panel__slider-btn:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.panel__slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.panel__slider-dot {
  appearance: none;
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.panel__slider-dot.is-active {
  background: var(--ink);
}

.panel__slider-dot:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

@media (prefers-reduced-motion: reduce) {
  .panel__slider-slide {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .index__link,
  .index__link:hover,
  .index__link:focus-visible,
  .index__link.is-active {
    transition: color 0.25s ease;
    transform: none;
  }

  .panel__inner {
    transition: none;
    opacity: 1;
  }

  .panel.is-out .panel__inner {
    opacity: 1;
  }
}

.panel__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.35rem;
}

.panel__label {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}

.panel__hero {
  margin: 2.5rem auto 2.75rem;
  max-width: 22ch;
  font-size: clamp(1.55rem, 2.8vw, 1.85rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--ink);
}

.panel__hero address {
  font-style: italic;
}

.panel__hero--price {
  max-width: none;
}

.panel__title {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}

.panel__close,
.panel__more {
  appearance: none;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
}

.panel__close {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
}

.panel__more {
  font-size: 14px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.25;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.panel__close:hover,
.panel__close:focus-visible {
  text-decoration: none;
  color: var(--ink);
}

.panel__more:hover,
.panel__more:focus-visible {
  text-decoration: underline;
  color: var(--ink);
}

.panel__close:focus-visible,
.panel__more:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.panel__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  font-size: 1.2rem;
  font-weight: 500;
  font-style: normal;
  line-height: 1.45;
  color: var(--ink);
}

.panel__copy,
.panel__copy * {
  font-style: normal;
  font-weight: 500;
}

.panel__body p + p,
.panel__body ul {
  margin-top: 0.85rem;
}

.panel__body ul {
  list-style: none;
}

.panel__body li + li {
  margin-top: 0.45rem;
}

.panel__body a {
  color: var(--ink);
  text-decoration: none;
}

.panel__body address {
  font-style: normal;
  color: var(--ink);
}

.panel__body--cols,
.panel__body--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 1.25rem 1.75rem;
}

.panel__body--split {
  margin-top: 0;
  padding-top: 1.15rem;
  border-top: 1px solid var(--ink);
}

.panel__info {
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  font-style: normal;
  line-height: 1.25;
}

.panel__info p,
.panel__info em,
.panel__info a,
.panel__info address {
  font-size: 14px;
  font-weight: 500;
  font-style: normal;
  line-height: 1.25;
  margin: 0;
}

.panel__info p {
  white-space: nowrap;
}

.panel__info p + p {
  margin-top: 0;
}

.panel__info address {
  font-style: normal;
  white-space: normal;
  display: block;
}

.panel__copy {
  min-width: 0;
}

.panel__note {
  margin-top: 0;
  color: var(--ink);
  font-weight: 500;
}

.panel__figure {
  margin: 0;
}

.panel__photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(70vh, 36rem);
  object-fit: cover;
  object-position: center 42%;
  background: color-mix(in srgb, var(--ink) 6%, var(--bg));
}

/* Querformat-Portrait: Körper zentriert */
.panel__photo--face {
  height: min(70vh, 36rem);
  object-fit: cover;
  object-position: center 42%;
}

.panel__caption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.65rem 0.7rem;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  background: transparent;
}

.panel__caption--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 1.25rem 1.75rem;
  margin-top: 0;
  padding-top: 1.15rem;
  border-top: 1px solid var(--ink);
}

.panel__caption--split .panel__info p + p {
  margin-top: 0;
}

.panel__caption-actions {
  display: flex;
  gap: 0.85rem;
  flex-shrink: 0;
  align-items: baseline;
  justify-content: flex-end;
  text-align: right;
  line-height: 1.25;
}

.panel__copy.panel__caption-actions .panel__more,
.panel__caption-actions .panel__more {
  font-size: 14px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.25;
  text-decoration: underline;
}

/* Tablet: 70% Fit-Breite */
@media (max-width: 1024px) {
  :root {
    --panel-w: calc(var(--fit-w) * 0.7);
  }
}

/* Mobile: 80% Fit-Breite */
@media (max-width: 640px) {
  :root {
    --panel-w: calc(var(--fit-w) * 0.8);
    --portrait-w: min(28vw, 6.5rem);
  }

  .panel__body--cols,
  .panel__body--split,
  .panel__caption--split {
    grid-template-columns: 1fr;
  }

  .panel__hero {
    max-width: none;
    margin-top: 1.75rem;
    margin-bottom: 2rem;
  }

  .panel__caption {
    flex-direction: column;
  }

  .index {
    max-width: 100%;
  }

  .index__fit {
    letter-spacing: -0.02em;
    padding-right: 0;
  }

  .index__brand {
    margin-bottom: 0.7em;
  }

  .corner-portrait {
    position: static;
    transform: none;
    right: auto;
    top: auto;
    z-index: 1;
    width: 100%;
    max-height: none;
    margin: clamp(1.25rem, 5vw, 2rem) 0 0;
  }

  .corner-portrait__img {
    width: 100%;
    max-height: none;
  }
}

body.is-modal-open .index,
body.is-modal-open .corner-portrait {
  pointer-events: none;
}
