:root {
  --bg: #f5f1e8;
  --text: #1f1a17;
  --muted: rgba(31, 26, 23, 0.65);
  --max-text-width: 1180px;
  --max-image-width: 1400px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1 {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 2rem;
}

p {
  margin: 0 0 1.1rem;
  font-size: 1.05rem;
}

main {
  width: 100%;
}

.block {
  width: 100%;
}

.media-wrapper {
  position: relative;
  width: calc(100% - 8vw);
  max-width: var(--max-image-width);
  margin: 0 auto;
}

.media-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background-color: #d8d2c8;
}

.text-block {
  width: calc(100% - 12vw);
  max-width: var(--max-text-width);
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
}

.small-title {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2.5vh;
  margin-bottom: 0;
}

/* Hero */
.block-hero {
  margin-bottom: 12vh;
}

.block-hero .media-wrapper img {
  height: 100vh;
}

.hero-line {
  position: absolute;
  left: 5vw;
  bottom: 12vh;
  max-width: 40%;
  padding: 1.25rem 1.5rem;
  background: rgba(245, 241, 232, 0.82);
  font-size: clamp(1.4rem, 2vw + 0.2rem, 2rem);
  line-height: 1.4;
}

/* Block 2 */
.block-place .media-wrapper img {
  height: 70vh;
}

.block-place .text-block {
  margin-top: 4vh;
}

.block-place {
  margin-bottom: 10vh;
}

/* Block 3 */
.block-material .media-wrapper img {
  height: 55vh;
}

.block-material {
  margin-bottom: 14vh;
}

/* Block 4 */
.block-use-work .text-block {
  margin-bottom: 3vh;
}

.block-use-work .media-wrapper img {
  height: 65vh;
}

.block-use-work {
  margin-bottom: 8vh;
}

/* Block 5 */
.block-technology .media-wrapper img {
  height: 60vh;
}

.block-technology {
  margin-bottom: 12vh;
}

/* Block 6 */
.block-reflection .media-wrapper img {
  height: 50vh;
}

.block-reflection .text-block {
  margin-top: 4vh;
}

.block-reflection {
  margin-bottom: 10vh;
}

/* Block 7 */
.block-pause .media-wrapper img {
  height: 80vh;
}

.block-pause {
  margin-bottom: 16vh;
}

/* Block 8 */
.block-access .media-wrapper img {
  height: 45vh;
}

.block-access .text-block {
  margin-top: 4vh;
  margin-bottom: 2vh;
}

.block-access {
  margin-bottom: 14vh;
}

.form-wrapper {
  width: calc(100% - 12vw);
  max-width: 420px;
  margin: 0 auto;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group + .form-group {
  margin-top: 1.5rem;
}

.form-group label {
  font-size: 0.95rem;
  color: var(--muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(31, 26, 23, 0.18);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  margin-top: 2rem;
}

.form-actions button {
  width: 100%;
  padding: 0.85rem 1rem;
  border: none;
  background: var(--text);
  color: var(--bg);
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.form-actions button:hover {
  opacity: 0.9;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.98rem;
}

.page-footer {
  text-align: center;
  font-size: 0.78rem;
  opacity: 0.65;
  padding: 0 0 6vh;
}

.page-footer a {
  color: inherit;
  text-decoration: none;
}

.page-footer a:hover {
  text-decoration: underline;
}

.impressum-page {
  padding: 8vh 0 10vh;
}

.impressum-label {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1.2rem;
  margin-bottom: 0.35rem;
}

[data-fade] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1.1s ease, transform 1.1s ease;
}

[data-fade].visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  p {
    font-size: 1rem;
  }

  .text-block {
    width: calc(100% - 10vw);
  }

  .hero-line {
    max-width: 60%;
  }

  .block-hero .media-wrapper img {
    height: 85vh;
  }

  .block-place .media-wrapper img {
    height: 65vh;
  }

  .block-material .media-wrapper img {
    height: 50vh;
  }

  .block-use-work .media-wrapper img {
    height: 60vh;
  }

  .block-technology .media-wrapper img {
    height: 55vh;
  }

  .block-reflection .media-wrapper img {
    height: 45vh;
  }

  .block-pause .media-wrapper img {
    height: 70vh;
  }

  .block-access .media-wrapper img {
    height: 40vh;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 1.4rem;
  }

  .media-wrapper {
    width: calc(100% - 6vw);
  }

  .text-block {
    width: calc(100% - 8vw);
    line-height: 1.65;
  }

  .hero-line {
    left: 6vw;
    max-width: 70%;
    bottom: 10vh;
    padding: 1rem 1.1rem;
    font-size: 1.2rem;
  }

  .block-hero .media-wrapper img {
    height: 75vh;
  }

  .block-place .media-wrapper img {
    height: 60vh;
  }

  .block-material .media-wrapper img {
    height: 45vh;
  }

  .block-use-work .media-wrapper img {
    height: 55vh;
  }

  .block-technology .media-wrapper img {
    height: 50vh;
  }

  .block-reflection .media-wrapper img {
    height: 45vh;
  }

  .block-pause .media-wrapper img {
    height: 60vh;
  }

  .block-access .media-wrapper img {
    height: 35vh;
  }
}

