/* Source Code Pro Font Family */
@font-face {
    font-family: 'Source Code Pro';
    src: url('./FONTS/SourceCodePro/SourceCodePro-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Source Code Pro';
    src: url('./FONTS/SourceCodePro/SourceCodePro-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Source Code Pro';
    src: url('./FONTS/SourceCodePro/SourceCodePro-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #0007ff;
    --secondary-color: #e1ff00;
    --tertiary-color: #e3e3e3;
    --fourth-color: #0007ff;
    --default-font-family: "Helvetica", "Albert Sans";
	--default-serif-font-family: "Source Code Pro", "Courier New", "Courier", "monospace";
	--main-cursor: auto;
	--pointer-cursor: pointer;
}

/* remove text selection background highlight */
::selection {
  background: transparent;
}
::-moz-selection { /* Firefox */
  background: transparent;
}

/* if you also want to suppress focus outlines (be careful re: accessibility) */
:focus {
  outline: none;
}

/* global removal of the blue tap highlight */
*,
*::before,
*::after {
  -webkit-tap-highlight-color: transparent !important;
}

/* Disable text selection globally */
* {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Enable text selection on specific elements */
input, textarea, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Enable text selection for resources content */
[data-page="ressourcen"] .ressources-post,
[data-page="ressourcen"] .ressources-post * {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
  cursor: text;
}

/* Enable text selection for legal pages */
#privacy, #impressum, #widerruf,
#privacy *, #impressum *, #widerruf * {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
  cursor: text;
}

/* Style for text selection */
::selection {
  background: var(--primary-color, #0007ff);
  color: white;
  text-shadow: none;
}

/* disable on typical interactive elements too (extra insurance) */
a, button, input, label, [role="button"] {
  -webkit-tap-highlight-color: transparent !important;
  outline: none; /* if you care about accessibility, consider keeping a visible focus style for keyboard users instead of removing entirely */
}

/* image/svg specific: disable drag & callout */
img,
svg {
  -webkit-user-drag: none;           /* prevents dragging the element */
  -webkit-touch-callout: none;       /* disables the long-press save/share menu */
  user-drag: none;
  touch-action: manipulation;        /* helps with accidental gesture interpretation */
}

/* Rental controls and manual warning styling */
/* .rental-controls, .manual-warning { */
    /* opacity: 0; */
    /* display: flex; */
    /* transition: opacity 0.25s ease; */
    /* max-height: 70px; */
    /* flex-direction: row; */
    /* align-items: center; */
    /* flex-wrap: nowrap; */
/* } */



html {
    background-color: var(--tertiary-color);
    font-family: var(--default-font-family); /* Apply the default font family */
    overflow-x: hidden;
    max-width: 100vw;
    touch-action: pan-y;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
	 scroll-behavior: smooth;
	 cursor: var(--main-cursor);
}

body {
    margin: 0;
    padding: 0px;
    /* height: 100%; */
    overflow: hidden;
    position: relative;
    font-family: var(--default-font-family);
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90vh;
    background-color: #e5e5e5;
    z-index: -1;
}


body.blurred {
    overflow: hidden;
    position: relative;
}

body.blurred::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95); /* Semi-transparent background */
    backdrop-filter: blur(5px); /* Apply blur effect */
    z-index: 9998; /* Ensure it is below the loader but above other content */
}

ul {
    list-style: none;
}


/* ===== BASE NAV (desktop defaults) ===== */
nav#main-navigation {
    /* border-bottom: 2px solid black; */
    margin-bottom: 10px;
}

/* Only target the TOP-LEVEL list so dropdown <ul> aren’t forced to flex */
nav#main-navigation > ul.nav-links {
    list-style: none;
    gap: 20px;
    display: flex;
    padding: 20px;
    flex-direction: row;
    justify-content: center;
    margin: 0;
}

.nav-links li {
    padding: 7px;
    /* background-color: #ffffff; */
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: bold;
    color: #000;
    font-size: 12px;
    position: relative;
    /* box-shadow: 0px 3px 0px 1px; */
    border: 2px solid black;
    min-width: 120px;
    text-align: center;
    cursor: var(--pointer-cursor);
}

.nav-links li a {
  color: #000;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  display: block;
  width: 100%;
  height: 100%;
}

/* Only disable pointer events on top-level dropdown parent links */
.has-dropdown > .dropdown-parent {
  pointer-events: none;
}

.nav-links li:hover {
    background-color: #eeeeee;
    /* transform: scale(1.03); */
    /* box-shadow: 0 1px 0px 0px #ccc; */
}

/* Default: hide all dropdown menus everywhere (overridden per breakpoint) */
ul.nav-dropdown { display: none; }

/* Show dropdown when parent has show-dropdown class or on hover */
ul.nav-dropdown.show-dropdown { display: block !important; }

/* ===== DESKTOP DROPDOWNS (hover) ===== */
@media (min-width: 1400px) {  
  .has-dropdown {
    position: relative;
    display: inline-block;
  }

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 33%;
    transform: translateX(-50%);
    padding-top: 5px;
    text-align: center;
    display: none;
    z-index: 1000;
    display: block;
    gap: 0;
}

  .nav-dropdown li {
    background-color: #cccccc;
    border-radius: 0;
    text-transform: none;
    font-weight: normal;
  }

  .has-dropdown:hover .nav-dropdown {
    display: block; /* show dropdown on hover */
  }


  /* nav must be visible on desktop */
  #main-navigation{
    display: block;
    position: static;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
  }

  .menu-btn{ display: none; }
} 



/* ===== MOBILE & TABLET (<=1400px): sheet + FLAT MENU (no dropdowns) ===== */
@media (max-width:1400px){




  /* hamburger visible only on mobile/tablet */
  /* .menu-btn{ display: inline-flex; } */

  /* top sheet container (closed by default, no JS flash) */
  #main-navigation.wp-mobile-sheet{
    position: fixed;
	left: 0; right: 0; top: 0;
    background: #ccc;
	border-bottom: 2px solid #000;
    box-shadow: 0 12px 24px rgba(0,0,0,.18);
    max-height: 80vh; overflow: auto; -webkit-overflow-scrolling: touch;
    transform: translateY(-100%);
	opacity: 0;
	pointer-events: none;
    transition: transform .18s ease, opacity .18s ease;
    z-index: 10000;
	padding: 16px 20px;
  }
  html.menu-open #main-navigation.wp-mobile-sheet{
    transform: translateY(0); opacity: 1; pointer-events: auto;
  }
  html.menu-open, html.menu-open body{ overflow: hidden; }

  /* vertical list inside the sheet */
  nav#main-navigation > ul.nav-links{
    display: flex; flex-direction: column; gap: 12px; padding: 8px 0; margin: 0;
  }

  /* FLATTEN: hide parent label, show submenu items inline */
  .has-dropdown{ position: static; 
}
  .has-dropdown > .dropdown-parent{ 
    padding-bottom:20px;
   }
  .has-dropdown > ul.nav-dropdown{
    display: contents !important;       /* merge children into main list */
    position: static !important;
    transform: none !important;
    padding: 0 !important;
    margin: 0 !important;
      background-color:#ccc;
  }



  .nav-links li {
    padding: 15px;
    /* background-color: #ffffff; */
    text-transform: uppercase;
    font-weight: bold;
    color: #000;
    font-size: 12px;
    position: relative;
    /* box-shadow: 0px 3px 0px 1px; */
    min-width: 120px;
    border-radius: 0px;
    text-align: center;
    cursor: var(--pointer-cursor);
    border:none;
}

  .nav-links li:hover{
    background-color:#ccc;
    outline: 2px solid #000;
    border-radius: 20px;
  }

li.has-dropdown {
    border-radius: 20px;
}


}

/* ===== BACKDROP (<=1000px only) ===== */
.menu-backdrop{
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  opacity: 0; pointer-events: none; transition: opacity .18s ease; z-index: 9999;
}
@media (max-width:1000px){
  html.menu-open .menu-backdrop{ opacity: 1; pointer-events: auto; }
}



/* QR Scan Button - Mobile/Tablet Only */
#qr-scan-btn {
    display: none; /* Hidden by default on desktop */
}

/* Show QR scan button on mobile and tablet devices */
@media (max-width: 1024px) {
    #qr-scan-btn {
        display: block;
    }
}

/* Additional mobile detection for touch devices */
@media (hover: none) and (pointer: coarse) {
    #qr-scan-btn {
        display: block;
    }
}

section li {
    list-style: circle;
}

h1 {
    font-size: 40px;
    font-family: verdana;
}


h2 {
    font-size: 30px;
    color: var(--secondary-color);
}

h3 {
    color: var(--primary-color);
}


h4 {
	color: var(--tertiary-color);
}

#logo h2 {
    font-size: 14px;
    color: var(--secondary-color);
	background-color: #000;
    width: fit-content;
    margin: 0 auto;
    padding: 10px;
    border-radius: 50px;
}

span.logo-wordmark {
	font-size: 30px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}


fieldset {
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    background: #ededed;
    display: flex;
    flex-direction: column;
    box-shadow: 0px 3px 0px 1px #000000;
    border: 2px solid #000;
  gap: 10px;
}

.task-item fieldset{
  background: #fff;
}

@media (max-width: 1000px) {
fieldset {
  padding: 5px;
  margin-bottom: 20px;
}
}

/* Tool details fieldset styling */
.tool-details fieldset.group {
    border: 2px solid black;
    box-shadow: 0px 3px 0 0;
}

/* Primary legends for Hauptmerkmale and Preisgestaltung */
.tool-details fieldset.group legend.primary-legend {
    background: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Secondary legends for other groups */
.tool-details fieldset.group legend.secondary-legend {
    background: #888888;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.z-form .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
}

@media (max-width: 1000px) {
.z-form .grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: .5rem;
}
}

label {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    font-size: .85rem;
}

label:has(> input[type="checkbox"]) {
  /* styles for labels that contain a checkbox */
  flex-direction: row;
  align-items: center;
  gap: .4rem;
  white-space: nowrap;
}


.field-label {
display:none;
color: #ccc;
}

.open .field-label {
    display: block;
}

input, textarea, select, button {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-size: 14px;
  font-family: var(--default-font-family);
  padding: 10px;
  border-radius: 15px;
  background: #fff;
  color: var(--primary-color);
  font-weight: bold;
  border: 1px solid #ccc;
}

input[type="text"] {
	min-width: 100px;
}




input[readonly] {
    background-color: #cfcfcf;
    color: #555;
    cursor: not-allowed;
}

textarea {
    min-width: 100px;
    width: 95%;
}

input:hover,
textarea:hover,
select:hover {
    background-color: #e7e7e7;
    box-shadow: 1px 0px 5px 0px;
}


input[type="search"] {
    padding: 10px;
    border-radius: 100px;
    background-color: #e3e3e3;
    width: 100%;
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 100;
    border: 2px solid black;
}

input[type="search"]:hover {
    background: linear-gradient(270deg, var(--primary-color), var(--tertiary-color), var(--primary-color));
    background-size: 600% 600%;
    animation: swirlGradient 5s ease infinite;
    color: var(--tertiary-color);
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 30px;
    height: 30px;
    background-color: white;
    position: relative;
    cursor: var(--pointer-cursor);
    border: 2px solid black;
}

/* background when checked */
input[type="checkbox"]:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

button {
    padding: 12px;
    cursor: var(--pointer-cursor);
    border: none;
    border-radius: 10px;
    background: #dadcdf;
    text-transform: uppercase;
    color: #000000;
    width: fit-content;
    font-weight: bold;
    opacity: 1;
    margin: 5px;
    /* max-height: 40px; */
    vertical-align: middle;
    box-shadow: -1px 3px 0px 0px #000;
    border: 2px solid black;
}


