/*
  Designplan
  Thema: Susanns Low-Key-Bilder aus dem Stall. Ihr Schwarz ist echtes Schwarz (#040404 gemessen),
  also ist die Seite genau so schwarz: Die Fotos haben keinen Rand und das Pferd tritt aus der Seite heraus.
  Farben: stall #040404 (Grund), heu #e9e2d6 (Text), staub #9c9387 (Nebentext),
          halfter #c58a55 (Cognac vom Lederhalfter, nur Button und Fokus), fuge #2a2622 (Linien)
  Schrift: Poppins (Überschriften), Inter (Text), laut Designreferenz in Notion
  Layout: Start = Foto links, riesiger Name rechts. Darunter je Bereich ein Foto und ein Text, abwechselnd links und rechts.
  Bewusst nur ein dunkles Design, weil die Bilder es so verlangen.
*/
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --stall: #040404;
  --heu: #e9e2d6;
  --staub: #9c9387;
  --halfter: #c58a55;
  --fuge: #2a2622;
  --display: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --text: "Inter", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--stall); color: var(--heu); font: 400 1.0625rem/1.65 var(--text); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .25em; text-decoration-thickness: 1px; text-decoration-color: var(--staub); }
a:hover { text-decoration-color: var(--heu); }
:focus-visible { outline: 2px solid var(--halfter); outline-offset: 4px; }
h1, h2 { font-family: var(--display); font-weight: 600; line-height: 1; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: 1320px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
@media (min-width: 800px) { .wrap { padding-left: max(48px, env(safe-area-inset-left, 0px)); padding-right: max(48px, env(safe-area-inset-right, 0px)); } }
.say { font-family: var(--display); font-weight: 400; font-size: clamp(1.35rem, 2.2vw, 1.8rem); line-height: 1.3; letter-spacing: -.01em; max-width: 22em; }
.todo { color: var(--staub); font-size: .95rem; }
.button { display: inline-block; font: inherit; font-weight: 500; color: var(--stall); background: var(--halfter); border: 0; padding: .85rem 1.5rem; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--heu); }
.more { font-weight: 500; }

/* Kopf */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.6rem; position: relative; }
.brand { display: flex; align-items: center; gap: .8rem; font-family: var(--display); font-weight: 600; letter-spacing: -.02em; font-size: 1.2rem; line-height: 1; text-decoration: none; }
.logo { width: 48px; height: 48px; flex: none; }
.top ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; }
.top nav a { text-decoration: none; color: var(--staub); }
.top nav a:hover, .top nav a[aria-current] { color: var(--heu); }
.top nav .ask-link { color: var(--halfter); }
.menu { display: none; background: none; border: 0; color: var(--heu); font: inherit; padding: 0; cursor: pointer; }
@media (max-width: 900px) {
  .menu { display: block; margin-left: auto; }
  .top nav { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 20; background: var(--stall); padding: 1rem max(20px, env(safe-area-inset-right, 0px)) 2rem max(20px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--fuge); }
  .top nav.open { display: block; }
  .top ul { flex-direction: column; gap: .5rem; }
  .top nav a { font-family: var(--display); font-weight: 500; font-size: 1.6rem; line-height: 1.3; }
}

/* Start */
.hero { display: grid; gap: 1.5rem; padding-bottom: clamp(4rem, 10vw, 8rem); }
.name { font-size: clamp(3.4rem, 15vw, 8.2rem); letter-spacing: -.04em; }
.hero-pic { width: 100%; }
.hello { display: grid; gap: 1.2rem; max-width: 34em; }
.hello p:not(.say) { color: var(--staub); }
@media (min-width: 860px) {
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto 1fr; column-gap: clamp(2rem, 5vw, 5rem); row-gap: 3rem; margin-top: -1rem; }
  .hero-pic { grid-column: 1; grid-row: 1 / span 2; max-height: 92vh; width: auto; justify-self: start; }
  .name { grid-column: 2; grid-row: 1; align-self: end; }
  .hello { grid-column: 2; grid-row: 2; align-self: start; }
}

.areas { display: grid; gap: clamp(4rem, 10vw, 9rem); padding-bottom: clamp(4rem, 10vw, 8rem); }
.area { display: grid; gap: 1.5rem; align-items: end; }
.area-pic img { width: 100%; max-height: 86vh; object-fit: contain; object-position: left bottom; }
.area-text { display: grid; gap: 1rem; max-width: 30em; }
.area-text h2 { font-size: clamp(2.8rem, 8vw, 5.6rem); }
.area-text h2 a { text-decoration: none; }
.area-text p:not(:has(.more)) { color: var(--staub); }
@media (min-width: 860px) {
  .area { grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(2.5rem, 6vw, 6rem); }
  .area.flip { grid-template-columns: minmax(0, 1fr) auto; }
  .area-pic img { width: auto; max-width: 52vw; max-height: 86vh; }
  .area.flip .area-pic { order: 2; }
  .area.flip .area-text { justify-self: end; text-align: right; }
}

