/* ============================================================
   Rapporter Portal – Login & Portal Styles
   Modernisiert 2026
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* --- CSS-Variablen --- */
:root {
  --accent:        #a43e0b;
  --accent-dark:   #8a340a;
  --accent-dim:    rgba(164, 62, 11, 0.22);
  --bg-dark:       #1F1F1F;
  --bg-card:       rgba(255, 255, 255, 0.04);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --text-light:    #f0f0f0;
  --text-muted:    #888888;
}

/* --- Basis --- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', 'Raleway', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  margin: 0;
  font-size: 14px;
}

html {
  background-color: #1F1F1F !important;
}

/* Radial glow background – nur sichtbar auf Login-Seite */
body.login-body {
  position: relative;
}
body.login-body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 25% 65%, rgba(164, 62, 11, 0.10) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 78% 28%, rgba(164, 62, 11, 0.06) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

/* Passwort-Reset Seite: etwas breiter als Login */
.forget-body .container {
  max-width: 620px !important;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
  background: transparent !important;
}

.forget-body #box_login {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 50px 44px 42px;
}

.forget-body .form {
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.forget-body .login-page {
  max-width: 500px;
  margin: 0 auto;
}

.forget-body table {
  width: 100%;
  margin: 0 auto;
}

/* Helle Schrift auf der gesamten Forget-Seite */
.forget-body,
.forget-body p,
.forget-body h3,
.forget-body td,
.forget-body div {
  color: var(--text-light) !important;
}

.forget-body .forget-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  flex-wrap: wrap;
}

.forget-body .forget-actions .btn_form {
  min-width: 200px;
}

@media (max-width: 768px) {
  .forget-body .container {
    max-width: 100% !important;
    min-height: 100vh;
    display: block;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 28px;
    padding-bottom: 22px;
  }
  .forget-body .login-page {
    max-width: 100%;
  }
  .forget-body #box_login {
    max-width: 100%;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }
  .forget-body .forget-actions {
    gap: 10px;
  }
  .forget-body .forget-actions .btn_form {
    width: 100%;
    min-width: 0;
  }
}

iframe { border: 0; overflow: hidden; }
hr     { background: var(--accent); border: none; height: 1px; }

/* --- Links --- */
a:link, a:visited, a:active, a:hover {
  color: var(--text-muted);
  text-decoration: none;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */

/* Zentrierter Wrapper */
.login-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

/* Glassmorphism Card */
.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 50px 44px 42px;
}

/* Logo */
.login-logo {
  text-align: center;
  margin-bottom: 30px;
}
.login-logo img {
  max-width: 200px;
  height: auto;
}

/* Accent Divider */
.login-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin-bottom: 30px;
}

/* Alert Nachrichten */
.login-alert {
  background: rgba(164, 62, 11, 0.12);
  border: 1px solid rgba(164, 62, 11, 0.35);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 22px;
  font-size: 0.875rem;
  color: var(--text-light);
  text-align: center;
  line-height: 1.5;
}
.login-alert.success {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-subtle);
}
.login-alert a {
  color: #ccc;
  text-decoration: underline;
}

/* Formular */
.login-form input[type="text"],
.login-form input[type="password"] {
  display: block;
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--text-light);
  font-size: 0.95rem;
  font-family: inherit;
  margin-bottom: 14px;
  outline: none;
  transition: border-color 0.25s, background 0.25s;
}
.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
  border-color: var(--accent);
  background: rgba(164, 62, 11, 0.08);
}
.login-form input::placeholder { color: var(--text-muted); }

.login-form button {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, transform 0.15s, box-shadow 0.25s;
  margin-top: 6px;
  box-shadow: 0 4px 20px rgba(164, 62, 11, 0.25);
}
.login-form button:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(164, 62, 11, 0.4);
}
.login-form button:active { transform: translateY(0); }

/* Legacy-Form Klassen (forget_pw/logout) im gleichen Look */
.input_login,
.form_input {
  display: block;
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--text-light);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s, background 0.25s;
}

.input_login:focus,
.form_input:focus {
  border-color: var(--accent);
  background: rgba(164, 62, 11, 0.08);
}

.btn_form,
button.btn_form,
a.btn_form {
  display: inline-block;
  min-width: 180px;
  background: var(--accent);
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background 0.25s, transform 0.15s, box-shadow 0.25s;
  box-shadow: 0 4px 20px rgba(164, 62, 11, 0.25);
  text-decoration: none !important;
}

.btn_form:hover,
button.btn_form:hover,
a.btn_form:hover {
  background: var(--accent-dark);
  color: #fff !important;
  text-decoration: none !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(164, 62, 11, 0.4);
}

.btn_form:active,
button.btn_form:active,
a.btn_form:active {
  transform: translateY(0);
}

