/* --- Schriften, selbst ausgeliefert -------------------------------------
   Liegen unter assets/fonts/ und kommen vom eigenen Hoster. Kein Aufruf an
   fonts.googleapis.com — sonst ginge bei jedem Seitenaufruf die IP-Adresse
   des Besuchers an Google, und die Datenschutzzeile im Impressum wäre falsch.
   Source Sans 3 und Source Serif 4 stehen unter der SIL Open Font License,
   Selbsthosten ist ausdrücklich erlaubt.

   Es sind Variable Fonts: eine Datei je Familie und Subset deckt alle
   Schnitte ab, deshalb die Gewichtsspanne statt einzelner Werte.
   Nur latin und latin-ext — kyrillisch, griechisch und vietnamesisch
   braucht diese Seite nicht.
   ---------------------------------------------------------------------- */

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('fonts/SourceSans3-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;
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('fonts/SourceSans3-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: 'Source Serif 4';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('fonts/SourceSerif4-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;
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('fonts/SourceSerif4-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;
}

/* ==========================================================================
   Hani El-Zaim — Studio
   Warmes Papier, Rost, Serife. Kein Neon, keine Karten-Landingpage.
   Farben und Maße nur hier als Custom Properties.
   ========================================================================== */

:root {
  --paper:    #F1EBE1;
  --paper-2:  #E6DDD0;
  --ink:      #1F1A16;
  --ink-2:    #5C534A;
  --line:     #D4CBBC;
  --accent:   #8F3D1B;

  --paper-3:  #FAF6EF;
  --accent-tint: #F2E2D8;

  --header-h: 4.25rem;
  --wrap:     1080px;
  --pad:      clamp(1.25rem, 4vw, 2.5rem);

  --f-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-sans:  "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-serif);
  font-size: 1.05rem;
  line-height: 1.55;
  font-optical-sizing: auto;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--accent); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: 1rem; top: 1rem; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 0.5rem 0.85rem;
  font-family: var(--f-sans);
  font-size: 0.9rem;
}

/* --- Typo ---------------------------------------------------------------- */

.h1 {
  margin: 0;
  font-family: var(--f-serif);
  font-size: clamp(2.1rem, 5.2vw, 3.35rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  max-width: 18ch;
}
.h2 {
  margin: 0;
  font-family: var(--f-serif);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 600;
  line-height: 1.2;
}
.h3 {
  margin: 0;
  font-family: var(--f-serif);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
}

.kicker {
  margin: 0 0 0.7rem;
  font-family: var(--f-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.lead {
  margin: 1.15rem 0 0;
  max-width: 38em;
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.sub {
  margin: 0.7rem 0 0;
  max-width: 40em;
  color: var(--ink-2);
}

.sample-note {
  font-family: var(--f-sans);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-2);
  border-left: 2px solid var(--accent);
  padding: 0.1rem 0 0.1rem 0.75rem;
  max-width: 58ch;
}

/* --- Buttons / links ----------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  font-family: var(--f-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.7rem 1.15rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}
.btn:hover { background: var(--accent); border-color: var(--accent); }

.text-link {
  font-family: var(--f-sans);
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
.text-link:hover { color: var(--ink); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem 1.6rem;
  margin-top: 1.8rem;
}

/* --- Header -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  padding: 0.35rem 0;
  color: var(--ink);
  transition: opacity 0.15s ease;
}
.brand:hover {
  opacity: 0.82;
}

/* Das geometrische ELZ-Signet als primäre Bildmarke im Header */
.brand-mark {
  width: auto;
  height: 3rem;
  display: block;
  flex: none;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-desk {
  display: none;
  align-items: center;
  gap: 1.4rem;
  font-family: var(--f-sans);
  font-size: 0.92rem;
}
.nav-desk a:hover { color: var(--accent); }
.nav-desk a.is-current {
  text-decoration: underline;
  text-underline-offset: 0.28em;
  text-decoration-thickness: 1px;
}

.lang-switch {
  display: flex;
  gap: 0.55rem;
  font-family: var(--f-sans);
  font-size: 0.78rem;
  font-weight: 600;
}
.lang-switch button { color: var(--ink-2); padding: 0.4rem 0.3rem; }
.lang-switch button.is-active {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.nav-toggle {
  display: inline-grid;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.55rem;
  margin-right: -0.55rem;
  align-content: center;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.22s, opacity 0.16s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 55;
  background: var(--paper);
  display: none;
  padding: 1.2rem var(--pad) 2.5rem;
  overflow-y: auto;
  border-top: 1px solid var(--line);
}
.nav-overlay.is-open { display: block; }
.nav-overlay nav { display: flex; flex-direction: column; }
.nav-overlay nav a {
  min-height: 3.25rem;
  display: flex;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-serif);
  font-size: 1.55rem;
  font-weight: 600;
}
.nav-overlay nav a.is-current { color: var(--accent); }
.nav-overlay .btn { margin-top: 1.6rem; }

@media (min-width: 900px) {
  .nav-desk { display: flex; }
  .nav-toggle { display: none; }
  .nav-overlay { display: none !important; }
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  padding-top: clamp(2.8rem, 8vw, 5.2rem);
  padding-bottom: clamp(3rem, 8vw, 5.5rem);
}
.hero .h1 { max-width: 16ch; }

#angebote,
#modelle,
#projekte,
#ablauf,
#kontakt {
  scroll-margin-top: calc(var(--header-h) + 10px);
}

/* --- Sections ------------------------------------------------------------ */

.sec {
  padding-top: clamp(2.8rem, 6vw, 4.5rem);
  padding-bottom: clamp(2.8rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
}
.sec-head { margin-bottom: 2rem; }

/* --- Leistungen: Zeilen, keine Karten ------------------------------------ */

.svc-list { border-top: 1px solid var(--line); }
.svc {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) {
  .svc {
    display: grid;
    grid-template-columns: 14rem 1fr;
    gap: 1.5rem;
    align-items: baseline;
  }
}
.svc p {
  margin: 0.35rem 0 0;
  color: var(--ink-2);
}
@media (min-width: 720px) {
  .svc p { margin: 0; }
}

/* --- Angebote: Zeilen mit Preis rechts, keine Preiskarten ---------------- */

.pkg-list { border-top: 1px solid var(--line); max-width: 54rem; }

.pkg {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.pkg-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 1.5rem;
  align-items: baseline;
}
.pkg-name { margin: 0; font-size: 1.22rem; font-weight: 600; line-height: 1.3; }
.pkg-price {
  font-family: var(--f-sans);
  font-size: 1.22rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pkg-for {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink-2);
  max-width: 44em;
}

.pkg-items {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem 1.6rem;
  font-size: 0.98rem;
  color: var(--ink-2);
}
@media (min-width: 40rem) { .pkg-items { grid-template-columns: 1fr 1fr; } }
.pkg-items li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: baseline;
}
.pkg-items li::before {
  content: "";
  width: 0.4rem; height: 1px;
  background: var(--accent);
  transform: translateY(-0.3em);
}
.pkg-alt {
  margin: 1rem 0 0;
  font-family: var(--f-sans);
  font-size: 0.9rem;
  color: var(--ink-2);
}
.pkg-alt strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Paket C hat Stufen — dieselbe Zeilenform eine Ebene tiefer */
.pkg-step { margin-top: 1.4rem; padding-left: 1.1rem; border-left: 2px solid var(--line); }
.pkg-step-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.3rem 1.2rem;
  align-items: baseline;
}
.pkg-step-top h4 {
  margin: 0;
  font-family: var(--f-serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}
.pkg-step-price {
  font-family: var(--f-sans);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pkg-step .pkg-items { margin-top: 0.7rem; }
.pkg-step .pkg-alt { margin-top: 0.7rem; }

.price-note {
  margin: 1.6rem 0 0;
  max-width: 54rem;
  font-family: var(--f-sans);
  font-size: 0.88rem;
  color: var(--ink-2);
  max-width: 60ch;
}

/* --- Modelle ------------------------------------------------------------- */

.models { display: grid; gap: 1.6rem; margin-top: 1.8rem; }
@media (min-width: 46rem) { .models { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.model { border-top: 2px solid var(--accent); padding-top: 1rem; }
.model h3 { margin: 0 0 0.5rem; }
.model p { margin: 0; color: var(--ink-2); }
.model-tag {
  display: inline-block;
  margin-bottom: 0.6rem;
  font-family: var(--f-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-tint);
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
}

.mini { margin: 2.4rem 0 0; border-top: 1px solid var(--line); }
.mini-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 1.5rem;
  align-items: baseline;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.mini-row dt { font-weight: 600; }
.mini-row dd {
  margin: 0;
  font-family: var(--f-sans);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mini-row .mini-b {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-2);
}

/* --- Projekte ------------------------------------------------------------ */

.work-lead {
  margin-bottom: 2rem;
}
.work-lead img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}
.work-caption { margin-top: 0.9rem; max-width: 48em; }
.work-meta {
  margin: 0 0 0.3rem;
  font-family: var(--f-sans);
  font-size: 0.8rem;
  color: var(--ink-2);
}
.work-caption p {
  margin: 0.4rem 0 0;
  color: var(--ink-2);
}

.work-pair {
  display: grid;
  gap: 1.6rem;
}
@media (min-width: 800px) {
  .work-pair { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (min-width: 1100px) {
  .work-trio { grid-template-columns: 1fr 1fr 1fr; gap: 1.6rem; }
}
.work img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

/* Die Kachel ist als Ganzes anklickbar. Damit das vor dem Klick sichtbar ist:
   Rost-Hinweis in der Bildunterschrift, Rahmen und Telefon-Shot reagieren auf
   Hover und Tastaturfokus. */
.work-link {
  display: block;
  color: inherit;
}
.work-link img { transition: border-color 0.18s ease; }
.work-link:hover img,
.work-link:focus-visible img { border-color: var(--accent); }

.work-link .work-phone { transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.18s ease; }
.work-link:hover .work-phone {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(31, 26, 22, 0.26);
}

/* Höhere Spezifität als `.work-caption p`, sonst gewinnt dort die graue
   Textfarbe und der Hinweis sieht aus wie Fließtext. */
.work-caption .work-cta {
  margin: 0.75rem 0 0;
  font-family: var(--f-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}
.work-link:hover .work-cta,
.work-link:focus-visible .work-cta {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

/* Jedes Projekt zeigt beide Ansichten: die Seite am Rechner und dieselbe
   Seite auf dem Telefon — das Versprechen "für Handy und Rechner gebaut"
   ist damit zu sehen statt nur behauptet. */
.work-shots { position: relative; }
.work-lead .work-shots .work-phone { width: 15%; right: 3.5%; bottom: 6%; }
.work-shots .work-phone {
  position: absolute;
  right: 4.5%;
  bottom: 5%;
  width: 21%;
  min-width: 72px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(31, 26, 22, 0.22);
  background: var(--paper);
}

/* --- Ablauf -------------------------------------------------------------- */

.steps { border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.9rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.step-n {
  font-family: var(--f-serif);
  font-style: italic;
  color: var(--accent);
  font-size: 1.05rem;
}
.step p {
  margin: 0.25rem 0 0;
  color: var(--ink-2);
}

/* --- Kontakt / Fuß ------------------------------------------------------- */

.contact .mail {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.contact .mail:hover { color: var(--ink); }

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin-top: 1.2rem;
  font-family: var(--f-sans);
  font-size: 0.92rem;
  color: var(--ink-2);
}
.contact-meta a:hover { color: var(--accent); }

.site-footer {
  border-top: 1px solid var(--line);
  font-family: var(--f-sans);
  font-size: 0.82rem;
  color: var(--ink-2);
}
.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1.1rem var(--pad);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.site-footer a:hover { color: var(--accent); }

/* --- Legal --------------------------------------------------------------- */

.legal { max-width: 40rem; }
.legal h1 { margin: 0.45rem 0 0; }
.legal .sample-note { margin: 1.4rem 0 1.8rem; }
.legal dl { margin: 0; display: grid; gap: 1.2rem; }
.legal dt {
  font-family: var(--f-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.25rem;
}
.legal dd { margin: 0; }
.legal h2 {
  margin: 2.4rem 0 0.6rem;
  font-size: 1.35rem;
}
.legal p { color: var(--ink-2); }
.legal a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.legal a:hover { color: var(--accent); }

/* --- Reveal -------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transition: opacity 0.45s ease;
}
.js .reveal.is-in { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transition: none; }
  .work-link img,
  .work-link .work-phone { transition: none; }
  .work-link:hover .work-phone { transform: none; }
}
