/* © 2026 Dr. Benedikt Matt, amrhein.at – Alle Rechte vorbehalten. */

.startseite {
  display: grid;
  grid-template-columns: var(--spalten);
  grid-template-rows: repeat(97, minmax(var(--zeile), auto));
  gap: var(--luecke);
  overflow-x: hidden;
  overflow-x: clip;
}
.startseite > * { min-width: 0; }
.start-hintergrund { grid-area: 1 / 1 / 18 / 27; z-index: 1; }
.start-band2 { grid-area: 11 / 1 / 60 / 27; z-index: 2; }
.start-logo { grid-area: 2 / 12 / 10 / 23; z-index: 14; }
.start-titel { grid-area: 11 / 9 / 15 / 26; z-index: 17; }
.start-aerzte { grid-area: 16 / 11 / 30 / 24; z-index: 16; }
.start-band-leistungen { grid-area: 30 / 1 / 38 / 27; z-index: 6; }
.start-leistungen { grid-area: 34 / 10 / 45 / 25; z-index: 7; }
.start-band-team { grid-area: 46 / 1 / 54 / 27; z-index: 5; }
.start-team { grid-area: 48 / 12 / 63 / 23; z-index: 8; }
.start-band-faq { grid-area: 63 / 1 / 71 / 27; z-index: 4; }
.start-faq { grid-area: 66 / 10 / 81 / 25; z-index: 9; }
.start-flaeche { grid-area: 25 / 1 / 98 / 27; z-index: 3; background: var(--sand); }
.start-oeog { grid-area: 82 / 12 / 86 / 17; z-index: 12; }
.start-feedback { grid-area: 82 / 18 / 86 / 23; z-index: 13; }
.start-band-zeiten { grid-area: 86 / 1 / 94 / 27; z-index: 11; }
.start-kalender { grid-area: 90 / 11 / 95 / 24; z-index: 15; }
.start-logo img { width: 100%; height: auto; margin-bottom: 11px; }
.start-titel,
.start-titel * { font-size: 28px; }
@media screen and (min-width: 768px) {
  #fusszeile { box-shadow: 0 -2px 0 var(--sand); }
}
@media (max-width: 767px) {
  .startseite { grid-template-rows: repeat(91, minmax(var(--zeile), auto)); }
  .start-hintergrund { grid-area: 1 / 2 / 2 / 4; z-index: 8; }
  .start-band2 { grid-area: 1 / 6 / 2 / 8; z-index: 40; }
  .start-logo { grid-area: 2 / 2 / 8 / 10; z-index: 14; }
  .start-titel { grid-area: 8 / 2 / 11 / 10; z-index: 51; }
  .start-aerzte { grid-area: 11 / 1 / 22 / 11; z-index: 33; }
  .start-band-leistungen { grid-area: 23 / 1 / 25 / 11; z-index: 6; }
  .start-leistungen { grid-area: 25 / 2 / 37 / 10; z-index: 53; }
  .start-band-team { grid-area: 37 / 1 / 39 / 11; z-index: 20; }
  .start-team { grid-area: 40 / 2 / 51 / 10; z-index: 49; }
  .start-band-faq { grid-area: 51 / 1 / 53 / 11; z-index: 36; }
  .start-faq { grid-area: 53 / 2 / 75 / 10; z-index: 53; }
  .start-flaeche { grid-area: 68 / 2 / 69 / 10; z-index: 13; background: none; }
  .start-oeog { grid-area: 76 / 2 / 81 / 6; z-index: 6; }
  .start-feedback { grid-area: 76 / 6 / 81 / 10; z-index: 8; }
  .start-band-zeiten { grid-area: 81 / 1 / 83 / 11; z-index: 12; }
  .start-kalender { grid-area: 84 / 2 / 92 / 10; z-index: 26; }
  .start-titel,
  .start-titel * { font-size: 16px; }
}

