@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

/************/
/* Generell */
/************/
body {
	font-family: 'Roboto', sans-serif;
	font-size: 1em;
	color: #fff;
/*
	background: #C9CCD3;
	background-image: linear-gradient(-180deg, rgba(255,255,255,0.50) 0%, rgba(0,0,0,0.50) 100%);
	background-blend-mode: lighten;
	background-repeat: no-repeat;
	background-size: cover;
*/

/*
	background-color: #ffffff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2000 1500'%3E%3Cdefs%3E%3Crect stroke='%23ffffff' stroke-width='.5' width='1' height='1' id='s'/%3E%3Cpattern id='a' width='3' height='3' patternUnits='userSpaceOnUse' patternTransform='scale(50) translate(-980 -735)'%3E%3Cuse fill='%23fcfcfc' href='%23s' y='2'/%3E%3Cuse fill='%23fcfcfc' href='%23s' x='1' y='2'/%3E%3Cuse fill='%23fafafa' href='%23s' x='2' y='2'/%3E%3Cuse fill='%23fafafa' href='%23s'/%3E%3Cuse fill='%23f7f7f7' href='%23s' x='2'/%3E%3Cuse fill='%23f7f7f7' href='%23s' x='1' y='1'/%3E%3C/pattern%3E%3Cpattern id='b' width='7' height='11' patternUnits='userSpaceOnUse' patternTransform='scale(50) translate(-980 -735)'%3E%3Cg fill='%23f5f5f5'%3E%3Cuse href='%23s'/%3E%3Cuse href='%23s' y='5' /%3E%3Cuse href='%23s' x='1' y='10'/%3E%3Cuse href='%23s' x='2' y='1'/%3E%3Cuse href='%23s' x='2' y='4'/%3E%3Cuse href='%23s' x='3' y='8'/%3E%3Cuse href='%23s' x='4' y='3'/%3E%3Cuse href='%23s' x='4' y='7'/%3E%3Cuse href='%23s' x='5' y='2'/%3E%3Cuse href='%23s' x='5' y='6'/%3E%3Cuse href='%23s' x='6' y='9'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='h' width='5' height='13' patternUnits='userSpaceOnUse' patternTransform='scale(50) translate(-980 -735)'%3E%3Cg fill='%23f5f5f5'%3E%3Cuse href='%23s' y='5'/%3E%3Cuse href='%23s' y='8'/%3E%3Cuse href='%23s' x='1' y='1'/%3E%3Cuse href='%23s' x='1' y='9'/%3E%3Cuse href='%23s' x='1' y='12'/%3E%3Cuse href='%23s' x='2'/%3E%3Cuse href='%23s' x='2' y='4'/%3E%3Cuse href='%23s' x='3' y='2'/%3E%3Cuse href='%23s' x='3' y='6'/%3E%3Cuse href='%23s' x='3' y='11'/%3E%3Cuse href='%23s' x='4' y='3'/%3E%3Cuse href='%23s' x='4' y='7'/%3E%3Cuse href='%23s' x='4' y='10'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='c' width='17' height='13' patternUnits='userSpaceOnUse' patternTransform='scale(50) translate(-980 -735)'%3E%3Cg fill='%23f2f2f2'%3E%3Cuse href='%23s' y='11'/%3E%3Cuse href='%23s' x='2' y='9'/%3E%3Cuse href='%23s' x='5' y='12'/%3E%3Cuse href='%23s' x='9' y='4'/%3E%3Cuse href='%23s' x='12' y='1'/%3E%3Cuse href='%23s' x='16' y='6'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='d' width='19' height='17' patternUnits='userSpaceOnUse' patternTransform='scale(50) translate(-980 -735)'%3E%3Cg fill='%23ffffff'%3E%3Cuse href='%23s' y='9'/%3E%3Cuse href='%23s' x='16' y='5'/%3E%3Cuse href='%23s' x='14' y='2'/%3E%3Cuse href='%23s' x='11' y='11'/%3E%3Cuse href='%23s' x='6' y='14'/%3E%3C/g%3E%3Cg fill='%23efefef'%3E%3Cuse href='%23s' x='3' y='13'/%3E%3Cuse href='%23s' x='9' y='7'/%3E%3Cuse href='%23s' x='13' y='10'/%3E%3Cuse href='%23s' x='15' y='4'/%3E%3Cuse href='%23s' x='18' y='1'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='e' width='47' height='53' patternUnits='userSpaceOnUse' patternTransform='scale(50) translate(-980 -735)'%3E%3Cg fill='%23F60'%3E%3Cuse href='%23s' x='2' y='5'/%3E%3Cuse href='%23s' x='16' y='38'/%3E%3Cuse href='%23s' x='46' y='42'/%3E%3Cuse href='%23s' x='29' y='20'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='f' width='59' height='71' patternUnits='userSpaceOnUse' patternTransform='scale(50) translate(-980 -735)'%3E%3Cg fill='%23F60'%3E%3Cuse href='%23s' x='33' y='13'/%3E%3Cuse href='%23s' x='27' y='54'/%3E%3Cuse href='%23s' x='55' y='55'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='g' width='139' height='97' patternUnits='userSpaceOnUse' patternTransform='scale(50) translate(-980 -735)'%3E%3Cg fill='%23F60'%3E%3Cuse href='%23s' x='11' y='8'/%3E%3Cuse href='%23s' x='51' y='13'/%3E%3Cuse href='%23s' x='17' y='73'/%3E%3Cuse href='%23s' x='99' y='57'/%3E%3C/g%3E%3C/pattern%3E%3C/defs%3E%3Crect fill='url(%23a)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23b)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23h)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23c)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23d)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23e)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23f)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23g)' width='100%25' height='100%25'/%3E%3C/svg%3E");
	background-attachment: fixed;
	background-size: cover;
	height: 95vh; */
	background: radial-gradient(ellipse at bottom, #5091DD 0%, #030617 100%);
}

h1 {
	font-size: 3em;
	font-weight: 700;
}

.footer, .back {
	left: 0;
	bottom: 0;
	width: 100%;
	text-align: center;
	display: grid; 
	grid-template-columns: 100%;
	justify-items: center;
	position: relative;
}

.footer_wrapper, .back_wrapper {
	
	padding-top: 20px;
	position: absolute;
}
.btn_logout, .btn_2nd_user, .btn_back {
	display: block;
    width: 200px;
    height: 25px;
    background: #B71319;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    color: white;
    font-weight: 700;
    line-height: 25px;
	text-transform: uppercase; 
}

.footer_btn, .back_btn {
	padding-bottom: 6px;
}

.footer_btn a, .back_btn a {
	text-decoration: none;
}

/* SEITE: Login */

.login_wrapper {
	display: grid; 
	grid-template-columns: 100%;
	justify-items: center;
}


.login_heading {
	text-align: center;
}

.login_main {
	color: #fff; 
	padding:40px;
	background:#B71319;
	width:80%;
	box-shadow:rgba(0,0,0,.1) 5px 5px 5px;
	height:75%;
}

.login_form {
	display: grid;
	grid-template-columns: 100%;
	justify-items: stretch;
}

.login_par {
	padding-bottom: 20px;
	width: 100%;
	text-align: center;
}

.login_par input {
	width: 100%;
	line-height: 2em;
	font-size: 2em;
}

.login_par_btn {
	padding-top: 20px;
}

.login_par_btn input {
	width: 100%;
	line-height: 2em;
	font-size: 2em;
	height: 70px;
}

/* SEITE: MAIN_VIEW */

.main_wrapper {
	display: grid; 
	grid-template-columns: 100%;
	justify-items: center;
	padding-top: 10px;
}

.main_heading {
	text-align: center;
}

.main_heading h1 {
	margin-bottom: 2px;
}

.heading {
        text-align: center;
        position: relative;
}

.main_area {
	display: grid;
	grid-template-columns: repeat(auto-fill, 16em);
	grid-gap: 3.5em;
}

.main_btn {
	display: block;
    width: 100%;
    height: 50px;
    background: #B71319;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    color: white;
    font-weight: 700;
    line-height: 50px;
	text-transform: uppercase; 
	padding-right: 10px;
	font-size: 1.8em;
}

.main_link a {
	text-decoration: none;
}

.main_link {
	width: 50%;
	padding-bottom: 20px;
}

.main_logged_user {
	font-size: 1.5em;
	text-align: center;
	padding-bottom: 20px;
}

.btn-square {
	position: relative;
	display: inline-block;
	padding: 20%;
	background-color: #03396c;
	background-image: linear-gradient(#03396c, #005b96);
	max-height: 210px;

	/* text styles */
	text-decoration: none;
	color: #fff;
	font-size: 1em;
	
	border-radius: 3px;
	box-shadow: 0px 1px 4px -2px #333;
	text-shadow: 0px -1px #333;
}

.btn-square:after{
	content: '' ;
	position: absolute;
	top: 2px ;
	left: 2px ;
	width: calc(100% - 4px) ;
	height: 50% ;
	background: linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0.2));
}