button:hover {
    background: black !important;
    color: #fff !important;
}

input.itemname-input {
    width: 230px;
    background: none;
    color: var(--primary-color);
    border: none;
}


.open input.itemname-input {
    /* width: 230px; */
    width: 100%;
    background: none;
    color: var(--primary-color);
    border: none;
    font-size: 24px;
}

input.parentcategory-input {
    width: 230px;
    background: none;
	color: #000;
	border: none;
}

.open input.parentcategory-input {
    width: 100%;
    background: none;
    color: #000;
    border: none;
    font-size: 24px;
}

#custom-template-fields-bottom {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;  /* optional spacing between items */
}

@media (max-width: 1000px){
#custom-template-fields-bottom {
    display: flex;
    flex-direction: column;
}
}

/* Custom template form styling */
#custom-template-form input[type="text"],
#custom-template-form select {
    width: 100%;
    padding: 8px;
    margin: 5px 0 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#custom-template-form label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    color: #333;
}

label.custom-checkbox-label {
    display: flex;
    align-items: center;
	gap: 5px;
}

div#custom-upload-image-details {
    margin-top: 20px;
	margin-bottom: 20px;
}

img#custom-template-preview {
    width: 200px;
    height: 200px;
    object-fit: contain;
	 display: none;
	 margin-top: 20px;
	 padding: 20px;
}



#custom-template-image {
display: none;	
}

img.bitmap-thumbnail {
    mix-blend-mode: multiply;
}


.theme-one {
    --primary-color: #0007ff;
    --secondary-color: #e1ff00;
    --tertiary-color: #e3e3e3;
    --fourth-color: #0007ff;
}

.theme-two {
    --primary-color: #0007ff;
    --secondary-color: #000000;
    --tertiary-color: #d5d5d5;
    --fourth-color: #0007ff;
}

.theme-three {
    --primary-color: #8a2be2; /* BlueViolet */
    --secondary-color: #dda0dd; /* Plum */
    --tertiary-color: #dfcbda;
    --fourth-color: #8a2be2;
}

.theme-four {
    --primary-color: #474747;
    --secondary-color: #ebff00;
    --tertiary-color: #abb5b3;
    --fourth-color: #474747;
}

.theme-five {
  --primary-color: #818181;
  --secondary-color: #2bb17c;
  --tertiary-color: #dddddd;
  --fourth-color: #d92424;
}


/* Previews */
.theme-one .theme-preview-primary,
.theme-two .theme-preview-primary,
.theme-three .theme-preview-primary,
.theme-four .theme-preview-primary,
.theme-five .theme-preview-primary {
    background-color: var(--primary-color);
}

.theme-one .theme-preview-secondary,
.theme-two .theme-preview-secondary,
.theme-three .theme-preview-secondary,
.theme-four .theme-preview-secondary,
.theme-five .theme-preview-secondary {
    background-color: var(--secondary-color);
}

.theme-one .theme-preview-tertiary,
.theme-two .theme-preview-tertiary,
.theme-three .theme-preview-tertiary,
.theme-four .theme-preview-tertiary,
.theme-five .theme-preview-tertiary {
    background-color: var(--tertiary-color);
}

.theme-one .theme-preview-fourth,
.theme-two .theme-preview-fourth,
.theme-three .theme-preview-fourth,
.theme-four .theme-preview-fourth,
.theme-five .theme-preview-fourth {
    background-color: var(--fourth-color);
}


.theme-buttons {
    display: flex;
    gap: 10px;
    background-color: #ccc;
    /* width: 50%; */
    border-radius: 10px;
    margin: 10px 0;
    padding: 10px;
    flex-wrap: wrap;
}

.theme-button {
    display: flex;
    padding: 5px;
    border: none;
    background: none !important; /* Ensure no background */
    cursor: var(--pointer-cursor);
}

.color-block {
    display: inline-block;
    width: 40px;
    height: 10px;
    margin-right: 0px;
    border-radius: 5px;
}



.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    width: 220px;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader::before {
    content: "";
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid var(--primary-color); /* Primary color */
    border-radius: 50%;
    width: 100%;
    height: 100%;
    animation: spin 0.8s linear infinite;
    position: absolute;
    box-sizing: border-box;
}


#loader-text.visible {
    opacity: 1;
}

#loader-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--tertiary-color);
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    z-index: 1;
    white-space: nowrap;
	opacity: 0;
    transition: opacity 0.4s;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Gradient Animation */
@keyframes swirlGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

#logo {
    position: relative;
    width: fit-content;
    text-align: center;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0 auto;
    /* padding: 20px; */
    z-index: 9999;
    font-family: var(--default-font-family);
    transition: color 0.3s ease;
    padding-left: 40px;
    padding-right: 40px;
    padding-top: 40px;
    margin-bottom: 20px;
    vertical-align: middle;
    font-family: Verdana;
    margin-top: 15px;
    left: 10px;
    top: 0px;
    position: absolute;
}

#sidebar-logo:hover, #logo:hover {
    cursor: var(--pointer-cursor);
    color: var(--tertiary-color); /* To contrast against dark gradient */
    background: linear-gradient(270deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 600% 600%;
    animation: swirlGradient 5s ease infinite;
    border-radius: 500px;
}

/* Hide current time when hovering logo */
#logo:hover #current-time {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Ensure smooth transition for current time */
#current-time {
    transition: opacity 0.3s ease;
}

span.logo-wordmark-addition {
    color: var(--secondary-color);
    font-weight: 100;
	font-size: 12px;
}


#sidebar-logo {
    position: relative;
    width: fit-content;
    text-align: center;
    font-weight: bold;
    /* color: var(--primary-color); */
    margin: 0 auto;
    padding: 20px;
    font-size: 20px;
    left: 0px;
    margin: 0px;
    z-index: 9999;
    font-family: var(--default-font-family);
    overflow: hidden;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    transition: max-height 0.5s ease, padding 0.5s ease;
    background: linear-gradient(270deg, #000, var(--primary-color), #000);
    background-size: 600% 600%;
    animation: swirlGradient 30s ease infinite;
    border-radius: 500px;
}
span.sidebar-logo-wordmark {
	color:  #fff !important;
}

#sidebar-logo.show {
    max-height: 200px; /* Set to a value large enough to fit the content */
    padding-top: 20px;
    padding-bottom: 20px;
	margin-bottom: 40px;
}


.admin {
    overflow: auto;
    overflow-x: scroll;
}

div#cookie-consent-banner {
    background-color: var(--primary-color);
    color: #fff;
    padding: 20px;
    margin-left: -10px;
    z-index: 99999;
}

.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #003366;
    color: white;
    text-align: center;
    padding: 20px;
    z-index: 10000;
    font-size: 15px;
    z-index: 99999;
}

.cookie-banner a {
    color: #fff;
    text-decoration: underline;
}

.cookie-buttons button {
    margin: 5px;
    padding: 10px 15px;
    border: none;
    background-color: #fff;
    color: #003366;
    border-radius: 5px;
    font-weight: bold;
    cursor: var(--pointer-cursor);
}

.cookie-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99999;
}

.cookie-modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    text-align: left;
    z-index: 99999;
}

.cookie-modal-buttons {
    text-align: right;
    margin-top: 15px;
}

.cookie-modal-buttons button {
    margin-left: 10px;
}

div#forgot-password-modal {
    z-index: 999999;
}

#login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: blue;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#login-box {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  width: 300px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

#login-box input {
  width: 100%;
  padding: 0.5rem;
  margin: 0.5rem 0 1rem 0;
  box-sizing: border-box;
}


div#auth-modal {
    z-index: 99999;
}

.auth-tabs {
  display: flex;
  margin-bottom: 1em;
}
.auth-tabs button {
  flex: 1;
  padding: 0.5em;
  border: none;
  cursor: var(--pointer-cursor);
}
.auth-tabs button.on {
    background: var(--primary-color);
    color: var(--tertiary-color);
}



.btn-icon {
    /* padding: 10px; */
}

.btn-icon:hover {
   background-color: var(--primary-color);
}

.icon {
    width: 15px;
    height: 15px;
    filter: brightness(0) invert(0); /* This makes the icon white */
}

button:hover .icon {
    width: 15px;
    height: 15px;
    filter: brightness(0) invert(1); /* This makes the icon white */
}


/* Optional: style the scan result */
.qr-result {
  text-align: center;
  font-weight: bold;
  margin-top: 10px;
  font-size: 1.1rem;
  color: #333;
}

#qr-scanner-container {
  position: relative;
  display: none; /* hide until scan starts */
}

.qr-close-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0 6px;
  cursor: var(--pointer-cursor);
  border-radius: 3px;
  z-index: 10;
}


#tab-buttons .btn-icon:hover .icon {
  filter: brightness(0) invert(1) !important;
}

.toggle-button.on {
    background-color: black; /* or any other style you want to apply */
}

.color-picker-container {
  position: relative;
  display: inline-block;
}

.color-picker-btn {
  width: 30px;
  height: 30px;
  border: 2px solid #ccc;
  border-radius: 4px;
  cursor: var(--pointer-cursor);
  margin-right: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.color-picker-dropdown {
  position: absolute;
  top: 35px;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  width: 20px;
}

.color-option {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  cursor: var(--pointer-cursor);
  border: 1px solid #ddd;
  transition: transform 0.1s;
}

.color-option:hover {
  transform: scale(1.1);
  border-color: #333;
}

#no-access-message {
    display: none;
    padding: 5rem;
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: #ffffff;
    background-color: #ff5b00;
    margin-top: 50px;
    border-radius: 200px;
    font-family: system-ui;
}

#menu-top-right {
    position: absolute;
    top: 10px;
    right: 20px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    align-content: center;
    flex-direction: row-reverse;
}

#user-icon-btn {
    margin-left: 10px;
}

#user-icon-btn:hover {
    background-color: black;
}

#user-dropdown {
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: row;
    gap: 5px;
    z-index: 1000;
}

#logout-btn {
    display: none;
}

#user-icon-container {
    position: relative;
    display: inline-flex;
    flex-direction: row;
    align-items: flex-end;
    align-content: flex-end;
}

#profile-info {
}

#user-email {
    font-weight: bold;
	padding:10px;
}
#user-email:hover {
	color: var(--primary-color);
	border: 2px solid black;
	border-radius:50px;
}

.profile-section {
    padding: 20px;
    background-color: #ededed;
    margin: 20px;
    border-radius: 20px;
}

button#switch-plan-btn {
    display: none;
}

#profile-contact, #profile-name, #profile-streetaddress, #profile-cityaddress {
	/* display: flex; */
}

#zipcode-info-btn {
 margin-left: 10px;	
}

div#profile-openinghours {
    display: flex;
    flex-direction: column;
}

.openinghours-day > label {
    width: 200px;
}

.openinghours-day {
    display: inline-flex;
    align-items: center;
}

.public-information {
    padding: 20px;
    background-color: #ccc;
    border-radius: 10px;
    display: flex;
    color: var(--primary-color);
    gap: 10px;
    flex-direction: row-reverse;
    justify-content: space-between;
}



div#team-members-list {
    padding: 20px;
}

.member {
    display: flex;
    gap: 20px;
    align-content: flex-start;
    align-items: center;
    padding: 2px;
}

#zipcode-info {
    margin-top: 10px;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
}

#export-btn {
	display: none;
}

#delete-btn {
    display: none;
}

#duplicate-btn {
    display: none;
}

#set-btn {
    display: none;
}

#multi-edit-btn {
    display: none;
}

#ungroup-btn {
    display: none;
}

#private-btn {
    display: none;
}

