/* WordPress-Ergänzungen zum Design aus site.css: Schrift im Theme, Inhalte aus dem Block-Editor. */

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/montserrat-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/montserrat-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Links statt Knöpfe in Menü, Sprachwahl und Footer */
.langmenu a { text-align: left; padding: 8px 10px; letter-spacing: .04em; font-size: 13px; color: var(--mute); }
.langmenu a:hover, .langmenu a[aria-current] { color: var(--fg); }
.homebar a { opacity: .7; transition: opacity .3s; min-height: 24px; display: inline-flex; align-items: center; }
.homebar a:hover, .homebar a[aria-current] { opacity: 1; }
.tile { color: inherit; }
.admin-bar .bar { top: 32px; }
.admin-bar .detail, .admin-bar .lb { top: 32px; }
@media (max-width: 782px) { .admin-bar .bar, .admin-bar .detail, .admin-bar .lb { top: 46px; } }

/* Kleinere Titel (Unterseiten, Abschnitte im Darkmode) */
.ptitle.small { font-size: clamp(30px, 5vw, 64px); line-height: .98; margin-top: clamp(40px, 6vw, 90px); }
.back-parent { display: inline-block; margin: 6px 0 24px; }
.psub > p { margin: 0 0 .6em; }
.psub:empty { display: none; }

/* Inhalte aus dem Block-Editor */
.entry { max-width: 860px; }
.entry > * { margin: 0 0 18px; }
.entry p { font-size: clamp(15px, 1.5vw, 18px); line-height: 1.7; font-weight: 300; max-width: 680px; }
.entry h2 { margin: 56px 0 14px; font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--fg); }
.entry h2.is-style-gross, .wp-block-media-text__content h2 { margin: 72px 0 10px; max-width: none; font-weight: 700; font-size: clamp(30px, 5vw, 64px); line-height: .95; letter-spacing: -.05em; text-transform: uppercase; }
.wp-block-media-text__content h2.is-style-gross { margin-top: 6px; }
.entry h3 { margin: 0; font-weight: 500; font-size: clamp(15px, 1.6vw, 19px); letter-spacing: -.02em; }
.entry a:not(.wp-block-button__link) { border-bottom: 1px solid var(--line); }
.entry a:not(.wp-block-button__link):hover { border-color: currentColor; }
.entry ul, .entry ol { padding-left: 1.2em; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.6; font-weight: 300; }
.entry li { padding: 4px 0; }
.entry strong { font-weight: 600; }
.entry .is-style-gross { margin: 0 0 26px; max-width: 760px; font-size: clamp(22px, 3.4vw, 40px); line-height: 1.15; font-weight: 300; letter-spacing: -.03em; }
.entry .is-style-preis { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--fg); font-size: clamp(28px, 4vw, 48px); line-height: 1.1; font-weight: 700; letter-spacing: -.04em; }
.entry .is-style-slogan { font-size: clamp(34px, 7vw, 96px); line-height: 1; font-weight: 300; letter-spacing: -.035em; max-width: none; }
.entry .is-style-slogan strong { font-weight: 700; }
.entry .is-style-mail { font-size: clamp(20px, 3.2vw, 40px); font-weight: 500; letter-spacing: -.03em; }
.entry .is-style-mail a { border: 0; }
.entry ul.is-style-gross { list-style: none; padding: 0; margin-top: 14px; }
.entry ul.is-style-gross li { padding: 13px 0; border-top: 1px solid var(--line); font-weight: 300; font-size: clamp(19px, 2.4vw, 30px); letter-spacing: -.025em; line-height: 1.2; }
.entry ul.is-style-gross li:last-child { border-bottom: 1px solid var(--line); }
.entry ul.is-style-gross a { border: 0; }

/* Knöpfe: runde Pillen wie bisher */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.wp-block-button__link { display: inline-block; border: 1px solid var(--fg); background: var(--fg); color: var(--bg); border-radius: 99px; padding: 9px 18px; font-size: 13px; font-weight: 500; text-decoration: none; transition: background .3s, color .3s, border-color .3s; }
.wp-block-button__link:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.is-style-outline .wp-block-button__link { background: transparent; color: var(--fg); border-color: var(--line); }
.is-style-outline .wp-block-button__link:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* Klassische Themes legen einen inneren Rahmen um Gruppen; der soll das Raster nicht stören. */
.is-style-angebot > .wp-block-group__inner-container, .is-style-fakten > .wp-block-group__inner-container { display: contents; }