.btn-square:hover{
	background: linear-gradient(#005b96, #6497b1);
}

.btn-svg img{
        width: 5em;
        filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%);
}

.btn-svg i {
        font-size: 5em;
        color: #fff;
}

.btn-text {
	display: grid;
	text-align: center;
	font-size: 1.5em;
}

.btn-vehicle_select {
	position: relative;
	display: inline-block;
	padding: 5%;
	background-color: #03396c;
	background-image: linear-gradient(#03396c, #005b96);

	/* text styles */
	text-decoration: none;
	color: #fff;
	font-size: 5em;
	text-transform: uppercase;
	
	border-radius: 3px;
	box-shadow: 0px 1px 4px -2px #333;
	text-shadow: 0px -1px #333;

	
}

/* SEITE: Admin */


.admin_area {
	display: grid;
	/* grid-template-columns: repeat(2, 1fr); */
	grid-template-columns: repeat(1, 1fr);
	grid-gap: 10px;
	/* width: 90vw; */ 
	justify-items: center;
}

.admin_btn {
	display: block;
    width: 100%;
    height: 50px;
    background: #B71319;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    color: white;
    font-weight: 700;
    line-height: 50px;
	text-transform: uppercase; 
	padding-right: 10px;
	font-size: 1.8em;
}

.admin_area a {
        text-decoration: none;
}

/* grid for admin main menu */
.admin_menu_area {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-gap: 3.5em;
        justify-items: center;
}

/* SEITE: Benutzerverwaltung */

.user_form {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-gap: 20px;
	justify-items: center;
	font-size: 1.5em;
}

.user_par {
	padding-bottom: 20px;
	width: 100%;
	text-align: center;
}

.user_par img {
	width: 80px;
	height: 80px;
}

.user_par fieldset {
	border: none;
}

.user_par input, .driverlog_area input {
	width: 100%;
	line-height: 2em;
	font-size: 2em;
}

.user_par [type=radio] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;

}