#ownership-info,
#bulk-rental-info {
    color: white;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    text-transform: uppercase;
    bottom: 0px;
    z-index: 999;
    gap: 10px;
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: 10px;
    background-color: var(--secondary-color);
    border-radius: 20px;
    background: linear-gradient(270deg, #000, var(--tertiary-color), #000);
    background-size: 600% 600%;
    animation: swirlGradient 12s ease infinite;
    justify-content: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 12px;
    display: flex;
}

table {
    border: 2px solid black;
    border-radius: 15px;
    overflow: hidden;
    width: 100%;
    background-color: #f3f3f3;
}

th {
    background-color: #ddd;
    color: #000000;
    padding: 10px;
}

td {
    text-align: center;
}

.checkbox {
    width: 20px;
    height: 20px;
}

.thumbnail {
    width: 150px;
    height: 40px;
}

.qr-code {
    position: relative;
    display: flex;
    flex-direction: row-reverse;
    z-index: 10;
}

/* Hide the QR code inside any selected‑item that is NOT open */
.selected-item:not(.open) .qr-code {
  display: none !important;
}

/* Show QR code in top right corner when item is open */
.selected-item.open .qr-code {
  display: flex !important;
}


:not(.selected-item) > .qr-code {
    display: none !important;
}

.qr-code img {
    width: 160px;
    height: 160px;
    border: 0px solid var(--primary-color);
    pointer-events: none;
    transition: width 0.3s ease, height 0.3s ease;
}




.werkport-id {
    display: none; /* Initially hide the werkport-id */
}





.selected-item.active.open .werkport-id {
    display: block; /* Show the werkport-id only when the selected-item is both active and open */
}



input.qty-input {
    border-radius: 5px;
    width: 50px;
    text-align: center;
    background-color: #ffffff;
    color: #000000;
    font-size: 14px;
    /* border: 2px solid black; */
    padding: 10px;
    /* padding-left: 20px; */
}


.fast-btn {
    font-size: 20px;
    padding: 10px;
	 border-radius: 20px;
}


button.rent-back-btn, input.rent-back-input {
    color: orange;
    font-weight: bold;

}



button.reserve-btn {
    background: #d1e72b;
    color: #000;
    font-weight: bold;
}



button.accept-btn {
    background: #d1e72b;
    color: #000;
    font-weight: bold;
    border-radius: 20px;
}

/* Target only your rent‑out button when disabled */
.rent-out-btn:disabled {
  background-color: #ccc;        /* light grey background */
  border-color: #999;            /* slightly darker border */
  color: #666;                   /* dark grey text */
  cursor: not-allowed;           /* show the “no” cursor */
  opacity: 1;                    /* override any opacity rule */
}

/* Show rental controls when item is open and selected */
.open.selected-item .rental-controls,
.open.selected-item .manual-warning {
    opacity: 1;
    max-height: min-content;
}

/* Hide reservation lists by default */
.reservations-open,
.reservations-done {
    display: none;
}

/* Show reservation lists only in open selected items */
.open.selected-item .reservations-open,
.open.selected-item .reservations-done {
    display: block;
}



.rental-controls, .manual-warning {
    opacity: 0;
    display: flex;
    /* gap: 2px; */
    /* margin-top: 10px; */
    transition: opacity 0.25s ease;
    max-height: 70px;
    flex-direction: row;
    align-items: center;
}

.open .rental-controls, .open .manual-warning {
	    flex-wrap: wrap;
}



/* Show on hover… */
.selected-item:hover .rental-controls, .selected-item:hover .manual-warning,
 /* …or whenever .selected-item has .open */
.selected-item.open .rental-controls, .selected-item.open .manual-warning  {
  opacity: 1;
}




.reservation-list li {
    list-style: none;
    margin-bottom: 0.5em;
    display: flex;
    border-bottom: 2px solid #cdcdcd;
    padding: 10px;
    gap: 10px;
    margin-top: 10px;
    vertical-align: middle;
    align-items: center;
	
}

.reservation-accepted {
    color: #000;
    background: #d1e72b;
    border-radius: 50px;
	padding: 20px;
}





/* hide deposit/qty/price/total rows + divider until dates are entered */
.reserve-info-row,
.reserve-divider {
  display: none;
}


.reserve-info-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5em 2em;
    margin: 1.5em 0;
    color: var(--primary-color);
}

.reserve-info-row strong {
  /* left column: labels */
  grid-column: 1;
}

.reserve-info-row span {
  text-align: right;
  min-width: 4ch;
  flex-shrink: 0;
}

/* the horizontal divider below the deposit row */
.reserve-divider {
  border: 0;
  border-top: 1px solid #ccc;
  margin: 0.5em 0;
}


.rent-back-group {
    margin-left: 20px;
}

.reserve-group {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 20px;
}

/* always hide the “Abbrechen” button */
.reserve‑group .cancel-btn {
  display: none;
}

/* but as soon as there’s an accept-btn before it, show it */
.reserve‑group .accept-btn ~ .cancel-btn {
  display: inline‑block !important;
}





.glow-effect {
    animation: backgroundGlow 3s ease-out infinite;
}

/* Never show glow effect on open selected-items */
.selected-item.open.glow-effect {
    animation: none;
}

@keyframes backgroundGlow {
    0% {
        background-color: #fff;
    }
    1% {
        background-color: var(--primary-color);
    }
    100% {
        background-color: #fff;
    }
}
	select.unit-select {
    min-width: 70px !important;
}

.grid-view > .fast-access {
    display: none;
}

.selected-item.active:has(.tool-details[style*="display: grid"]) .fast-access {
    display: block;
    flex-direction: row;
    /* gap: 10px; */
}


.selected-item .selected-close-btn, .selected-item .selected-link-btn, .selected-item .selected-remove-btn {
    display: none;
}

.selected-item.open .selected-close-btn, .selected-item.open .selected-link-btn, .selected-item.open .selected-remove-btn  {
    display: block;
}


@keyframes popIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  70% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

.selected-item.pop-in {
  animation: popIn 0.4s ease-out;
}





#tab-container {
    width: 100%;
    margin-bottom: 100px;
}

#tab-buttons {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
    border-bottom: 2px solid black;
    padding-bottom: 20px;
}

#tab-buttons button {
    border-radius: 0px;
    background-color: #6f6f6f42;
    color: #000;
    font-size: 20px;
    border-radius: 500px;
    min-width: 60px;
}
#tab-buttons a {
    padding: 12px;
    cursor: var(--pointer-cursor);
    border: none;
    background: #6f6f6f42;
    text-transform: uppercase;
    color: --var(primary-color);
    width: fit-content;
    font-weight: normal;
    opacity: 1 !important;
    font-size: 20px;
    border-radius: 500px;
    min-width: 60px;
    font-size: 20px;
}

#tab-buttons button.tab-button.on, #tab-buttons button:hover, #tab-buttons a:hover {
    background-color: #000000;
    color: #fff;
}

.tab-pane {
    display: none;
}

.tab-pane.on {
    display: block;
}

#sidebar-container {
    width: 10%;
    max-width: 250px;
    float: left;
    height: 100vh;
    position: relative;
    margin-top: 20px;
}

#sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    width: 100%;
    padding-right: 20px;
    position: relative;
    box-sizing: border-box;
}

.container-anzeige-controls {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.top-actions {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-direction: row;
    margin-bottom: 20px;
}

.top-actions button {
	background-color: var(--fourth-color);
	color: var(--tertiary-color);

}

.top-actions .icon {
    filter: brightness(1) invert(0);
}

#project-buttons,
#item-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}



/* Bulk Rental Controls */
#bulk-rental-section {
    margin-top: 20px;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
}

#bulk-rental-section h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: var(--text-color);
}

#bulk-rental-info {
    margin-bottom: 15px;
}

#bulk-item-count {
    display: block;
    font-size: 12px;
    color: var(--text-color);
    margin-bottom: 5px;
}

#bulk-availability-status {
    font-size: 11px;
    color: var(--secondary-text-color);
}

#bulk-rental-buttons {
    display: flex;
    flex-direction: column;
}



.chart-section-title {
  width: 100%;
}


.chart-container, .rental-chart-container {
    /* margin: 20px; */
    display: flex !important;
    gap: 30px;
    padding: 40px;
    /* background-color: #e5e5e5; */
    border-radius: 40px;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: row;
    margin-bottom: 20px;
    border: 2px solid black;
    box-shadow: 0px 6px 0px 1px var(--primary-color);
}

.chart-tabs {
    display: flex;
    margin-bottom: 10px;
    gap: 5px;
}

.chart-tab-button.active, .rental-chart-tab-button.active {
    background-color: var(--primary-color);
    color: var(--tertiary-color);
}

.chart-content {
    border: 1px solid #ccc;
    padding: 10px;
}

.history-item {
    cursor: var(--pointer-cursor);
    display: inline-flex;
    flex-direction: row;
    background-color: #ffffff;
    color: #000;
    /* width: 300px; */
    padding: 10px;
    /* min-height: 200px; */
    font-weight: bold;
    /* margin: 10px; */
    margin-top: 5px;
    position: relative;
    box-sizing: border-box;
    border-radius: 5px;
    transition: transform 0.05s ease;
    pointer-events: auto !important;
    touch-action: auto !important;
    overflow: visible !important;
    border: 2px solid black;
    align-items: center;
    width: 100%;
    /* max-height: 75px; */
    gap: 10px;
}

@media (max-width: 600px){
	.history-item {
	    flex-direction: column;
	}
}

.history-item:hover {
    opacity: 0.9;
}


.history-thumbnail {
    width: 50px;
    height: 50px;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}


.history-item-name {
    min-width: 300px;
}

.history-list {
    width: 100%;
    max-height: 50vh;
    overflow-y: scroll;
}

.status {
    min-width: 200px;
}

.status-loaned {
    color: orange;
}

.status-returned {
    color: var(--primary-color);
}

.history-date, .history-time {
    border-right: 2px solid black;
    padding: 10px;
    min-width: 100px;
}

.loaned {
    border-left: 20px solid orange;
}

.reserved {
    border-left: 20px solid #d1e72b;
}

.returned {
    border-left: 20px solid var(--primary-color);
}

.completed {
    opacity: 0.3;
}


.empty {
    background-color: var(--primary-color);
    width: 10px;
    height: 40px;
}

#search {
    padding: 15px;
    font-size: 20px;
    width: 60%;
    margin-right: 20px;
    padding: 20px 0px 20px 20px;
    border-radius: 100px;
    color: var(--primary-color);
    background-color: var(--tertiary-color);
    font-weight: normal;
    border: 2px solid #000;
    text-transform: uppercase;
}

#search::placeholder {
color: #000;
}

/* Search Input Hover with Animated Gradient */
#search:hover {
    background: linear-gradient(270deg, var(--primary-color), var(--tertiary-color), var(--primary-color));
    background-size: 600% 600%;
    animation: swirlGradient 5s ease infinite;
    color: var(--tertiary-color); /* Better contrast while animating */
}

.search‐container {
    display: flex;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
}

#suggestions {
    display: none;
    position: absolute;
    z-index: 999999;
    background: #e9e9e9;
    width: initial;
    margin-left: 30px;
    padding: 20px;
    color: #000000;
    text-transform: uppercase;
    border-radius: 0 0 10px 10px;
    box-shadow: 1px 3px 7px 5px var(--primary-color);
    border-top: 2px solid var(--primary-color);
}

.suggestion-text {
    word-wrap: break-word;       /* Safe fallback */
    overflow-wrap: break-word;   /* Modern browsers */
    word-break: break-word;      /* Ensures breaks on long words */
    white-space: normal;         /* Allows wrapping */
    max-width: 100%;  
    margin-left: 90px;
    vertical-align: middle;	/* Prevents overflow */
}

	
	.suggestion-fade-in {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}


