/* Colorful Weddings – Übergangsseite. Eigenes CSS; Werte (Farben, Größen, Abstände)
   aus dem Format-Theme übernommen. Schrift: Public Sans (OFL), selbst gehostet. */

@font-face { font-family: "CW Sans"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/public-sans-latin-normal.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; }
@font-face { font-family: "CW Sans"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/public-sans-latin-ext-normal.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: "CW Sans"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/public-sans-latin-italic.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; }
@font-face { font-family: "CW Sans"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/public-sans-latin-ext-italic.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; }

:root {
  --font: "CW Sans", "Helvetica Neue", Arial, sans-serif;
  --w-thin: 100;        /* Benton Sans Thin */
  --w-head: 350;        /* Überschriften (live: synthetisch fett aus Thin) */
  --w-bold: 450;
  --thin-ink: #555;      /* Thin-Schnitt in #000 wirkt live grau – mit Public Sans 100 so nachgestellt */
  --ink: #000000;
  --ink-2: #1b1b1c;
  --link: #325350;
  --hover: #bcd2d0;
  --selected: #91b7b4;
  --social: #bcd2d0;
  --overlay: rgba(93, 87, 107, .63);
  --row-pad: 32px;
  --gutter: 3.48%;
  --header-h: 321px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--thin-ink); font-family: var(--font); font-variation-settings: "wght" var(--w-thin);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--link); }
button { font: inherit; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 2000; background: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; top: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------- Header ---------------- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 999; background: #fff; text-align: center;
  padding: 0 32px 15px; transition: transform 250ms ease; }
.header.is-up { transform: translate3d(0, -100%, 0); }
.menu ul { list-style: none; margin: 0; padding: 14px 16px 0; }
.menu li { display: inline-block; margin: 0 25px 16px; position: relative; }
.menu a { color: var(--thin-ink); font-size: 14px; line-height: 21px; text-decoration: none; font-variation-settings: "wght" var(--w-thin); }
.menu li.item > a:hover, .menu .category:not(.selected):hover > a { color: var(--hover); }
.menu li.selected > a { color: var(--selected); }
.menu .category ul { position: absolute; left: 50%; top: 100%; transform: translate(-50%, -4px); padding: 10px 18px 4px;
  background: #fff; opacity: 0; visibility: hidden; text-align: left; z-index: 5;
  transition: opacity 150ms ease, visibility 150ms ease, transform 250ms cubic-bezier(.19, 1, .22, 1); }
.menu .category ul li { display: block; margin: .6em 0; white-space: nowrap; }
.menu .category:hover ul, .menu .category:focus-within ul { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.logo { display: block; margin: 41px auto 0; line-height: 0; }
.logo a { display: inline-block; }
.logo img { height: 152px; width: auto; max-width: 100%; margin: 0 auto; }
.burger { display: none; }

main { margin-top: var(--header-h); }

/* ---------------- Mobiles Menü ---------------- */
.mobile-menu-container { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, 0); pointer-events: none;
  transition: background 300ms ease-in-out; }
.mobile-menu-container[hidden] { display: block; visibility: hidden; }
.mobile-menu-container.open { background: rgba(0, 0, 0, .3); pointer-events: auto; visibility: visible; }
.mobile-menu { position: absolute; top: 0; right: 0; bottom: 0; left: 42px; background: #fff;
  transform: translate3d(100%, 0, 0); transition: transform 300ms ease-in-out; }
.open .mobile-menu { transform: none; }
.mobile-close { position: absolute; top: 7px; right: 21px; font-size: 47px; line-height: 1; color: var(--ink-2);
  background: none; border: 0; cursor: pointer; padding: 0; font-variation-settings: "wght" var(--w-thin); }
.mobile-list { list-style: none; margin: 0; padding: 24px 0 10px 24px; position: absolute; top: 0; left: 0; right: 50px;
  bottom: 50px; overflow-y: auto; line-height: 1.6; }
.mobile-list li.item > a { display: block; padding: 12px 0; color: var(--thin-ink); font-size: 14px; text-decoration: none; }
.mobile-list li.item > a:hover { color: var(--hover); }
.mobile-list li.selected > a { color: var(--selected); }
.mobile-list li.category { margin: 12px 0; }
.mobile-list li.category > a { color: var(--ink-2); font-size: 16px; text-decoration: none; }
.mobile-list li.category ul { list-style: none; margin: 5px 0 0 5px; padding: 0; }
.mobile-menu .social { position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px; text-align: left; }

/* ---------------- Inhalt (Module) ---------------- */
.row { width: 85%; max-width: 1140px; margin: 0 auto; padding: var(--row-pad) 38px; }
.row--full { width: 100%; max-width: none; padding-left: 0; padding-right: 0; }
.row .img img { width: auto; max-width: 100%; margin: 0 auto; } /* nie hochskalieren, wie live */
.row--full .img img { width: 100%; }