.user_par [type=radio] + img {
  cursor: pointer;
}

.user_par [type=radio]:checked + img {
  cursor: pointer;
  outline: 2px solid #f00;
  border: 2px solid;
}

.user_par_btn {
	padding-bottom: 20px;
	padding-top: 20px;

}

.user_par_btn input {
	width: 100%;
	line-height: 2em;
	font-size: 2em;
	height: 70px;
	color: #ffffff;
	background: #B71319;
	border: none; 
	font-weight: 700;
    line-height: 50px;
	text-transform: uppercase; 
	border-radius: 5px;
}

.user_form_rights, .user_form_rights input {
	font-size: 1.5em;
}

.user_form_rights label {
	font-size: 1.2em;
}

.user_rights_container {
	display: grid;
    grid-template-columns: repeat(8, 1fr);
    padding-bottom: 10px;
    justify-items: end;
    align-items: center;
}
/* SEITE: Tablet Einstellungen */

.tabletSettings_area {
	display: grid;
	grid-template-columns: repeat(2, 0.4fr);
	grid-gap: 10px;
	width: 90vw;
	justify-content: center;
}

.tabletSettings_heading {
	font-size: 2em;
}

.tabletSettings_Dropdown {
 width: 100%;
}

.tabletSettings_Dropdown select {

    position: relative;
    display: inline-block;
    margin-bottom: 15px;
    width: 100%;
	line-height: 2em;
	font-size: 2em;

}