/* Angebot (Leistungen, Shop): Titel, Text, Knopf in einer Zeile */
.wp-block-group.is-style-angebot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 18px; align-items: center; padding: 14px 0; margin: 0; border-top: 1px solid var(--line); max-width: none; }
.wp-block-group.is-style-angebot > * { margin: 0; }
.wp-block-group.is-style-angebot p { grid-column: 1; color: var(--mute); font-size: 14px; line-height: 1.5; font-weight: 400; }
.wp-block-group.is-style-angebot .wp-block-buttons { grid-column: 2; grid-row: 1 / span 2; }
.entry .wp-block-group.is-style-angebot + :not(.is-style-angebot) { margin-top: 40px; }

/* Fakten (Kontakt, Impressum): Raster aus Beschriftung und Wert */
.wp-block-group.is-style-fakten { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px 40px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 860px; }
.wp-block-group.is-style-fakten p { margin: 0; font-size: 15px; line-height: 1.55; font-weight: 500; }
.wp-block-group.is-style-fakten strong { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 500; color: var(--mute); }

/* Spalten (Who is: Kunden und Sets) */
.wp-block-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 48px clamp(24px, 5vw, 80px); margin-top: 48px; max-width: 980px; }
.wp-block-column > h2:first-child { margin-top: 0; }

/* Bild mit Text (Shop: Prints) */
.wp-block-media-text { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(18px, 4vw, 64px); align-items: start; margin: 32px 0 56px; max-width: none; }
.wp-block-media-text__media img { width: 100%; height: auto; display: block; border-radius: 3px; }
.wp-block-media-text__content h2 { margin: 6px 0 10px; font-weight: 700; font-size: clamp(30px, 5vw, 64px); line-height: .95; letter-spacing: -.05em; text-transform: uppercase; }
@media (max-width: 760px) { .wp-block-media-text { grid-template-columns: 1fr; } }
.entry:has(.wp-block-media-text) { max-width: 1200px; }

/* Bilder, Galerien und Videos in normalen Seiten */
.entry figure { margin: 24px 0; }
.entry img { max-width: 100%; height: auto; }
.entry .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; max-width: none; }
.entry .wp-block-gallery figure { margin: 0; }
.entry .wp-block-gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.wp-block-embed__wrapper { position: relative; aspect-ratio: 16/9; }
.wp-block-embed__wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.wp-block-video video { width: 100%; height: auto; }
.dextra { max-width: 1000px; margin-top: 40px; }

/* Projektansicht als eigene Seite */
.project-page { max-width: 1300px; margin: 0 auto; }
.project-page .dhead { padding-top: 0; }
.dclose { font: inherit; }

/* Darkmode-Kopf */
.priv-head { align-items: center; }
.priv-head h1 { overflow-wrap: anywhere; }
#v-private .entry .is-style-gross { color: var(--fg); }

/* Passwortseite: Formular statt Overlay */
#v-gate .gate { opacity: 1; visibility: visible; transition: none; }
#v-gate .gate h1 { margin: 12px 0 8px; font-weight: 700; font-size: clamp(36px, 8vw, 70px); line-height: .98; letter-spacing: -.05em; text-transform: uppercase; }
#v-gate .back { display: inline-block; }
.field input:disabled, .field button:disabled { opacity: .4; }

/* Bildstreifen-Gruppen mit Text */
.bset .entry { margin-top: 16px; }

/* Tastatur: sichtbarer Fokus auch auf Kacheln */
.tile:focus-visible, .g:focus-visible, .bi:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* ===== Handy ===== */

/* Bilder behalten ihr Seitenverhältnis (WordPress setzt width/height-Attribute) */
img { height: auto; }
.film .thumb img { display: block; width: 100%; }

/* Projekt: „Schließen“ bleibt beim Scrollen oben erreichbar */
.detail .dhead { position: sticky; top: calc(-1 * (env(safe-area-inset-top, 0px) + 18px)); z-index: 3; margin: 0 -16px; padding: calc(env(safe-area-inset-top, 0px) + 18px) 16px 14px; background: var(--bg); }
.dclose { padding: 8px 0 8px 12px; }

/* Lightbox: größere Tippflächen */
.lb .bot button, .lb .top button { padding: 12px 0; }

/* Shop: Text neben/unter dem Bild ohne zusätzliche Einrückung */
.wp-block-media-text > .wp-block-media-text__content { padding: 0; }

/* Kontakt/Impressum: keine Leerzeile zwischen Beschriftung und Wert */
.is-style-fakten strong + br { display: none; }

/* Ohne Maus (Handy, Tablet): Fotos im Raw-Netzwerk gleich scharf und farbig, Hinweis „Klicken“ weg */
@media (hover: none), (pointer: coarse), (max-width: 760px) {
  .n.pic, .n.pic:hover { -webkit-mask-image: none; mask-image: none; }
  .n.pic img, .n.pic .ph, .rawgrid .it img { filter: none !important; }
  .toolbar span:last-child { display: none; }
}

