.text-block { 
  display:flex; 
  flex-direction:column; 
  background-color: #ffffff;
}

.headlineLI { 
  font-size:1.5em; 
  letter-spacing:0.5em; 
  font-weight:300; 
  color:#81162b; 
  line-height:1; 
  padding-left: 50px;
}

.headlineRE { 
  font-size:1.5em; 
  letter-spacing:0.5em; 
  font-weight:300; 
  color:#81162b; 
  line-height:1; 
  text-align:right;
  padding-right: 35px;
}

#about-flow { 
  font-size:1em; 
  font-weight:300; 
  color:#616161; 
  line-height:1.4; 
  margin-top:1rem; 
  max-width:180ch; 
  text-align:left; 
  
}

.fett{ 
  font-weight:bold; 
  color:#81162b; 

}
p.blocksatz {
    text-align: justify;
    hyphens: auto;
    text-justify: inter-word;
    margin-bottom: 1em; 
}

.bottomline {
  font-size: 0.7em;
  text-align: right;
  color: #888888;          
  margin: 20px auto;        
  max-width: 550px;         
  width: 100%;  
  
}



section {
  min-height: auto;
  padding: 0;
  margin-top: 1em;
  display: flex;
  justify-content: center;
  align-items: center;
}

section.ergotherapie .content {
  display: flex;
  flex-direction: column;
  background-color: rgb(255, 255, 255);
  gap: var(--gap);
  justify-content: center;
  align-items: flex-start;
  max-width: 1000px;  
  
  padding: 80px;
  box-sizing: border-box;
  margin: 0 auto;
}

section.inbalance .content {
  background-color: rgb(255, 255, 255);
  width: 100%;
  max-width: var(--max-width);
  
  box-sizing: border-box;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.konzept-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

.konzept-container#rechts {
  align-items: flex-end;
  position: relative;
}

.konzept-container#rechts .text-block {
  text-align: left;          
  align-self: flex-start;    
  margin-top: -2em;
  margin-left: 1em;         
  margin-right: 0;
}


section.rundherum .content {
  display: flex;
  background-color: #ffffff;
  gap: var(--gap);
  justify-content: center;
  align-items: baseline;
  width: 100%;
  max-width: var(--max-width);
  padding: 20px;
  box-sizing: border-box;
}

section.gemeinsam .content {
  background-color: rgb(255, 255, 255);
  width: 100%;
  max-width: var(--max-width);
  padding: 30px;
  box-sizing: border-box;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.gemeinsam-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

.gemeinsam-container .text-block {
  margin-top: -2em;
  margin-left: 1em;
}

section.organisatorisches .content {
  display: flex;
  background-color: #ffffff;
  gap: var(--gap);
  justify-content: center;
  align-items: baseline;
  width: 100%;
  max-width: var(--max-width);
  padding: 5px;
  box-sizing: border-box;
}

#font1 {
  text-align: right;
  font-size: 1em;
  font-weight: 300;
  color: #999999;
  line-height: 1.4;
  min-width: 27ch;
  max-width: 20ch;
  margin-left: 30px;
  margin-right: 60px;
}

.logo-wrap {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

#font2 {
  text-align: left;
  font-size: 3em;
  font-weight: bold;
  letter-spacing: 0.4em;
  color: #81162b;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
width: fit-content;          
  max-width: 100%;             
  margin-left: clamp(40px, 15vw, 220px); 
}
#font3 {
  text-align: left;
  font-size: 1.5em;
  font-weight: 300;
  letter-spacing: 1.1em;
  color: #81162b;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
width: fit-content;           
  max-width: 100%;            
  margin-left: clamp(40px, 15vw, 220px); 
}

.letter-wrap {
  flex: 0 0 auto;
}

#letterLI {
  font-size: 12em;
  font-weight: bold;
  color: #81162b;
  line-height: 1;
  margin: 0;
  padding-left: 40px;
  
}

#letterRE {
  font-size: 12em;
  font-weight: bold;
  color: #81162b;
  line-height: 1;
  margin: 0;
  padding-right: 40px;
}

.text-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}


.team-btn {
  background-color: #eeeeee;
  color: #81162b;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s, transform 0.2s;
}

.team-btn:hover {
  background-color: #b5b5b5;
  color: #ffffff;
}



#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 190px;
  z-index: 9999;
}


#overlay::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: -1;
}

.flip-container {
  perspective: 1200px;
  -webkit-perspective: 1200px;
}

#flipCard {
  position: relative;
  z-index: 10001;
  width: 80vw;
  max-width: 400px;
  height: auto;
  cursor: pointer;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.8s ease, box-shadow 0.8s ease;
  will-change: transform, box-shadow;

  box-shadow: 0 15px 40px rgba(0,0,0,0.35);
  border-radius: 12px;

}

#flipCard.flipped {
  transform: rotateY(180deg);
  box-shadow: 20px 25px 60px rgba(0,0,0,0.3);
}

@media (max-width: 480px) {
  #flipCard {
    width: 90vw;       
    max-width: 300px;  
  }

  .close-btn {
    top: 10px;     
    right: 10px;
  }
}

#flipCard.flipped {
  transform: rotateY(180deg);
}

.flip-hint-wrapper.flip-hint {
  animation: flipHint 6s linear infinite;
}

@keyframes flipHint {
  0%   { transform: rotateY(-12deg); }
  50%  { transform: rotateY(12deg); }
  100% { transform: rotateY(-12deg); }
}

.flip-side {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.pulse {
  width: 100%;
  height: 100%;
}

.flip-front img,
.flip-back img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.flip-front {
  transform: rotateY(0deg);
}

.flip-back {
  transform: rotateY(180deg);
}

.overlay-box {
  position: relative;
  display: inline-block;
}

.close-btn {
  position: absolute;
  top: -35px;
  right: -15px;
  font-size: 42px;
  color: white;
  text-decoration: none;
  z-index: 10;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pulse.attention {
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 20px 80px rgba(255,255,255,0.6);
  }
  50% {
    transform: scale(1.035);
    box-shadow: 0 50px 200px rgba(255,255,255,0.8);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 20px 80px rgba(255,255,255,0.6);
  }
}

@media (prefers-reduced-motion: reduce) {
  #flipCard,
  .pulse {
    animation: none !important;
    transition: none !important;
  }
}


#flipCard::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.08), transparent 70%);
  z-index: -1;
  transition: transform 0.8s ease, opacity 0.8s ease;
}


.click-hint-container {
  display: flex;
  justify-content: center; 
  margin-top: 120%;        
}


.hint-text {
  font-size: 24px;    
  font-weight: 700;     
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
  opacity: 0.9;
  white-space: nowrap;
}


@media (prefers-reduced-motion: reduce) {
  .arrow-3d,
  .click-hint {
    animation: none !important;
  }
}

.click-hint-mini {
  position: absolute;
  top: 10px;        
  right: 240px;     
  z-index: 10002;
  pointer-events: none;
  animation: hintFadeOut 3s forwards; 
}

.hint-bubble {
  background: rgba(255,255,255,0.95);
  color: #000;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  white-space: nowrap;

  animation: bubblePop 0.5s ease-out;
}

@keyframes bubblePop {
  0%   { transform: scale(0); opacity: 0; }
  70%  { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes hintFadeOut {
  0%,70% { opacity: 1; }
  100%   { opacity: 0; }
}