@charset "utf-8";

/* ==========================================================================
   FischerFabrik – Modernes Theme
   Wichtig: Alle Selektoren (Tags, Klassen, IDs) sind identisch zur
   bisherigen style.css. Es wurden ausschließlich Werte (Farben, Radien,
   Schatten, Schrift, Abstände) modernisiert. Die HTML/JS-Struktur deiner
   App muss NICHT verändert werden.
   ========================================================================== */

/* Moderne Schriftart "Inter" via Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* font imports (Original beibehalten, falls Datei vorhanden ist) */
@font-face { /* latin-ext */
	font-family: "Lato";
  src: url("../fonts/Lato-Regular.woff2") format("woff2"); /* Modern Browsers */
  font-weight: normal;
  font-style: normal;
}

/* ==========================================================================
   Design-Tokens (CSS-Variablen) – hier kannst du das Farbschema zentral
   anpassen, ohne im restlichen Code suchen zu müssen.
   ========================================================================== */
:root {
	/* Markenfarbe: Türkis/Cyan – passt zu "Glas & Wasser" */
	--color-primary: rgb(6,182,212);       /* #06B6D4 */
	--color-primary-dark: rgb(14,116,144); /* #0E7490 */
	--color-primary-light: rgb(225,245,238);

	/* Akzentfarbe für Status / Erfolg */
	--color-success: rgb(16,185,129);      /* #10B981 */
	--color-success-bg: rgb(225,245,238);
	--color-success-text: rgb(8,80,65);

	/* Neutral-Töne */
	--color-bg: rgb(248,250,252);          /* Seitenhintergrund */
	--color-surface: rgb(255,255,255);     /* Karten/Boxen */
	--color-text: rgb(30,41,59);           /* Haupttext */
	--color-text-muted: rgb(100,116,139);  /* Sekundärtext */
	--color-text-light: rgb(148,163,184);  /* Hinweistext */
	--color-border: rgb(226,232,240);

	/* Radien */
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--radius-full: 50%;

	/* Schatten */
	--shadow-sm: 0 1px 2px rgba(15,23,42,0.04), 0 1px 3px rgba(15,23,42,0.06);
	--shadow-md: 0 4px 12px rgba(15,23,42,0.08);
	--shadow-primary: 0 4px 10px rgba(6,182,212,0.35);

	/* Übergänge */
	--transition: all 0.2s ease;
}

html, body {
	display: flex;
	flex-flow: column nowrap;

	overflow: hidden;

	position: relative;
	width: 100%;
	height: 100%;

	font-size: 62.5%;
}

body {
	font-family: 'Inter', 'Lato', Helvetica, Arial, Verdana, sans-serif;
  font-size: 1.6rem; font-size: 16px;
	font-style: normal;
	font-variant: normal;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: normal;
	white-space: normal;

  color: var(--color-text);

  background-color: var(--color-bg);
}

#app {
	display: flex;
	flex-flow: column nowrap;

	overflow-x: auto;
	overflow-y: scroll;

	position: relative;
	width: 100%;
	min-height: 100%;
	z-index: 1000;
}

#app > * {

	display: flex;
	flex-direction: column;
	flex-grow: 1;

	min-width: inherit;
	width: inherit;
	min-height: inherit;
	height: inherit;
}

/* moderner, schlanker Scrollbar (Webkit) */
#app::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

#app::-webkit-scrollbar-thumb {
	background-color: rgba(100,116,139,0.3);
	border-radius: var(--radius-full);
}

#app::-webkit-scrollbar-track {
	background: transparent;
}

/* selection */
*::selection { /* Chrome */
	color: rgba(255,255,255,1);
  background-color: var(--color-primary);
}

*::-moz-selection { /* Firefox */
	color: rgba(255,255,255,1);
  background-color: var(--color-primary);
}

.noSelect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}

*:not(:empty) + .emptyShow {
	display: none;
	overflow: hidden;
	visibility: hidden;
}

.emptyMsg {
	width: 100%;
	display: block;
	text-align: center;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	color: var(--color-text-muted);
}

/* stop all transitions by element and all childs */
.stopTransition, .stopTransition * {
	-webkit-transition: none !important;
	   -moz-transition: none !important;
	     -o-transition: none !important;
	        transition: none !important;
}

.noBreak {
	white-space: nowrap;
}

/* Karten-Schatten – jetzt weich und modern statt hart */
.shadow {
	background-color: var(--color-surface);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
}

