/* ------------------------------------------------------------
   Emil Bodmer – Stylesheet
   Angelehnt an die NGMA-Vorlage: dunkler Rahmen, riesige helle
   Kleinbuchstaben, cremefarbene Flächen.
   Farben und Schriften zentral hier oben ändern.
   ------------------------------------------------------------ */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff") format("woff");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --outer: #252422;      /* Fläche um den Rahmen */
  --night: #2d3109;      /* Dunkel – passend zum Hintergrund des Bankfotos */
  --cream: #efe9dd;      /* Helle Fläche & Schrift */
  --ink: #1d1c1a;
  --muted: #8f897d;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--outer);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--cream); color: var(--ink); }

/* Rahmen wie eine Seite auf dunklem Grund */
.frame {
  max-width: 1280px;
  margin: 28px auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--night);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  min-height: 520px;
}
.hero__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 40% 55%;
}
/* leichte Abdunklung oben, damit Schrift und Menü lesbar bleiben */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(20, 22, 6, .35), transparent 35%, transparent 70%, rgba(20, 22, 6, .25));
}

.hero__menu {
  position: absolute; z-index: 3;
  top: clamp(18px, 3vw, 36px); left: clamp(18px, 3vw, 40px);
  display: grid; gap: 2px;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
}
.hero__nav {
  position: absolute; z-index: 3;
  left: clamp(18px, 3vw, 40px); top: 50%;
  display: grid; gap: 4px;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; line-height: 1.7;
}
.hero__nav sup { font-size: 1.1em; line-height: 0; }
.hero__nav a:hover { opacity: .7; }
.hero__nav .is-soon { opacity: .55; }

.hero__word {
  position: absolute; z-index: 2;
  margin: 0;
  color: var(--cream);
  font-weight: 480;
  font-stretch: 100%;
  letter-spacing: -.055em;
  line-height: .74;
  font-size: min(25vw, 320px);
  user-select: none;
}
.hero__word--1 { top: -.03em; right: .02em; }
.hero__word--2 { bottom: -.12em; left: -.03em; }

/* ---------- Creme-Fläche mit Logo ---------- */
/* schmaler dunkler Banner unter dem Titelbild */
.mark {
  background: #11120a; color: var(--cream);
  padding: 15px 24px; text-align: center;
  font-size: 11px; letter-spacing: .32em; text-transform: uppercase;
  border-top: 1px solid rgba(239, 233, 221, .08);
}
.logo {
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: .72;
  font-size: clamp(54px, 7vw, 88px);
  text-align: left;
}
.logo span { display: block; }
.logo span:last-child { padding-left: .42em; }

/* ---------- Footer ---------- */
.footer {
  display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px;
  padding: 24px clamp(18px, 3vw, 40px);
  background: var(--cream); color: var(--ink);
  border-top: 1px solid rgba(29, 28, 26, .15);
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
}
.footer .logo { font-size: 30px; text-transform: none; letter-spacing: -.06em; }
.footer__links { display: flex; gap: 28px; }
.footer a:hover { opacity: .6; }

/* ---------- Unterseiten (Impressum, 404) ---------- */
.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px clamp(18px, 3vw, 40px);
  background: var(--night);
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
}
.page {
  background: var(--cream); color: var(--ink);
  padding: clamp(48px, 8vw, 110px) clamp(18px, 3vw, 40px);
}
.page__inner { max-width: 640px; }
.page h1 { font-weight: 480; letter-spacing: -.05em; line-height: .9; font-size: clamp(56px, 9vw, 120px); margin: 0 0 40px; }
.page h2 { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin: 32px 0 6px; }
.page p { margin: 0; }
.page a { text-decoration: underline; }
.todo { background: rgba(45, 49, 9, .12); padding: 0 .2em; }

/* ---------- Mobil ---------- */
@media (max-width: 700px) {
  .frame { margin: 0; border-radius: 0; box-shadow: none; }
  .hero { aspect-ratio: auto; height: 88svh; min-height: 560px; }
  .hero__photo { object-position: 47% 50%; }   /* Nils und die Bierdose bleiben im Bild */
  .hero__word { font-size: 31vw; }
  .hero__word--1 { top: 9vh; right: .04em; }
  .hero__nav { top: 20px; }
  .footer { flex-direction: column; align-items: flex-start; }
}