@media (max-width: 760px) {
  /* Footer: auf Unterseiten am Ende der Seite statt dauerhaft am unteren Rand */
  body:not([data-view="home"]) .homebar { position: static; margin-top: 56px; padding: 22px 0 calc(env(safe-area-inset-bottom, 0px) + 22px); background: none; border-top: 1px solid var(--line); }
  main { padding-bottom: 24px; }
  .homebar .fl { gap: 6px 12px; font-size: 12px; }

  /* Startseite: Name und Zähler über dem Footer, nicht darunter */
  body[data-view="home"] .show .ovl { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 96px); }

  /* Offenes Menü: Footer ausblenden (sonst weiß auf hell) */
  body.menu-open .homebar { display: none; }

  /* Angebote: Knopf unter den Text, damit der Text die ganze Breite hat */
  .wp-block-group.is-style-angebot { grid-template-columns: minmax(0, 1fr); padding: 18px 0; }
  .wp-block-group.is-style-angebot .wp-block-buttons { grid-column: 1; grid-row: auto; margin-top: 10px; }
  .wp-block-media-text > .wp-block-media-text__content { margin-top: 20px; }
  .wp-block-group.is-style-fakten { gap: 18px; }

  /* Weniger Hintergrund-Animation: spart Akku und verhindert Ruckeln beim Scrollen */
  .fb, .fb-reel-g { animation: none; }
  .fb { --h: 140vw; }
}

/* Raw: Kategorie-Namen nur zwischen Wörtern umbrechen */
.n.cat { padding: 4px; }
.n.cat span { overflow-wrap: normal; word-break: normal; hyphens: manual; }
@media (max-width: 600px) { .n.cat, .n.cat small { font-size: 8px; } }

/* ===== Einwilligungs-Banner ===== */
.consent { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); z-index: 150; display: flex; justify-content: flex-end; pointer-events: none; }
.consent[hidden] { display: none; }
.consent-in { pointer-events: auto; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 22px 22px 18px; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 18px 50px rgba(0, 0, 0, .18); }
.consent-title { margin: 0 0 8px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.consent-text { margin: 0 0 16px; font-size: 14px; line-height: 1.55; font-weight: 400; }
.consent-text a { border-bottom: 1px solid currentColor; }
.consent-cats[hidden] { display: none; }
.consent-cats { display: grid; gap: 10px; margin: 0 0 16px; }
.consent-cat { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; padding: 12px; background: var(--panel); border-radius: 4px; font-size: 13px; line-height: 1.5; cursor: pointer; }
.consent-cat input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--fg); }
.consent-cat small { color: var(--mute); font-size: 12px; }
.consent-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.consent-btns .pill { padding: 10px 16px; font-size: 13px; }
.consent-btns .pill[hidden] { display: none; }
.consent-open { font: inherit; color: inherit; opacity: .7; padding: 0; min-height: 24px; }
.consent-open:hover { opacity: 1; }
@media (max-width: 560px) {
  .consent { left: 0; right: 0; bottom: 0; }
  .consent-in { width: 100%; border-radius: 12px 12px 0 0; border-width: 1px 0 0; padding: 20px 16px calc(env(safe-area-inset-bottom, 0px) + 16px); }
  .consent-btns .pill { flex: 1 1 calc(50% - 8px); text-align: center; }
}

/* Platzhalter für eingebettete Videos */
.wm-embed { position: absolute; inset: 0; }
.wm-embed.is-loaded { position: static; }
.wm-embed-ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; padding: clamp(16px, 4vw, 40px); background: var(--panel); }
.wm-embed-ph p { margin: 0; max-width: 46ch; font-size: 14px; line-height: 1.55; }
.wm-embed-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.wm-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Behind the Scenes und Darkmode: Galerie im Raster */
.bts-gal { margin-top: 8px; }
.bts-gal .g { cursor: zoom-in; }
.bts-gal .g img { display: block; width: 100%; height: auto; }
.gal-sec + .gal-sec { margin-top: clamp(40px, 6vw, 90px); }

/* Film: Credits in der Angabenliste */
.film dl { grid-template-columns: auto minmax(0, 1fr); }
.film dd { overflow-wrap: anywhere; }

/* ===== Moderne Raster (Portfolio und Behind the Scenes) ===== */

