html {height:100%;}

body {
	margin: 0; padding: 0; 
	height:100%;
	background: #c1af9e url(../images/bodybg.jpg) repeat fixed;
    color:#333333;
	line-hight: 100%;
	font-size: 15px;
	font-family:'akzidenz-grotesk_bqregular';
}

img {max-width:100%; height:auto;}

a {color:#9e8d7b; text-decoration: none;}
a:hover {color: #333333;}

p {line-height:150%; }

h1, h2, h3, h4, h5, h6 { color: #333333; }
h1 { font-size: 48px; margin: 0 0 10px 0;} 
h2 { font-size: 28px; margin: 0 0 10px 0;} 
h3 { font-size: 22px; margin: 0 0 10px 0;} 
h4 { font-size: 18px; margin: 0 0 10px 0;} 
h5 { font-size: 15px; margin: 0 0 10px 0;}
h6 { font-size: 13px; margin: 0 0 10px 0;}

a:hover {color: #000;} 

hr{
	border: none;
	border-bottom:solid #9e8d7b 1px; height:1px;
	clear:both;
}


.wrapper {
	max-width: 1920px; /*max 1920px*/
    width: 93%;
    margin: 0 auto;
	background: transparent url(../images/bg.png); 
	z-index:300;
	position:relative;
	box-shadow: 0 0 60px #3e3025;
	
}

/*Felder*/
.input_name_field,
.input_message_field,
.input_mail_field,
.input_website_field {
	font-family: 'akzidenz-grotesk_bqregular';
	font-size: 15px;
	border: 1px solid #9e8d7b; 
	border-radius: 5px;
	background: #fff; 
	color: #333; 
	padding: 4px 8px 4px 8px; 
}
textarea { 
	font-family: 'akzidenz-grotesk_bqregular';
	font-size: 15px;
	border: 1px solid #9e8d7b; 
	border-radius: 5px;
	background: #fff; 
	color: #333; 
/*	min-width: 250px;*/
	width: 240px;
	padding: 4px 8px 4px 8px; 
}
input[type=text],
input[type=email],
input[type=password],
input[type="date"],
input[type="time"] {
	font-family: 'akzidenz-grotesk_bqregular';
	font-size: 15px;
	border: 1px solid #9e8d7b; 
	border-radius: 5px;
	background: #fff; 
	color: #333; 
	padding: 4px 8px 4px 8px; 
}

select {
	font-family: 'akzidenz-grotesk_bqregular';
	font-size: 15px;
    border: 1px solid #9e8d7b; 
	border-radius: 5px;
	background: #fff; 
	color: #333; 
	padding: 4px 8px 4px 8px; 
	min-width: 268px; 
}

button[type=button], 
input[type=submit] {
	font-family: 'akzidenz-grotesk_bqregular';
	border: 1px solid #333; 
	border-radius: 5px;
	background: #fff; 
	color: #333; 
	font-size: 15px;
	letter-spacing: 0px;
    word-spacing: 0px; 
	padding: 4px 8px 4px 8px; 
	width: auto;
    cursor:pointer;
	box-shadow: 4px 3px 5px 1px #9e8d7b;
}
button[type=button]:active,
input[type=submit]:active {
transform: scale(0.99);
	box-shadow: 1px 1px 2px 0px #9e8d7b;
}

input[type=number] {
	font-family: 'akzidenz-grotesk_bqregular';
	font-size: 15px;
	border: 1px solid #9e8d7b; 
	border-radius: 5px;
	background: #fff; 
	color: #333; 
	padding: 4px 8px 4px 8px;  
	width:50px; 
	letter-spacing: 5px
}

input[type="checkbox"] { display: none; }

input[type="checkbox"] +label {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 5px;
  font: 14px/20px 'Open Sans', Arial, sans-serif; 
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

input[type="checkbox"] + label:last-child { margin-bottom: 0;}

input[type="checkbox"] + label:before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  border: 1.5px solid #9e8d7b;
  position: absolute;
  left: 0;
  top: 0;
  -webkit-transition: all .12s, border-color .08s;
  transition: all .12s, border-color .08s;		
}

input[type="checkbox"]:checked + label:before {
  width: 10px;
  top: -5px;
  left: 5px;
  border-radius: 0;
  opacity: 1;
  border-top-color: transparent;
  border-left-color: transparent; 
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

input[type=radio] {
  --s: 1.3em;     /* control the size */
  --c: #9e8d7b; /* the active color */
	margin: 0 5px -4px 0;
  
  height: var(--s);
  aspect-ratio: 1;
  border: calc(var(--s)/20) solid #9e8d7b;
  padding: calc(var(--s)/10);
  background: 
     radial-gradient(farthest-side,var(--c) 94%,#0000) 
     50%/0 0 no-repeat content-box;
  border-radius: 50%;
  outline-offset: calc(var(--s)/10);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  font-size: inherit;
  transition: .3s;
}
input[type=radio]:checked {
  border-color: var(--c);
  background-size: 100% 100%;
}

.captcha_iframe{
font-family: 'akzidenz-grotesk_bqregular';
	border: 1px solid #9e8d7b; 
	border-radius: 5px;
	background: #fff; 
	color: #333; 
	font-size: 15px;
	letter-spacing: 0px;
    word-spacing: 0px; 
	padding:0px 0px 0px 0px; 
	margin: 0 0 0 -3px;
    cursor:pointer;
}

input::file-selector-button  {
font-family: 'akzidenz-grotesk_bqregular';
	border: 1px solid #333; 
	border-radius: 5px;
	background: #fff; 
	color: #333; 
	font-size: 12px;
	letter-spacing: 0px;
    word-spacing: 0px; 
	padding: 2px 4px 2px 4px; 
	width: auto;
    cursor:pointer;
}

/*Scrollbar*/
::-webkit-scrollbar {
  width: 15px;
}
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 10px #ddd;
	background: #ddd;
}
::-webkit-scrollbar-thumb {
  background: #9e8d7b;
}

.img-a {
        bottom: 0;
        right: 0;
    }
.img-b {
        top: 0;
        left: 0;
	padding: 20% 0% 0% 58%;
        z-index: 100000;
	position: absolute;
	width: 40%;
	opacity: 0.8;
    }

.mySlides {
  display: none;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.mySlides.fade-active {
  opacity: 1;
}

.wrap {
    float: left;
    display: block;
    width: 185px; 
    height: 180px; /* Einheitliche Box-Höhe für alle Elemente */
    padding: 0;
    overflow: hidden;
    margin-right: 10px; 
    margin-bottom: 30px; /* Fester Abstand zur nächsten Zeile */
} 

.wrap a, .wrap strong {
    display: block; 
    margin-bottom: 10px; 
    height: 35px; /* Fixe Texthöhe verhindert vertikales Verschieben bei 2 Zeilen */
    overflow: hidden;
}

/* Container für die Vorschau (verhindert das Margin-Problem) */
.frame {
    width: 800px;
    height: 600px;
    pointer-events: none;
    border: 0;
    
    -ms-transform: scale(0.20);
    -moz-transform: scale(0.20);
    -o-transform: scale(0.20);
    -webkit-transform: scale(0.20);
    transform: scale(0.20);
	
    -ms-transform-origin: 0 0;
    -moz-transform-origin: 0 0;
    -o-transform-origin: 0 0;
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
	
    display: block;
}

/* Das Bild wird exakt so gross gezogen wie die skalierten Iframes (160x120px) */
.wrap img {
    display: block;
    width: 160px;
    height: 120px;
    object-fit: contain; /* Verhindert das Verzerren des Logos */
    background: #ffffff; /* Gibt dem Logo einen weissen Hintergrund wie die Iframes */
}



/* Back to Top */
#backtotop {
  display: inline-block;
  background-color: #333333;
  width: 30px;
  height: 30px;
  text-align: center;
  border-radius: 4px;
  position: fixed;
  bottom: 5px;
  right: 5px;
  transition: background-color .5s, 
  opacity .5s, visibility .5s;
  opacity: 0.4;
  visibility: hidden;
  z-index: 1000;
}
#backtotop::after {
  content: "\f077";
  font-family: FontAwesome;
  font-weight: normal;
  font-style: normal;
  font-size: 25px;
  line-height: 30px;
  color: #ffffff;
}
#backtotop:hover {
  cursor: pointer;
  background-color: #222222;
}
#backtotop:active {
  background-color: #333333;
}
#backtotop.show {
	opacity: 0.4;
  visibility: visible;
}

.thrfooter{
	font-size: 20px;
	padding: 25px 0px 15px 0px;
	text-align: center;
    word-wrap: break-word;
}

.thrfooter a {
/*nix*/
}
.thrfooter a:hover {
/*nix*/
}

.copyright{
	padding: 10px 15px 0px 15px;
	font-size: 16px;  
}

.footer {
	color:white;
	font-size: 16px;  
	text-align: center;
	background: #9e8d7b;
	padding: 0px 15px 25px 15px;
	height:auto;
	clear:both;
}
.footer a {
color: #D3D3D3;
}
.footer a:hover {
color: #ffffff;
}

.grid {
  display: grid;
  gap: 0px;
	grid-template-columns: 70% 30%;
}
.main {
	padding: 0 20px 0px 20px;
}
.side {
	margin: -20px 0 0 0;
	padding: 20px 20px 0 20px;
	background-color:#dacfbd; border-left: 1px solid #9e8d7b;
}
.side h4 {color: #fff;}

.main,
.side {
/*nix*/
}

@media(max-width: 900px){
  .grid {
	  grid-template-columns: 100%; 
  }
	.side {
	border-left: none;
		margin: 0 0 0 0;
		border-top: 1px solid #9e8d7b;
		padding: 20px 10px 0 10px;
  }
	.main {
	padding: 0 10px 0px 10px;
  }
}

/* Der Hauptcontainer für das Raster */
.bild-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px; /* Etwas mehr Abstand für den Text */
}

/* Die Box, die Bild + Text zusammenhält */
.grid-item {
  display: flex;
  flex-direction: column; /* Stapelt Bild und Text untereinander */
}

/* Das Bild innerhalb der Box */
.grid-item img {
/*  width: 100%; */
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

/* CSS Klassen für die Artikel in den Statuten */
ol.nested-list1 {
  list-style-type: none !important;
  counter-reset: item !important;
  padding-left: 2% !important;
}

ol.nested-list1 > li {
  counter-increment: item !important;
  list-style-image: none !important;
  /* NEU: Aktiviert Flexbox und richtet den Text oben aus */
  display: flex !important;
  align-items: flex-start !important; 
}

ol.nested-list1 > li::before {
  content: "1." counter(item) !important;
  /* NEU: Verhindert, dass die Nummer schrumpft, und gibt ihr festen Abstand */
  flex-shrink: 0 !important;
  width: 40px !important; /* Breite je nach Wunsch anpassen */
}

ol.nested-list3 {
  list-style-type: none !important;
  counter-reset: item !important;
  padding-left: 2% !important;
}

ol.nested-list3 > li {
  counter-increment: item !important;
  list-style-image: none !important;
  /* NEU: Aktiviert Flexbox und richtet den Text oben aus */
  display: flex !important;
  align-items: flex-start !important; 
}

ol.nested-list3 > li::before {
  content: "3." counter(item) !important;
  /* NEU: Verhindert, dass die Nummer schrumpft, und gibt ihr festen Abstand */
  flex-shrink: 0 !important;
  width: 40px !important; /* Breite je nach Wunsch anpassen */
}


ol.nested-list5 {
  list-style-type: none !important;
  counter-reset: item !important;
  padding-left: 2% !important;
}

ol.nested-list5 > li {
  counter-increment: item !important;
  list-style-image: none !important;
  /* NEU: Aktiviert Flexbox und richtet den Text oben aus */
  display: flex !important;
  align-items: flex-start !important; 
}

ol.nested-list5 > li::before {
  content: "5." counter(item) !important;
  /* NEU: Verhindert, dass die Nummer schrumpft, und gibt ihr festen Abstand */
  flex-shrink: 0 !important;
  width: 40px !important; /* Breite je nach Wunsch anpassen */
}

ol.nested-list6 {
  list-style-type: none !important;
  counter-reset: item !important;
  padding-left: 2% !important;
}

ol.nested-list6 > li {
  counter-increment: item !important;
  list-style-image: none !important;
  /* NEU: Aktiviert Flexbox und richtet den Text oben aus */
  display: flex !important;
  align-items: flex-start !important; 
}

ol.nested-list6 > li::before {
  content: "6." counter(item) !important;
  /* NEU: Verhindert, dass die Nummer schrumpft, und gibt ihr festen Abstand */
  flex-shrink: 0 !important;
  width: 40px !important; /* Breite je nach Wunsch anpassen */
}

ol.nested-list61 {
  list-style-type: none !important;
  counter-reset: item !important;
  padding-left: 2% !important;
}

ol.nested-list61 > li {
  counter-increment: item !important;
  list-style-image: none !important;
  /* NEU: Aktiviert Flexbox und richtet den Text oben aus */
  display: flex !important;
  align-items: flex-start !important; 
}

ol.nested-list61 > li::before {
  content: "6.1." counter(item) !important;
  /* NEU: Verhindert, dass die Nummer schrumpft, und gibt ihr festen Abstand */
  flex-shrink: 0 !important;
  width: 40px !important; /* Breite je nach Wunsch anpassen */
}

ol.nested-list612 {
  list-style-type: none !important;
  /* Startet den Zähler bei 1. Das erste Element rechnet +1 und wird zu 2 (6.1.2) */
  counter-reset: item 1 !important; 
  padding-left: 2% !important; /* Exakt gleicher Abstand wie bei deiner Vorlage */
}

ol.nested-list612 > li {
  counter-increment: item !important;
  list-style-image: none !important;
  display: flex !important;
  align-items: flex-start !important; 
}

ol.nested-list612 > li::before {
  content: "6.1." counter(item) "  " !important; /* Erzeugt das 6.1.2, 6.1.3 etc. */
  flex-shrink: 0 !important;
  width: 40px !important; /* Exakt gleiche Breite wie bei deiner Vorlage */
}

/* Code für den ersten Block (erzeugt garantiert 6.2.1 und 6.2.2) */
ol.nested-list62 {
  list-style-type: none !important;
  counter-reset: vorstand-item 0 !important; /* Startet bei 0 */
  padding-left: 2% !important;
}
ol.nested-list62 > li {
  counter-increment: vorstand-item !important; /* Erhöht um 1 */
  list-style-image: none !important;
  display: flex !important;
  align-items: flex-start !important; 
}
ol.nested-list62 > li::before {
  content: "6.2." counter(vorstand-item) "  " !important;
  flex-shrink: 0 !important;
  width: 40px !important; 
}

/* Code für den zweiten Block (erzeugt garantiert 6.2.3 und 6.2.4) */
ol.nested-list62-fortsetzung {
  list-style-type: none !important;
  counter-reset: vorstand-fortsetzung 2 !important; /* Startet bei 2, damit das erste li zu 3 wird */
  padding-left: 2% !important;
}
ol.nested-list62-fortsetzung > li {
  counter-increment: vorstand-fortsetzung !important; /* Erhöht um 1 */
  list-style-image: none !important;
  display: flex !important;
  align-items: flex-start !important; 
}
ol.nested-list62-fortsetzung > li::before {
  content: "6.2." counter(vorstand-fortsetzung) "  " !important;
  flex-shrink: 0 !important;
  width: 40px !important; 
}

ol.nested-list9 {
  list-style-type: none !important;
  counter-reset: item !important;
  padding-left: 2% !important;
}

ol.nested-list9 > li {
  counter-increment: item !important;
  list-style-image: none !important;
  /* NEU: Aktiviert Flexbox und richtet den Text oben aus */
  display: flex !important;
  align-items: flex-start !important; 
}

ol.nested-list9 > li::before {
  content: "9." counter(item) !important;
  /* NEU: Verhindert, dass die Nummer schrumpft, und gibt ihr festen Abstand */
  flex-shrink: 0 !important;
  width: 40px !important; /* Breite je nach Wunsch anpassen */
}

/* 1. FÜR DIE KLEINE LISTE (zählt ganz normal durch, z.B. a, b, c, d) */
ol.statuten-abc {
  list-style-type: none !important; 
  counter-reset: abc-item 0 !important; 
  padding-left: 2% !important; 
}
ol.statuten-abc > li {
  counter-increment: abc-item !important; 
  list-style-image: none !important;
  display: flex !important; 
  align-items: flex-start !important; 
}
ol.statuten-abc > li::before {
  content: counter(abc-item, lower-alpha) ".  " !important; 
  flex-shrink: 0 !important;
  width: 40px !important; 
}

/* 2. FÜR DIE TRAKTANDENLISTE (erzwingt das k am Ende) */
ol.traktanden-liste {
  list-style-type: none !important; 
  counter-reset: traktand-item 0 !important; 
  padding-left: 2% !important; 
}
ol.traktanden-liste > li {
  counter-increment: traktand-item !important; 
  list-style-image: none !important;
  display: flex !important; 
  align-items: flex-start !important; 
}
ol.traktanden-liste > li::before {
  content: counter(traktand-item, lower-alpha) ".  " !important; 
  flex-shrink: 0 !important;
  width: 40px !important; 
}
/* Nur hier wird das allerletzte Element überschrieben */
ol.traktanden-liste > li:last-child::before {
  content: "k.  " !important; 
}

/* CSS Klassen für die Artikel in den Statuten */

.link-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
  column-gap: 16px;
  row-gap: 40px;          /* Abstand zwischen den Zeilen – hier anpassen */
  margin-top: 22px; 
}

.link-col {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.link-col strong {
  display: flex;
  align-items: flex-start;   /* Text oben ausrichten, damit erste Zeile immer gleich hoch startet */
  justify-content: center;
  min-height: 40px; /* Abstand von der Schrift zum Logo */
  text-align: center;
}

.link-item {
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 100px;          /* feste Höhe statt automatisch */
  padding: 0 16px;         /* nur noch seitliches Padding, Höhe kommt von "height" */
  border: 1px solid #fff;
  border-radius: 10px;
  box-sizing: border-box;
  width: 100%;
}

.link-item img {
  display: block;
  max-width: 100%;
  max-height: 70px;       /* etwas kleiner als die Box-Höhe, damit Rand bleibt */
  width: auto;
  height: auto;
  object-fit: contain;
}

@media print {
	 /* Definiert den globalen Rand für jede gedruckte Seite */
  @page {
    margin-top: 20px !important;    
    margin-bottom: 20px !important; 
    margin-left: 15px !important;
    margin-right: 15px !important;
  }
  .side, .topmenubar, .thrfooter, .footer, .thr_form_submit, #backtotop { 
    display: none !important; 
  } 
  .main { 
    width: 100% !important; 
    margin: 0 !important; 
    padding: 20px !important; 
    box-sizing: border-box !important; 
    float: none !important;
  } 
}
  
  /* Verhindert, dass Überschriften ganz unten auf einer Seite stehen */
  h1, h2, h3, h4, h5, h6 {
    break-after: avoid !important;
    page-break-after: avoid !important;
  }

  /* Verhindert unschöne Umbrüche innerhalb von Absätzen, Tabellenzeilen oder Bildern */
  p, blockquote, table, tr, img, .card {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  /* Erzwingt einen sauberen Seitenanfang für Hauptüberschriften */
  h1 {
    break-before: page !important;
    page-break-before: always !important;
  }