.text { font-size: 17px; line-height: 1.7; color: var(--thin-ink); }
.text p { margin: 0 0 17px; font-size: 17px; line-height: 1.7; }
.text p:last-child { margin-bottom: 0; }
.text h2 { margin: 0 0 10px; font-size: 28px; line-height: 1.4; color: var(--ink-2); font-variation-settings: "wght" var(--w-head); }
.text h2:last-child { margin-bottom: 0; }
.text h2.xl-headline { font-size: 48px; text-align: center; }
.text h2 [style*="font-weight: normal"] { font-variation-settings: "wght" var(--w-thin); color: var(--thin-ink); }
.text b, .text strong { font-variation-settings: "wght" var(--w-bold); color: var(--ink); }
.text a { color: var(--link); text-decoration: underline; }
.text a:hover { color: var(--hover); }
.dash { font-kerning: none; padding: 0 .08em; }
.align-center { text-align: center; }
.align-justify { text-align: justify; }
.align-left { text-align: left; }
.align-right { text-align: right; }

.spacer { height: 22px; }
.divider { border: 0; border-top: 1px solid #c8c8c8; margin: 17px 0 1px; }

.cols { display: grid; column-gap: var(--gutter); align-items: start; }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

/* image_set_04 "vertical": volle Breite untereinander */
.stack > a { display: block; margin-bottom: 16px; }
.stack > a:last-child { margin-bottom: 0; }
.stack img { width: 100%; }

/* image_set_08 masonry */
.masonry { display: flex; align-items: flex-start; }
.masonry .mcol { flex: 1 1 0; min-width: 0; }
.masonry a { display: block; }
.masonry img { width: 100%; }
.masonry:not(.ready) { display: block; columns: 4; column-gap: 0; }
.masonry:not(.ready) a { break-inside: avoid; }

/* layout_09 / layout_10: 12er-Raster, Bild 4 Spalten, Text 6 Spalten */
.layout { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: start; }
.lay-left .lay-img { grid-column: 1 / span 4; }
.lay-left .lay-text { grid-column: 5 / span 6; }
.lay-right .lay-text { grid-column: 3 / span 6; grid-row: 1; }
.lay-right .lay-img { grid-column: 9 / span 4; grid-row: 1; }
.lay-img.round img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.lay-text p { font-size: 17px; line-height: 31px; }
.lay-text h2 { margin-bottom: 18px; }

.video { position: relative; width: 100%; height: 0; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Kontaktformular */
.contact-wrap { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); }
.contact { grid-column: 3 / span 8; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(0, 0, 0, .5); border-left: 1px solid rgba(0, 0, 0, .5); }
.f-field { display: block; margin: 0; }
.f-wide { grid-column: 1 / -1; }
.f-field input, .f-field textarea { width: 100%; display: block; border: 0; border-right: 1px solid rgba(0, 0, 0, .5);
  border-bottom: 1px solid rgba(0, 0, 0, .5); border-radius: 0; background: #fff; color: var(--ink-2);
  font: 14px/1.4 var(--font); font-variation-settings: "wght" var(--w-thin); padding: 0 12px; height: 48px; -webkit-appearance: none; appearance: none; }
.f-field textarea { height: 170px; padding-top: 12px; resize: vertical; }
.f-field input::placeholder, .f-field textarea::placeholder { color: #8a8a8a; opacity: 1; }
.f-field input:focus, .f-field textarea:focus { outline: 1px solid var(--selected); outline-offset: -2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn { margin-top: 11px; background: #fff; color: #000; border: 1px solid rgba(0, 0, 0, .5); border-radius: 2px;
  font: 19px/1 var(--font); font-variation-settings: "wght" var(--w-thin); padding: 16px 30px; cursor: pointer; transition: background 250ms ease, border-color 250ms ease; }
.btn:hover { border-color: rgba(0, 0, 0, .8); background: rgba(0, 0, 0, .05); }
.f-note { font-size: 14px; margin: 14px 0 0; color: var(--ink-2); }
.f-select { position: relative; }
.f-field select { width: 100%; display: block; border: 0; border-right: 1px solid rgba(0, 0, 0, .5);
  border-bottom: 1px solid rgba(0, 0, 0, .5); border-radius: 0; background: #fff; color: var(--ink-2);
  font: 14px/1.4 var(--font); font-variation-settings: "wght" var(--w-thin); padding: 0 34px 0 12px; height: 48px;
  -webkit-appearance: none; appearance: none; cursor: pointer; }
.f-field select:invalid { color: #8a8a8a; }
.f-field select:focus { outline: 1px solid var(--selected); outline-offset: -2px; }
.f-select::after { content: ""; position: absolute; right: 16px; top: 20px; width: 7px; height: 7px; pointer-events: none;
  border-right: 1px solid #8a8a8a; border-bottom: 1px solid #8a8a8a; transform: rotate(45deg); }
.f-field [aria-invalid="true"] { background: #fbf3f3; }
.f-hinweis { font-size: 12px; line-height: 1.5; color: #8a8a8a; margin: 12px 0 0; max-width: 60ch; }
.f-hinweis a { color: inherit; }
.f-note.ok { color: var(--ink-2); font-size: 16px; }
.f-note.err { color: #a33; }
.btn[disabled] { opacity: .5; cursor: wait; }

.pictime { min-height: 40vh; }

/* ---------------- Galerie-Seiten ---------------- */
.gallery { width: 85%; max-width: 1440px; margin: 0 auto; }
.g-title { max-width: 480px; margin: 69px auto 147px; }
.g-title img { margin: 0 auto; }
.g-text { max-width: 480px; margin: 0 auto 147px; text-align: center; font-size: 19px; line-height: 1.5; }
.g-text .text-wrap { display: inline-block; text-align: left; }
.g-text p { margin: 0 0 19px; }
.g-asset { margin: 0 auto 6%; text-align: center; }
.g-asset:last-child { margin-bottom: 0; }
.g-asset img { display: inline-block; width: auto; height: auto; max-height: 88vh; max-width: 100%; }
.slug-gallery-i .g-asset:first-child { margin-top: 32px; }

/* ---------------- Listing (Wedding Stories) ---------------- */
.listing { display: grid; grid-template-columns: repeat(3, 1fr); }
.tile { order: var(--o3); position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile-ov { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 8% 10%;
  background: var(--overlay); opacity: 0; transition: opacity 300ms ease; }
.tile-title { color: #fff; font-size: 30px; line-height: 1.3; text-align: center; font-variation-settings: "wght" var(--w-thin); }
.tile:hover .tile-ov, .tile:focus-visible .tile-ov { opacity: 1; }

/* ---------------- Footer ---------------- */
.footer { width: 85%; margin: 0 auto; padding: 88px 0 58px; text-align: center; color: var(--thin-ink); font-size: 12px; }
.social { line-height: 2; }
.social a, .social button { display: inline-block; width: 11.7px; height: 11.7px; margin: 0 10px; color: var(--social);
  background: none; border: 0; padding: 0; cursor: pointer; vertical-align: middle; position: relative; }
.social svg { height: 11.7px; width: auto; overflow: visible; position: absolute; top: 1px; left: 0; }
.social a:hover, .social button:hover { color: var(--selected); }
.footer-text { margin-top: 13px; }

/* ---------------- Einblend-Animation wie live ---------------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .content > .row { opacity: 0; transform: translateY(100px);
    transition: opacity 1500ms, transform 950ms; transition-timing-function: cubic-bezier(.5, 0, .2, 1); }
  html.js .content > .row.in { opacity: 1; transform: none; }
}

/* ---------------- Lightbox ---------------- */
.lbx { position: fixed; inset: 0; z-index: 2000; background: rgba(255, 255, 255, .96); display: flex; align-items: center;
  justify-content: center; }
.lbx[hidden] { display: none; }
.lbx img { max-width: 92vw; max-height: 90vh; width: auto; height: auto; box-shadow: 0 0 30px rgba(0, 0, 0, .12); }
.lbx button { position: absolute; background: none; border: 0; cursor: pointer; color: var(--ink-2); font-size: 42px;
  line-height: 1; padding: 12px 18px; font-variation-settings: "wght" var(--w-thin); }
.lbx .lbx-close { top: 8px; right: 12px; }
.lbx .lbx-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lbx .lbx-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lbx button:hover { color: var(--selected); }

/* ---------------- Mobil (< 768 px) ---------------- */
@media (max-width: 767px) {
  :root { --header-h: 200px; }
  .header { padding: 15px 32px; text-align: left; }
  .menu { display: none; }
  .logo { margin: 0; width: 75%; }
  .logo img { margin: 0; }
  .burger { display: block; position: absolute; top: 50%; right: 24px; width: 30px; height: 22px; margin-top: -11px;
    background: none; border: 0; padding: 0; cursor: pointer; }
  .burger span, .burger span::before, .burger span::after { position: absolute; left: 0; width: 30px; height: 4px; background: var(--ink-2); content: ""; }
  .burger span { top: 0; }
  .burger span::before { top: 9px; }
  .burger span::after { top: 18px; }
  .content { padding-top: 12px; }
  .row { padding-left: 0; padding-right: 0; }
  .text p, .lay-text p { font-size: clamp(12px, 4vw, 17px); }
  .text h2 { font-size: clamp(16px, 6vw, 28px); }
  .text h2.xl-headline { font-size: clamp(20px, 8vw, 48px); }
  .cols, .cols-2, .cols-3 { grid-template-columns: 1fr; row-gap: 13px; }
  .cols-text { row-gap: 32px; }
  .layout { grid-template-columns: 1fr; row-gap: 24px; }
  .layout > * { grid-column: 1 !important; grid-row: auto !important; }
  .masonry, .masonry:not(.ready) { display: block; columns: auto; }
  .contact-wrap { display: block; }
  .f-grid { grid-template-columns: 1fr; }
  .listing { grid-template-columns: 1fr 1fr; }
  .tile { order: var(--o2); }
  .spacer { height: 40px; }
  .tile-title { font-size: 18px; }
  .gallery .g-title { margin: 32px auto 60px; }
  .g-text { margin-bottom: 60px; font-size: 16px; }
  .g-asset img { max-height: none; }
}
