﻿
*, *::before, *::after {
  box-sizing: border-box;
}
  /* für Sprung links */    
.jumpTarget{
  scroll-margin-top: 28vh;   /* 20vh..40vh je nach gewünschter Lage */
}  
  /* Der Hover-Effekt für Bilder */
.bild-link img {
    transition: box-shadow 0.3s ease, transform 0.3s ease; /* Übergang weich */
    border-radius: 4px; /* Optional: leicht abgerundete Ecken */
  }	
.bild-link img:hover {
    box-shadow: 3px 18px 25px -5px rgba(0, 0, 0, 0.35); /* Der Schatten-Effekt */
    transform: translateY(-5px); /* Das Bild hebt sich minimal an */
  }

.container {
    display: flex;
    flex-direction: column;
}	
.main-content {
    display: flex;
    flex-direction: row;
}	
    body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}
.container2 {
    width: 100%;
    max-width: 1900px;
    margin: 0 auto;
    padding: 0px;
    background-color:#ffffff
}
/* begrenzt eventuelle breitere Elemente durch verbergen */	
img, table, div {
    max-width: 100%;
    overflow: hidden;
} 
.textfenster1{
  font-size: 14px;
  width: 50vw; ;
  max-width: 50vw;
  height: 110vh;
  margin-left: 25vw;
  margin-top: 40vh;
  padding: 2.3rem 1.3rem 2.5rem 2.7rem !important;
  box-sizing: border-box;
  background: #f5f5f5;
  overflow-y: auto;
  color:gray;
  line-height: 1.5;
  overscroll-behavior: contain;
  cursor:text; 
}
.textfenster2{
  font-size: 14px;
  width: 50vw; ;
  max-width: 50vw;
  height: 90vh;
  margin-left: 25vw;
  margin-top: 10vh;
  padding: 2.3rem 1.3rem 2.5rem 2.7rem !important;
  box-sizing: border-box;
  background: #f5f5f5;
  overflow-y: auto;
  color:gray;
  line-height: 1.5;
  overscroll-behavior: contain;
  cursor:text; 
}

.vertikale-linie {
    position: absolute;
    left: 70%; /* 2/3 von links */
    top: 5%; /* Beginnt 30% von oben */
    bottom: 3.8%; /* Endet 10% vom unteren Rand */
    border-left: 1px solid grey; /* Dicke und Farbe der Linie */
}
/*back-to-the-top*/
.quicktotop {
	display: flex;
	position: fixed;
	top: 55%;
	right: 2%;	
	height: 15%;
	width: auto;
	opacity:0.6;
	cursor:pointer;
}
/*--to-the-bottom Pfeil*/	
.quicktobottom {
	display: flex;
	position: fixed;
	top: 70%;
	right: 2.2%;
	width: 2.3%; /* set the width of the fixed box */
	height: auto;
	z-index:1;
	cursor:pointer;
}

/* CSS-Eigenschaft, um das scrollen zu animieren */
html {
  scroll-behavior: smooth; 
}
    
/*die Trennlinie formatieren*/
hr {
margin-left: 24%;
margin-right: 24%;
}

/*Flex-container, skaliert mehrere divs gleichmäßig in der Breite*/
.flex-cont {
	display: -webkit-flex;
    display: flex;  
    -webkit-flex-flow: row wrap;
    flex-flow: row wrap;
	font-family:Arial, Helvetica, sans-serif;
	background-color:white;
}
.flex-cont > * {
    padding: 0px;
    -webkit-flex: 1 100%;
    flex: 1 100%;
}
.flex-cont a:link {
	text-decoration:none;
}

/*---------Boxenverhältniss für den Flex-container*/
/*wenn mehreren Boxen in einem Flex-container positioniert werden, wird das 
Verhältnis ihrer Breiten mit den flex Werten bestimmt*/
@media all and (min-width: 768px) {
    .divis-0 {-webkit-order:0;order:0;}
    .divis-1 {-webkit-flex:1 10px;flex:1 10px;ms-flex:1 10px;-webkit-order:0;order:0;}
    
    
    .divis-4 {-webkit-flex:4 10px;flex:4 10px;ms-flex:4 10px;-webkit-order:0;order:0;}
    .divis-5 {-webkit-flex:5 10px;flex:5 10px;ms-flex:5 10px;-webkit-order:0;order:0;}
    
    
    
    
    .divis-10 {-webkit-flex:10 10px;flex:10 10px;ms-flex:10 10px;-webkit-order:0;order:0;}
    .divis-16 {-webkit-flex:16 10px;flex:16 10px;ms-flex:16 10px;-webkit-order:0;order:0;}
    .divis-32 {-webkit-flex:32 10px;flex:32 10px;ms-flex:32 10px;-webkit-order:0;order:0;}
    
}
/*scaled das div beim zoomen der page, belässt als letztes Höhenmaß aber den Wert des padding*/
.first-item-div-1{
	position: relative;
	width: 100%;		/* desired width */
}
.first-item-div-1:before{
	content: "";
	display: block;
	padding-top: 15%; 	/* ratio*/
}
.fuss-div{
	position: relative;
	width: 100%;		/* desired width */
}
.fuss-div:before{
	content: "";
	display: block;
	padding-top: 30%; 	/* initial ratio */
}