#current-input-suggestion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #d9d9d9;
    border-bottom: 1px solid #b5b5b5;
}

#suggestions div {
    padding: 10px;
    cursor: var(--pointer-cursor);
    border-bottom: 1px solid #b5b5b5;
}

#suggestions div:last-child {
    border-bottom: none;
}

#suggestions div:hover {
    background-color: var(--primary-color);
}

.suggestions-thumbnail {
    margin-right: 30px;
    vertical-align: middle;
    object-fit: contain;
}

.suggestion-parentcategory {
    opacity: 0.3;
}

.suggestion-fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

#category-picker {
    padding: 20px;
    background: #e9e9e9;
    border-radius: 20px;
    margin-top: 20px;
}

#category-picker ul {
    list-style: none;
    margin: 0;
    padding-left: 0.5em;
}

#category-picker ul ul {
    display: none;
}

#category-picker ul ul.visible {
    display: block;
}

#category-picker li:not(:has(ul)) {
    color: var(--primary-color);
}

#category-picker .leaf-icon {
    display: inline-block;
    width: 1em;
    margin-right: 0.4em;
    font-weight: bold;
    cursor: var(--pointer-cursor);
    user-select: none;
    color: #fff;
}

#category-picker .leaf-label {
    color: var(--primary-color);
}

#category-picker .leaf-label:hover {
    font-weight: bold;
    cursor: var(--pointer-cursor);
}

#category-picker li:has(ul) > .toggle-icon + span:hover {
    font-weight: bold;
}

#category-picker .toggle-icon {
    display: inline-block;
    width: 1em;
    margin-right: 0.4em;
    font-weight: bold;
    cursor: var(--pointer-cursor);
    user-select: none;
}

.hidden {
    display: none !important;
}

.proposals {
    position: fixed;
    right: 0;
    width: 30%;
    z-index: 999999999999 !important;
    opacity: 1;
    background-color: #fff;
    text-align: center;
}

.inputsearch-wrapper {
    position: relative;
    width: 100%;
}

.inputsearch-wrapper .proposals {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    width: 100%;
    background-color: white;
    border: 1px solid #ccc;
    max-height: 500px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* Parent category proposals styling */
.parentcategory-proposals {
    position: absolute !important;
    top: 100%;
    left: 0;
    z-index: 10000;
    width: 100%;
    background-color: white;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.proposal {
    padding: 5px 10px;
    cursor: var(--pointer-cursor);
    border-bottom: 1px solid #d5d5d5;
}

.proposal:hover {
    background-color: #000;
    color: #fff;
}

.proposal-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    vertical-align: middle;
}

img.bit-icon {
    width: 20%;
}

.feature-icon {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    vertical-align: middle;
    filter: invert(1);
}

.detail {
    border-bottom: 1px solid #d9d9d9;
    padding: 5px;
    display: flex;
    flex-direction: column;
}

/* make the first selected-container span both columns */
div#toolboxes > .first {
  grid-column: 1 / -1;
  /* optional: explicitly fill its grid-cell */
}

/* default: two equal columns */
div#toolboxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  /* (optionally) width: 100%; if you need #toolboxes itself to fill its container */
}



.selected {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: min-content;
    gap: 9px;
    background-color: #ebebeb;
    min-height: 50vh;
    margin-bottom: 0px;
    border-radius: 10px;
    background-image: radial-gradient(circle, #000000 1px, #e7e7e7 1px);
    background-size: 20px 20px;
    position: relative;
    padding-top: 60px;
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: 40px;
    border: 2px solid black;
    scroll-margin-top: 20px;
    box-shadow: 0px 6px 0px 1px;
}

.first {
    margin-bottom: 0px;
    box-shadow: none;
    background-image: radial-gradient(circle, #000000 1px, var(--tertiary-color) 1px);
    background-size: 20px 20px;
    border-radius: 20px;
    border-bottom: 2px solid black;
    margin-top: 20px;
	border:none;
}

.selected-name-input, .set-name-input, .subset-name-input {
    width: fit-content;
    min-width: 400px;
    font-size: 14px;
    border: 2px solid black;
    padding-left: 20px;
    text-align: left;
    border-radius: 20px;
    color: var(--primary-color);
    text-transform: uppercase;
    z-index: 100;
    position: absolute;
    left: 45px;
    top: 10px;
    height: 20px;
    font-weight: bold;
    padding: 5px;
    background: none;
}


.selected-name-input:hover, .set-name-input:hover, .subset-name-input:hover {
    box-shadow: inset 0px 2px 4px rgb(87 87 87 / 50%);
}



.selected-delete-btn {
    right: 10px;
    top: 10px;
}

.first .selected-edit-btn {
display:none;
}

.selected-edit-btn {
    right: 125px;
    top: 10px;
}

.move-down {
    right: 40px; /* Immediately left of delete (delete is at 10px + 40px width + 10px space) */
    top: 10px;
}

.move-up {
    right: 65px; /* 50px left of move-down */
    top: 10px;
}

.selected-minimize-btn {
    left: 10px;
    top: 10px;
}

.select-all-btn {
    right: 95px; 
    top: 10px;
}

.subset .select-all-btn {
    right: 40px;
    top: 10px;
}

.subset .selected-delete-btn {
    right: 10px;
    top: 10px;
}


.container-menu {
    position: absolute;
    top: 0;
    right: 0;
    display: contents;
    pointer-events: none;
}



.container-menu > * {
    pointer-events: auto;
    opacity: 0 !important;
    transition: opacity 0.2s ease;
}

@media (max-width: 600px){
	.container-menu {
	display:none;
	}
}

/* Show container-menu on hover for desktop */
@media (hover: hover) and (pointer: fine) {
    .selected:hover .container-menu > *,
    .set:hover .container-menu > *,
    .subset:hover .container-menu > * {
        opacity: 1 !important;
    }
}

/* Always show container-menu on mobile/touch devices */
@media (hover: none) or (pointer: coarse) {
    .container-menu > * {
        opacity: 1 !important;
    }
}

.move-up, .move-down, .selected-minimize-btn, .selected-delete-btn, .selected-edit-btn, .select-all-btn {
    border: none;
    /* padding: 5px 10px; */
    cursor: var(--pointer-cursor);
    position: absolute;
    width: 20px;
    /* vertical-align: middle; */
    height: 20px;
    display: flex;
    z-index: 11;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
}





.selected-minimize-btn {
    left: 10px;
    top: 10px;
}



.selected.minimized {
    max-height: 70px;
    min-height: 0px;
    opacity: 1;
    height: 70px;
    padding: 0px;
}

.selected.minimized > .selected-name-input {
    display: block !important;
}

.selected.minimized::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--tertiary-color)); /* Fade to tertiary color */
    pointer-events: none;
    min-height: 0px;
    z-index: 10;
}

select#container-type-select {
    min-width: 224px;
    padding: 10px;
    margin: 10px;
    border-radius: 15px;
    background: #fff;
    color: var(--primary-color);
    font-size: 15px;
    font-weight: bold;
}


.selected[data-container-type="Werkzeug-Lager"] {
}

.selected[data-container-type="Material-Lager"] {
    background-size: 1px 10px;
    background-image: radial-gradient(circle, #cfcfcf 1px, #e7e7e7 1px);
}

.selected[data-container-type="Baustelle"] {
    background-color: var(--primary-color);
    background-image: none;
}

.selected[data-container-type="KFZ"] {
    background: linear-gradient(349deg, #9d9d9d 0%, #e3e3e3 50%, #959595 100%);
}

#add-selected-container-btn {
    font-size: 60px;
    border-radius: 50px;
    width: 100%;
    width: 300px;
    margin: 0px auto;
	margin-top: 20px;
    margin-bottom: 60px;
    display: flex;
    height: 60px;
    justify-content: center;
    align-items: center;
}



#dashboard {
    padding: 0px;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-content: center;
    flex-direction: column;
}

#settings, #filter-menu {
    width: 95vw;
    background-color: #e9e9e9;
    border-radius: 10px;
    border: 2px solid black;
    /* box-shadow: 0px 6px 0px 1px; */
    padding: 40px;
    margin-top: 20px;
    margin-bottom: 20px;
}

#settings button {
    margin: 5px;
}

#settings.collapsed {
    width: 0;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    transition: all 0.3s ease;
    display: none;
}


#filter-menu button {
    margin: 5px;
}

#filter-menu.collapsed {
    width: 0;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    transition: all 0.3s ease;
    display: none;
}

#filter-shortcut {
 width: 100%;	
}

select#filter-parentcategory {
    min-width: 224px;
    padding: 10px;
    margin: 10px;
    border-radius: 15px;
    background: #fff;
    color: var(--primary-color);
    font-size: 15px;
    font-weight: bold;
}

select#session-dropdown {
  /* min-width: 200px; */
  padding: 10px;
  border-radius: 15px;
  background: #fff;
  color: var(--primary-color);
  font-size: 12px;
  font-weight: bold;
  display: none;
  max-width: 60vw;
}

#footer {
    /* margin-top: 200px; */
    float: right;
    width: 100%;
    padding: 40px;
    text-align: center;
	
}

#impressum, #privacy, #widerruf, #agb {
    height: fit-content;
    color: #000000;
    /* width: 66%; */
    float: none;
    padding: 20px;
    background: #fff;
    border-radius: 40px;
    border: 2px solid #000;
    box-shadow: 0px 6px 0 0;
    margin-top: 100px;
    margin: 100px auto;
    word-wrap: break-word;
	max-width: 1400px;
}



/* ---------- Landing Page ---------- */

/* Global Layout */
#werkport-startseite,
#promo {
	max-width: 66%;
	margin: 0 auto;
}

main#app {
    margin-top: 100px;
    padding: 20px;
    /* border-top: 2px solid #000000; */
    background-color: #f3f3f3;
}

/* Public pages: no top margin for main#app */
.public-page #app {
    max-width: 1920px;
    margin: 0 auto;
	background-color: transparent;
	border-top: none;
}

@media (max-width: 1400px) {
	#werkport-startseite,
	#promo {
	max-width: 100%;
	margin: 0 auto;
	}


	main#app {
	margin-top: 140px;
	}

	/* Public pages: no top margin for main#app on mobile/tablet */
	.public-page main#app {
	margin-top: 120px;
	}

}

@media (max-width: 600px) {
    .public-page main#app {
        margin-top: 0px;
        padding: 10px;
    }
}


video {
  width: 70%;
}

.screenrecording {
  width: 100%;
  border-radius: 40px;
  border: 2px solid #000;
  box-shadow: 0 6px 0 0;
}

/* Hero Section */
.lp-hero {
  background: #adadad;
  color: var(--tertiary-color);
  border-radius: 40px;
  margin: 0px 0;
  overflow: hidden;
  min-height: 500px;
}

.lp-hero-container {
  display: flex;
  align-items: center;
  min-height: 600px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.lp-hero-content {
  flex: 1;
  padding: 4rem 3rem;
  text-align: left;
}

.lp-hero-content h1 {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: var(--tertiary-color);
}

.lp-hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: #ccc;
  line-height: 1.5;
}

.lp-quote {
    padding: 10px;
}

.lp-hero-cta {
  margin-top: 2rem;
}

.lp-hero-image {
  flex: 1;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.lp-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  border: 2px solid black;
  box-shadow: 0px 6px 0 0 #000;
  margin: 20px;
}

/* Hero: Mobile */
@media (max-width: 768px) {
  .lp-hero-container {
    flex-direction: column;
    min-height: auto;
  }

  .lp-hero-content {
    padding: 2rem 1.5rem;
    text-align: center;
	word-wrap: break-word;
  }

  .lp-hero-content h1 {
    font-size: 2rem;
	word-wrap: break-word;
  }

  .lp-hero-image {
    height: 400px;
    width: 100%;
  }
}