header {
	display: flex;
	flex-flow: column nowrap;

	position: relative;
	width: 100%;
	height: 0;

	z-index: 3;
}

main {
	display: flex;
	flex-flow: column nowrap;
	flex-grow: 1;

	position: relative;
	width: 100%;
	margin: 64px 0 0 0;

	z-index: 2;
}

footer {
	display: flex;
	flex-flow: column nowrap;

	position: relative;
	width: 100%;
	height: 0;
}

section {
	padding: 16px 16px 0 16px;
}

section > article {
	padding: 0 0 16px 0;
}

/* ### Links ### */
a,
a:link,
a:visited {
	cursor: pointer;
	position: relative;
	color: var(--color-primary-dark);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover,
a:focus,
a:active { /**/
	color: var(--color-primary);
}

h1, h2, h3, h4, h5, h6 {
	font-size: 2rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}

h1 {
	color: rgb(15,23,42);
	line-height: 2.4rem;
}

h2 {
	font-size: 1.5rem;
}

h3 {
	font-size: 1.2rem;
}

h4 {
	font-size: 1rem;
}

h5 {
	font-size: .8rem;
}

h6 {
	font-size: .7rem;
}

b {
	font-weight: 600;
	color: var(--color-text);
}

/* ### Loader Spiner ### */
.spinner {
  margin: 100px auto 0;
  width: 70px;
  text-align: center;
}

.spinner > div {
  width: 16px;
  height: 16px;
  background-color: var(--color-primary);

  border-radius: 100%;
  display: inline-block;
  -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
  animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}

.spinner .bounce1 {
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}

.spinner .bounce2 {
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}

@-webkit-keyframes sk-bouncedelay {
  0%, 80%, 100% { -webkit-transform: scale(0) }
  40% { -webkit-transform: scale(1.0) }
}

@keyframes sk-bouncedelay {
  0%, 80%, 100% {
    -webkit-transform: scale(0);
    transform: scale(0);
  } 40% {
    -webkit-transform: scale(1.0);
    transform: scale(1.0);
  }
}

summary {
  cursor: pointer;
}

/* ### Table – modern: weiche Linien statt harter grüner Rahmen ### */
table {
	border-collapse: collapse;
	border: none;
	border-radius: var(--radius-md);
	overflow: hidden;
	min-width: 50%;
	background-color: var(--color-surface);
	box-shadow: var(--shadow-sm);
}

th {
	padding: 10px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85em;
  color: var(--color-text-muted);
  background-color: var(--color-bg);
  border: none;
  border-bottom: 1px solid var(--color-border);
}

tr {
	border: none;
}

tr:not(:last-child) td {
	border-bottom: 1px solid var(--color-border);
}

tr:nth-child(even) {
	background-color: transparent;
}

tr:hover td {
	background-color: var(--color-bg);
}

td {
  border: none;
  padding: 10px 16px;
  transition: background-color 0.15s ease;
}

th:first-of-type {
	border-left: none;
	border-top-left-radius: var(--radius-md);
}

th:last-of-type {
	border-right: none;
	border-top-right-radius: var(--radius-md);
}

/* ==========================================================================
   Erweiterung: Login-Page Formular-Komponenten (Türkis-Theming)
   ========================================================================== */

/* Die Buttons: Werden jetzt automatisch modern Türkis */
.login form label button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 10px 16px;
	font-size: 16px;
	font-weight: 500;
	color: #ffffff !important; /* Weißer Text für perfekten Kontrast */
	background-color: var(--color-primary) !important;
	border: 1px solid var(--color-primary) !important;
	border-radius: var(--radius-sm) !important;
	box-shadow: var(--shadow-sm);
	cursor: pointer;
	transition: var(--transition);
}

/* Hover-Effekt: Button wird beim Drüberfahren elegant dunkler */
.login form label button:hover,
.login form label button:focus {
	background-color: var(--color-primary-dark) !important;
	border-color: var(--color-primary-dark) !important;
	box-shadow: var(--shadow-primary) !important; /* Hübscher Türkis-Glow-Effekt */
}

/* Verhalten, wenn der Button deaktiviert ist (z.B. während des Ladens) */
.login form label button:disabled {
	background-color: var(--color-text-light) !important;
	border-color: var(--color-border) !important;
	cursor: not-allowed;
	box-shadow: none;
}

/* Das Häkchen in der Checkbox ebenfalls in Türkis anpassen */
.login form label.custom-checkbox input[type="checkbox"] + span::before {
	color: var(--color-primary) !important;
}