/*Unterliner-Text style*/

.utext-2 {
    position: relative;
    text-decoration: none;   
    font-size: clamp(1.0rem, 4vw, 3rem) !important;    
    font-family: Arial, sans-serif;  !important;
    color: #41413f;
    background-color: transparent !important;
    padding:0;
}

/*Format Fufbereich fest*/
.footer {
	background: #aaa;
	color: white;
    text-align: center;
}
.texte {
	font-size: 18px;	
	color: #808080;
	text-align:left;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: lighter;
	background-color: #ffffff !important;
}
/* SPEZIAL-KORREKTUR FÜR DIE GALERIE */
/* 1. Platz für den Schatten schaffen, ohne das Grid zu sprengen */
.galerie-item img {
    width: calc(100% - 20px) !important; 
    margin: 0 auto !important;
    display: block !important;
}
/* 2. Den Schatten sauber nach rechts unten fallen lassen */
.galerie-item img:hover {
    box-shadow: 4px 4px 7px 0px rgba(0, 0, 0, 0.25) !important;
}
/* 3. Sicherstellen, dass die Galerie-Container nicht beschnitten werden */
.galerie-container, .galerie-container-2 {
    overflow: visible !important;
}
.galerie-item p.caption{
  font-family: Arial, Helvetica, sans-serif;
  font-size: 3vw;
  margin: 10px 0 0 0;
  background: transparent;
  text-align: left;     /* falls es mal wandert */
  color:gray;
}

body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
}
.galerie-container {
display: grid;
/* 3 Spalten, alle gleich breit */
grid-template-columns: repeat(3, 1fr);    
/* ABSTÄNDE STEUERN: */
column-gap: 40px; /* Der horizontaler Abstand "H" */
row-gap: 60px;    /* Der vertikaler Abstand "V" */   
width: 100%;
max-width: 1200px;
margin: 0 auto; /* Zentriert die gesamte Galerie auf der Seite */
padding: 20px;
}
.galerie-item img {
width: 100%;    /* Bilder füllen die Spaltenbreite aus */
height: auto;   /* Proportionen bleiben erhalten */
display: block;
transition: box-shadow 0.3s ease;
border-radius: 4px;
background-color:#ffffff;
}
/* Der Schatten-Effekt */
.galerie-item img:hover {
box-shadow:8px 8px 12px 0px rgba(0, 0, 0, 0.25);
}

.galerie-container-2 {
    display: grid;
    /* 15 Spalten */
    grid-template-columns: repeat(15, 1fr);       
    /* Gaps, die proportional zum Fenster schrumpfen */
    column-gap: 0.3vw; 
    row-gap: 0.5vw;        
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px;
}
/* Der Schatten-Effekt */
.galerie-item-2 img:hover {
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}
/* ===s
   für die Darstellung von aktiven Icons
  ==== */
.page-wassertier   .icon-wassertier   .icon-text,
.page-landtier     .icon-landtier     .icon-text,
.page-lufttier     .icon-lufttier     .icon-text,
.page-phantastisch .icon-phantastisch .icon-text,
.page-gegenwaertig .icon-gegenwaertig .icon-text,
.page-historisch   .icon-historisch   .icon-text,
.page-amtsgestalt  .icon-amtsgestalt  .icon-text{
  display: inline-block;                 /* Linien nur so breit wie das Wort */
  border-top: 1px solid rgba(0,0,0,0.45);
  border-bottom: 1px solid rgba(0,0,0,0.45);
  padding: 0.12rem 0;                    /* Abstand Linie ↔ Wort */
  margin: 0.18rem auto;                  /* optional: schöner Abstand zum Bild */
  letter-spacing: 0.03em;
}



