/* Emil Schneider e.K. – Entwurf Upwell GmbH */

@font-face {
  font-family: "Vollkorn";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/vollkorn-latin-ext-400-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: "Vollkorn";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/vollkorn-latin-400-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: "Vollkorn";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/vollkorn-latin-ext-400-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;
}
@font-face {
  font-family: "Vollkorn";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/vollkorn-latin-400-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: "Vollkorn";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/vollkorn-latin-ext-600-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: "Vollkorn";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/vollkorn-latin-600-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;
}

:root {
  --iron: #24242a;
  --iron-2: #303036;
  --iron-3: #3c3c43;
  --ink: #333333;
  --steel: #757575;
  --ash: #cccccc;
  --mist: #f0f0f0;
  --line: #e5e5e5;
  --paper: #ffffff;
  --glut: #e41e2a;
  --wrap: 1240px;
  --gutter: 20px;
  --serif: "Vollkorn", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  font-variant-numeric: lining-nums;
  overflow-wrap: break-word;
}

img { display: block; max-width: 100%; }
figure { margin: 0; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:focus-visible { outline: 2px solid var(--glut); outline-offset: 3px; }

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

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Entwurfsleiste */
.entwurf {
  background: var(--iron);
  color: var(--ash);
  font-size: 0.875rem;
  line-height: 1.4;
  text-align: center;
  padding: 7px var(--gutter);
}

/* Kopf */
.kopf { background: var(--paper); border-bottom: 1px solid var(--line); }
.kopf-innen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 32px;
  padding-top: 14px;
  padding-bottom: 0;
}
.logo { display: block; flex: 0 1 auto; max-width: 100%; }
.logo img { height: 72px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }

.nav { width: 100%; padding-bottom: 6px; }
.nav ul { display: flex; flex-wrap: wrap; gap: 0 20px; white-space: nowrap; }
.nav a {
  display: block;
  padding: 6px 0 8px;
  font-size: 1rem;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--glut); }

/* Hero */
.hero { background: var(--iron); color: var(--paper); }
.hero-foto { aspect-ratio: 4 / 3; background: var(--iron-2); overflow: hidden; }
.hero-foto img { width: 100%; height: 100%; object-fit: cover; }
.hero-text { padding: 36px var(--gutter) 44px; }
.hero-firma {
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ash);
  font-weight: 600;
}
.hero-firma::before {
  content: "";
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  margin: 0 0.7em 0.14em 0.1em;
  background: var(--glut);
  transform: rotate(45deg);
  vertical-align: middle;
}
.hero h1 {
  margin-top: 22px;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.3rem, 8.4vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 13em;
}
.hero-sub {
  margin-top: 22px;
  max-width: 25em;
  color: var(--ash);
  font-size: 1.1875rem;
}

/* Abschnitte */
.abschnitt { padding: 64px 0; }
.abschnitt + .abschnitt { border-top: 1px solid var(--line); }

.titel {
  font-weight: 600;
  font-size: clamp(2.5rem, 9vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.015em;
}
.leitsatz {
  margin-top: 10px;
  font-style: italic;
  font-size: clamp(1.25rem, 3.4vw, 1.625rem);
  line-height: 1.3;
  color: var(--steel);
}

/* Willkommen */
.willkommen-innen { display: grid; gap: 24px; }
.willkommen h2 {
  font-weight: 600;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.1;
}
.willkommen p { font-size: clamp(1.1875rem, 2.4vw, 1.4375rem); line-height: 1.55; max-width: 34em; }
.willkommen p + p { margin-top: 16px; }
.seit {
  display: inline-block;
  font-weight: 600;
  border-bottom: 2px solid var(--glut);
  line-height: 1.2;
}

/* Werkliste – die Aufzählung der Arbeiten als geschmiedetes Band */
.werkliste {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  font-size: clamp(1.3rem, 3.6vw, 2.1rem);
  line-height: 1.4;
  color: var(--ink);
  max-width: 30em;
}
.werkliste li { white-space: nowrap; }
.werkliste li::after {
  content: "";
  display: inline-block;
  width: 0.26em;
  height: 0.26em;
  margin: 0 0.5em 0.18em;
  background: var(--glut);
  transform: rotate(45deg);
  vertical-align: middle;
}
.werkliste li:last-child::after { display: none; }

.text { margin-top: 24px; max-width: 36em; }
.text p + p { margin-top: 10px; }

/* Bildraster */
.raster {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.raster figure { position: relative; aspect-ratio: 1 / 1; background: var(--mist); overflow: hidden; }
.raster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.raster .breit { grid-column: span 2; aspect-ratio: 2 / 1; }
.raster .hoch { grid-row: span 2; aspect-ratio: auto; }

/* Gruppen (ums Haus, Grabkreuze) */
.gruppen { margin-top: 44px; display: grid; gap: 40px; }
.gruppe h3 {
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  padding-top: 14px;
  border-top: 2px solid var(--iron);
}
.gruppe .raster { margin-top: 16px; }
.raster.drei figure:nth-child(3) { grid-column: span 2; aspect-ratio: 2 / 1; }
.werk { white-space: nowrap; }
.werk:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 0.3em;
  height: 0.3em;
  margin: 0 0.3em 0.16em 0.55em;
  background: var(--glut);
  transform: rotate(45deg);
  vertical-align: middle;
}

/* Projekte */
.projekte { background: var(--iron); color: var(--paper); }
.projekte .abschnitt { border-top: 0; }
.projekte .leitsatz { color: var(--ash); }
.projekt-liste { margin-top: 44px; display: grid; gap: 52px; }
.projekt { display: grid; gap: 18px; }
.projekt h3 {
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.15;
}
.projekt-art { margin-top: 8px; color: var(--ash); font-style: italic; }
.projekt ul { margin-top: 6px; }
.projekt li { padding-left: 1.1em; position: relative; color: var(--paper); }
.projekt li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.36em;
  height: 0.36em;
  background: var(--glut);
  transform: rotate(45deg);
}
.projekt-fotos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.projekt-fotos figure { aspect-ratio: 4 / 3; background: var(--iron-2); overflow: hidden; }
.projekt-fotos img { width: 100%; height: 100%; object-fit: cover; }