/* Galerie */
.head { display: grid; gap: 1.2rem; padding-block: clamp(1rem, 4vw, 3rem) clamp(2rem, 5vw, 3.5rem); }
.head h1 { font-size: clamp(2.8rem, 8vw, 5.6rem); }
.head p { color: var(--staub); max-width: 34em; }
.gallery { columns: 1; column-gap: 12px; }
@media (min-width: 640px) { .gallery { columns: 2; } }
@media (min-width: 1000px) { .gallery.n3 { columns: 3; } }
.g { display: block; margin-bottom: 12px; break-inside: avoid; }
.empty { color: var(--staub); padding-block: 2rem; }
.after { display: grid; gap: 1.4rem; justify-items: start; padding-block: clamp(4rem, 10vw, 7rem); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: var(--stall); display: flex; align-items: center; justify-content: center; padding: max(60px, env(safe-area-inset-top, 0px)) max(48px, env(safe-area-inset-right, 0px)) max(20px, env(safe-area-inset-bottom, 0px)) max(48px, env(safe-area-inset-left, 0px)); }
.lightbox img { max-height: calc(100vh - 100px); width: auto; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--heu); font: inherit; cursor: pointer; padding: .6rem; }
.lb-close { top: max(14px, env(safe-area-inset-top, 0px)); right: max(14px, env(safe-area-inset-right, 0px)); }
.lb-prev, .lb-next { font-size: 2.6rem !important; line-height: 1; }
.lb-prev { left: max(6px, env(safe-area-inset-left, 0px)); }
.lb-next { right: max(6px, env(safe-area-inset-right, 0px)); }

/* Über mich, Anfrage */
.about, .ask { display: grid; gap: 2.5rem; padding-block: clamp(1rem, 4vw, 3rem) clamp(4rem, 10vw, 8rem); }
.about h1, .ask h1 { font-size: clamp(2.8rem, 8vw, 5.6rem); }
.text { display: grid; gap: 1.2rem; max-width: 36em; align-content: start; min-width: 0; }
.text p:not(.say):not(.todo) { color: var(--staub); }
.ask .text h1 { margin-bottom: .5rem; }
@media (min-width: 960px) { .ask { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 6rem; } }

.form { display: grid; gap: 1.4rem; max-width: 34em; min-width: 0; align-content: start; }
@media (min-width: 960px) { .form { margin-top: 1.2rem; } }
.f { display: grid; gap: .35rem; font-size: .95rem; color: var(--staub); }
input, select, textarea { font: inherit; font-size: 1.05rem; color: var(--heu); background: transparent; border: 0; border-bottom: 1px solid var(--fuge); border-radius: 0; padding: .5rem 0; width: 100%; min-width: 0; }
select option { background: var(--stall); }
textarea { border: 1px solid var(--fuge); padding: .7rem; resize: vertical; }
input::placeholder { color: #5f5850; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--halfter); }
.f.invalid, .c.invalid { color: #e07a62; }
.f.invalid input, .f.invalid select, .f.invalid textarea { border-color: #e07a62; }
.c { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; color: var(--staub); }
.c input { width: auto; margin-top: .35rem; accent-color: var(--halfter); }
.hp { position: absolute; left: -9999px; }
.form .button { justify-self: start; }
.form .button:disabled { opacity: .5; }
.status { min-height: 1.5em; }
.status.err { color: #e07a62; }

.legal { max-width: 46em; display: grid; gap: 1rem; padding-block: clamp(1rem, 4vw, 3rem) 5rem; }
.legal h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); margin-bottom: 1rem; }
.legal h2 { font-family: var(--text); font-weight: 500; font-size: 1.05rem; line-height: 1.4; margin-top: 1rem; }
.legal p:not(.todo) { color: var(--staub); }

.foot { display: grid; gap: .6rem; padding-block: 3rem; border-top: 1px solid var(--fuge); color: var(--staub); }
.foot-name { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; font-size: 1.6rem; line-height: 1; color: var(--heu); }
.foot-legal { display: flex; gap: 1.5rem; font-size: .9rem; }
@media (min-width: 800px) { .foot { grid-template-columns: 1fr auto auto; align-items: baseline; column-gap: 3rem; } }
