/* scharfschwerdt.org: eigenes, ruhiges Layout. */

/* Plus Jakarta Sans liegt auf dem eigenen Server: keine Verbindung zu Google. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --text: #1c1c1c;
  --titel: #111;
  --blau: #102e3f;
  --unterblau: #1c506e;
  --grau: #767676;
  --linie: rgba(16, 46, 63, .14);
  --rand: max(4vw, calc((100vw - 1320px) / 2));
  --breite: 1320px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --kopf: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: #fff; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Plus Jakarta Sans", Helvetica, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blau); outline-offset: 3px; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Seitenwechsel */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: ease; }
.kopf { view-transition-name: kopf; }
::view-transition-group(kopf) { animation-duration: 0s; }

/* Kopfbereich: Logo links, Menü und Symbole rechts. Beim Runterscrollen zieht er sich zurück. */
.kopf {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: var(--kopf);
  padding: 0 var(--rand);
  background: #fff;
  transition: transform .7s var(--ease), box-shadow .5s ease;
}
.kopf.weg { transform: translateY(-100%); }
.kopf.gescrollt { box-shadow: 0 1px 0 var(--linie); }
.logo { display: block; line-height: 0; margin-right: auto; }
.logo img { width: 132px; height: auto; }
.js .logo.zeichnen img { animation: logo 1.3s .1s var(--ease) both; }
@keyframes logo { from { clip-path: inset(-10% 100% -10% -2%); } to { clip-path: inset(-10% -2% -10% -2%); } }

.nav ul { display: flex; gap: 32px; }
.nav a {
  position: relative;
  display: inline-block;
  padding: 4px 0;
  color: var(--blau);
  font-size: 13px;
  letter-spacing: .08em;
  line-height: 20px;
  text-decoration: none;
  text-transform: uppercase;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .55s var(--ease);
}
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.social { display: flex; gap: 4px; }
.social a { display: block; line-height: 0; transition: opacity .35s ease, transform .5s var(--ease); }
.social svg { width: 30px; height: 30px; fill: var(--blau); }

.burger { display: none; width: 44px; height: 44px; margin-right: -10px; }
.burger i { display: block; width: 24px; height: 2px; margin: 4px auto; background: var(--blau); transition: transform .5s var(--ease), opacity .3s ease; }
.menue-offen .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menue-offen .burger i:nth-child(2) { opacity: 0; }
.menue-offen .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.menue {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility 0s .4s;
}
.menue-offen body { overflow: hidden; }
.menue-offen .menue { opacity: 1; visibility: visible; transition: opacity .4s ease; }
.menue nav { flex: 1; display: flex; align-items: center; padding: 0 8vw; }
.menue li { padding-bottom: 20px; opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .7s var(--ease); }
.menue-offen .menue li { opacity: 1; transform: none; transition-delay: calc(var(--i) * 70ms + 80ms); }
.menue a { color: var(--blau); font-size: 30px; font-weight: 800; line-height: 38px; text-decoration: none; text-transform: uppercase; }
.menue .social { padding: 20px 8vw; border-top: 1px solid var(--linie); }
.menue .social svg { width: 40px; height: 40px; }

/* Seitenkopf */
.seitenkopf { width: min(var(--breite), 100% - var(--rand) * 2); margin: 0 auto; padding: 44px 0 40px; }
.seitenkopf h1 {
  margin: 0;
  color: var(--titel);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 46px;
  text-transform: uppercase;
}