/* Portfolio: gleich große Kacheln im Hochformat, 4 pro Reihe (Desktop) */
.tiles, .tiles.n1, .tiles.n2 { columns: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px); max-width: none; padding-top: 18px; }
.tiles .tile { margin: 0; }
.tiles .tile .frame { position: relative; aspect-ratio: 4 / 5; border-radius: 2px; }
.tiles .tile .frame img, .tiles .tile .frame .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tiles .tile .frame img { transition: filter .9s var(--ease), transform 1.2s var(--ease-out) !important; }
.tiles .tile:hover .frame img, .tiles .tile:focus-visible .frame img { transform: scale(1.035); }
.tiles .tile .cap { padding-top: 10px; align-items: baseline; }
.tiles .tile .cap b { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.tiles .tile .cap .mono { font-size: 12px; }
@media (max-width: 1200px) { .tiles, .tiles.n1, .tiles.n2 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .tiles, .tiles.n1, .tiles.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles, .tiles.n1, .tiles.n2 { gap: 22px 12px; } .tiles .tile .cap { flex-direction: column; gap: 2px; padding-top: 8px; } .tiles .tile .cap b { font-size: 13px; } }

/* Behind the Scenes: dichtes Raster mit quadratischen Vorschaubildern */
.gal.bts-gal { columns: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.gal.bts-gal .g { position: relative; margin: 0; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 2px; background: var(--panel); }
.gal.bts-gal .g img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter .9s var(--ease), transform 1.2s var(--ease-out) !important; }
.gal.bts-gal .g:hover img, .gal.bts-gal .g:focus-visible img { transform: scale(1.05); }
@media (max-width: 900px) { .gal.bts-gal { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gal.bts-gal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; } }

/* Film-Vorschau: eigene Rollen als Etiketten, Crew beim Drüberfahren */
.film .thumb { position: relative; display: block; overflow: hidden; }
.film-roles { position: absolute; left: 12px; bottom: 12px; right: 12px; z-index: 3; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.film-roles span { padding: 5px 11px; border-radius: 99px; background: rgba(10, 11, 12, .62); color: #fff; font-size: 12px; font-weight: 500; line-height: 1.2; }
.film-crew { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: clamp(16px, 3vw, 32px); background: rgba(10, 11, 12, .78); color: #fff; opacity: 0; transition: opacity .4s var(--ease); pointer-events: none; }
.fc-row { display: grid; grid-template-columns: minmax(90px, 30%) minmax(0, 1fr); gap: 12px; font-size: clamp(13px, 1.2vw, 15px); line-height: 1.35; }
.fc-pos { opacity: .65; }
.fc-name { font-weight: 500; }
.film .thumb:hover .film-crew, .film .thumb:focus-visible .film-crew { opacity: 1; }
.film .thumb:hover .film-roles, .film .thumb:focus-visible .film-roles { opacity: 0; }
.film:has(.film-crew) .thumb:hover .play { opacity: 0; }
@media (hover: none) { .film-crew { display: none; } }

/* Projektgalerie: ruhiges Mauerwerk, erstes Querformat über die ganze Breite */
.gal.pgal { columns: 3 240px; column-gap: 10px; }
.gal.pgal .g { margin: 0 0 10px; border-radius: 2px; background: var(--panel); }
.gal.pgal .g img { display: block; width: 100%; height: auto; transition: opacity .5s var(--ease) !important; }
.gal.pgal .g:hover img { opacity: .86; }
.gal.pgal .g-hero { column-span: all; }
.gal.pgal .g-hero img { max-height: 82vh; object-fit: cover; }
@media (max-width: 600px) {
  .gal.pgal { columns: 2; column-gap: 6px; }
  .gal.pgal .g { margin-bottom: 6px; }
}

/* Lightbox: dunkle Bühne, Blättern über Bildhälften, Vorschaustreifen */
.lb { background: #0e0e0e; color: #ececec; }
.lb .mute { color: #9b9b9b; }
.lb button { color: inherit; }
.lb .stage { position: relative; padding: 10px 0; }
.lb .stage img { max-height: calc(100dvh - 200px); border-radius: 2px; animation: lbIn .45s var(--ease-out) both; }
@keyframes lbIn { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
.lb .stage.many { cursor: e-resize; }
.lb .stage.many.left { cursor: w-resize; }
.lb-thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 8px 4px 4px; justify-content: safe center; scrollbar-width: none; }
.lb-thumbs::-webkit-scrollbar { display: none; }
.lb-thumbs button { flex: 0 0 auto; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 2px; overflow: hidden; opacity: .4; transition: opacity .3s; }
.lb-thumbs button:hover, .lb-thumbs button.on { opacity: 1; }
.lb-thumbs button.on { outline: 1px solid #ececec; outline-offset: 2px; }
.lb-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lb.single .bot { visibility: hidden; }
@media (max-width: 600px) {
  .lb .stage img { max-height: calc(100dvh - 180px); }
  .lb-thumbs button { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) { .lb .stage img { animation: none; } }
