
/*********************************************************************/
/*********   Schön, dass du Zackys Corecodes durchforstest!  *********/
/*********************************************************************/
/**       Wenn du CSS genauso liebst wie Zacky und noch dazu        **/
/**  programmieren kannst, freut er sich sehr, wenn du ihn direkt   **/
/**              unter zacky@bb-reihe.at kontaktierst!              **/
/*********************************************************************/
/*********    Wir freuen uns auf dich und dein Feedback!     *********/
/********* (c) 2026 Zackys-Woerteruniversum.at | BB-Reihe.at *********/
/*********************************************************************/


:root {
	
 --standard-blue: #5a8fc5; /* schulbuchblau*/
 --standard-blue-dark: #78aee3; /* schulbuchblau*/
	
 --standard-nomen: #006ebd; 
 --standard-nomen-dark: #005299; 

 --standard-verb: #c01010; 
 --standard-verb-dark: #900d0d; 

 --standard-adjektiv: #3e872e; 
 --standard-adjektiv-dark: #2d5d1f; 
	
 --standard-color: darkgray; 
 --standard-color-dark: #3b3b3b; 
	
--standard-wrong:#bd1724;
	
	
	
  /* Hauptfarben */
  --lucy-main-color: #ee751a;      /* Artikel */
  --pauley-main-color: #312d6a;    /* Pronomen */
  --eulalia-main-color: #247c7a;   /* Nomen */
  --nirveli-main-color: #0d6fa8;   /* Verb */
  --fabrizio-main-color: #96b153;  /* Adjektiv */
  --flavio-main-color: #ec6094;    /* Präposition */
  --olav-main-color: #bd1724;      /* Adverb */
  --violetta-main-color: #5f1c3e;  /* Konjunktion */
  --zacky-main-color: #6292c0;     /* Interjektion */
  --emile-main-color: #f9b433;     /* Numerale */
	
  /* Hellere Varianten */
--lucy-light-color: #f8bb5c;     /* vorher #f4a03c */
--pauley-light-color: #5a52b0;   /* vorher #4a4290 */
--fabrizio-light-color: #c8d478; /* vorher #b4c56a */
--flavio-light-color: #f499bf;   /* vorher #f17bad */
--violetta-light-color: #9a5f7b; /* vorher #81465f */
--zacky-light-color: #92b4e2;    /* vorher #7aa2d7 */
--emile-light-color: #fff07a;    /* vorher #fce258 */
--eulalia-light-color: #4db3b0;  /* vorher #399a98 */
--nirveli-light-color: #4b9fe0;  /* vorher #3285d0 */
--olav-light-color: #e0674b;     /* vorher #d84733 */

  /* Dunklere Varianten */
  --lucy-dark-color: #b3520a;
  --pauley-dark-color: #1f1a43;
  --fabrizio-dark-color: #6c8035;
  --flavio-dark-color: #a63e74;
  --violetta-dark-color: #3a1228;
  --zacky-dark-color: #3a5c8a;
  --emile-dark-color: #a8860f;
  --eulalia-dark-color: #195d5a;
  --nirveli-dark-color: #094a7c;
  --olav-dark-color: #7f110d;
	
--lucy-lighter-color: #fde7d2;       /* sehr helles Orange */
--pauley-lighter-color: #e3e1f4;     /* sehr helles Violett/Blau */
--fabrizio-lighter-color: #f0f5dc;   /* sehr helles Grün/Gelb */
--flavio-lighter-color: #fde1eb;     /* sehr helles Rosa */
--violetta-lighter-color: #f0dde5;   /* sehr helles Altrosa */
--zacky-lighter-color: #dce9f5;      /* sehr helles Blau-Grau */
--emile-lighter-color: #fff8d6;      /* sehr helles Gelb */	
--eulalia-lighter-color: #d5f2f1;    /* sehr helles Türkis */
--nirveli-lighter-color: #d2e9f8;    /* sehr helles Blau */
--olav-lighter-color: #f8d4d7;       /* sehr helles Rot */

/* colortest 
--eulalia-main-color: #0d6fa8;    
--nirveli-main-color: #bd1724;   
--olav-main-color: #247c7a; 
--eulalia-light-color: #4b9fe0;  
--nirveli-light-color: #e0674b;  
--olav-light-color: #4db3b0;  
--eulalia-dark-color: #094a7c;
--nirveli-dark-color: #7f110d;
--olav-dark-color: #195d5a;
--eulalia-lighter-color: #d2e9f8;  
--nirveli-lighter-color: #f8d4d7;  
--olav-lighter-color: #d5f2f1;  
*/	
	
}

