/* hofmannmoritz.com: the portfolio part, the footer and the legal pages. The wedding
   section brings its own styles (hochzeit.css, unchanged from fastpal.com/hochzeit).
   Colors and fonts of the former E-Commerce page on fastpal.com. */
:root {
  --pf-ground: #ffffff;
  --pf-ink: #121316;
  --pf-body: #3a3d45;
  --pf-muted: #5b5f69;
  --pf-line: #dadce2;
  --pf-accent: #1f3bd6;
  --pf-accent-hover: #152a9e;
  --pf-grey: #f3f4f6;
  --pf-on-ink: #ffffff;
  --pf-display: "Bricolage Grotesque", system-ui, sans-serif;
  --pf-text: "Public Sans", system-ui, sans-serif;
  /* hochzeit.css reads these two; on fastpal.com next/font set them. */
  --hz-font-display: "Cormorant Garamond";
  --hz-font-body: "Jost";
}

html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--pf-ground);
  color: var(--pf-ink);
  font-family: var(--pf-text);
  font-size: 18px;
  line-height: 1.55;
}
.pf-root h1,
.pf-root h2,
.pf-root h3 {
  font-family: var(--pf-display);
  font-weight: 700;
  margin: 0;
}
.pf-root p {
  margin: 0;
}
.pf-root a {
  color: var(--pf-accent);
}
.pf-root a:hover {
  color: var(--pf-accent-hover);
}
.pf-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation: the two sections as anchors, sticky so both stay one tap away. */
.pf-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--pf-ground);
  --st-breite: 1080px;
}
#projekte,
#hochzeit {
  scroll-margin-top: 52px;
}

.pf-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 40px;
}
.pf-foto {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.pf-hero-text {
  flex: 1 1 420px;
  min-width: 0;
}
.pf-hero h1 {
  font-size: clamp(36px, 5.5vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.pf-lead {
  margin-top: 16px !important;
  color: var(--pf-body);
  max-width: 640px;
}
.pf-kontakt {
  margin-top: 20px !important;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-weight: 600;
}

/* Projects: tabs on top, the screenshot in a browser frame, the info below.
   Without the script all projects show one below the other. */
.pf-projekte {
  padding-top: 24px;
  padding-bottom: 72px;
}
.pf-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 28px;
}
.pf-kopf h2 {
  font-size: clamp(28px, 4vw, 38px);
}
.pf-reiter {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--pf-grey);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.pf-reiter::-webkit-scrollbar {
  display: none;
}
.pf-reiter button {
  flex: none;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--pf-body);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.pf-reiter button:hover {
  color: var(--pf-ink);
}
.pf-reiter button[aria-selected="true"] {
  background: var(--pf-ink);
  color: var(--pf-on-ink);
}
.pf-reiter button:focus-visible {
  outline: 2px solid var(--pf-accent);
  outline-offset: 2px;
}
.pf-projekt + .pf-projekt {
  margin-top: 56px;
}
.pf-projekt[hidden] {
  display: none;
}
.pf-js .pf-projekt + .pf-projekt {
  margin-top: 0;
}
.pf-browser {
  border: 1px solid var(--pf-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(18, 19, 22, 0.08);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  background: var(--pf-grey);
}
.pf-leiste {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px 0 16px;
  height: 44px;
}
.pf-leiste span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--pf-line);
}
.pf-root .pf-adresse {
  align-self: center;
  margin-right: 16px;
  padding: 3px 12px;
  border-radius: 8px;
  background: var(--pf-ground);
  color: var(--pf-muted);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pf-browser img {
  grid-column: 1 / -1;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: top;
  display: block;
  border-top: 1px solid var(--pf-line);
  background: var(--pf-ground);
}
.pf-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 40px;
  margin-top: 28px;
}
.pf-info h3 {
  font-size: 30px;
}
.pf-art {
  margin-top: 8px !important;
  color: var(--pf-muted);
  font-size: 17px;
}
.pf-links {
  margin-top: 14px !important;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-weight: 600;
}
.pf-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pf-muted);
  margin-bottom: 10px !important;
}
.pf-gemacht ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 36px;
  row-gap: 8px;
  color: var(--pf-body);
}

/* Footer and legal pages */
.pf-footer {
  background: var(--pf-ink);
  color: var(--pf-on-ink);
  font-size: 15px;
}
.pf-footer .pf-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 28px;
}
.pf-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.pf-footer a {
  color: var(--pf-on-ink);
}
.pf-recht {
  padding-top: 48px;
  padding-bottom: 72px;
  max-width: 760px;
}
.pf-recht h1 {
  font-size: 40px;
  margin-bottom: 24px;
}
.pf-recht h2 {
  font-size: 22px;
  margin: 32px 0 8px;
}
.pf-recht p + p {
  margin-top: 10px;
}
.pf-zurueck-link {
  display: inline-block;
  margin-bottom: 24px;
}

@media (max-width: 760px) {
  .pf-info,
  .pf-gemacht ul {
    grid-template-columns: minmax(0, 1fr);
  }
  .pf-info {
    gap: 20px;
  }
  .pf-hero {
    padding-top: 36px;
    gap: 20px;
  }
  .pf-foto {
    width: 96px;
    height: 96px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* On fastpal.com the wedding page had its own header above the hero; here the
   portfolio ends right before it. */
#hochzeit .hz-hero {
  padding-top: 64px;
}

/* Phones: the four tabs as a 2 x 2 grid, so none is cut off at the edge. */
@media (max-width: 560px) {
  .pf-reiter {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 18px;
  }
  .pf-reiter button {
    border-radius: 14px;
    padding: 0 10px;
  }
}
