/* Schrift: Minion Variable Concept, wenn auf dem Gerät vorhanden.
   Sonst die frei lizenzierte Crimson Pro, die von dieser Website selbst geladen wird. */
@font-face {
  font-family: "Crimson Pro";
  src: url("fonts/crimson-pro-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fbfaf8;
  --ink: #2f3447;
  --ink-soft: #5c6177;
  --accent: #4b5fa8;
  --line: #e6e3dd;
  --sky: #dfe7f6;
  --rose: #f7dfe5;
  --mint: #dcefe6;
  --butter: #f8edcc;
  --lilac: #e6e0f3;
  --serif: "Minion Variable Concept", "Minion 3", "Minion Pro", "Crimson Pro", Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  position: relative;
  overflow-x: clip;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.6;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible {
  outline: 3px solid #9fb3e6;
  outline-offset: 3px;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px 150px;
}

/* Aquarell-Flächen aus der Visitenkarte, ruhig im Hintergrund an den Rändern */
.wash {
  position: absolute;
  z-index: -1;
  height: auto;
  pointer-events: none;
  user-select: none;
}
.wash-blue  { top: 0;    left: 0;  width: min(30vw, 360px); opacity: .55; }
.wash-lilac { top: 0;    right: 0; width: min(30vw, 380px); opacity: .6; }
.wash-mint  { bottom: 0; left: 0;  width: min(30vw, 340px); opacity: .6; }
.wash-pink  { bottom: 0; right: 0; width: min(32vw, 380px); opacity: .5; transform: scaleY(-1); }

/* Kopfbereich */
.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  align-items: baseline;
  justify-content: space-between;
  padding: 26px 0;
}
.site-header .brand {
  font-variant-caps: small-caps;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}
.site-header nav { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 1.15rem; }
.site-header nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.site-header nav a:hover { color: var(--ink); border-bottom-color: #b9c9ea; }
.site-header nav a[aria-current="page"] { color: var(--ink); border-bottom-color: #b9c9ea; }

/* Startbereich */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 44px 0 88px;
}
.hero-logo {
  display: block;
  width: 98px;
  height: auto;
  margin: 0 0 28px;
}
.hero h1 {
  font-variant-caps: small-caps;
  font-weight: 600;
  font-size: clamp(2.7rem, 6.4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: 0.02em;
  margin: 0 0 22px;
}
.hero .lead {
  font-size: 1.45rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 26em;
  margin: 0;
}
.hero-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
  border-radius: 6px;
  background: var(--sky);
}

/* Abschnitte */
section { padding: 80px 0; border-top: 1px solid var(--line); }
h2 {
  font-weight: 600;
  font-size: clamp(1.9rem, 3.8vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0 0 22px;
}
.prose { max-width: 36em; }
.prose p { margin: 0 0 1.1em; }

.buttons { display: flex; flex-wrap: wrap; gap: 12px 14px; margin-top: 10px; }
.button {
  display: inline-block;
  margin-top: 10px;
  padding: 11px 28px;
  background: var(--sky);
  color: var(--ink);
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  border-radius: 999px;
}
.buttons .button { margin-top: 0; }
.button:hover { background: #cdd9f1; }
.button-alt { background: var(--rose); }
.button-alt:hover { background: #f1cdd7; }

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 24px;
  margin: 28px 0 8px;
  font-size: 1.15rem;
}
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; }

.button .btn-icon { width: 24px; height: 24px; vertical-align: -6px; margin-right: 10px; border-radius: 6px; }

.side-by-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 56px; align-items: center; }
.side-photo { width: 100%; height: auto; display: block; border-radius: 6px; background: var(--sky); }

/* Seite Werke */
.page-title { padding: 24px 0 8px; }
.page-title h1 {
  font-variant-caps: small-caps;
  font-weight: 600;
  font-size: clamp(2.3rem, 5.4vw, 3.4rem);
  letter-spacing: 0.03em;
  margin: 0 0 14px;
}
.page-title p { max-width: 34em; color: var(--ink-soft); margin: 0; }

.chapter { padding: 64px 0 24px; border-top: 1px solid var(--line); margin-top: 48px; }
.chapter:first-of-type { margin-top: 32px; }
.chapter-head {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px 24px;
  align-items: start;
  margin-bottom: 36px;
}
.chapter-no {
  font-weight: 600;
  font-size: 2.8rem;
  line-height: 1;
  color: var(--chapter-ink, var(--accent));
}
.chapter-head.has-view { grid-template-columns: 56px minmax(0, 1fr) 240px; gap: 8px 40px; }
.chapter-head.no-num { grid-template-columns: 1fr; }
.chapter-head.no-num.has-view { grid-template-columns: minmax(0, 1fr) 240px; }
.chapter-head p { margin: 0; max-width: 36em; }
.chapter-view { margin: 0; }
.chapter-view img { width: 100%; height: auto; display: block; border-radius: 4px; }
.chapter-view figcaption { padding-top: 8px; font-size: 1rem; color: var(--ink-soft); }
.chapter-title {
  font-weight: 600;
  font-size: clamp(1.55rem, 3.2vw, 1.95rem);
  line-height: 1.2;
  margin: 0 0 12px;
}

.works {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 40px 28px;
}
.work { margin: 0; }
.work .frame {
  aspect-ratio: 1 / 1;
  background: var(--tint, #eeece6);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.work .frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work .frame.placeholder { color: var(--ink-soft); font-size: 1.1rem; }
.work figcaption { padding-top: 14px; font-size: 1.1rem; line-height: 1.45; }
.work .title { font-weight: 600; font-size: 1.2rem; display: block; }
.work .meta { color: var(--ink-soft); display: block; }
.work .ask { display: inline-block; margin-top: 8px; font-weight: 600; }

button.zoom { border: 0; padding: 0; width: 100%; cursor: zoom-in; font: inherit; }
button.zoom:focus-visible { outline: 3px solid #9fb3e6; outline-offset: 3px; }

/* Grosse Bildansicht */
#lightbox {
  border: 0; padding: 0; background: transparent; color: #fff;
  width: 100vw; height: 100vh; max-width: none; max-height: none;
}
#lightbox[open] { display: flex; align-items: center; justify-content: center; gap: 12px; }
#lightbox::backdrop { background: rgba(35, 38, 54, .88); }
#lightbox figure { margin: 0; text-align: center; max-width: min(92vw, 1100px); }
#lightbox img { display: block; max-width: 100%; max-height: calc(100vh - 120px); margin: 0 auto; border-radius: 4px; }
#lightbox figcaption { padding-top: 12px; font-size: 1.1rem; }
.lb-close, .lb-nav {
  background: rgba(255,255,255,.16); color: #fff; border: 0; border-radius: 999px;
  width: 48px; height: 48px; font-size: 2rem; line-height: 1; cursor: pointer; flex: none;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.3); }
.lb-close { position: fixed; top: 16px; right: 16px; }
@media (max-width: 760px) {
  #lightbox[open] { gap: 4px; }
  .lb-nav { width: 40px; height: 40px; }
}

/* Kalender-Prints als Liste */
.print-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0 40px;
  max-width: 920px;
}
.print-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.1rem;
  line-height: 1.4;
}
.print-list .p-title { font-weight: 600; }
.print-list .p-meta { grid-column: 1; color: var(--ink-soft); }
.print-list .ask { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 600; }
.todo-note { margin: 20px 0 0; font-size: 1.05rem; }

/* Fuss */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 0;
  margin-top: 80px;
  font-size: 1.05rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}
