/* Bestehende Startseiten-Side-Rails und der Breisach-Bereich bleiben unverändert. */

.page-toc {
  position: fixed;
  z-index: 45;
  top: 50%;
  right: 14px;
  width: 160px;
  padding: 18px 14px 16px 20px;
  border: 1px solid rgba(49, 98, 73, .14);
  border-radius: 20px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 18px 48px rgba(32, 69, 52, .12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(14px, -50%);
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}

.page-toc.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(0, -50%);
  transition-delay: 0s;
}

.page-toc__title {
  margin: 0 0 11px;
  color: #75847c;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .11em;
  line-height: 1.3;
  text-transform: uppercase;
}

.page-toc nav {
  display: grid;
  gap: 2px;
}

.page-toc a {
  position: relative;
  min-height: 31px;
  display: flex;
  align-items: center;
  padding: 5px 7px 5px 17px;
  border-radius: 9px;
  color: #65776d;
  font-size: .72rem;
  font-weight: 650;
  line-height: 1.25;
  transition: color .2s ease, background .2s ease;
}

.page-toc a::before {
  content: "";
  position: absolute;
  left: 4px;
  width: 6px;
  height: 6px;
  border: 1px solid rgba(54, 124, 32, .42);
  border-radius: 50%;
  background: #fff;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.page-toc a:hover,
.page-toc a:focus-visible {
  background: rgba(75, 153, 47, .07);
  color: var(--green-dark);
}

.page-toc a.is-active {
  background: rgba(75, 153, 47, .1);
  color: var(--green-dark);
  font-weight: 800;
}

.page-toc a.is-active::before {
  border-color: var(--green);
  background: var(--green-bright);
  box-shadow: 0 0 0 4px rgba(104, 191, 69, .12);
  transform: scale(1.05);
}

.page-toc__progress {
  position: absolute;
  top: 49px;
  bottom: 22px;
  left: 12px;
  width: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(58, 111, 76, .11);
}

.page-toc__progress > span {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: var(--toc-progress, 0%);
  border-radius: inherit;
  background: linear-gradient(180deg, var(--green-bright), var(--green-dark));
  transition: height .12s linear;
}

@media (max-width: 1819px), (max-height: 780px) {
  .page-toc { display: none; }
}

.edge-contact {
  display: none;
}

@media (min-width: 1280px) and (min-height: 700px) and (hover: hover) and (pointer: fine) {
  .edge-contact {
    position: fixed;
    z-index: 46;
    top: 50%;
    left: 0;
    display: grid;
    gap: 8px;
    transform: translateY(-50%);
  }

  .edge-contact__item {
    width: 258px;
    min-height: 56px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(46, 98, 66, .16);
    border-left: 0;
    border-radius: 0 16px 16px 0;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 14px 34px rgba(28, 66, 46, .14);
    color: var(--ink);
    transform: translateX(-204px);
    transition: transform .3s cubic-bezier(.22, .8, .28, 1), box-shadow .3s ease;
  }

  .edge-contact__item:hover,
  .edge-contact__item:focus-visible {
    outline: 0;
    box-shadow: 0 18px 42px rgba(28, 66, 46, .2);
    transform: translateX(0);
  }

  .edge-contact__icon {
    grid-column: 2;
    grid-row: 1;
    width: 54px;
    min-height: 54px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #347d20, #55a837);
  }

  .edge-contact__item--email .edge-contact__icon {
    background: linear-gradient(145deg, #173f57, #2c7184);
  }

  .edge-contact__icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .edge-contact__item--phone .edge-contact__icon svg path {
    fill: currentColor;
    stroke: none;
  }

  .edge-contact__copy {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 8px 14px;
    white-space: nowrap;
  }

  .edge-contact__copy small {
    color: #77877e;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .09em;
    line-height: 1.25;
    text-transform: uppercase;
  }

  .edge-contact__copy strong {
    margin-top: 2px;
    color: #263d32;
    font-size: .77rem;
    font-weight: 750;
    line-height: 1.3;
  }
}

.home-region {
  position: relative;
  overflow: hidden;
  padding-block: clamp(52px, 7vw, 104px);
  background:
    radial-gradient(circle at 8% 24%, rgba(101, 178, 66, .11), transparent 30%),
    linear-gradient(180deg, #f8faf7, #f3f7f4);
}

.home-region > .container {
  width: min(1480px, calc(100% - 72px));
}

.home-region .region-stage {
  position: relative;
  min-height: clamp(500px, 55vw, 720px);
  overflow: hidden;
  border: 1px solid rgba(53, 98, 73, .13);
  border-radius: clamp(28px, 4vw, 48px);
  background: #eaf0eb;
  box-shadow: 0 32px 90px rgba(35, 74, 54, .14);
}

.home-region .region-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 42%, rgba(11, 33, 25, .1) 100%);
  pointer-events: none;
}

.home-region .region-visual {
  position: absolute;
  inset: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.home-region .region-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}

.home-region .region-stage:hover .region-visual img {
  transform: scale(1.018);
}

.home-region .region-copy {
  position: absolute;
  z-index: 2;
  right: clamp(18px, 3.5vw, 52px);
  bottom: clamp(18px, 3.5vw, 52px);
  width: min(500px, calc(100% - 36px));
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid rgba(255, 255, 255, .72);
  border-left: 1px solid rgba(255, 255, 255, .72);
  border-radius: clamp(22px, 2.6vw, 32px);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 24px 65px rgba(21, 52, 38, .16), inset 0 1px rgba(255, 255, 255, .95);
  backdrop-filter: blur(20px) saturate(135%);
}

.home-region .region-copy h2 {
  max-width: none;
  margin-top: 14px;
  font-size: clamp(2.2rem, 3.4vw, 3.65rem);
  font-weight: 550;
  letter-spacing: -.055em;
}

.home-region .region-copy p {
  max-width: none;
  margin: 16px 0 0;
  color: #526a62;
  font-size: clamp(.94rem, 1.15vw, 1.05rem);
  line-height: 1.65;
}

@media (max-width: 780px) {
  .home-region > .container { width: min(100% - 48px, 1120px); }
  .home-region { padding-block: 48px; }
  .home-region .region-stage { min-height: 0; }
  .home-region .region-visual {
    position: relative;
    height: 330px;
  }
  .home-region .region-visual img { object-position: 45% center; }
  .home-region .region-copy {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: auto;
    margin: -38px 14px 14px;
    padding: 23px;
  }
  .home-region .region-copy h2 { font-size: clamp(2rem, 9vw, 2.8rem); }
}

@media (max-width: 620px) {
  .home-region > .container { width: min(100% - 32px, 560px); }
}