/* Footer unter der Card */
.login-footer {
  margin-top: 26px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.login-footer a { color: var(--text-muted); transition: color 0.2s; }
.login-footer a:hover { color: var(--accent); }

/* Mobile: keine Box, Inhalt direkt auf Hintergrund */
@media (max-width: 768px) {
  .login-wrapper {
    justify-content: flex-start;
    padding: 28px 18px 22px;
  }
  .login-card {
    max-width: 100%;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }
  .login-logo {
    margin-bottom: 24px;
  }
  .login-logo img {
    max-width: 200px;
  }
}

/* ============================================================
   PORTAL / APP (bleibt unverändert)
   ============================================================ */

.clock {
  padding-top: 5px;
  font-size: 25px;
  width: 100%;
  text-align: center;
}

.col-sidebar .clock-field {
  min-height: 52px;
  align-items: center;
  margin-top: 2px;
  margin-bottom: 8px;
}

.col-sidebar hr {
  margin: 6px 0 12px;
  opacity: 1;
}

/* Portal layout */
.row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.col-sidebar {
  flex: 0 0 104px !important;
  max-width: 104px !important;
  min-height: 100vh;
  padding: 0 10px 14px !important;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: flex-basis 0.22s ease, max-width 0.22s ease, padding 0.22s ease;
}

.col-sidebar:hover {
  flex: 0 0 260px !important;
  max-width: 260px !important;
  padding: 0 14px 14px !important;
}

.col-content {
  flex: 1 1 auto !important;
  max-width: calc(100% - 104px) !important;
  padding: 0 !important;
  height: 100vh;
  transition: max-width 0.22s ease, padding 0.22s ease;
}

.col-sidebar:hover + .col-content {
  max-width: calc(100% - 260px) !important;
  padding: 0 !important;
}

.col-content iframe {
  border-radius: 0;
  border: none;
  background: transparent;
  height: 100%;
}

.portal-container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

#screen_frame {
  overflow: auto;
}

/* Bootstrap-Container-Override für Portal */
.container {
  max-width: 1600px !important;
  min-height: 80vh;
  background-color: transparent !important;
}

/* Bootstrap setzt body background auf weiss – überschreiben */
body, html {
  background-color: var(--bg-dark) !important;
}
/*------
# Mobile Menu
----*/
.topnav {
  overflow: visible;
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 14px;
}

.topnav #myLinks {
  display: none;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 8px;
}

.topnav a {
	color: var(--text-light);
	padding: 10px 0px;
	text-decoration: none;
	height: auto;
	display: block;
}

.topnav > a:first-child {
  color: var(--text-light);
  padding: 6px 0;
  margin-right: 46px;
}

.topnav > a:first-child h5 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.topnav #myLinks a .sidebar {
  margin-bottom: 8px;
  color: var(--text-light) !important;
  justify-content: flex-start;
  padding: 12px 14px;
}

.topnav #myLinks a .sidebar::before {
  margin-right: 10px;
}

.topnav #myLinks a:last-child .sidebar {
  margin-bottom: 0;
}

.topnav a.icon {
  display: block;
  position: absolute;
  right: 12px;
  top: 10px;
  width: 36px;
  height: 36px;
  padding: 0;
}

.topnav a.icon img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  padding: 6px;
}
/*------
# CSS start.php
----*/
.modul_head{
	float: left;
	width: 100%;
	margin-bottom: 5px;
}
.modul_head div{
	float: left;
}
.title_modul{
	font-size: 24px;
}
.sidebar{
  float: left;
  line-height: 1.2;
  color: transparent;
	width: 100%;
  height: auto;
  min-height: 52px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background 0.22s, border-color 0.22s, transform 0.12s, box-shadow 0.22s;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
}

.col-sidebar .sidebar::before {
  content: "";
  width: 18px;
  height: 18px;
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.92);
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  mask-size: contain;
  -webkit-mask-size: contain;
}

.col-sidebar:not(:hover) .sidebar {
  justify-content: center;
  text-align: center;
  padding-left: 0;
  padding-right: 0;
  color: transparent !important;
  font-size: 0;
}

.col-sidebar:not(:hover) .sidebar.active {
  color: transparent !important;
}

.col-sidebar:not(:hover) .sidebar::before {
  display: block;
  width: 100%;
  text-align: center;
  margin-right: 0;
  font-size: 1.1rem;
}

.col-sidebar:hover .sidebar {
  color: var(--text-light);
  justify-content: flex-start;
  padding: 12px 14px;
}

.col-sidebar:hover .sidebar::before {
  margin-right: 10px;
}

#start.sidebar::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3l9 8h-3v10h-5v-6h-2v6H6V11H3z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3l9 8h-3v10h-5v-6h-2v6H6V11H3z'/%3E%3C/svg%3E");
}