/* Buttons */
.btn-primary {
    background: var(--secondary-color);
    color: #000000;
    border-radius: 100px;
    font-size: 20px;
    font-weight: bold;
    padding: 25px;
    font-family: var(--default-font-family);
    box-shadow: 0 6px 0 0;
    z-index: 2;
    border: 2px solid #000;
}

.btn-primary:hover {
  background: linear-gradient(222deg, var(--primary-color), #ffffff, var(--primary-color));
  background-size: 400% 600%;
  animation: swirlGradient 15s ease infinite;
}

.btn-secondary {
  background: #ccc;
  color: #fff;
  border-radius: 100px;
  font-size: 25px;
  padding: 25px;
  font-family: var(--default-font-family);
}

/* Section Base */
.lp-section {
    background: #000000;
    background-size: 200% 600%;
    border-radius: 40px;
    padding: 30px;
    margin: 30px 0;
    color: var(--tertiary-color);
}

/* Trust Section Specific Styles */
.lp-section.trust-section {
    background: #adadad;
    background-size: 200% 600%;
    border-radius: 40px;
    padding: 30px;
    margin: 30px 0;
    color: var(--tertiary-color);
}

.trust-features {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.trust-item {
    /* border: 2px solid #fff; */
    border-radius: 20px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity:0.3;
     transition: all 0.3s ease;
}

.trust-item:hover {
    opacity:1;
    background-color: #ccc;    
}

.trust-item img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.trust-item h3 {
    color: #000;
}

@media (max-width: 1000px) {
.trust-features {
    flex-direction: column;
}

}

@supports (-webkit-touch-callout: none) {
  .lp-section {
    background: #000 !important;
    background-size: auto !important;
  }
}

.lp-section.alt {
  background: #000;
}

.lp-section p {
  padding: 10px;
  text-align: center;
  margin-top: 40px;
}

.lp-section-head {
  margin: 0 auto 20px auto;
  text-align: center;
}

.lp-section-head h2 {
  margin: 0 0 10px 0;
  font-size: 2vw;
  text-transform: uppercase;
}

.lp-section-head p {
  margin: 0 auto;
  color: #fff;
}

/* Media */
.lp-media {
    display: flex;
    justify-content: center;
    margin: 20px 0 10px;
    background-color: #000;
    border-radius: 40px;
}

.lp-video {
  width: 100%;
  max-width: 980px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 12px;
  box-shadow: 0px 6px 0px 1px rgba(0, 0, 0, 0.2);
}

/* Feature Grid */
.lp-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 24px;
}


.lp-feature {
    background: #ededed;
    border-radius: 20px;
    padding: 40px;
    color: #000000;
    text-align: left;
    font-size: 22px;
    display: flex;
    font-family: var(--default-serif-font-family);
    gap: 20px;
    word-wrap: break-word;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Quote Styling */
.lp-quote:before {
  content: "“";
  font-size: 3rem;
  font-family: 'Georgia', serif;
}

.lp-quote:after {
  content: "”";
  font-size: 3rem;
  font-family: 'Georgia', serif;
}

/* Feature Comparison Table */
.lp-features-comparison {
  background: var(--primary-color);
  color: #fff;
}

.features-comparison-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.features-table {
  border: 2px solid #000;
  border-radius: 40px;
  padding: 20px;
  box-shadow: 0 3px 0 0 #000;
}

.features-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
}

.feature-category-header {
  padding: 20px;
  font-weight: bold;
  font-size: 1.1em;
  color: #fff;
  display: flex;
  align-items: center;
}

.feature-category {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.category-title {
    color: var(--secondary-color);
    background: #000000;
    padding: 20px;
    border-radius: 20px;
    font-size: 20px;
    font-weight: bold;
    font-family: courier;
}

.category-title.unavailable {
  opacity: 0.3;
}

.feature-row {
    display: grid;
    grid-template-columns: 3fr 4fr 4fr;
    gap: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background-color 0.2s ease;
    align-items: start;
    justify-items: center;
}

.feature-row:last-child {
  border-bottom: none;
}

.feature-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.feature-name {
  padding: 16px 20px;
  color: #fff;
  display: flex;
  align-items: center;
  width: 50px;
}

.feature-name.unavailable {
  opacity: 0.3;
}

.feature-check {
  padding: 16px 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  font-weight: bold;
  min-width: 80px;
}

.feature-check.available {
  color: #00ff88;
  font-size: 200%;
}

.feature-check.unavailable {
  color: #ffffff;
  opacity: 0.5;
}

/* Features CTA */
.features-cta {
  text-align: center;
  margin-top: 40px;
}


/* Plans */
.plan-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 140px;
  margin: 20px;
  margin-bottom: 60px;
}

.plan-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.plan-header:hover {
  transform: scale(1.02);
  
}

.plan-title {
  font-weight: bold;
  font-size: 1.1em;
  color: #fff;
  margin-bottom: 8px;
}

.plan-price {
  font-size: 70px;
  font-weight: bold;
  border: 2px solid #000;
  border-radius: 40px;
  padding: 40px;
  background: #fff;
  color: #000;
      box-shadow: 0 6px 0 0 #fff;
}

.plan-price.active-plan {
  background-color: var(--secondary-color);
  color: #000;
  box-shadow: 0 0 0 0;
}

.plan-price.active-plan .plan-description {
  color: #000;
}

.plan-description {
  font-size: 14px;
  color: #000;
}

/* Responsive: Plans + Features */
@media (max-width: 900px) {
  video {
    width: 110%;
  }

  .lp-feature-grid {
    grid-template-columns: 1fr;
  }

  .lp-feature {
    padding: 10px;
    font-size: 16px;
    text-align: center;
  }

  .features-comparison-container {
    padding: 10px;
  }

  .features-header {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .feature-category-header {
    padding: 15px;
    font-size: 1em;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .feature-name {
    padding: 12px 15px;
    font-size: 0.9em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .feature-check {
    padding: 8px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1em;
  }

  .feature-check:before {
    content: attr(data-plan) ": ";
    font-weight: normal;
    opacity: 0.7;
    margin-right: 8px;
  }

  .feature-check.available {
    font-size: 100%;
  }

.plan-container {
	gap: 5px;
	margin: 20px;
}

  .plan-title {
    font-size: 1em;
  }

  .plan-price {
    font-size: 30px;
  }

  .lp-video {
    max-width: 100%;
    border-radius: 10px;
  }
  
  .btn-primary {
    font-size: 16px;
    padding: 25px;
	}

	.btn-secondary {
	  font-size: 16px;
	  padding: 25px;
	}
  
}

/* Feature Sections */
.feature {
  width: 100%;
  position: relative;
  display: flex;
  gap: 20px;
}

.feature.one,
.feature.three {
  color: #fff;
  background-color: #000;
  border-radius: 50px;
  margin: 50px 0;
}

.feature.two {
  border-radius: 10px;
  box-shadow: 0px 6px 0px 1px;
  background-image: radial-gradient(circle, #000000 1px, #001fff 1px);
  background-size: 35px 35px;
  margin-bottom: 50px;
}

div#guidelines {
  text-align: left;
  margin: 0 auto;
  padding: 100px;
  color: #fff;
}

.infobox {
  color: var(--primary-color);
  font-size: 30px;
  padding: 20px;
  overflow: hidden;
  position: relative;
}

.infobox.visualbox {
  border-radius: 40px;
}

.infobox.one {
  text-align: left;
}

.infobox.two {
  margin: 0 auto;
}

.visual {
  width: 80%;
  margin: 0 auto;
}

#promo-qr {
  object-fit: contain;
}

#promo-interfaces {
  width: 100% !important;
  filter: drop-shadow(0px 10px 5px rgba(0, 0, 0, 0.5));
}

#shortinfo {
  font-size: 30px;
  text-align: right;
}

/* FAQ Section */
#faq-section {
  margin-top: 20px;
}

.faq-item {
  border-radius: 20px;
  margin-bottom: 10px;
  overflow: hidden;
  background-color:#ccc;
}

.faq-question {
    padding: 20px;

}

.faq-question h4 {
  margin: 0;
}

.faq-toggle {
  font-size: 40px;
  color: var(--tertiary-color);
}

.faq-answer {
  padding: 20px;
  display: none;
  font-size: 20px;
  border: 2px solid black;
  background-color: #000;
  color: var(--tertiary-color);
}

.faq-answer.show {
  display: block;
}

/* Functions Section */
#functions {
  margin: 20px auto;
  padding: 2rem;
  background: var(--secondary-color);
  border-radius: 20px;
  color: white;
  max-width: 66%;
}

.functions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.functions-header h2 {
  color: #000000;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  flex: 1;
}

.functions-icon {
  flex-shrink: 0;
  margin-left: 1rem;
}

.functions-icon img {
    width: 40px;
    height: 40px;
    filter: invert(1);
    opacity: 1;
    /* filter: drop-shadow(20px 10px 30px var(--primary-color)); */
    z-index: 1;
}

.functions-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.function-feature {
  margin: 40px;
}

.feature-content {
  display: grid;
  grid-template-columns: 0.33fr 1fr;
  gap: 2rem;
  align-items: center;
}

.feature-heading h3 {
  color: #000;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
}

.feature-heading p {
  color: #000;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.feature-heading strong {
  color: #000;
  font-weight: 700;
}

.feature-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 0 0 #000;
  border: 2px solid black;
  max-width: 700px;
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: inherit;
  object-fit: cover;
}

/* Functions Responsive */
@media (max-width: 1200px) {
  #functions {
    padding: 1.5rem;
    margin: 2rem 0;
    max-width: 100%;
  }

  .functions-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .functions-header h2 {
    font-size: 1.5rem;
  }

  .feature-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .function-feature {
    padding: 0;
    margin: 5px;
  }

  .feature-heading h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  #functions {
    padding: 1rem;
  }

  .functions-header h2 {
    font-size: 1.25rem;
  }

  .feature-heading h3 {
    font-size: 1.1rem;
  }

  .feature-heading p {
    font-size: 0.9rem;
  }
}

/* Compact Functions Grid */
.lp-functions-compact {
  padding: 100px;
  background: #000;
  text-align: center;
}

.lp-functions-compact .lp-section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.lp-functions-compact .lp-section-head h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 1rem;
}

.lp-functions-compact .lp-section-head p {
  font-size: 1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.functions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin: 0 auto;
  justify-items: center;
}

.function-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: #000000;
  border: 4px solid #fff;
  border-radius: 60px;
  text-decoration: none;
  width: 80%;
  min-width: 80%;
  justify-content: center;
}

.function-card:hover {
    background-color: var(--secondary-color);
    text-decoration: none;
    border: none;
    color: #000;
    background: linear-gradient(222deg, var(--primary-color), #ffffff, var(--primary-color));
    background-size: 400% 600%;
    animation: swirlGradient 15s ease infinite;
}

.function-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.function-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(1);
}