/* global.css */
*, *::before, *::after {
  box-sizing: border-box;
}


html {
  margin: 0;
  padding: 0;
  height: 100%;
	  min-height: 100vh;
  overflow: hidden;
	  touch-action: none; 
}

* {
  box-sizing: border-box;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4); 
  z-index: -1; 
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #f5f2e9;
    font-family: "Noto Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
	  overflow: hidden; 
	  position: relative;
	  background-image: url('../images/eulalia_baumhoehle2.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

	
.page {
	width: 100%;
	height: 100%;
	overflow-y: auto;
	background: white;
	padding-top: 10px;
	padding-left: 20px;
	padding-right: 20px;
	border: 1px solid #ccc;
	box-sizing: border-box;
}

	
/* === Layout-Container === */
.book-container {
	position: relative;
  display: flex;
  flex-direction: row;
  height: 100vh;
	  justify-content: space-between;
	  touch-action: pan-y;
		  /* height: calc(100vh - 240px); ← raus */
		  height: auto;
		margin: 120px auto; 
		box-shadow:
		inset 0 15px 15px -15px rgba(0,0,0,0.15),   
		inset 0 -15px 15px -15px rgba(0,0,0,0.15); 
	max-width: 800px;
}
	
/* === Buch-Wrapper === */
.book {
  width: 100%;
  height: 100%;
  margin: auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
	  background: white;
		  touch-action: pan-y;

}	
	
.book-pages {
 display: block;
}
	
.left-page, .right-page {
  flex: 0 0 50%;
  max-width: 50%;
}	
	
@media (min-width: 768px) {
  .book-pages {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 0px;

  }

  .left-page,
  .right-page {
    flex: 0 0 50%;
    max-width: 50%;
	  pointer-events: auto; 
  }
}	

/* === ABC Navigation === */
.abc-nav {
  background: #ddd;
  padding: 5px;
  width: 30px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.abc-nav:first-of-type {
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}

/* rechte ABC-Nav */
.abc-nav:last-of-type {
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

.abc-nav .active-letter {
  width: 30px;
  font-size: 20px;
  font-weight: bold;
  color: #2a7c6f; 
  margin-bottom: 8px;
  text-align: center;
}

.abc-nav ul {
  list-style: none;
  padding: 0;
  margin: 0; 
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
}
.abc-nav li.active {
  background: #2a7c6f;
  color: white;
  font-weight: bold;
  border-radius: 3px;
	padding:3px;
}


.abc-nav li {
  padding: 1.5px;
  text-align: center;
  cursor: pointer;
  font-size: 11px;
}
	
/* === Seiteninhalt === */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;  
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 10px;
  padding-bottom: 2px;
  position: relative;

  /* Standard Border für Desktop */
  border-bottom: 1px solid rgba(0, 0, 0, 0.85);
}

@media (max-width: 767px) {
  .page-header {
    border-bottom: none; 
  }

  .page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    width: 100%;
    background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.65) 55%,
      rgba(0, 0, 0, 0) calc(100% - 15px)
    );
  }
}


.word-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.word-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
}

.article {
  font-size: 1rem;
  cursor: pointer;
}