.frueher { margin-top: 60px; padding-top: 22px; border-top: 1px solid var(--iron-3); }
.frueher h3 { font-weight: 600; font-size: 1.25rem; color: var(--ash); }
.frueher dl { margin-top: 12px; display: grid; gap: 14px; }
.frueher dt { font-weight: 600; }
.frueher dd { color: var(--ash); }

/* Zertifikate */
.zertifikate { background: var(--mist); }
.abschnitt.zertifikate { border-top: 0; }
.siegel {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.siegel figure {
  background: var(--paper);
  height: 128px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.siegel figure:last-child { grid-column: span 2; }
.siegel img { max-height: 92px; width: auto; max-width: 100%; height: auto; object-fit: contain; }
.urkunden {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.urkunden figure { background: var(--paper); padding: 10px; }
.urkunden img { width: 100%; height: auto; aspect-ratio: 7 / 10; object-fit: contain; background: var(--line); }

/* Kontakt */
.kontakt-satz {
  margin-top: 22px;
  font-size: clamp(1.375rem, 3.6vw, 2rem);
  line-height: 1.3;
  max-width: 24em;
}
.kontakt-daten { margin-top: 40px; display: grid; gap: 28px; }
.kontakt-daten h3 {
  font-weight: 400;
  font-style: italic;
  font-size: 1rem;
  color: var(--steel);
}
.kontakt-daten p { font-size: clamp(1.25rem, 2.6vw, 1.5rem); line-height: 1.4; margin-top: 4px; }
.kontakt-daten .klein { font-size: 1.0625rem; color: var(--steel); margin-top: 6px; }

/* Fuß */
.fuss { background: var(--iron); color: var(--ash); font-size: 1rem; }
.fuss-innen {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 32px;
  padding-top: 32px;
  padding-bottom: 36px;
}
.fuss strong { color: var(--paper); font-weight: 600; }
.fuss ul { display: flex; gap: 24px; }
.fuss a { color: var(--ash); }
.fuss a:hover { color: var(--paper); }

/* Unterseiten */
.seite { padding: 56px 0 72px; }
.seite h1 {
  font-weight: 600;
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  line-height: 1.05;
}
.angaben { margin-top: 32px; display: grid; gap: 28px; max-width: 44em; }
.angaben address { font-style: normal; font-size: 1.25rem; line-height: 1.5; }
.angaben dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 24px; }
.angaben dt { color: var(--steel); font-size: 1rem; margin-top: 10px; }
.angaben dd { font-size: 1.125rem; }
.hinweis {
  margin-top: 36px;
  max-width: 44em;
  background: #fff3b0;
  border: 1px solid #e2c044;
  border-left-width: 6px;
  color: #4a3b00;
  padding: 16px 20px;
  font-size: 1.0625rem;
  line-height: 1.55;
}
.seite .hinweis:first-of-type { margin-top: 28px; }

@media (min-width: 720px) {
  :root { --gutter: 40px; }
  .raster { gap: 10px; }
  .gruppe .raster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .raster.drei figure:nth-child(3) { grid-column: auto; aspect-ratio: 1 / 1; }
  .siegel { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .siegel figure:last-child { grid-column: auto; }
  .urkunden { gap: 10px; }
  .kontakt-daten { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .angaben dl { grid-template-columns: 12em minmax(0, 1fr); }
  .angaben dt { margin-top: 0; padding-top: 3px; }
  .frueher dl { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
}

@media (min-width: 1000px) {
  .kopf-innen { flex-wrap: nowrap; padding-top: 18px; padding-bottom: 18px; }
  .logo img { height: 92px; }
  .nav { width: auto; padding: 0; }
  .nav ul { flex-wrap: nowrap; gap: 28px; }
  .nav a { padding: 6px 0; }

  .hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); min-height: 620px; }
  .hero-text {
    order: -1;
    align-self: center;
    padding: 72px 56px 72px max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  }
  .hero-foto { aspect-ratio: auto; min-height: 100%; }

  .abschnitt { padding: 104px 0; }

  .willkommen-innen { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; }

  .kopfzeile { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; }
  .kopfzeile .text { margin-top: 0; }

  .raster { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 48px; }
  .raster .breit { aspect-ratio: auto; }

  .gruppen { gap: 48px; margin-top: 56px; }
  .gruppe { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 32px; }
  .gruppe h3 { align-self: start; }
  .gruppe .raster { margin-top: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .projekt { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
  .projekt-fotos { gap: 12px; }

  .zert-innen { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: end; }
  .siegel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .siegel figure { height: 136px; }
  .siegel figure:last-child { grid-column: span 2; }
  .urkunden { margin-top: 0; gap: 12px; }
  .urkunden figure { padding: 14px; }

  .gruppe h3 .werk { display: block; }
  .gruppe h3 .werk:not(:last-child)::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
