/* ========================================
   afa – Architektur für alle
   One-Pager Stylesheet
   ======================================== */

/* ---- Font ---- */
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---- Custom Properties ---- */
:root {
  --color-black: #1a1a1a;
  --color-white: #ffffff;
  --color-gray-light: #f5f5f3;
  --color-gray: #888888;
  --color-border: #e5e5e5;
  --color-yellow: rgb(255, 245, 0);

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nav-height: 60px;
  --container-width: 820px;
  --container-padding: 2rem;
}

/* ---- Base ---- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-family);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-black);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Typography ---- */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.5;
}

h1, h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  margin-top: 2.5rem;
  letter-spacing: -0.01em;
}

h1 {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

h2:first-child,
.block:first-child h2 {
  margin-top: 0;
}

h3 {
  margin-bottom: 0.75rem;
  margin-top: 2rem;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-black);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.6;
}

strong {
  font-weight: 700;
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.35rem;
}

/* ---- Layout ---- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ---- Sections ---- */
.section {
  padding: 3rem 0;
}

.section--intro {
  padding-top: calc(var(--nav-height) + 6rem);
  padding-bottom: 5rem;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.section--intro .container {
  width: 100%;
}

.section--intro h2 {
  margin-top: 0;
}

/* ---- Parallax ---- */
.parallax {
  position: relative;
  height: 65vh;
  min-height: 400px;
  overflow: hidden;
  clip-path: inset(0);
  background-color: var(--color-gray-light);
}

.parallax picture {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.parallax img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.parallax__credits {
  position: absolute;
  bottom: 1rem;
  right: 1.5rem;
  font-size: 0.8rem;
  color: var(--color-white);
  opacity: 0.7;
  z-index: 1;
}

/* ---- Blocks ---- */
.block {
  margin-bottom: 0;
}

.block-type-image {
  margin: 2.5rem 0;
}

.block-type-image img {
  width: 100%;
  height: auto;
  display: block;
}

.block-type-image figcaption {
  font-size: 0.85rem;
  color: var(--color-black);
  margin-top: 0.5rem;
}

.block-type-list ul {
  list-style: disc;
}

/* ---- Footer ---- */
.footer {
  background: var(--color-black);
  color: var(--color-white);
  padding: 4rem 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.footer__slogan p {
  margin-bottom: 0.5rem;
}

.footer__address {
  font-style: normal;
}

.footer__address p {
  margin-bottom: 0;
}

.footer__email {
  margin-top: 1rem;
}

.footer__links {
  margin-top: 1em;
}

.footer__links p {
  margin-bottom: 0;
}

.footer a {
  color: var(--color-white);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  :root {
    --container-padding: 1.5rem;
    --nav-height: 56px;
  }

  h1, h2 {
    font-size: 1.6rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section--intro {
    min-height: 70vh;
    padding-top: calc(var(--nav-height) + 3rem);
  }

  .parallax {
    height: 45vh;
    min-height: 250px;
    clip-path: none;
  }

  .parallax picture {
    position: absolute;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 1.25rem;
  }

  body {
    font-size: 0.95rem;
  }
}