.function-card h3 {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.function-card p {
  font-size: 0.95rem;
  color: #fff;
  margin: 0;
  line-height: 1.4;
}

.functions-cta {
  text-align: center;
  display: flex;
  margin-top: 3rem;
  justify-content: center;
  flex-wrap: wrap;
}

.functions-cta .btn {
  font-size: 1.1rem;
  padding: 1rem 2rem;
}

/* Compact Functions Responsive */
@media (max-width: 1000px) {
  .lp-functions-compact {
    padding: 20px;
  }

  .functions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .function-card {
    padding: 0;
    min-height: 160px;
  }

  .function-icon {
    width: 40px;
    height: 40px;
  }

  .function-card h3 {
    font-size: 0.6rem;
  }

  .function-card p {
    font-size: 0.2rem;
  }
}

/* ---------- Landing Page End ---------- */






.container-name {
    display: block;
    margin-bottom: 10px;
    width: 100%;
    padding: 5px;
    font-size: 14px;
}

.parent-item-0 {
    background-color: #616161;
}

.parent-item-1 {
    background-color: #999999;
}

.parent-item-2 {
    background-color: #c0c0c0;
}

.parent-item-3 {
    background-color: #e1e1e1;
}

.parent-item-4 {
    background-color: #ffffff;
}

.selected-item {
	scroll-margin-top: 20px;
    cursor: var(--pointer-cursor);
    display: inline-flex;
    flex-direction: column;
    background-color: #ffffff;
    color: #000;
    width: 400px;
    padding: 20px;
    min-height: 200px;
    font-weight: bold;
    margin: 10px;
    position: relative;
    box-sizing: border-box;
    border-radius: 5px;
    transition: transform 0.05s ease;
    /* pointer-events: auto !important; */
    /* touch-action: auto !important; */
    /* overflow: visible; */
    border: 2px solid black;
}

.dragging-hidden {
  visibility: hidden !important;
}

.drag-handle {
  cursor: grab;
  padding: 5px;
  user-select: none;
  width: 0px;
  float: left;
  /* height: 70px; */
  display: flex;
  /* vertical-align: middle; */
  align-items: center;
}

.drag-handle:active {
    cursor: grabbing;
}

.selected-item.grid-view {
    width: 300px;
    padding: 5px;
    min-height: 300px;
    border-radius: 10px;
    box-shadow: 0px 3px 0px 1px;
}

.selected-item.list-view {
    display: inline-flex;
    flex-direction: column;
    width: 100%;
    min-height: 70px;
    max-height: 70px;
    /* height: 50px; */
    margin: 0px;
    margin-top: 10px;
    border-radius: 5px;
    box-shadow: 0px 6px 0px 1px;
    justify-content: center;
    /* overflow-x: scroll; */
    overflow-x: auto;
    /* overflow-y: overlay; */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.selected-item.list-view.open {
    min-height: 100%;
	max-height: 100%;
}

    .selected:has(.list-view) {
display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
  grid-auto-rows: min-content;
    }



.selected-item.grid-view:not(.active):hover {
    scale: 1.05;
    /* box-shadow: inset 0px 0px 0px 2px var(--secondary-color); */
}



.selected-item.open {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: var(--primary-color);
    padding-top: 60px;
}

.selected-item-modal-content {
    gap: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.list-view > .selected-item-modal-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.open > .selected-item-modal-content {
    background-color: #fff;
    margin: 2% 5%;
    padding: 50px;
    display: grid;
    gap: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
}



/* When a selected‑item is open, make its container transparent to touch‑drags */
/* .selected-item.open { */
  /* /* turn off pointer‑events on the wrapper */ */
  /* pointer-events: none; */
/* } */

/* /* But restore pointer‑events on anything interactive inside */ */
/* .selected-item.open .tool-details, */
/* .selected-item.open .image-details, */
/* .selected-item.open .tool-details *, */
/* .selected-item.open .image-details * { */
  /* pointer-events: auto; */
/* } */

.selected-item.list-view.active {
    box-shadow: inset 0px 5px 0px 2px var(--primary-color);
}

.selected-item .parentcategory {
    font-size: 9px;
    color: #ccc;
    margin-bottom: 5px;
}

.selected-item .brandname {
    font-size: 12px;
    color: #a3a3a3;
}

.selected-item.active:has(.tool-details[style*="display: grid"]) {
    min-width: 100%;
}

.selected-item.active:has(.tool-details[style*="display: grid"]) {
    display: block;
}

.selected-item.active:has(.tool-details[style*="display: grid"]) .itemname {
    font-size: 40px;
}

.selected-item.active:has(.tool-details[style*="display: grid"]) .parentcategory {
    font-size: 20px;
}

#scale-value {
    margin-left: 10px;
    font-size: 16px;
	display:none;
}

.tool-details {
    opacity: 0;
    transition: opacity 0.8s ease, max-height 0.8s ease;
    text-align: right;
    display: none;
}

.active .tool-details {
    opacity: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    border-radius: 10px;
}

.group {
    /* background-color: #e1e1e1; */
    border: 2px solid black;
    padding: 20px;
    border-radius: 10px;
}


.tool-details input, .tool-details textarea, .tool-details select, .tool-details button {
    width: auto;
    font-family: var(--default-font-family);
    font-size: 14px;
    text-align: center;
}


.tool-details label {
    text-align: left;
    float: left;
    margin-top: 5px;
    max-width: 120px;
    margin-right: 50px;
    margin-bottom: 20px;
}

#multi-edit-fields {
    opacity: 1;
    max-height: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 50px;
    margin-top: 20px;
    border-radius: 20px;
    text-align: right;
}

#multi-edit-modal .modal-content input[type="text"],
#multi-edit-modal .modal-content textarea,
#multi-edit-modal .modal-content select,
#multi-edit-modal .modal-content [type="number"] {
    min-width: 224px;
    padding: 10px;
    margin: 10px;
    border-radius: 15px;
    background: #fff;
    color: var(--primary-color);
    font-size: 15px;
    font-weight: bold;
}

#multi-edit-modal .modal-content .detail label {
    font-weight: bold;
    margin: 10px;
    float: left;
}

#multi-edit-modal:target .button-container,
#multi-edit-modal[style*="display: block"] ~ .button-container {
    display: none;
}

.button-container.hidden {
    display: none;
}



.manual-list.hidden {
  display: none;
}

.manual-warning {
    background-color: red;
    border-radius: 5px;
    padding: 10px;
    color: #fff;
    max-height: 70px;
    /* height: 70px; */
    font-size: 17px;
}

.manual-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}



.upload-btn {
    display: none;
}

.selected-item:not(.open) .image-details {
    display: none !important;
}

.insp-type-info {
	border: 2px solid black;
	font-size: 11px;
	padding: 10px;
}

.open .tool-details, .open .manual-details, .open .inspection-details, .open .reservation-details {
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    grid-auto-rows: min-content;
    gap: 10px;
}

.open .image-details {
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    grid-auto-rows: min-content;
    gap: 10px;
    margin-top: 100px;
}


.tool-details, .image-details, .manual-details, .inspection-details, .reservation-details {
    display: none;
    transition: opacity 0.0s ease, max-height 0.0s ease;
}

.open .reservation-details:not(:has(.reservation-list li)) {
  display: none !important;
}

/* .open .inspection-list:not(:has(h3 + *)) { */
  /* display: none !important; */
/* } */

/* always show the “Prüfbericht” upload in the inspection modal */
.insp-report-upload .manual-details {
  opacity: 1 !important;
  max-height: none !important;
  overflow: visible !important;
}

form#inspection-form {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
    flex-direction: column;
}

.thumbnail-container {
    display: flex;
    justify-content: center;
    min-width: 120px;
}

img.svg-thumbnail {
    border-radius: 10px;
    max-width: 160px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.list-view img {
    border-radius: 5px;
    max-width: 70px;
    max-height: 60px;
    object-fit: contain;
}

.image-uploaded {
    border-radius: 10px;
    /* height: 400px; */
    width: 200px;
    object-fit: cover;
}

.images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.image-container {
    display: flex;
    align-content: flex-end;
    flex-direction: column-reverse;
    background-color: #b4b4b4;
    padding: 10px;
    border-radius: 20px;
    align-items: flex-end;
    justify-content: flex-end;
}

.image-settings {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.delete-image-btn, .custom-radio-label {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 4px 9px;
    cursor: var(--pointer-cursor);
    text-transform: uppercase;
    font-size: 14px;
}

.custom-radio-label:hover {
    background-color: #0035ff;
}

.image-settings input[type="radio"] {
    display: none;
}

.custom-radio-label {
    position: relative;
    padding-left: 30px;
}

.custom-radio-label::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #fff;
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.image-settings input[type="radio"]:checked + .custom-radio-label::before {
    background-color: var(--secondary-color);
}








.grid-view .featurelabel-container {
    display: flex;
    padding: 5px;
    gap: 5px;
    border-top: 2px solid black;
    width: 100%;
    padding-top: 10px;
    min-height: 50px;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.list-view .featurelabel-container {
    display: flex;
	padding:5px;
    gap: 5px;
    align-items: center;
    flex-direction: row;
}


.feature-label {
    background: var(--primary-color);
    padding: 7px;
    border-radius: 50px;
    color: #fff;
    width: fit-content;
    font-size: 11px;
    text-align: center;
    white-space: nowrap;
    border: 1px solid black;
}

.feature-label[data-position="brandname"], .feature-label[data-position="modelname"] {
    background: #d9d9d9;
    color: #0011ff;
}

.feature-label[data-position="location"] {
    background: #fff;
    color: #0011ff;
}


.number {
    width: 80px;
}

.range {
    -webkit-appearance: none;
    appearance: none;
    width: 130px;
    height: 8px;
    background: #e7e7e7;
    border-radius: 5px;
    outline: none;
    cursor: var(--pointer-cursor);
    margin-right: 10px;
}

.range-dual {
    -webkit-appearance: none;
    appearance: none;
    width: 130px;
    height: 8px;
    background: #e7e7e7;
    border-radius: 5px;
    outline: none;
    cursor: var(--pointer-cursor);
    margin-right: 10px;
}

.modified-input {
    background: var(--primary-color) !important;
}

.range::-webkit-slider-thumb, .range-dual::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: var(--pointer-cursor);
}

.range::-moz-range-thumb, .range-dual::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: var(--pointer-cursor);
}

.range::-ms-thumb, .range-dual::-ms-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: var(--pointer-cursor);
}

.range:hover::-webkit-slider-thumb, .range-dual:hover::-webkit-slider-thumb {
    background: var(--primary-color);
}

.range:hover::-moz-range-thumb, .range-dual:hover::-moz-range-thumb {
    background: var(--primary-color);
}

.range:hover::-ms-thumb, .range-dual:hover::-ms-thumb {
    background: var(--primary-color);
}



#file-input {
    display: none;
}

.button-container {
}

.set {
	scroll-margin-top: 20px;
    position: relative;
    /* margin: 50px 0; */
    background-color: #cbcbcbeb;
    padding: 10px;
    padding-top: 50px;
    border-radius: 20px;
    margin-top: 50px;
    margin-bottom: 50px;
    display: block;
    box-shadow: black;
    grid-column: 1 / -1;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.3), inset 0 -4px 8px rgba(0, 0, 0, 0.2);
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}



.subset {
		scroll-margin-top: 20px;
    position: relative;
    margin: 10px;
    background-color: #a3a3a3e8;
    padding: 10px;
    border-radius: 15px;
    padding-top: 60px;
    display: block;
}

.scroll-focus {
    transition: border 0.3s ease, background-color 0.3s ease;
    border: 2px solid var(--primary-color);
    background-color: rgba(0, 123, 255, 0.1);
}



.empty-placeholder {
    display: none !important;
	   pointer-events: none;
}

/* switch to grabbing cursor for everything while dragging */
body.dragging,
body.dragging * {
  cursor: grabbing !important;
}

/* the little blue rectangle that follows the cursor */
.drag-helper-rect {
  width: 20px;
  height: 20px;
  background-color: var(--primary-color);
  border-radius: 10px;
  pointer-events: none;  /* don’t block your drop targets */
  z-index: 9999;
  box-shadow: 0px 6px 0px 1px;
  background: linear-gradient(270deg, var(--primary-color), var(--secondary-color), var(--primary-color));
  background-size: 600% 600%;
  animation: swirlGradient 5s ease infinite;
}