@supports (height: 1cqh) {
  @media (min-width: 768px) {
    .start-aerzte {
      display: flex;
      flex-direction: column;
    }
    .start-aerzte #carousel {
      flex: 1 1 auto;
      height: auto;
      min-height: calc(var(--img-natural) * 1.45 + 100px);
      container-type: size;
      --img-size: max(var(--img-natural), min(calc((100cqh - 100px) / 1.45), calc(100cqw / 3.75)));
    }
    .start-aerzte .doctor-info-container { flex: 0 0 auto; }
  }
}

.image-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: -1;
}
.rotating-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  animation: imageRotation 18s infinite;
}
@keyframes imageRotation {
  0%, 100% { opacity: 0; }
  10%, 30% { opacity: 0.3; }
  40%, 100% { opacity: 0; }
}
.rotating-image:nth-child(2) { animation-delay: 6s; }
.rotating-image:nth-child(3) { animation-delay: 12s; }
@media screen and (max-width: 767px) {
  .image-container { display: none; }
}

.kapitelleiste,
.kn-quer { display: none; }
@media screen and (max-width: 767px) {
  html.kapitelleiste-mobil .startseite,
  html.kapitelleiste-mobil #fusszeile { padding-top: 72px; }
  html.kapitelleiste-mobil .fixed-sidebar-leistungen-band,
  html.kapitelleiste-mobil .fixed-sidebar-team-band,
  html.kapitelleiste-mobil .fixed-sidebar-faq-band,
  html.kapitelleiste-mobil .fixed-sidebar-ordinationszeiten-band,
  html.kapitelleiste-mobil .fixed-sidebar-kontakt-band {
    height: 40px;
    position: relative;
  }
  html.kapitelleiste-mobil .kapitelleiste { display: block; }
  .kapitelleiste {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    box-sizing: border-box;
    height: 80px;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    overflow: clip;
    pointer-events: none;
    background: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 -1 100 9%22 preserveAspectRatio=%22none%22%3E%3Cpath fill=%22%233e5b4c%22 d=%22M0,-1H100V8Q50,-8 0,8Z%22/%3E%3C/svg%3E') 0 71px / 100% 9px no-repeat, linear-gradient(#3e5b4c, #3e5b4c) 0 0 / 100% 72px no-repeat;
  }
  .kapitelleiste a {
    position: absolute;
    top: 12px;
    left: 0;
    width: 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;
    color: #E1CCBE;
    -webkit-tap-highlight-color: transparent;
    will-change: transform;
  }
  .kapitelleiste a:nth-child(1) { transform: translateX(200%) translateY(-13px); }
  .kapitelleiste a:nth-child(2) { transform: translateX(300%) translateY(-13px); }
  .kapitelleiste a:nth-child(3) { transform: translateX(400%) translateY(-13px); }
  .kapitelleiste a:nth-child(4) { transform: translateX(500%) translateY(-13px); }
  .kapitelleiste a:nth-child(5) { transform: translateX(600%) translateY(-13px); }
  .kapitelleiste .kn-symbol {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .kapitelleiste .kn-symbol svg {
    width: 48px;
    height: 48px;
    display: block;
    fill: #E1CCBE;
    opacity: 0.75;
    transform-origin: 50% 50%;
    transform: scale(0.417);
    will-change: transform, opacity;
  }
  .kapitelleiste .kn-titel {
    font-family: 'Montserrat Regular', sans-serif;
    font-size: 11px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.2;
    letter-spacing: normal;
    text-transform: none;
    text-align: center;
    max-width: 100%;
    margin: 10px 0 0;
    padding: 0;
    color: #E1CCBE;
    opacity: 0.75;
    transform: translateY(-14px);
    will-change: opacity, transform;
  }
  .kapitelleiste .kn-balken {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #E1CCBE;
    opacity: 0.55;
    transform: scaleX(0);
    transform-origin: 0 50%;
    will-change: transform;
    pointer-events: none;
  }
  html.kapitelleiste-mobil .kn-quer {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    overflow: visible;
    pointer-events: none;
  }
  .kn-quer path {
    fill: none;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .kn-quer-bett { stroke: #EEEDEB; }
  .kn-quer-wasser { stroke: #3e5b4c; }
  .kn-quer-punkt {
    fill: #3e5b4c;
    stroke: #E1CCBE;
    stroke-width: 2.5;
  }
}
@media screen and (max-width: 359px) {
  .kapitelleiste .kn-titel { font-size: 10px; }
}

.symbolleiste { display: none; }
@media screen and (min-width: 768px) {
  html.symbolleiste-desktop .symbolleiste { display: block; }
  .symbolleiste {
    position: fixed;
    top: 0;
    height: 100%;
    width: 320px;
    left: calc(max(2vw - 11px, (100% - 1400px - 22px) / 2) + min((1400px - 253px) / 24, (100% - 253px - 4vw) / 24) + 44px);
    z-index: 50;
    pointer-events: none;
    -webkit-font-smoothing: antialiased;
  }
  .symbolleiste .sl-platz {
    position: absolute;
    left: 0;
    width: 320px;
  }
  .symbolleiste .sl-termine           { top: 20%; }
  .symbolleiste .sl-leistungen        { top: 33%; }
  .symbolleiste .sl-team              { top: 46%; }
  .symbolleiste .sl-faq               { top: 59%; }
  .symbolleiste .sl-ordinationszeiten { top: 72%; }
  .symbolleiste .sl-kontakt           { top: 85%; }
  .symbolleiste .sl-symbol {
    display: inline-block;
    margin-left: 18px;
    pointer-events: auto;
  }
  .symbolleiste .sl-symbol a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
  }
  .symbolleiste .sl-symbol a:focus-visible {
    outline: 2px solid #3e5b4c;
    outline-offset: 2px;
    border-radius: 5px;
  }
  .symbolleiste .sl-kreis {
    position: relative;
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #E1CCBE;
    box-shadow: inset 0 0 0 2.5px #EEEDEB;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: 50% 50%;
  }
  .symbolleiste .sl-kreis svg {
    display: block;
    width: 24px;
    height: 24px;
  }
  .symbolleiste .sl-kreis svg.sl-ring {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
  }
  .symbolleiste .sl-ring-wasser {
    fill: none;
    stroke: #3e5b4c;
    stroke-width: 2.5;
    stroke-dasharray: 0 70;
  }
  .symbolleiste .sl-ring-punkt {
    fill: #3e5b4c;
    stroke: #E1CCBE;
    stroke-width: 1.5;
    opacity: 0;
  }
  .symbolleiste h2 {
    font-family: 'Montserrat Regular', sans-serif;
    font-size: clamp(14px, 1.1vw, 16.5px);
    font-weight: 500;
    font-style: normal;
    line-height: 1.25;
    letter-spacing: normal;
    text-transform: none;
    text-align: left;
    white-space: nowrap;
    margin: 0;
    padding: 0;
    color: #3e5b4c;
    transform-origin: 0 50%;
  }
  .symbolleiste .sl-termine h2 {
    font-weight: bold;
    color: rgba(223, 89, 0, 1);
  }
  .symbolleiste .sl-ziel h2 { opacity: 1 !important; }
  .symbolleiste.sl-schmal h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .symbolleiste .sl-fluss {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
  }
  .symbolleiste .sl-mess {
    fill: none;
    stroke: none;
  }
  .symbolleiste .sl-bett,
  .symbolleiste .sl-spur,
  .symbolleiste .sl-wasser {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .symbolleiste .sl-bett { stroke: #EEEDEB; }
  .symbolleiste .sl-wasser { stroke: #3e5b4c; }
  .symbolleiste .sl-spur {
    stroke: #3e5b4c;
    stroke-opacity: 0.35;
    display: none;
  }
  .symbolleiste .sl-punkt {
    fill: #3e5b4c;
    stroke: #E1CCBE;
    stroke-width: 2.5;
  }
  .symbolleiste .sl-arm-bett,
  .symbolleiste .sl-arm-wasser {
    fill: none;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .symbolleiste .sl-arm-bett { stroke: #EEEDEB; }
  .symbolleiste .sl-arm-wasser { stroke: #3e5b4c; }
  .symbolleiste .sl-neben-bett,
  .symbolleiste .sl-neben-wasser {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}
