:root {
  --main-font: 'Segoe UI', Helvetica, Arial, sans-serif;
}

html {
font-size:12pt;
}

body {
	margin:69px 0;
	font-family: var(--main-font);
	/*font-family: Georgia, serif;*/
	color: #9C693E;
    background-color: #EBD3AD; 
    overflow-x: hidden;
	overflow-y:auto;
    padding:0;
	font-size: 16pt;
	word-break:break-word;
	}
	
p {
	color: #5C4033;
	}
	

input::placeholder {
  font-weight:200;
  font-style: italic;
  opacity: 0.5; /* Transparenz */
  }
  
input:focus::placeholder {
  color: transparent; /* Versteckt den Placeholder beim Klick */
  }
	
div.header {
	display:flex;
	flex-direction:column;
	margin:0;
	padding:0;
	padding:8px 0;
	justify-content:center;
	align-items:center;
	user-select: none;
	}
	
div.header_main {
	display:flex;
	flex-direction:column;
	margin:0;
	padding:0;
	padding-top:176px;
	justify-content:center;
	align-items:center;
	user-select: none;
	}
	
@media (max-width: 768px) {
	div.header_main,
	div.header
	{
		padding-top: 8px;
	
	}
}

h1.header, a.header, a.header:active, a.header:visited, a.header:focus, .ueberschrift_h1 {
	color: #B7682A   ; /* Herbstliches Braun */
    text-shadow: 1px 1px 2px rgba(50, 30, 20, 0.8);
    font-style: normal;
	margin:0;
    padding: 0;
    text-decoration: none;
    font-weight: 900;
	font-size: 6rem;
	word-break: break-word; /* Weicher Umbruch */
	letter-spacing:-1px;
	}
	
@media (max-width: 768px) {
h1.header, a.header, a.header:active, a.header:visited, a.header:focus{
		font-size: 4rem;
		}
	
}
.ueberschrift_h1 {
	font-size: 2rem;
	font-weight: 600;
	margin: 16px;
	}

	
.menu {
    user-select: none;
    letter-spacing: -1pt;
    font-variant: small-caps;
    font-weight: 900;
    font-size: 3rem;
    text-shadow: 1px 1px 2px rgba(50, 30, 20, 0.8);
    color: #B7682A; /* Dunkelbraun-beige */
    text-decoration: none;
	margin: 32px 0 ;
	padding:0px 0;
	width: 100%;
	text-align: center;
    display: flex;
	justify-content: center;
	flex-flow: row wrap;
	gap:16px;
	
	
}

.menu a {
    color: #B7682A;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    margin: 0 0px;
    position: relative;
    min-width: 320px;
    padding: 4px 8px;
    display: inline-block;
    font-weight: 900;
    font-size: 2rem;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0);
	
}

/* Hover- und Active-Effekt */
.menu a:hover,
.menu a.active {
    background-color: rgba(184, 115, 51, 0.5);
    box-shadow: 0 4px 8px rgba(184, 115, 51, 0.25);
    color: #FFF8E7;
	border: 1px solid rgba(50, 30, 20, 0.25);
}

/* Coole Unterstreichung bei Hover */
.menu a::after {
    content: "";
    position: absolute;
    left: 20%;
    bottom: 8px;
    width: 60%;
    height: 3px;
    background-color: rgba(184, 115, 51, 0.8);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
    border-radius: 2px;
}

.menu a:hover::after,
.menu a.active::after {
    transform: scaleX(1);
}

	
.kasten {
	display: flex;
	flex-flow:row wrap; /*column für das NEU layout*/
	justify-content: center;  /* Zentriert den child-Container */
	align-items:center;
	margin:8px;
	padding:0px 8px;
	gap:64px 32px;
	z-index:1;
	position:relative;
	}
	
/* hier kommt ein neues element für die erweiterte suche. 
div.kastenelement > *,  
div.kastenelement_media > * {  
    width: 100%;  
}
*/

.kastenelement,
.kastenelement_main,
.kastenelement_blaettern 
 {
	display:flex;
	flex-flow:column;
	width: 100%;
	max-width:600px;
    padding:8px;
	background-color: rgba(227, 213, 195, 0.9); 
    color: #FFF5E1;
    border-radius: 8px;
/*  border: 2px solid rgba(196, 90, 50, 0.6);  */
    box-shadow: 2px 2px 4px rgba(139, 69, 19, 0.5), 
    -2px -2px 4px rgba(139, 69, 19, 0.5);
    text-align: center;	
	}
	
.kastenelement_main {
	background-color: transparent !important;
	box-shadow: none;	
	}
	
.kastenelement_knoepfe {
	display:flex;
	flex-flow:row wrap;
	justify-content:center;
	}	
	
.kastenelement_blaettern {
	display:flex;
	flex-flow:column wrap;
	justify-content:center;
	align-items:center;
	max-width:max-content;
	
	}	
	
.kasten label {
	user-select: none;
	}
		