#rapporter.sidebar::before,
#rapporter_m.sidebar::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h7v7H4zm9 0h7v7h-7zM4 13h7v7H4zm9 3h7v4h-7z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h7v7H4zm9 0h7v7h-7zM4 13h7v7H4zm9 3h7v4h-7z'/%3E%3C/svg%3E");
}

#supporter.sidebar::before,
#supporter_m.sidebar::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 4a4 4 0 100 8 4 4 0 000-8zm-7 14a7 7 0 0114 0v2H5z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 4a4 4 0 100 8 4 4 0 000-8zm-7 14a7 7 0 0114 0v2H5z'/%3E%3C/svg%3E");
}

#task.sidebar::before,
#task_m.sidebar::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M5 4h14v16H5zM9 11l2 2 4-4 1 1-5 5-3-3z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M5 4h14v16H5zM9 11l2 2 4-4 1 1-5 5-3-3z'/%3E%3C/svg%3E");
}

#webeditor.sidebar::before,
#webeditor_m.sidebar::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 16l9-9 4 4-9 9H4zm12-10l2-2 2 2-2 2z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 16l9-9 4 4-9 9H4zm12-10l2-2 2 2-2 2z'/%3E%3C/svg%3E");
}

#audiomonitor.sidebar::before,
#audiomonitor_m.sidebar::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 16h3v-4H3zm5 3h3V9H8zm5 2h3V7h-3zm5-6h3v-2h-3z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 16h3v-4H3zm5 3h3V9H8zm5 2h3V7h-3zm5-6h3v-2h-3z'/%3E%3C/svg%3E");
}

#mail.sidebar::before,
#mail_m.sidebar::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 6h18v12H3zm9 6L4.5 7h15z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 6h18v12H3zm9 6L4.5 7h15z'/%3E%3C/svg%3E");
}

#sms.sidebar::before,
#sms_m.sidebar::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 5h16v11H8l-4 4z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 5h16v11H8l-4 4z'/%3E%3C/svg%3E");
}

.col-sidebar a[href="logout.php"] .sidebar::before,
.topnav a[href="logout.php"] .sidebar::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10 4h10v16H10v-5h2v3h6V6h-6v3h-2zm-1 3l1 1-2 2h8v2H8l2 2-1 1-4-4z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10 4h10v16H10v-5h2v3h6V6h-6v3h-2zm-1 3l1 1-2 2h8v2H8l2 2-1 1-4-4z'/%3E%3C/svg%3E");
}

.col-sidebar > span {
  display: none;
}

.col-sidebar:hover > span {
  display: block;
}
.sidebar:hover{
  background: rgba(164, 62, 11, 0.2);
  border-color: rgba(164, 62, 11, 0.45);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}
.active{
  background: linear-gradient(135deg, rgba(164, 62, 11, 0.9), rgba(138, 52, 10, 0.92));
  border-color: rgba(164, 62, 11, 1);
  color: #fff;
  box-shadow: 0 10px 24px rgba(164, 62, 11, 0.28);
}
.topnav{
	display: none;
}
/*------
# Tablet
----*/
@media (max-width:1024px)  {
  .container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
	.col-sidebar {
		display: none;
	}
	.col-content {
		flex: 0 0 100% !important;
		max-width: 100% !important;
    height: auto;
    padding: 0 !important;
	}
  .col-content iframe {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    min-height: 56px;
    padding: 8px 0;
    border-left: none;
    border-right: none;
    background: rgba(10, 10, 10, 0.96);
  }

  .topnav #myLinks,
  .topnav #myLinks a,
  .topnav #myLinks a:active,
  .topnav #myLinks a:focus,
  .topnav #myLinks a:hover {
    background-color: transparent !important;
  }

  .topnav #myLinks a .sidebar,
  .topnav #myLinks a .sidebar:active,
  .topnav #myLinks a .sidebar:focus,
  .topnav #myLinks a .sidebar:hover {
    background-clip: padding-box;
  }

  .topnav #myLinks a .sidebar.active {
    background: linear-gradient(135deg, rgba(164, 62, 11, 0.9), rgba(138, 52, 10, 0.92));
    border-color: rgba(164, 62, 11, 1);
    color: #fff !important;
  }

  .topnav a,
  .topnav a:focus,
  .topnav a:active {
    -webkit-tap-highlight-color: transparent;
    outline: none;
  }
  .topnav > a:first-child {
    padding-left: 12px;
  }
  .topnav a.icon {
    right: 10px;
  }
  .topnav #myLinks {
    margin-top: 8px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 8px 10px;
  }
  .topnav #myLinks a {
    padding: 8px 0;
  }
	.topnav{
		display: block;
	}
}