/* optionally hide the placeholder entirely */
.sortable-placeholder {
  height: 0 !important;
  border: none !important;
  background: none !important;
}

/* Only during a drag, outline hovered container */
/* 1) Always outline subset when hovering it */
body.dragging .subset:hover {
  outline: 10px solid blue;
  outline-offset: -10px;
}

/* 2) Outline set only if it DOESN’T contain a hovered subset */
body.dragging .set:hover:not(:has(.subset:hover)) {
  outline: 10px solid blue;
  outline-offset: -10px;
}

/* 3) Outline selected only if it DOESN’T contain a hovered set */
body.dragging .selected:hover:not(:has(.set:hover)) {
  outline: 10px solid blue;
  outline-offset: -10px;
}


.drag-helper,
.multi-drag-helper {
    display: none !important;
}

.modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: var(--primary-color);
    padding-top: 60px;
    background-image: radial-gradient(circle, #000000 1px, var(--tertiary-color) 1px);
    background-size: 20px 20px;
}


@media (min-width: 1000px) {
.modal-content {
    background-color: #fff;
    margin: 1% auto;
    padding: 60px;
    border: 1px solid #888;
    width: 1400px;
    height: min-content;
    max-width: max-content;
    /* min-width: 60vw; */
    margin-bottom: 100px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
}

@media (max-width: 1000px) {
.modal-content {
  background-color: #fff;
  margin: 1% auto;
  padding: 20px;
  border: 1px solid #888;
  /* width: 1400px; */
  height: min-content;
  max-width: max-content;
  /* min-width: 60vw; */
  margin-bottom: 100px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: var(--pointer-cursor);
}


#toggle-filter-btn-tab, #toggle-settings-btn-tab {
	display: none;
}





/* RESSOURCES */

#editor {
    background-color: #ebebeb;
    height: 60vh;
    padding: 40px;
    font-size: 18px;
    max-width: 1400px;
    font-family: calibri;
}
	
/* sichtbare Auswahl **nur** im Quill-Editor erzwingen */
.ql-editor,
.ql-editor * {
  user-select: text !important;
  -webkit-user-select: text !important;
}

/* Auswahl-Hintergrund im Editor */
.ql-editor ::selection,
.ql-editor *::selection {
  background: rgba(100, 150, 255, 0.3) !important;
}
.ql-editor ::-moz-selection,
.ql-editor *::-moz-selection {
  background: rgba(100, 150, 255, 0.3) !important;
}

.ql-code-block-container {
    background-color: #ebebeb;
    padding: 20px;
    border-radius: 20px;
    font-style: italic;
}

input#title {
    width: 50%;
}



.ressources-posts {
    background-image: radial-gradient(circle, #000000 1px, var(--tertiary-color) 1px);
    background-size: 20px 20px;
    /* padding: 40px; */
    margin: 0px;
    padding-left: 20px;
    height: 100%;
    float: right;
    border-left: 2px solid black;
    width: calc(85% - 50px);
    border-radius: 20px;
}

.ressources-posts > h1 {
    background-color: var(--primary-color);
    padding: 40px;
    border-radius: 50px;
    font-size: 30px;
    color: var(--tertiary-color);
    background: linear-gradient(270deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 600% 600%;
    animation: swirlGradient 15s ease infinite;
    word-break: break-word;
}

.ressources-post > h1 {
	
}

.ressources-posts img {
    display: block;
    max-width: 80%;
    height: auto;
    border-radius: 20px;
    margin: 1em auto;
    border: 2px solid black;
}

p.ressources-p {
    width: 80%;
    padding: 5px;
}

article.ressources-post {
    border-radius: 20px;
    border: 2px solid black;
    padding: 60px;
    box-shadow: 0px 6px 0px 1px;
    background-color: #fff;
    max-width: 1200px;
    margin-top: 30px;
    font-size: 20px;
    font-family: Helvetica;
}

.ressources-admin-controls {
    font-size: 15px;
    display: flex;
    gap: 5px;
    margin-top: 20px;
    margin-bottom: 150px;
    background-color: #000;
    color: #fff;
    padding: 20px;
    border-radius: 10px;
}

.ressources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}


.category-block {
  margin-bottom: 2rem;
}



.ressource-card {
    border: 2px solid #000;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    transition: box-shadow .2s ease;
    box-shadow: 0px 6px 0px 1px var(--primary-color);
}
.ressource-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.card-thumb-wrapper {
    position: relative;
    width: 100%;
    padding-top: 66%;
    /* padding-bottom: 10px; */
    background: #f0f0f0;
    /* overflow: hidden; */
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-content: center;
}

.placeholder-box {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e3e3e3 25%, #d0d0d0 100%);
}
.card-thumb-wrapper img {
    position: absolute;
    top: 0;
    /* left: 0; */
    margin: 0 auto;
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 100%;
    /* outline: 2px solid blue; */
    border-top: 2px solid var(--primary-color);
    border-bottom: none;
    /* margin-top: 5px; */
    border-radius: 20px 20px 0px 0;
}
.card-body {
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-title {
    margin: 0 0 .35rem;
    font-size: 1.8rem;
    line-height: 1.5;
}
.card-excerpt {
    flex: 1;
    margin: 0 0 .5rem;
    font-size: .9rem;
    color: #444;
    display: none;
}
.card-meta {
  font-size: .65rem;
  color: #777;
  margin-bottom: .5rem;
}
.badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .55rem;
  font-weight: 600;
  vertical-align: middle;
  margin-right: 4px;
}
.badge-scheduled {
  background: orange;
  color: #000;
}
.badge-draft {
  background: red;
  color: #fff;
}
.ressources-admin-controls {
  margin-top: .5rem;
  font-size: .65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.ressources-admin-controls form {
  display: inline;
  margin: 0;
}


.customer-mode {
    display:flex; gap:.75rem; align-items:center; margin:.25rem 0 1rem;
  }
  .customer-mode .radio-pill {
    display:inline-flex; align-items:center; gap:.4rem;
    border:1px solid #ddd; border-radius:999px; padding:.4rem .8rem;
     user-select:none;
  }
  /* Styled search field (as requested earlier) */
  #customer-search {
    padding: 15px;
    font-size: 20px;
    width: 80%;
    margin-right: 20px;
    padding: 20px 0 20px 20px;
    border-radius: 100px;
    color: var(--primary-color);
    background-color: var(--tertiary-color);
    font-weight: normal;
    border: 2px solid #000;
    text-transform: uppercase;
  }


.projektplanung-container, .team-container, .time-container, .customer-container, .company-container, .leistungen-container, .dashboard-container {
    padding: 20px;
    max-width: max-content;
	min-width: 70vw;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

/* Gleiches Container/Fieldset/Buttons-Styling für AB & LS */
.modal-content.offer-modal-content{
  border: 2px solid #000;
  border-radius: 20px;
  box-shadow: 0px 6px 0px 1px var(--primary-color);
}

.offer-grid { display: grid; gap: 14px; }

#offer-modal fieldset,
#invoice-modal fieldset,
#confirmation-modal fieldset,
#delivery-modal fieldset {
  border: 2px solid var(--primary-color);
  border-radius: 15px;
  padding: 10px 15px;
  margin-bottom: 8px;
  background: #ededed;
}

legend { font-weight: 700; color: var(--primary-color); }



.offer-customer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
}
@media (max-width: 900px) {
.offer-customer { grid-template-columns: 1fr; }
}





/* Position Text Textarea */
.doc-table .pos-text, .offer-table .pos-text {
  width: 100%;
  min-height: 60px;
  resize: vertical;
  font-family: inherit;
  font-size: inherit;
  padding: 6px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  box-sizing: border-box;
}

.doc-table .pos-text:focus, .offer-table .pos-text:focus {
  outline: 2px solid var(--primary-color);
  border-color: var(--primary-color);
}

/* Aktionenspalte */
.doc-table td.pos-actions, .offer-table td.pos-actions {
  display: flex; gap: 6px; justify-content: flex-end; align-items: center;
}
.doc-table td:last-child, .offer-table td:last-child { text-align: right; }


/* =========================
   DRAG & DROP – gemeinsame Klassen
   ========================= */
.doc-drag, .offer-drag-handle { cursor: grab; opacity:.8; user-select:none; display:inline-flex; padding:0 4px; }
.doc-drag:active, .offer-drag-handle:active { cursor: grabbing; opacity:1; }

.doc-row-dragging, #offer_rows tr.offer-row-dragging { opacity: .6; }
.doc-sort-placeholder td { background:#f3f4f6; border:2px dashed #e5e7eb; }
.offer-sort-placeholder { display: table-row; }
.offer-sort-placeholder td { background:#fffbe6; border-bottom:2px dashed var(--primary-color); height: 38px; }

/* Erste Spalte (Handle + Index) */
.doc-table td.pos, .offer-table td.pos {
 
}

/* =========================
   HEADER-ZEILEN (Gruppen)
   ========================= */
.doc-row-header td, .offer-row-header { background: #fafafa; }
.doc-row-header .pos-index { color:#6b7280; }
.offer-row-header .offer-header-input, .doc-row-header .doc-header-input {
  width: 100%; border: none; background: transparent; font-weight: 700; font-size: 0.98rem; padding: 6px 4px;
}
.offer-row-header .offer-header-input:focus,
.doc-row-header .doc-header-input:focus {
  outline: 2px solid rgba(0,0,0,0.1); border-radius: 6px;
}

/* =========================
   UNIT-COMBO (gemeinsam)
   ========================= */
.unit-combo { display:flex; gap:6px; align-items:center; }
.unit-combo .pos-unit-select { min-width: 110px; }
.unit-combo .pos-unit { max-width: 120px; }

/* =========================
   SUMMARIES (gemeinsam)
   ========================= */
.offer-summary, .doc-summary {
  margin-top: 10px;
  border: 1px solid #e5e7eb;
  border-radius: .5rem;
  background: #fafafa;
  padding: .75rem 1rem;
  display: grid;
  gap: 6px;
  max-width: 360px;
  margin-left: auto;
}
.offer-summary > div, .doc-summary > div {
  display:flex; justify-content:space-between; font-weight:600;
}
.offer-summary .offer-total, .doc-summary .doc-total {
  border-top: 1px dashed #ddd; padding-top: 6px; font-size: 1.05rem; font-weight: 700;
}

/* =========================
   LISTEN auf Projektkarte (Offers & Invoices)
   ========================= */


/* Neues, gemeinsames Look & Feel für Listen */
.doc-table.is-list {
  margin-top: .5rem;
}
.doc-table.is-list thead th { padding: 8px 10px; }
.doc-table.is-list td { padding: 8px 10px; font-size: .95rem; }
.doc-table.is-list td.ta-r { text-align: right; }
.offers-list .ta-r button, #invoices-list .ta-r button { margin-left: .25rem; }

/* Abwärtskompatibilität für bestehende .offers-table */
.offers-table { /* mapped to .doc-table look */
  width:100%; border-collapse:collapse; margin-top:.5rem;
  background:#fafafa; border:1px solid #e5e7eb; border-radius:12px; overflow:hidden;
}
.offers-table thead th {
  background:#f3f4f6; text-align:left; padding:8px 10px; font-weight:700; font-size:.9rem; border-bottom:1px solid #e5e7eb; color:#000;
}
.offers-table td { padding:8px 10px; border-bottom:1px solid #eee; font-size:.95rem; }
.offers-table td.ta-r { text-align:right; }
.offers-table button {
  padding: 6px 10px; border-radius: 10px; background: var(--primary-color); color:#fff; border:none;  margin-left:6px;
}
.offers-table button:hover { background: var(--secondary-color); color:#000; }




/* RESSOURCES END */

@media (max-width: 1000px) {
	

	
	.ressources-grid {
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
}
	
	.list-view .featurelabel-container {
    flex-wrap: nowrap;
}

	.grid-view .featurelabel-container {
    flex-wrap: wrap;
}

	.open .featurelabel-container {
    flex-wrap: wrap;
}
	
	.open > .selected-item-modal-content {
    padding: 10px;
    gap: 20px;
    border-radius: 10px;
	margin: 0px;
}

.open .tool-details, .open .manual-details, .open .inspection-details, .open .reservation-details {
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
}

.manual-warning {
display:none;
}
	
    #logo {
        /* padding-left: 20px; */
        /* padding-right: 20px; */
        /* margin-bottom: 20px; */
        /* margin-top: 20px; */
        position: relative;
        margin: 0 auto;
        text-align: center;
        left: 0px;
        top: 0px;
        /* font-size: 10px; */
        padding-top: 20px;
        padding-bottom: 20px;
        padding-left: 20px;
        padding-right: 20px;
    }

    #logo h1 {
        font-size: 30px;
    }

    #logo h2 {
        font-size: 12px;
    }

    input, select{
      width: 60vw;
      padding: 15px;
      border-radius: 50px;
  }
	


    #menu-top-right {
        position: relative;
        right: 0px;
        top: 0px;
    }

    #user-dropdown button {
        font-size: 0.9em;
    }

    div#general-information {
        font-size: 8px;
    }



#tab-buttons {
    display: none;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
	border-bottom: 2px solid black;
    padding-bottom: 20px;
}

