html {height:100%;}

body {
	margin: 0; padding: 0; 
	height:100%;
	background: #F6DE97; 
    color:#333333;
	line-hight: 100%;
	font-size: 18px;
    font-family:'Nueva Roman';
}

img {max-width:100%; height:auto;}

a {color:#A4133C; text-decoration: none;}
a:hover {color: #fff !important;}


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: 24px; margin: 0 0 10px 0;} 
h4 { font-size: 22px; margin: 0 0 10px 0;} 
h5 { font-size: 19px; margin: 0 0 10px 0;}
h6 { font-size: 14px; margin: 0 0 10px 0;}

a:hover {color: #000;} 

hr{
	border: none;
	border-bottom:solid #fff 1px; height:1px;
	clear:both;
}


.wrapper {
	max-width: 1920px; /*max 1920px*/
    width: 93%; 
    margin: 0 auto;
	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: 'Nueva Roman';
	font-size: 15px;
	border: 1px solid #A4133C; 
	border-radius: 5px;
	background: #fff; 
	color: #333; 
	padding: 4px 8px 4px 8px; 
}
textarea { 
	font-family: 'Nueva Roman';
	font-size: 15px;
	border: 1px solid #A4133C; 
	border-radius: 5px;
	background: #fff; 
	color: #333; 
/*	min-width: 250px;*/
	width: 250px;
	padding: 4px 8px 4px 8px; 
}
input[type=text],
input[type=email],
input[type=password],
input[type="date"],
input[type="time"] {
	font-family: 'Nueva Roman';
	font-size: 15px;
	border: 1px solid #A4133C; 
	border-radius: 5px;
	background: #fff; 
	color: #333; 
	padding: 4px 8px 4px 8px; 
}

select {
	font-family: 'Nueva Roman';
	font-size: 15px;
    border: 1px solid #A4133C; 
	border-radius: 5px;
	background: #fff; 
	color: #333; 
	padding: 4px 8px 4px 8px; 
	min-width: 268px; 
}

button[type=button], 
input[type=submit] {
	font-family: 'Nueva Roman';
	border: 1px solid #A4133C;
	color: #333 !important;
	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 #A4133C;
}
button[type=button]:active,
input[type=submit]:active {
transform: scale(0.99);
	box-shadow: 1px 1px 2px 0px #A4133C;
}

input[type=number] {
	font-family: 'Nueva Roman';
	font-size: 15px;
	border: 1px solid #A4133C; 
	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 #A4133C;
  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: #A4133C; /* the active color */
	margin: 0 5px -4px 0;
  
  height: var(--s);
  aspect-ratio: 1;
  border: calc(var(--s)/20) solid #A4133C;
  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;
  color: #333; 
}
input[type=radio]:checked {
  border-color: var(--c);
  background-size: 100% 100%;
}

.captcha_iframe{
font-family: 'Nueva Roman';
	border: 1px solid #A4133C !important; 
	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: 'Nueva Roman';
	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: #FFCCB6;
}
::-webkit-scrollbar-thumb {
  background: #C15070;
}

.img-a {
        bottom: 0;
        right: 0;
    }
.img-b {
	width: 250px;
	height: auto;
}
.img-logo{
	padding: 20px 5px 15px 0;
 /*   border-bottom: 0.5px solid #fff; */
	background-color: #C15070; /* #C15070 #A4133C */
    text-align: center;
}

.mySlides {
  display: none;
  position: relative; /* nötig, damit das Canvas exakt über dem Bild sitzt */
}

.mySlides img {
  display: block; /* entfernt den unsichtbaren Inline-Abstand unter dem Bild */
}

.pixel-canvas {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.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: 50px; /* 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: #C15070;
  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: #A4133C;
}
#backtotop:active {
  background-color: #A4133C;
}
#backtotop.show {
	opacity: 0.8;
  visibility: visible;
}

.thrfooter{
	font-size: 20px;
	padding: 25px 0px 15px 0px;
	text-align: center;
    word-wrap: break-word;
	color: #f6de97 !important;
}

.thrfooter a {
color: #f6de97 !important;
}
.thrfooter a:hover {
color: #fff !important;
}

.copyright{
	padding: 10px 15px 0px 15px;
	font-size: 16px; 
}

.footer {
	color:white;
	font-size: 16px;  
	text-align: center;
	background: #A4133C;
	padding: 0px 15px 25px 15px;
	height:auto;
	clear:both;
}

.footer a {
	color: #f6de97 !important;
}

.footer a:hover {
	color: #fff !important;
}

.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:#FFCCB6; border-left: 1px solid #fff;
}
.side h4 {color: #fff;}

.main,
.side {
/*nix*/
}

@media(max-width: 800px){
  .grid {
	  grid-template-columns: 100%; 
  }
	.side {
	border-left: none;
		margin: 0 0 0 0;
		border-top: 1px solid #fff;
		padding: 20px 10px 0 10px;
  }
	.main {
	padding: 0 10px 0px 10px;
  }
	
.img-b {
	width: 150px;
	height: auto;
    }
}

/* 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 */
}

.img-logo {max-width:100%; height:auto;}

/* 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 {
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

@media print {
	 /* Definiert den globalen Rand für jede gedruckte Seite */
  @page {
    margin-top: 20px !important;    /* Verhindert das Kleben am oberen Rand */
    margin-bottom: 20px !important; /* Schützt vor dem unteren Rand */
    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; /* Wichtig für Padding-Berechnung */
    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;
  }
}