.tabletSettings_Input Input {
	margin-left: 0px;
    width: 100%;
	font-size: 2em;
}

/* SEITE: Fahrtenbuch */

.driverlog_heading {
	text-align: center;
}



.driverlog_btn {
	display: block;
    width: 100%;
    height: 50px;
    background: #B71319;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    color: white;
    font-weight: 700;
    line-height: 50px;
	text-transform: uppercase; 
	padding-right: 10px;
	font-size: 1.8em;
}

.driverlog_area a {
	text-decoration: none;
}

.driverlog_area .dataTables_wrapper {
	background-color: #f0f0f0;
	color: #000;
}

.driverlog_area .dataTables_wrapper td, .driverlog_area .dataTables_wrapper th {
        color: #000;
}
.driverlog_list {
        box-sizing: border-box;
}

.table-responsive {
        overflow-x: auto;
        width: 100%;
}

.admin_area .table-responsive {
	padding-bottom: 20px;
}

.admin_area .sorting {
	color: #fff !important;
}
.admin_area .dataTables_wrapper {
        background-color: #ffffff;
        color: #000;
        padding: 1em;
        border-radius: 5px;
        box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.admin_area table.dataTable {
        width: 100%;
        border-collapse: collapse;
        font-size: 1em;
}

.admin_area table.dataTable thead {
        background-color: #03396c;
        color: #fff;
}

.admin_area table.dataTable th,
.admin_area table.dataTable td {
        padding: 0.75em 1em;
        border-bottom: 1px solid #ddd;
	color: #000;
}

.admin_area table.dataTable tbody tr:nth-child(even) {
        background-color: #f9f9f9;
}

.admin_area table.dataTable tbody tr:hover {
        background-color: #e3f2fd;
}

.kbw-signature { 
	height: 4.5em; 
	width: 100%;
}

#overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
}

#overlay-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 3em;
	background-color: red;
	text-align: center;
	color: #fff
}

.OverlayButton {
	font-size: 1em;
}

#TableQuery_filter input {
	font-size: 0.6em !important;
}

/* SEITE: ATS Nachweis */

.Vehicle_Select {
    width: 100%;
    font-size: 1.5em;
    padding-top: 0.75em;
    padding-bottom: 0.75em;
}

/* SEITE: Vehicle Select */

.selectvehicle_main {
	background-color: unset;
}

/* SEITE: Schadensmeldungen */

.damage_report_wrapper {
	background-color: #fff
}

.damage_report_wrapper td, .damage_report_wrapper th {
	color: #000;
}

/* SEITE: Funkgeräte Verwaltung */

table.dataTable tr.overdue td {
	color: #ff0000 !important;
}

/*****************/
/* Mobile Geräte */
/*****************/

@media only screen and (max-width:900px) {
	
	label {
		font-size: 2em;
	}
	
	h1 {
		font-size: 3em;
	}
}

.dmgreport_area {
	display: grid;
    justify-items: center;
    justify-content: space-evenly;
	width: 100%;
}

.SB {
	
	font-size: 3em; 
}

.damage_report_wrapper {
	width:100%;
	font-size: 1.4em;
}

.damage_report_description{
	width: 50%;
	max-width: 50%;
	
	text-align: left;
  border-spacing: 0px;
            table-layout: fixed;
            margin-left: auto;
            margin-right: auto;
}