input[type="text"],
input[type="select"],
select,
textarea {
	margin: 8px 0px;
    width: 100%;
    height:48px;
    color: #582900;
    background: rgba(254, 250, 251, 0.85); /* Warmer, heller Beigeton */
    border: 0px solid rgba(139, 69, 19, 0.5);
    border-radius: 4px;    
	box-shadow: 1px 1px 4px rgba(196, 90, 50, 0.5);
    outline: none;
	border-radius: 24px;
    }
	
/* Fokus-Effekt für Eingabefelder */
input[type="text"]:focus,
input[type="select"]:focus,
textarea:focus {
    background: rgba(254, 250, 251, 1); /* Warmer, heller Beigeton */
    border-color: rgba(139, 69, 19, 0.5);
	box-shadow: 1px 1px 4px rgba(196, 90, 50, 0.8);
	}
	
input[type="text"]:hover,
input[type="select"]:hover,
textarea:hover {
    background: rgba(254, 250, 251, 1); /* leicht heller */
    box-shadow: 2px 2px 6px rgba(196, 90, 50, 0.5);
    border-color: rgba(139, 69, 19, 0,7);
	}

.footer {
    width: 100%;
    position: fixed; /* Alternativ: fixed oder sticky */
    bottom: 6.9px;
    display: flex;
    justify-content: center; /* Zentriert den Inhalt horizontal */
    align-items: center; /* Zentriert den Inhalt vertikal */
    padding: 10px 0; /* Optionaler Abstand nach oben/unten */
	word-break: break-word; /* Weicher Umbruch */
	z-index:-1;
	}
	
.circle {
	pointer-events: none;
    position: absolute;  /* Damit die Kreise frei positioniert werden können */
    width: 50px;  /* Falls du eine Standardgröße brauchst */
    height: 50px;
    border-radius: 50%;
    z-index: -9999;  /* In den Hintergrund setzen */
    transition: transform 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
    /* Wichtig für die Zentrierung */
    transform: translate(-50%, -50%);
	}

.credits {
    backdrop-filter: blur(4px);
	background: rgba(90, 70, 50, 0.2);
    border: 2px solid rgba(90, 70, 50, 0.4);
    border-radius: 4px;
    color: #3e2f20;
    display: flex;
    font-size: 8pt;
    gap: 6px;
    justify-content: center;
    align-items: center;
	max-width: 320px;
    opacity: 0.5;
    overflow: visible;
    padding: 4px 8px;
    position: fixed;
    scale: 1.3;
    text-decoration: none;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    transform-origin: center;
    transition: all 0.4s ease-in-out, transform 0.4s ease-in-out;
    user-select: none;
    width: max-content;
    word-break: break-word;
	}

.credits.active {
	border-radius: 4px 4px 0 4px; /* <--- Hier geändert */
	color: #fdf8f3;
    opacity: 1;
	user-select: none;
	transform: translatey(-1vh) scale(1.1) rotate(0deg);
    background: linear-gradient(45deg,#ff7eb3, #ffcc00, #00d4ff, #a29bfe, #ff7eb3);
    background-size: 300% 300%;
    animation: bgAnimation 3s ease infinite alternate;
    box-shadow: 0px 0px 10px rgba(255, 152, 0, 0.4), 
                0px 0px 20px rgba(255, 204, 0, 0.3);    
   filter: drop-shadow(0px 0px 8px rgba(255, 152, 0, 0.5));
   }
   
.credits:hover {
	cursor: pointer;
}

.credits.active::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, rgba(255, 200, 100, 0.4) 0%, rgba(255, 100, 0, 0) 70%);
    border-radius: 8px;
    animation: pulseGlow 2s ease-in-out infinite;
    filter: blur(12px);
    opacity: 0.75;
    pointer-events: none;
	}
	
.credits {
    position: relative;
	}
	
@keyframes pulseGlow {
  0% {
    transform: scale(0.95);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.75;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.5;
  }
}

.credits.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: sparkle 3s linear infinite;
    pointer-events: none;
    opacity: 0.3;
	}

@keyframes sparkle {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-20px, -20px);
  }
}

@keyframes bgAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

code{font-size:0.8em;}

/* Gemeinsame Eigenschaften für fehlerhafte Elemente */
.fehler, .info {
    font-style: italic;
    font-weight: 600;
    color: #cc0033;
    font-size: 1em; /* Setzt font-size auf 1em für alle */
	}

p.fehler {
    font-size: 1.5em; /* p.fehler bekommt eine größere font-size */
	}
	
/* Stile für den Datei-Selector Button */
input[type="file"]::file-selector-button {
    font-size: 0.8em;
    font-weight: 600;
    border: solid #ccc 2px;
    cursor: pointer;
    background-color: #137512;
    color: #fff;
    height: 100%;
    margin-right: 8px;
    padding: 0 8px; /* Vereinheitlicht padding */
    transition: background-color 250ms ease-in-out, color 250ms ease-in-out, border 250ms ease-in-out; /* Transition auf alle relevanten Eigenschaften anwenden */
	}