#tab-buttons button, #tab-buttons a {
    font-size: 12px;
}


  /* Hide the calendar tab button on small screens */
  .tab-button[data-tab="planning"] {
    display: none !important;
  }

#toggle-filter-btn-tab, #toggle-settings-btn-tab {
	display: block;
}

#sidebar-container {
display:none;
}

	#toolboxes-container, #planning-container, #statistics-container, .ressources-posts {
			min-width: calc(100% - 0px);
			border-left: none;
	}
	
	.openinghours-day {
    flex-wrap: wrap;
}

#settings, #filter-menu {
    width: auto;
	padding: 40px;
}

    button#toggle-settings-btn {
        position: relative;
    }
	


    button.newsession-btn {
    }

    #search {
        font-size: 13px;
        width: 70%;
        border-radius: 50px;
    }
	
.suggestion-text {
    /* margin-left: 90px; */
    /* vertical-align: middle; */
}

	#suggestions {
        width: inherit;
        margin-left: 0px;
        /* padding: 40px; */
    }

    #suggestions div {
        padding: 5px;
    }


.selected-edit-btn {
display: none;
}

    .selected-name-input, .set-name-input {
        width: fit-content;
        max-width: 250px;
    }
	

    .selected {
        gap: 9px;
        padding-top: 80px;
        padding-left: 10px;
        padding-right: 10px;
    }
	
	



    .selected-item.grid-view {
        width: inherit;
        min-height: 140px;
    }

    img.svg-thumbnail {
        border-radius: 0px;
    }


    .qr-code {
        display: none;
    }


    .fast-access {
        display: none !important;
    }



    .set {
        border: 0px;
        padding: 5px;
        padding-top: 50px;
        border-radius: 5px;
        margin: 0px;
        display: grid;
    }

    ::selection {
        background: transparent;
        color: inherit;
    }

    ::-moz-selection {
        background: transparent;
        color: inherit;
    }

    ::-webkit-selection {
        background: transparent;
        color: inherit;
    }


    h3 {
        padding: 5px;
    }

    

   

    span.unit {
        font-size: 14px;
        float: right;
    }

    .feature {
        width: 100%;
        position: relative;
        display: flex;
        gap: 20px;
        flex-direction: column;
        flex-wrap: wrap;
    }

    .feature.two {
        display: flex;
        flex-direction: column-reverse;
    }
	

	
    #shortinfo {
        font-size: 15px;
        text-align: right;
    }

    .infobox {
        font-size: 20px;
        padding: 10px;
        width: auto;
        margin: 20px;
        margin-top: 10px;
        max-height: none;
        max-height: 1000px;
    }
	
	.infobox.two {
    /* text-align: right; */
	}

     div#guidelines {
        text-align: left;
        margin: 0 auto;
        padding: 60px;
        font-size: 17px;
        word-wrap: break-word;
    }

    .button-container {
        display: none !important;
    }

    /* #categoryCountChart, #categoryCostChart, #brandCountChart { */
        /* width: 250px !important; */
        /* height: 250px !important; */
        /* margin: 0 auto; */
    /* } */


    .history-thumbnail {
        width: 20px;
        height: 20px;
        display: block;
        object-fit: contain;
        flex-shrink: 0;
    }

    .history-item-name {
        min-width: 0px;
    }

	
.ressources-posts > h2 {
    font-size: 20px;
}
	
.ressources-posts {
	padding: 0px;
    width: 100%;
	border-left: none;
}

    article.ressources-post {
        padding: 18px;
        margin-top: 50px;
		font-size: 18px;
    }
	
#footer {
    width: auto;
}

  div#toolboxes {
    display: grid;
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 20px;
  }
  .container-anzeige-controls button[data-cols="2"],
  .container-anzeige-controls button[data-cols="3"] {
    display: none !important;
  }
  
    .selected {
    grid-template-columns: 1fr !important;
    gap: 9px;
    padding: 80px 10px 40px;
    box-sizing: border-box;       /* include padding/border in width */
  }
  /* .selected > * { */
    /* min-width: 0;                 /* let cards shrink */ */
    /* width: 100%; */
    /* max-width: 100%; */
  /* } */

	
}

@media (max-width: 1000px) {
	
.selected-name-input, .set-name-input, .subset-name-input {
	min-width: fit-content;
	max-width: 250px;
	min-width: 250px;
}
	
	#sidebar-container {
		display: none;
		
	}
	
	div#toolboxes {
    display: grid;
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 9px;
}

	#toolboxes-container, #planning-container, #statistics-container, .ressources-posts {
			max-width: calc(100% - 0px);
			width: fit-content;
		 border-left: none;
	}

}


@media (min-width: 1000px) and (max-width: 1600px) {
	
		    .selected-name-input, .set-name-input {
        width: fit-content;
        max-width: 350px;
		min-width: 350px;
    }
	
	#sidebar-container {
		width: 15%;
		max-width: 250px;
	}

	/* #toolboxes-container, #planning-container, #statistics-container, .ressources-posts { */
			/* width: calc(85% - 50px); */
	/* } */

  div#toolboxes {
    grid-template-columns: 1fr;
  }
}



/* Breadcrumb Navigation */
.breadcrumb {
    padding: 15px 20px;
    margin-bottom: 20px;
    /* border: 2px solid black; */
    /* border-radius: 5px; */
    border-bottom: 2px solid black;
    font-size: 14px;
    font-weight: bold;
    margin-top: 60px;
}

@media (max-width: 600px) {
	.breadcrumb {
	margin-top: 0px;
	}
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #666;
    font-weight: normal;
}

.breadcrumb-current {
    color: #333;
    font-weight: bold;
}

/* Selected Item List View */
.selected-item.list-view {
    display: inline-flex;
    flex-direction: column;
    width: 100%;
    min-height: 70px;
    max-height: 70px;
    margin: 0px;
    margin-top: 10px;
    border-radius: 5px;
    box-shadow: 0px 6px 0px 1px;
    justify-content: center; /* Default to center for closed state */
    overflow-x: auto;
    overflow-y: hidden; /* Prevent y-scrolling when not open */
    -ms-overflow-style: none;
    scrollbar-width: none;
    position: relative; /* Time Summary Styling */
}

.termin-time-summary {
  margin: 10px 0;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 4px;
  border: 1px solid #e9ecef;
}

.time-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 5px 0;
  padding: 3px 0;
}

.time-summary-item label {
  font-weight: 500;
  color: #495057;
  margin: 0;
}

.time-summary-item span {
  font-weight: 600;
  color: #28a745;
  background: white;
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid #dee2e6;
  min-width: 60px;
  text-align: center;
}

.arbeitszeit-sum {
  color: #007bff !important;
}

.pausenzeit-sum {
  color: #ffc107 !important;
}

.fahrtzeit-sum {
  color: #17a2b8 !important;
}

/* Reset scroll position by forcing content to top when closed */
.selected-item.list-view:not(.open) {
    align-items: flex-start;
    justify-content: center;
}

/* Force content to be clipped and positioned at top when closed */
.selected-item.list-view:not(.open) > * {
    transform: translateY(0);
    position: relative;
    top: 0;
}

/* When the list-view item is open/expanded, make it a full-page modal */
.selected-item.list-view.open {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-height: none;
    margin: 0;
    border-radius: 0;
    z-index: 9999;
    background-color: var(--primary-color);
    overflow-y: auto;
    justify-content: flex-start;
    box-shadow: none;
}



#image-enlargement-modal #enlarged-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: zoom-out;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}




/* Active items - use outline instead of box-shadow to avoid conflicts */
.selected-item.active {
    border-radius: 10px;
    outline: 10px solid var(--primary-color);
    outline-offset: -10px; /* Inset the outline */
}


.selected-item[data-state="reserved"] {
    box-shadow: 0px 6px 0px 1px rgba(0, 0, 0, 0.2), inset 0px 100px 0px 0px #d1e72b;
}

.selected-item[data-state="reserved_accepted"] {
    box-shadow: 0px 6px 0px 1px rgb(0 0 0), inset 0px 100px 0px 0px #d1e72b;
}

.selected-item[data-state="borrowed"] {
    box-shadow: 0px 6px 0px 1px rgb(0 0 0), inset 0px 100px 0px 0px orange;
}


.selected-item.list-view[data-state="partially_borrowed"] {
    box-shadow: 0px 6px 0px 1px rgba(0, 0, 0, 0.2), inset 0px 20px 0px 2px yellow;
}

.selected-item.partially-borrowed {
    box-shadow: 0px 6px 0px 1px rgba(0, 0, 0, 0.2), inset 0px 100px 0px 0px #ffcc00;
}

.selected-item.rented-out {
    /* background-color: #b5b5b5 !important; */
    box-shadow: 0px 6px 0px 1px rgba(0, 0, 0, 0.2), inset 0px 100px 0px 0px red;
}

.selected-item.reserved {
    /* background-color: #b5b5b5 !important; */
    /* box-shadow: inset 0px 100px 0px 1px #d1e72b; */
	box-shadow: 0px 6px 0px 1px rgba(0, 0, 0, 0.2), inset 0px 100px 0px 0px #d1e72b;
}




/* Animated gradient glow effect keyframes */
@keyframes swirlGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.work-day { background-color: #9b9b9b; color: #fff; font-weight: bold; }

.noduty { opacity: 0.1; }

.empty-day {
    background-color: #ffffff;
    opacity: 0.5;
    color: #ccc;
}

/* Time tracking table row styles */
.vacation-day {
  background-color: blue !important; /* Light green background for paid vacation */
  color: #fff;
}


.unpaid-vacation-day {
  background-color: #fff3cd !important; /* Light yellow background for unpaid vacation */
    color: #000;
}

.sick-day {
  background-color: #c75465 !important; /* Light red background for sick leave */
    color: #fff;
}

.canceled-day {
  background-color: #e2e3e5 !important; /* Light gray background for canceled entries */
  text-decoration: line-through;
  opacity: 0.7;
}

/* Date input formatting for DD.MM.YYYY display */
input[type="date"] {
  /* Set German locale for better date formatting */
  font-family: var(--default-font-family);
}

/* Ensure date inputs display in German format when possible */
input[type="date"]:lang(de),
input[type="date"][lang="de-DE"] {
  /* Browser will attempt to use German locale formatting */
  direction: ltr;
}