/* ---------- Pfeile als Grafik (sonst zeigt iOS ↗ als Emoji) ---------- */
.arr {
  display: inline-block; width: .78em; height: .78em; margin-left: .3em; vertical-align: -.02em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.4'%3E%3Cpath d='M3 13 13 3M5 3h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.4'%3E%3Cpath d='M3 13 13 3M5 3h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.arr--down {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.4'%3E%3Cpath d='M8 2v12M3 9l5 5 5-5'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.4'%3E%3Cpath d='M8 2v12M3 9l5 5 5-5'/%3E%3C/svg%3E");
}

/* ---------- Kontakt ---------- */
.contact {
  background: var(--cream); color: var(--ink);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: clamp(20px, 3vw, 44px);
  padding: clamp(56px, 9vw, 120px) clamp(20px, 3vw, 44px);
}
.contact__label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding-top: .6em; }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(28px, 4vw, 52px); }
.contact__kind { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #6e685d; margin-bottom: 8px; }
.contact__list a {
  font-weight: 480; letter-spacing: -.045em; line-height: .95;
  font-size: clamp(30px, 4.6vw, 64px);
  white-space: nowrap;
}
.contact__list a .arr { width: .42em; height: .42em; margin-left: .18em; vertical-align: .38em; }
.contact__list a:hover { opacity: .6; }
@media (max-width: 700px) {
  .contact { grid-template-columns: 1fr; }
  .contact__list a { font-size: 8.2vw; }
}

/* ---------- Geheimnis: Bierdose ---------- */
.can {
  position: absolute; z-index: 4; padding: 0; margin: 0;
  background: none; border: 0; border-radius: 30%;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.can:focus-visible { outline: 1px dashed rgba(239,233,221,.5); outline-offset: 4px; }
.can-form {
  position: absolute; z-index: 5; transform: translate(-50%, -100%);
}
.can-form input {
  width: 150px; padding: 7px 10px;
  background: rgba(14, 15, 6, .82); color: var(--cream);
  border: 1px solid rgba(239,233,221,.45); border-radius: 0;
  font: 500 12px/1 var(--sans); letter-spacing: .14em; text-align: center;
  outline: none;
}
.can-form input::placeholder { color: rgba(239,233,221,.6); }
.can-form.nope { animation: nope .35s; }
@keyframes nope { 20%, 60% { transform: translate(calc(-50% - 6px), -100%); } 40%, 80% { transform: translate(calc(-50% + 6px), -100%); } }

/* ---------- Ein Zimmer im Wedding (Leseprobe) ---------- */
.wedding {
  --g: clamp(20px, 3vw, 44px);
  background: var(--cream); color: var(--ink);
  border-top: 1px solid rgba(29, 28, 26, .15);
  padding: var(--g) var(--g) clamp(64px, 9vw, 130px);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--g);
}
.wd-label { grid-column: 1 / -1; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.wd-title {
  grid-column: 1 / -1; margin: clamp(28px, 5vw, 70px) 0 clamp(36px, 6vw, 90px) -.04em;
  font-weight: 480; letter-spacing: -.055em; line-height: .8;
  font-size: min(13vw, 178px);
}
.wd-side { padding-top: .45em; }
.wd-chapter { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.1; }
.wd-meta { margin: 10px 0 0; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #6e685d; }
.wd-text { max-width: 36em; font-family: var(--serif); font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; }
.wd-text p { margin: 0 0 .9em; }
.wd-text > p:first-child::first-letter {
  float: left; font-family: var(--sans); font-weight: 480; letter-spacing: -.05em;
  font-size: 4.1em; line-height: .78; padding: .07em .1em 0 0;
}
.wd-end { margin-top: 1.6em !important; font-size: .82em; font-style: italic; color: #6e685d; }
.wd-end a { border-bottom: 1px solid currentColor; }
.wd-toggle { display: none; }

/* mit JS: eingeklappt bis auf die ersten Absätze */
.is-collapsible .wd-rest { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s ease; }
.is-collapsible .wd-rest > div { overflow: hidden; }
.is-collapsible.is-open .wd-rest { grid-template-rows: 1fr; }
.is-collapsible .wd-text > p:nth-of-type(2) { position: relative; }
.is-collapsible:not(.is-open) .wd-text > p:nth-of-type(2)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.9em; height: 4.5em;
  background: linear-gradient(to bottom, rgba(239, 233, 221, 0), var(--cream));
}
.is-collapsible .wd-toggle {
  display: inline-flex; align-items: center; margin-top: 18px; padding: 12px 0 4px;
  background: none; border: 0; border-bottom: 1px solid currentColor; color: inherit; cursor: pointer;
  font: 500 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
}
.is-open .wd-toggle .arr { transform: rotate(180deg); }
.wd-toggle:hover { opacity: .6; }
@media (prefers-reduced-motion: reduce) { .is-collapsible .wd-rest { transition: none; } }
@media (max-width: 700px) {
  .wedding { grid-template-columns: 1fr; }
  .wd-title { font-size: 17vw; }
  .wd-side { padding: 0 0 22px; }
}