/* Hover-Stile */
input[type="file"]::file-selector-button:hover {
    background-color: #eee;
    color: #137512;
    border: dotted 2px #666;
    text-shadow: 1px 1px 2px #ccc;
	}
	
/* Gemeinsamer Knopf-Stil */
.knopf, 
.suchknopf,
.nachoben  {
    background-color: #8B4513; /* Dunkles Herbstbraun */
    color: #FFF8E7; /* Sanftes Cremeweiß */
    font-size: 0.8em;
	font-weight:200;
	letter-spacing:-0px;
    padding: 12px;
    margin: 4px;
	border: 1px solid #5C4033; /* Dunkler Rand für Kontrast */
	border-radius: 6px; 
    cursor: pointer;
    transition: all 0.1s ease;
    box-shadow: 0px 0px 4px rgba(40, 30, 20, 0.8);
    user-select: none;
    font-family: var(--main-font);
	opacity:0.95;
	white-space: normal; /* erlaubt Umbrüche */
	word-break:break-word;
    /*font-family: Georgia, serif;*/
	}

.knopf:hover, 
.suchknopf:hover,
.nachoben:hover {
    background-color: #A0522D; /* Wärmerer Braunton */
    box-shadow: 0px 1px 2px rgba(40, 30, 20, 0.8);
	border-radius: 6px 6px 0 6px; /* TL, TR, BR, BL */
	border: 1px solid #5C4033; /* Dunkler Rand für Kontrast */
	}

.nachoben {
    display: none; /* Versteckt beim Laden */
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    padding: 6px 9px;
	cursor: pointer;
    user-select: none;
	}

.nachoben:hover {
	border-radius: 6px; 
	}


/* Spezifische Anpassungen für .suchknopf */
.suchknopf {
    min-width: 180px;
    max-width: max-content;
	margin:8px 16px;
	}

.text,
.textfeld,
.liste {
	color: #582900;
	font-size: 0.8em;	
	padding: 0px;
	padding-left:24px;
	box-sizing: border-box;
	transition: all 0.1s ease;
	background-color: #fff;
	font-family: var(--main-font);
	/*font-family: Georgia, serif;*/
	opacity:1;	
	}
	

@keyframes bounceY {
  0%   { transform: translateY(0); }
  15%  { transform: translateY(-6.28px); }  /* 8π / 4 */
  30%  { transform: translateY(0); }
  45%  { transform: translateY(-3.93px); }  /* 5π / 4 */
  60%  { transform: translateY(0); }
  75%  { transform: translateY(-2.36px); }  /* 3π / 4 */
  90%  { transform: translateY(0); }
  100% { transform: translateY(-0.79px); }  /* π / 4 */
}



.textfeld.wackelnd {
  animation: bounceY 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.liste.wackelnd {
  animation: bounceY 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}


.ueberschrift {
    color: #5A2A0A; /* Dunkles Herbstbraun */
    font-size: 1.0em;
    font-weight: bold;
    text-align: left;
    user-select: none;
	padding: 0;
	margin:0;
	}

table, 
th, 
tr, 
td {
	margin:0;
	padding:0;
	}
	
.suchergebnisse {
	display: block;
	text-align:left;
	margin: 0px 32px;
	word-break: break-all;
	}
	
.tableception {
	display:flex;
	flex-flow: column wrap;
	background: rgb(141, 79, 52, 0.5);
	border: 2px solid #5C4033; /* Dunkler Rand für Kontrast */
	margin: 16px 0;
	padding: 2px 16px;
	border-radius: 4px;
	font-size:0.8em;
	}

table.suchergebnis {
	margin: 8px 0;
	border-collapse: collapse;
	font-size: 0.8em;
	color: #8B4513;
	width: 100%;
	table-layout: fixed;
	text-decoration: none; /* optional: wird oft bei Links gebraucht */
	}

tr.suchergebnis {
	display: flex;
	flex-flow: column wrap;
	justify-content: flex-start;
	border: 2px solid #5A2A0A;
	border-radius: 4px;
	margin: 6px 0;
	box-shadow: 1px 1px 2px rgba(40, 30, 20, 0.5);
	border: 2px solid #5C4033; /* Dunkler Rand für Kontrast */
	}

td.suchergebnis {
	padding: 4px 8px;
	}

.suchergebnis_media {
	display: block;
	text-align:left;
	padding: 4px 4px;
	}
	
.suchergebnis_media:hover {
	background-color: #9C693E  ; 
	color:#fff;
	}

a.suchergebnis_media {
	color:#8B4513;
	text-decoration:none;
	}

td.suchergebnis_h1 {
	font-weight:900;
	font-size:1.5em;
	color:#8B4513;
	padding: 8px 16px;
	word-break:break-word;
	}

tr.suchergebnis:nth-child(even) {
	background-color: #F5E6DA; /* Helles Creme-Braun */
    color: #5C4033;
	}

tr.suchergebnis:nth-child(odd) {	
    background-color: #EADAC8; /* Sanftes Beige-Braun */
    color: #4A3325;
	}
	