.site-footer a { color: var(--ink-soft); }

/* Rechtsseiten */
.legal { padding: 32px 0 24px; max-width: 40em; }
.legal h1 { font-weight: 600; font-size: 2.4rem; margin: 0 0 24px; }
.legal h2 { font-size: 1.4rem; margin: 32px 0 8px; }
.todo { background: #fbeeb6; padding: 0 4px; }

@media (max-width: 760px) {
  body { font-size: 1.2rem; }
  .wrap { padding-bottom: 110px; }
  .hero { grid-template-columns: 1fr; padding: 24px 0 56px; gap: 36px; }
  .hero-logo { width: 80px; margin-bottom: 20px; }
  .hero-photo { max-width: 440px; }
  section { padding: 56px 0; }
  .chapter-head,
  .chapter-head.has-view,
  .chapter-head.no-num,
  .chapter-head.no-num.has-view { grid-template-columns: 1fr; }
  .chapter-view { max-width: 300px; margin-top: 12px; }
  .chapter-no { font-size: 2.2rem; }
  .side-by-side { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dd { margin-bottom: 10px; }
  .wash-blue  { width: 46vw; }
  .wash-lilac { width: 40vw; opacity: .45; }
  .wash-mint  { width: 46vw; }
  .wash-pink  { width: 46vw; }
}

/* Kapitel-Kurzmenü und Nach-oben-Knopf */
.chapter-nav { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 28px 0 0; }
.chapter-nav a {
  padding: 6px 18px; border-radius: 999px; background: var(--sky);
  color: var(--ink); text-decoration: none; font-size: 1.05rem;
}
.chapter-nav a:nth-child(2) { background: var(--rose); }
.chapter-nav a:nth-child(3) { background: var(--mint); }
.chapter-nav a:nth-child(4) { background: var(--butter); }
.chapter-nav a:nth-child(5) { background: var(--lilac); }
.chapter-nav a:hover { filter: brightness(.96); }
.chapter { scroll-margin-top: 16px; }
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  width: 46px; height: 46px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--sky); color: var(--ink); text-decoration: none; font-size: 1.5rem;
  box-shadow: 0 2px 10px rgba(47, 52, 71, .15);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.to-top.show { opacity: 1; pointer-events: auto; }

/* Sprachumschalter */
.header-right { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; }
.lang-switch {
  display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px;
  background: rgba(223, 231, 246, .75); font-size: .95rem; letter-spacing: .04em;
}
.lang-switch a {
  padding: 1px 12px; border-radius: 999px; color: var(--ink-soft); text-decoration: none;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="true"] { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(47,52,71,.12); }
@media (max-width: 760px) {
  .site-header { position: relative; }
  .lang-switch { position: absolute; top: 22px; right: 0; }
}

/* Auswahl 1/2, 2/2 in der Bildansicht */
.lb-pills { display: flex; justify-content: center; gap: 8px; padding-top: 10px; }
.lb-pills[hidden] { display: none; }
.lb-pills button {
  background: rgba(255,255,255,.16); color: #fff; border: 0; border-radius: 999px;
  padding: 3px 16px; font: inherit; font-size: 1rem; cursor: pointer;
}
.lb-pills button:hover { background: rgba(255,255,255,.3); }
.lb-pills button[aria-current="true"] { background: #fff; color: var(--ink); font-weight: 600; }
.chapter-view button.zoom { display: block; cursor: zoom-in; }
.chapter-view button.zoom img { display: block; }
#lightbox img { max-height: calc(100vh - 150px); }

/* Behind the Scenes */
.video-grid { display: grid; gap: 28px; margin: 32px 0 20px; max-width: 920px; }
.video-card { width: fit-content; max-width: 100%; }
.video-card { margin: 0; }
.video-card video { display: block; width: auto; max-width: 100%; height: auto; max-height: 78vh; border-radius: 14px; background: #f1ebe6; box-shadow: 0 10px 30px rgba(120,100,130,.15); }
.video-soon { display: grid; aspect-ratio: 9 / 16; width: 100%; border-radius: 14px; background: #f1ebe6; box-shadow: 0 10px 30px rgba(120,100,130,.15); }
.video-soon { display: grid; place-items: center; color: var(--ink-soft); }
.video-card figcaption { margin-top: 10px; color: var(--ink-soft); font-size: .95rem; }

.button .btn-icon-round { width: 28px; height: 28px; border-radius: 50%; vertical-align: -8px; margin-right: 10px; }

/* Strichmännchen neben Kontakt */
.kontakt-grid { display: grid; grid-template-columns: minmax(0, max-content) auto; justify-content: start; gap: 0 20px; align-items: stretch; }
.stick { position: relative; height: 100%; min-height: 190px; aspect-ratio: 355 / 600; cursor: pointer; }
.stick img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; user-select: none; }
.stick .stick-fig { position: absolute; inset: 0; transform-origin: 49.6% 50%; }
.stick .stick-fig img { opacity: 0; }
.stick .stick-fig img.on { opacity: 1; }
@media (max-width: 640px) {
  .kontakt-grid { grid-template-columns: minmax(0, 1fr); }
  .stick { height: 190px; min-height: 0; justify-self: end; margin: 18px 4px 0 0; }
}