.damage_report_notifier {
	width: 15%;
	max-width: 15%;

	text-align: left;

}

.damage_report_timestamp {
	width: 25%;
	max-width:25%;

	text-align: left;

}

.damage_report_table_wrapper {
  margin: 0 auto;
  padding: 40px;
  max-width: 100vw;
}

.damage_report_table_table {
  margin: 0 0 40px 0;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  display: table;
}
@media screen and (max-width: 580px) {
  .damage_report_table_table {
    display: block;
  }
}

.damage_report_table_row {
  display: table-row;
  background: #f6f6f6;
  color: #000;
}
.damage_report_table_row:nth-of-type(odd) {
  background: #e9e9e9;
}
.damage_report_table_row.header {
  font-weight: 900;
  color: #ffffff;
  background: #ea6153;
}
.damage_report_table_row.green {
  background: #27ae60;
}
.damage_report_table_row.blue {
  background: #2980b9;
}
@media screen and (max-width: 580px) {
  .damage_report_table_row {
    padding: 14px 0 7px;
    display: block;
  }
  .damage_report_table_row.header {
    padding: 0;
    height: 6px;
  }
  .damage_report_table_row.header .cell {
    display: none;
  }
  .damage_report_table_row .cell {
    margin-bottom: 10px;
  }
  .damage_report_table_row .cell:before {
    margin-bottom: 3px;
    content: attr(data-title);
    min-width: 98px;
    font-size: 10px;
    line-height: 10px;
    font-weight: bold;
    text-transform: uppercase;
    color: #969696;
    display: block;
  }
}

.cell {
  padding: 6px 12px;
  display: table-cell;
}
@media screen and (max-width: 580px) {
  .cell {
    padding: 2px 16px;
    display: block;
  }
}

input[type="file"] {
    display: none;
}

.custom-file-upload{
	display:inline-block;
	width: 100%;
	line-height: 2em;
	font-size: 2em;
	height: 70px;
	color: #ffffff;
	background: #B71319;
	border: none; 
	font-weight: 700;
    line-height: 50px;
	text-transform: uppercase; 
	border-radius: 5px;
    cursor: pointer;
	text-align: center;
}

/**********************/
/*** Fireprotection ***/
/**********************/

.FireProtectionWrapper {

	width: 100%;
	display: grid;
	padding-top: 20px;
}
.DivMainMenu {
	width: 15%;
}

.DivMainContent {
	width: 85%
}

.Brandschutzplan_Tabelle {
	width: 100% !important;
}

#TableQuery {
	width: 100% !important; 
}

.elfinder .elfinder-cwd table tbody.elfinder-cwd-fixheader, .elfinder-cwd-fixheader .elfinder-cwd {
	color: #000;
}

/***********************/
/********* Map *********/
/***********************/

.Einsatzkarte {
        height: 80%;
}

/* Alarm dialog */
#alarmDialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#alarmDialog .dialog_content {
    background-color: #03396c;
    background-image: linear-gradient(#03396c, #005b96);
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    color: #fff;
    max-width: 90%;
}

#alarmDialog .dialog_content p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

/* Editing mode for module order */
.edit-toggle {
    position: absolute;
    right: 0.5em;
    top: 0.5em;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4em;
}

.edit-toggle:focus {
    outline: none;
}

@keyframes wobble {
    0%,100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

.editing .btn-svg {
    animation: wobble 0.4s ease-in-out infinite;
}

.editing .btn-text {
    cursor: move;
}

/* Make sortable work with flex layout during editing */
#module_list.editing {
    display: flex;
    flex-wrap: wrap;
    gap: 3.5em;
}

#module_list.editing > div {
    width: 16em;
}

/* Overlay for enlarged damage images */
#imgOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

#imgOverlay img {
    max-width: 90%;
    max-height: 90%;
    cursor: zoom-in;
}

#imgOverlay.full img {
    max-width: none;
    max-height: none;
    cursor: zoom-out;
}