/* Hochzeiten: versetztes Raster mit Beschriftung unter dem Foto */
.kacheln { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; padding: 24px var(--rand) 100px; }
.kacheln > .kachel:nth-child(3n + 2) { margin-top: 72px; }
.kachel { display: block; color: var(--blau); text-decoration: none; }
.kachel .rahmen { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 6px; background: var(--farbe, #f2f2f2); }
.kachel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Bildwechsel beim Überfahren */
.kachel .wechsel { opacity: 0; transition: opacity .9s ease; }
.kachel .wechsel.an { opacity: 1; }
/* Parallax: Die Spalten laufen beim Scrollen minimal unterschiedlich schnell */
.parallax > .kachel { translate: 0 var(--p, 0); will-change: translate; }
.kachel .info { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 12px; border-bottom: 1px solid transparent; }
.kachel .ort {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 20px;
  text-transform: uppercase;
  transition: background-size .6s var(--ease);
}
.kachel .jahr { color: var(--grau); font-size: 14px; line-height: 20px; }
.kachel:focus-visible .ort { background-size: 100% 1px; }
@media (hover: hover) {
  .kachel .rahmen img { transition: opacity 1s ease, transform 1.8s var(--ease); }
  .kachel:hover .rahmen img { transform: scale(1.035); }
  .kachel:hover .ort { background-size: 100% 1px; }
  .nav a:hover::after { transform: scaleX(1); transform-origin: left; }
  .social a:hover { opacity: .55; transform: translateY(-1px); }
}

/* Galerie: Querformate stehen groß für sich, Hochformate paarweise */
.galerie { width: min(var(--breite), 100% - var(--rand) * 2); margin: 0 auto; padding-bottom: 110px; }
.zeile { display: flex; gap: 20px; margin-bottom: 20px; }
.zeile.einzeln { justify-content: center; }
.zeile.einzeln .foto { flex: 0 1 calc(50% - 10px); }
.foto { display: block; flex: var(--f) 1 0; min-width: 0; padding: 0; background: var(--farbe, #f2f2f2); border-radius: 6px; overflow: hidden; }
.foto img { width: 100%; height: auto; transition: transform 1.8s var(--ease); }
@media (hover: hover) { .foto:hover img { transform: scale(1.015); } }

/* Sanftes Einblenden: nur mit JavaScript aktiv */
.js .bild-laedt { opacity: 0; }
.js .bild-laedt.geladen { opacity: 1; transition: opacity 1s ease, transform 1.8s var(--ease); }
.js .einblenden { opacity: 0; transform: translateY(22px); }
.js .einblenden.da { opacity: 1; transform: none; transition: opacity 1.1s ease var(--v, 0ms), transform 1.3s var(--ease) var(--v, 0ms); }
.js .einblenden.da.fertig { transition: none; }

/* Weitere Hochzeiten */
.weitere { padding: 60px var(--rand) 0; border-top: 1px solid var(--linie); }
.weitere h2 { margin: 0 0 28px; color: var(--titel); font-size: 20px; font-weight: 800; line-height: 26px; text-transform: uppercase; }
.weitere .kacheln { padding: 0 0 90px; gap: 24px; }
.weitere .kacheln > .kachel:nth-child(3n + 2) { margin-top: 0; }

/* Texte */
.text { font-size: 18px; line-height: 28px; }
.text a { color: var(--text); text-underline-offset: 3px; transition: color .3s ease; }
.text a:hover { color: var(--unterblau); }
.text .title { padding: 0 0 18px; color: var(--titel); font-size: 28px; font-weight: 800; line-height: 34px; text-transform: uppercase; }
.text .sub-title { padding: 30px 0 8px; color: var(--unterblau); font-size: 20px; font-weight: 800; line-height: 26px; }
.text > div:not(.title):not(.sub-title), .text .main-text { padding: 4px 0; }
.text ul { list-style: disc; padding: 4px 0 4px 1.2em; }

.rechtstext { width: min(760px, 100% - var(--rand) * 2); margin: 0 auto; padding-bottom: 90px; }
.rechtskopf { width: min(760px, 100% - var(--rand) * 2); }
.rechtstext .title { padding-top: 34px; font-size: 24px; line-height: 30px; }

.ueber { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 8vw; align-items: center; width: min(var(--breite), 100% - var(--rand) * 2); margin: 0 auto; padding: 56px 0 110px; }
.ueber .portraet { order: 2; aspect-ratio: 1; overflow: hidden; border-radius: 50%; }
.ueber .portraet img { width: 100%; height: 100%; object-fit: cover; }
.ueber .text { order: 1; }

.gaeste { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: center; width: min(var(--breite), 100% - var(--rand) * 2); margin: 0 auto; }
.gaeste .foto { width: 100%; }
.gaeste .text .sub-title { padding-top: 0; font-size: 28px; line-height: 34px; text-transform: uppercase; }
.knopf-zeile { width: min(var(--breite), 100% - var(--rand) * 2); margin: 0 auto; padding: 40px 0 90px; text-align: right; }
.knopf {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 26px;
  border-radius: 100px;
  background: var(--blau);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .35s ease, transform .6s var(--ease);
}
.knopf:hover { background: var(--unterblau); transform: translateY(-1px); }

.video { width: min(var(--breite), 100% - var(--rand) * 2); margin: 0 auto; padding-bottom: 110px; }
.video video { width: 100%; height: auto; background: #191919; border-radius: 6px; }

/* Kontakt: Text links, Formular rechts */
.kontakt { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8vw; width: min(var(--breite), 100% - var(--rand) * 2); margin: 0 auto; padding: 44px 0 110px; }
.kontakt h1 { margin: 0 0 18px; color: var(--titel); font-size: 40px; font-weight: 800; letter-spacing: -.01em; line-height: 46px; text-transform: uppercase; }
.kontakt .einleitung { margin: 0; color: var(--grau); font-size: 18px; line-height: 28px; }
.formular { position: relative; }
.feld { display: block; margin-bottom: 26px; }
.feld span { display: block; margin-bottom: 10px; color: var(--blau); font-size: 14px; font-weight: 700; line-height: 16px; }
.feld input, .feld textarea {
  display: block;
  width: 100%;
  border: 1px solid #d5dadd;
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition: border-color .35s ease, box-shadow .45s ease;
  appearance: none;
}
.feld input { height: 48px; padding: 1px 16px; }
.feld textarea { height: 160px; padding: 14px 16px; resize: vertical; }
.feld input:focus, .feld textarea:focus { outline: 0; border-color: var(--blau); box-shadow: 0 0 0 3px rgba(16, 46, 63, .08); }
.feld ::placeholder { color: #767676; opacity: 1; }
.falle { position: absolute; left: -9999px; }
.senden {
  height: 44px;
  padding: 0 28px;
  border-radius: 22px;
  background: var(--blau);
  color: #fff;
  font-size: 14px;
  transition: background .35s ease, transform .6s var(--ease), opacity .3s ease;
}
.senden:hover { background: var(--unterblau); transform: translateY(-1px); }
.senden[disabled] { opacity: .5; cursor: progress; }
.meldung { min-height: 26px; margin: 16px 0 0; font-size: 15px; line-height: 22px; }
.danke {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--titel);
  font-size: 28px;
  font-weight: 800;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .7s ease, transform .9s var(--ease);
}
.fertig-gesendet .felder { opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility 0s .4s; }
.fertig-gesendet .danke { opacity: 1; visibility: visible; transform: none; }

/* Fußbereich */
.fuss { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px var(--rand); border-top: 1px solid var(--linie); color: var(--grau); font-size: 14px; line-height: 20px; }
.fuss .links { display: flex; gap: 24px; margin: 0; }
.fuss .links a { text-decoration: none; transition: color .3s ease; }
.fuss .links a:hover { color: var(--blau); }
.fuss .social svg { fill: var(--grau); transition: fill .35s ease; }
.fuss .social a:hover svg { fill: var(--blau); }

.nach-oben {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--linie);
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .5s ease, transform .8s var(--ease), background .3s ease, visibility 0s .5s;
}
.nach-oben.sichtbar { opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease, transform .8s var(--ease), background .3s ease; }
.nach-oben:hover { background: #fff; transform: translateY(-2px); }
.nach-oben svg { width: 20px; height: 20px; fill: none; stroke: var(--blau); stroke-width: 1.5; }

/* Großansicht */
.lb { position: fixed; inset: 0; z-index: 20; background: rgba(255, 255, 255, 0); touch-action: pan-y; transition: background .45s ease; }
.lb.offen { background: rgba(255, 255, 255, .985); }
.lb-offen body { overflow: hidden; }
.lb img { position: absolute; left: 0; top: 0; transform-origin: 0 0; max-width: none; cursor: zoom-out; user-select: none; }
.lb button { position: absolute; display: grid; place-items: center; width: 56px; height: 56px; color: var(--blau); opacity: 0; transition: opacity .4s ease; }
.lb.offen button { opacity: .6; }
.lb.offen button:hover { opacity: 1; }
.lb button:focus-visible { outline: 1px solid var(--linie); outline-offset: -8px; }
.lb svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.lb .zu { top: 12px; right: 12px; }
.lb .zurueck { left: 12px; top: calc(50% - 28px); }
.lb .weiter { right: 12px; top: calc(50% - 28px); }

/* Maus-Kreis als echter System-Cursor: Das Betriebssystem zeichnet ihn, deshalb gibt es keine Verzögerung. */
html {
  cursor: url("/maus-klein.png") 9 9, auto;
  cursor: -webkit-image-set(url("/maus-klein.png") 1x, url("/maus-klein@2x.png") 2x) 9 9, auto;
}
a, button, label, .foto, .lb img {
  cursor: url("/maus-gross.png") 22 22, pointer;
  cursor: -webkit-image-set(url("/maus-gross.png") 1x, url("/maus-gross@2x.png") 2x) 22 22, pointer;
}
input, textarea { cursor: text; }
video { cursor: auto; }
.senden[disabled] { cursor: progress; }

/* Button zum Kontakt: nur auf dem Handy, erscheint beim Runterscrollen */
.anfrage { display: none; }

/* Tablet */
@media (max-width: 932px) {
  :root { --kopf: 76px; --rand: 5vw; }
  .kopf > .nav, .kopf > .social { display: none; }
  .kopf .burger { display: block; }
  .logo img { width: 104px; }
  .kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; padding-bottom: 70px; }
  .kacheln > .kachel:nth-child(3n + 2) { margin-top: 0; }
  .kacheln > .kachel:nth-child(even) { margin-top: 48px; }
  .weitere .kacheln > .kachel:nth-child(even) { margin-top: 0; }
  .weitere .kachel:nth-child(n + 3) { display: none; }
  .seitenkopf { padding: 28px 0 26px; }
  .seitenkopf h1, .kontakt h1 { font-size: 30px; line-height: 35px; }
  .text { font-size: 16px; line-height: 25px; }
  .kontakt .einleitung { font-size: 16px; line-height: 25px; }
  .ueber, .gaeste, .kontakt { gap: 40px; }
  .ueber { padding: 28px 0 70px; }
  .kontakt { grid-template-columns: minmax(0, 1fr); padding: 28px 0 70px; }
  .zeile { gap: 10px; margin-bottom: 10px; }
  .zeile.einzeln .foto { flex-basis: calc(50% - 5px); }
  .galerie, .video { padding-bottom: 70px; }
  .nach-oben { display: none; }
  .anfrage {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border-radius: 100px;
    background: var(--blau);
    box-shadow: 0 8px 28px rgba(16, 46, 63, .28);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(calc(100% + 24px));
    transition: transform .7s var(--ease), opacity .35s ease, visibility 0s .7s;
  }
  .anfrage.sichtbar { opacity: 1; visibility: visible; transform: none; transition: transform .7s var(--ease), opacity .35s ease; }
  .menue-offen .anfrage { opacity: 0; visibility: hidden; }
  .hat-anfrage .fuss { padding-bottom: 96px; }
}

/* Handy */
@media (max-width: 540px) {
  .kacheln { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 8px; }
  .kacheln > .kachel:nth-child(even) { margin-top: 0; }
  .weitere .kachel:nth-child(n + 2) { display: none; }
  .zeile { gap: 6px; margin-bottom: 6px; }
  .zeile.einzeln .foto { flex-basis: 72%; }
  .seitenkopf h1, .kontakt h1 { font-size: 26px; line-height: 31px; }
  .ueber, .gaeste { grid-template-columns: minmax(0, 1fr); }
  .ueber .portraet { order: 0; width: 72%; }
  .ueber .text { order: 1; }
  .knopf-zeile { padding-top: 24px; text-align: left; }
  .fuss { flex-direction: column-reverse; align-items: flex-start; }
  .lb .zurueck, .lb .weiter { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .js .einblenden { opacity: 1; transform: none; }
  .js .bild-laedt { opacity: 1; }
  .parallax > .kachel { translate: none; }
  @view-transition { navigation: none; }
}