.word {
  font-size: 1.1rem;
  cursor: pointer;
  display: inline-flex;       
  align-items: center;        
  gap: 6px;                   
	
}


	



	
.word-actions {
  display: flex;
  gap: 5px;
  align-items: center;
  margin-left: auto; 
}
	.word-actions, 
.word-actions button {
  pointer-events: auto; 
  touch-action: none;   
}
.word-list, .page-header {
  touch-action: pan-y; 
}
	
/* farbtoggle */ 

.word.nomen {
  color: #006ebd;
}
.word.verb {
  color: #c01010;
}
.word.adjektiv {
  color: #3e872e;
}
.word.other {
  color: black;
}
#wordPages {

  height: 100%;
}
#wordPages.fading {
  opacity: 0;
}

	
	
#saved-controls {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  padding: 5vh 5vw;
  box-sizing: border-box;
  z-index: 1000;
  overflow: auto;

  justify-content: center;
  align-items: center;
}

#saved-controls.modal-open {
  display: flex;
}

/* Modal-Content */
#saved-controls > .modal-content {
  background: #fff8f8;
  border-radius: 8px;
  padding: 1.5em;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  position: relative;
}

/* Reset Button nur sichtbar wenn Wörter da sind */
#reset-saved-btn {
  align-self: flex-end;
  margin-bottom: 0.5em;
  padding: 0.3em 0.6em;
  border: none;
  background-color: #f44336;
  color: white;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  display: none; /* JS steuert Sichtbarkeit */
  transition: background-color 0.3s ease;
}

	
#saved-controls button {
  margin-right: 0.5em;
  margin-top: 1em;
}

.clickable-word {
  cursor: pointer;
  text-decoration: underline dotted #d00;
}

.highlight-jump {
  animation: blink 1s ease-in-out 2;
  background-color: #ffcccc !important;
  border-radius: 3px;
}

@keyframes blink {
  0% { background-color: #ffcccc; }
  50% { background-color: #fff0f0; }
  100% { background-color: #ffcccc; }
}
	

#saved-words-output {
  flex: 1;
  margin-top: 1em;
  padding: 0.5em;
  border: none;
  border-radius: 2px;
  background-color: #fff8f8;
  overflow-y: auto;
  max-height: 100%;
}
	
#saved-words-output p {
  margin: 0;
  font-weight: bold;
  margin-bottom: 8px;
}

#saved-words-output ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ddd;
  padding: 8px;
  border-radius: 5px;
  background: #fafafa;
}

#saved-words-output ul li {
  background-color: #e3f2fd;
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  user-select: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#saved-words-output ul li:hover {
  background-color: #90caf9;
  color: #0d47a1;
}
	
/* Reset-Button nur im Modal, etwas optisch ansprechend */
#reset-saved-btn {
  align-self: flex-end;
  margin-bottom: 0.5em;
  padding: 0.3em 0.6em;
  border: none;
  background-color: #f44336;
  color: white;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  display: none; /* wird JS-gesteuert sichtbar */
  transition: background-color 0.3s ease;
}	
	
@keyframes pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.4); }
  100% { transform: scale(1); }
}

#saved-count-badge {
	position: absolute;
	top: -5px;
	right: -5px;
	background: var(--olav-main-color);
	color: white;
	border-radius: 50%;
	padding: 2px 6px;
	font-size: 10px;
	font-weight: bold;
	user-select: none;
}

#saved-count-badge.pop {
  animation: pop 0.4s ease;
}	
	

#saved-pokal-badge {
	position: absolute;
	top: -5px;
	right: -5px;
	background: var(--lucy-main-color);
	color: white;
	border-radius: 50%;
	padding: 2px 6px;
	font-size: 10px;
	font-weight: bold;
	user-select: none;
}

#saved-pokal-badge.pop {
  animation: pop 0.4s ease;
}	
	
