:root {
  --page-bg: rgb(245, 234, 235);
  --text: #678187;
  --box: rgba(223, 225, 236, 0.7);
  --logo-frame: rgba(139, 99, 108, 0.7);

  --fs-logo: 48px;
  --fs-subtitle: 20px;
  --fs-section-title: 24px;
  --fs-body: 14px;
  --fs-small-title: 13px;

  --gap: 10px;
  --side-padding: 14px;
}

* {
  box-sizing: border-box;
}



body {
  margin: 10px;
  font-family: "area-normal", sans-serif;
  font-weight: 100;
  color: var(--text);
  background: var(--page-bg);
  text-align: left;
}


.top-section {
  position: relative;
  background: var(--page-bg);
  padding-bottom: 10px;
  margin-bottom: 50px;
}

/* DESKTOP: Header, Hero und Shape bleiben nur innerhalb der Top-Section sticky.
   Dadurch stoppen sie automatisch vor dem Info-Grid. */
@media (min-width: 1301px) {
  .site-header {
    position: sticky;
    top: 18px;
    left: auto;
    z-index: 3;
    padding: 0;
  }

  .sticky-shape-layer {
    position: sticky;
    top: 18px;
    height: 0;
    z-index: 0;
    pointer-events: none;
  }

  .hero {
    position: sticky;
    top: 100px;
  }
}

/* Default: kein Sticky/Fixed. Wichtig für Tablet und Mobile. */
.sticky-shape-layer {
  position: relative;
  height: 0;
  z-index: 0;
  pointer-events: none;
}

.background-shape {
  position: absolute;
  top: 8px;
  right: 15px;
  width: 110px;
  height: 110px;
  transform: none;
  background: var(--logo-frame);
  z-index: 0;
  pointer-events: none;
}

.background-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--page-bg);
}

.site-header {
  position: relative;
  z-index: 2;
  padding: 8px var(--side-padding) 0;
}

.brand h1 {
  margin: 0;
  font-size: var(--fs-logo);
  line-height: 0.8;
  text-transform: uppercase;
  font-weight: 800;
}

.brand p,
.hero-heading {
  font-size: var(--fs-subtitle);
  line-height: 1.2;
  font-weight: 700;
}

.quotes {
  position: relative;
  height: 3em; /* verhindert Layout-Sprung */
}

.quote {
  position: absolute;
  left: 0;
  top: 0;

  opacity: 0;
  transition: opacity 0.8s ease;
}

.quote.active {
  opacity: 1;
}

.brand p {
  margin: 11px 0 0;
}

/* HERO */

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  padding: 100px var(--side-padding);
  min-height: 460px;
}

.hero-heading {
  grid-column: 3 / 5;
  margin: 38px 0 80px;
  margin-top: 70px;
  padding-left: 16px;
}

.hero-body {
  grid-column: 3 / 4;
  margin-top: 20px;
  max-width: 400px;
  padding-left: 16px;
}

.hero-body p,
.card-box p {
  max-width: var(--text-width);
}

.hero-body p {
  margin: 0 0 18px;
  font-size: var(--fs-body);
  line-height: 1.35;
  font-weight: 700;
}

/* INFO GRID */

.info-grid,
.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  padding-left: var(--side-padding);
  padding-right: var(--side-padding);
}

.info-grid {
  align-items: stretch;
}

.card {
  display: flex;
  flex-direction: column;
}

.card h3 {
  margin: 0 0 28px;
  font-size: var(--fs-section-title);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.card-box {
  height: 100%;
  padding: 14px 16px;
  background: var(--box);
  font-size: var(--fs-body);
  line-height: 1.35;
}

.card-box p {
  margin: 0 0 14px;
}

.card-box ul {
  margin: 0;
  padding-left: 18px;
  list-style-type: disc;
}

.card-box li {
  margin-bottom: 6px;
  line-height: 1.35;
}

.card-box li::marker {
  font-size: 0.7em;
}

.card-box h4 {
  margin: 0 0 10px;
  font-size: var(--fs-small-title);
  text-transform: uppercase;
  font-weight: 800;
}

/* CONTACT */

.contact-grid {
  padding-top: 18px;
  padding-bottom: 36px;
  align-items: start;
}

/* Desktop: Kontakt bleibt in der rechten Seitenhälfte.
   Formular links vom Foto, Foto/Map rechts daneben. */
.contact-spacer {
  grid-column: 1 / 3;
  grid-row: 1;
}

.contact-form-box {
  grid-column: 3 / 4;
  grid-row: 1;
  width: 100%;
}

.contact-media {
  grid-column: 4 / 5;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.photo-box {
  width: 100%;
  height: 310px;
  background: #fff;
  overflow: hidden;
}

.photo-box img {
  width: 100%;
  height: 100%;
  object-position: center;
  display: block;
  object-fit: contain;
  transform: scale(1.2);
}

.map-box {
  width: 100%;
}

.map-box iframe {
  display: block;
  width: 100%;
  height: 150px;
  border: 0;
}

.map-box p {
  margin: 10px 0 0;
  font-size: var(--fs-body);
  line-height: 1.35;
}

.contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1.5px solid var(--text);
  background: transparent;
  color: var(--text);
  font-family: "area-normal", sans-serif;
  font-size: var(--fs-body);
  font-weight: 700;
  outline: none;
  border-radius: 0;
  appearance: none;
}

.contact-form input {
  height: 34px;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text);
  opacity: 0.75;
}