/* Dangerous Goods Module */
.dangerousgoods_wrapper { height: calc(100vh - 140px); }
.dangerousgoods_frame { width: 100%; height: 100%; border: none; }

/* ===== Rechte-Matrix ===== */
.rights-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  margin-top: 18px;
}

.rights-head {
  display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap;
  margin-bottom:12px;
}
.rights-head h3 { margin:0; font-weight:700; letter-spacing:.5px }

.preset-group { display:flex; gap:8px; flex-wrap:wrap }
.preset-btn {
  border:1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color:#fff; padding:8px 12px; border-radius:10px; cursor:pointer; font-weight:600;
}
.preset-btn:hover { background: rgba(255,255,255,.16) }

/* Matrix Tabelle */
.rights-table {
  width:100%; border-collapse:separate; border-spacing:0 8px;
}
.rights-table thead th {
  font-size: .95em; font-weight:700; text-align:center;
  position: sticky; top:0; background: radial-gradient(ellipse at top, rgba(3,6,23,.9), rgba(3,6,23,.75));
  padding:10px 8px; z-index:5;
}
.rights-table tbody td, .rights-table tbody th {
  padding:10px 8px; vertical-align:middle;
}
.rights-row {
  background: rgba(255,255,255,.04);
  border-radius:12px;
  overflow:hidden;
}
.rights-row:hover { background: rgba(255,255,255,.08); }
.rights-table tbody tr td:first-child,
.rights-table tbody tr th:first-child { border-top-left-radius:12px; border-bottom-left-radius:12px; }
.rights-table tbody tr td:last-child { border-top-right-radius:12px; border-bottom-right-radius:12px; }

/* Toggle / Checkbox Style */
.toggle {
  --w: 54px; --h: 30px;
  position: relative; width: var(--w); height: var(--h);
}
.toggle input {
  position:absolute; inset:0; opacity:0; cursor:pointer;
}
.toggle .track {
  position:absolute; inset:0;
  background: rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  transition: background .18s ease, border-color .18s ease;
}
.toggle .thumb {
  position:absolute; top:3px; left:3px; width:24px; height:24px; border-radius:50%;
  background:#fff; box-shadow: 0 4px 12px rgba(0,0,0,.35);
  transition: transform .22s cubic-bezier(.2,.8,.2,1);
}
.toggle input:checked ~ .track {
  background: linear-gradient(135deg, #1bb954, #38d07b);
  border-color: rgba(56,208,123,.7);
}
.toggle input:checked ~ .thumb {
  transform: translateX(24px);
}
.toggle .label {
  position:absolute; left:calc(100% + 10px); top:50%; transform:translateY(-50%);
  font-size:.9em; opacity:.9; white-space:nowrap;
}

/* Master-Checkbox (Zeile/Spalte) */
.master {
  --w: 22px; --h: 22px;
  display:inline-grid; place-items:center; width:var(--w); height:var(--h);
  border-radius:6px; border:1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.1);
  cursor:pointer; user-select:none; font-size:.9em;
}
.master input { display:none; }
.master.active { background: #38d07b; border-color:#38d07b; }
.master span { line-height:1; }

/* Kleiner Modulname links */
.mod-name { font-weight:600; letter-spacing:.3px; }

/* Sticky Save Bar */
.sticky-save {
  position: sticky; bottom: -1px; left:0; right:0; padding:10px 0; margin-top:14px;
  background: linear-gradient(180deg, rgba(3,6,23,0) 0%, rgba(3,6,23,.7) 22%, rgba(3,6,23,.95) 100%);
  display:flex; justify-content:center;
}
.sticky-save input[type=submit] {
  min-width: 260px; height:58px; font-size:1.2em; border-radius:14px;
  border:none; background:linear-gradient(135deg,#B71319,#e63a40); color:#fff; font-weight:800; text-transform:uppercase;
  box-shadow: 0 10px 30px rgba(183,19,25,.35);
}
.sticky-save input[type=submit]:hover { filter:brightness(1.08); }