#saved-aufgaben-badge {
	position: absolute;
	top: -5px;
	right: -5px;
	background: var(--eulalia-main-color);
	color: white;
	border-radius: 50%;
	padding: 2px 6px;
	font-size: 10px;
	font-weight: bold;
	user-select: none;
}

#saved-aufgaben-badge.pop {
  animation: pop 0.4s ease;
}	
	

#saved-feedback-badge {
	position: absolute;
	top: -5px;
	right: -5px;
	background: var(--zacky-main-color);
	color: white;
	border-radius: 50%;
	padding: 2px 6px;
	font-size: 10px;
	font-weight: bold;
	user-select: none;
}

#saved-feedback-badge.pop {
  animation: pop 0.4s ease;
}	


	
.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.word-row.big-letter {
  font-size: 4em;
  font-weight: 900;
  color: transparent;
	  color: #ababab;

  text-align: left;
  line-height: 1;
  margin-bottom: 1em;
  user-select: none;
  letter-spacing: 0.05em;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
	position:absolute;
	bottom: -30px;
	left: 20%;
}
	
.word-row.empty-line {
  display: block;
  min-height: 1.2em;   /* Höhe erzwingen */
  font-size: 1rem;
  text-align: center;
  color: #999;
	  pointer-events: none;
}



.btn-article {
  background-color: #ee751a;
  color: white;
  border: none;
  padding: 10px 14px;
  font-size: 1em;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-article:hover {
  background-color: #d76615;
  transform: translateY(-2px);
}
	
.btn-article.correct {
  background-color: #4CAF50; /* schönes Grün */
  color: white;
  border-color: #388E3C;
}

.btn-plural {
  background-color: #247c7a;
  color: white;
  border: none;
  padding: 10px 18px;
  font-size: 1em;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-plural:hover {
  background-color: #1c605d; /* dunkleres Türkis beim Hover */
  transform: translateY(-2px);
}

.btn-plural.correct {
  background-color: #4CAF50; /* schönes Grün für richtig */
  color: white;
  border-color: #388E3C;
}

.btn-plural.wrong {
  background-color: #d32f2f; /* rotes Feedback für falsch */
  color: white;
}



.btn-adjektiv {
  background-color: var(--fabrizio-main-color);
  color: white;
  border: none;
  padding: 10px 18px;
  font-size: 1em;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-adjektiv:hover {
  background-color: var(--fabrizio-dark-color); /* dunkleres Türkis beim Hover */
  transform: translateY(-2px);
}

.btn-adjektiv.correct {
  background-color: #4CAF50; /* schönes Grün für richtig */
  color: white;
  border-color: #388E3C;
}

.btn-adjektiv.wrong {
  background-color: #d32f2f; /* rotes Feedback für falsch */
  color: white;
}


#ttwrapper {
  display: inline-block;
  position: relative;
  cursor: help;
  -webkit-transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
  margin: 0 8px; 
}

#ttwrapper .tooltip {
  background: #ffda54;
  bottom: 100%;
  color: #000;
  font-size: 1rem;
  display: block;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  margin-bottom: 15px;
  opacity: 0;
  padding: 10px 15px;
  pointer-events: none;
  position: absolute;
  white-space: nowrap;
  transition: all .25s ease-out;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28);
  border-radius: 5px;
  z-index: 10;
}

#ttwrapper .tooltip:before {
  bottom: -20px;
  content: " ";
  display: block;
  height: 20px;
  left: 0;
  position: absolute;
  width: 100%;
}

#ttwrapper .tooltip:after {
  border-left: solid transparent 10px;
  border-right: solid transparent 10px;
  border-top: solid #ffda54 10px;
  bottom: -10px;
  content: " ";
  height: 0;
  left: 50%;
  margin-left: -10px;
  position: absolute;
  width: 0;
}

#ttwrapper:hover .tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* IE fallback */
.lte8 #ttwrapper .tooltip {
  display: none;
}
.lte8 #ttwrapper:hover .tooltip {
  display: block;
}