.contact-form button {
  align-self: flex-end;
  margin-top: 2px;
  padding: 13px 16px;
  border: none;
  border-radius: 0;
  background: var(--text);
  color: var(--page-bg);
  font-family: "area-normal", sans-serif;
  font-size: var(--fs-body);
  font-weight: 700;
  cursor: pointer;
  appearance: none;
}

/* TABLET */

@media (max-width: 1300px) {
  .top-section {
    padding-bottom: 80px;
    margin-bottom: 80px;
  }

  .site-header,
  .sticky-shape-layer,
  .hero {
    position: relative;
    top: auto;
  }

  .hero {
    grid-template-columns: 1fr 1fr;
    padding: 60px 20px 36px;
  }

  .hero-heading {
    grid-column: 1 / 3;
    margin: 28px 0 70px;
    padding-left: 20px;
    max-width: 1020px;
  }

  .hero-body {
    grid-column: 2 / 3;
    padding-left: 0;
  }

  .info-grid,
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px var(--gap);
  }

  .card-box {
    min-height: auto;
  }

  .contact-form-box {
  grid-column: 1 / 2;
  grid-row: 1;
    
  }
  .contact-media {
  grid-column: 2 / 3;
  grid-row: 1;
    
  }
  .map-box {
  grid-column: 2 / 3;
  grid-row: 2;
}
}

/* MOBILE */

@media (max-width: 600px) {

  :root {
    --fs-logo: 36px;
    --fs-subtitle: 18px;
    --gap: 22px;
  }

  body {
    margin: 5px;
  }

  .top-section {
    padding-bottom: 50px;
    margin-bottom: 50px;
  }

  .site-header {
    padding: 34px 20px 0;
  }

  .site-header,
  .sticky-shape-layer,
  .hero {
    position: relative;
    top: auto;
  }

  /* SHAPE */

  .sticky-shape-layer {
    height: auto;
  }

  .background-shape {
    position: relative;
    width: 85px;
    height: 85px;

    margin-left: auto;
    margin-right: 20px;

    margin-top: 10px;
    margin-bottom: 42px;

    top: auto;
    right: auto;
  }

  /* HERO */

  .hero {
    grid-template-columns: 1fr;
    padding: 48px 20px 0;
    min-height: auto;
    gap: 0;
  }

  .hero-heading,
  .hero-body {
    grid-column: 1 / 2;
  }

  .hero-heading {
    margin: 0 0 42px;
    padding-left: 0;
    max-width: 400px;
  }

  .hero-body {
    margin-top: 0;
    padding-left: 0;
    max-width: none;
  }

  .hero-body p {
    margin: 0 0 24px;
    line-height: 1.4;
  }

  /* INFO GRID */

  .info-grid {
    grid-template-columns: 1fr;
    gap: 26px;

    padding-left: 20px;
    padding-right: 20px;
  }

  .card h3 {
    margin-bottom: 12px;
  }

  .card-box {
    padding: 16px;
  }

  .card-box p:last-child,
  .hero-body p:last-child {
    margin-bottom: 0;
  }

  /* CONTACT */

  .contact-grid {
    display: flex;
    flex-direction: column;

    gap: 26px;

    padding: 26px 20px 40px;
  }

  .contact-media {
    display: contents;
  }

  .photo-box {
    width: 100%;
    order: 1;
  }

  .contact-form-box {
    width: 100%;
    order: 2;
  }

  .map-box {
    width: 100%;
    order: 3;
    margin-top: 0;
  }

}

