/* heyde.schule - Modular CSS: 30_tables.css */

/* --- Tabellen-Feinschliff --- */
.table {
    display: table;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-row {
    display: table-row;
    background: transparent;
    transition: background-color 0.2s ease;
}

.table-row:nth-child(odd) {
    background-color: var(--table-row-odd);
}

.table-row:hover {
    background-color: var(--table-row-hover);
}

.table-cell {
    display: table-cell;
    vertical-align: middle;
    padding: 8px 12px;
    border: 1px solid var(--glass-border);
    color: var(--text-2);
}

/* Aktions-Spalte flexibel */
.cell-actions {
    white-space: nowrap;
    text-align: right;
}

.action-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--action-icon-radius);
    background: var(--action-icon-bg);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-icon:hover {
    background: var(--accent-1);
    border-color: var(--accent-1);
    transform: scale(1.1);
}

.height100px {
    height:100px !important;
}

.content-plaintext {
    background-color: rgba(0,255,0,0.05);
    box-shadow: 0px 0px 25px 8px rgba(0,255,0,0.05);
}

.content-shielded {
    background-color: rgba(255,128,0,0.15);
    box-shadow: 0px 0px 25px 8px rgba(255,128,0,0.15);
}

.content-hint{
    font-size: 0.75rem;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    color: var(--accent-4);
}

body{
    background-color: var(--background-1) !important;
    font-family: var(--font);
}

.searchable-container {
  position: relative;
  display: inline-flex;
  width: auto;
  max-width: 100%;
}

.border-dotted{
    border: dotted 1px var(--border-1);
}

.searchable-input {
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  min-width: 120px;
  margin-bottom: 8px;
  background: var(--glass-bg) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--accent-1) !important;
  border-radius: 4px;
  padding: 6px 12px !important;
  z-index: 10001;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  display: none;
  opacity: 1 !important;
  box-sizing: border-box;
}

.button-fullwidth{
    text-align: center;
    min-width: calc(100% - 8px);
    display: inline-block;
    border-width: 1px;
    border-color: var(--accent-2);
    border-style: solid;
    padding: 8px 20px;
    border-radius: 5px;
    background-color: var(--border-2);
    cursor: pointer;
    transition: 0.5s;
    margin: 4px;
    color: var(--accent-2) !important;
    transition: 0.5s;
}

.button-fullwidth:hover{
    background-color: var(--accent-2);
    border-color: var(--border-2);
    font-weight:bold;
    transition: 1s;
    color: var(--link-1) !important;
}

/* updformrow > form removed legacy styles */

.numblock-intro {
    font-size: 1.5rem;
}
.numblock-outer {
    margin: 5px;
}
select.searchable {
  min-width: 200px; 
}

.pointproposal-text {
    position: relative;
    width: 100%;
    min-height: 5em;
    display: block;
    resize: vertical;
}

.logo-container{
    display: inline-block;
    height: 70px;
    width: 75px;
    background: var(--logo);
    background-size: cover;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.italic{
    font-style:italic;
}

.encryption-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: rgba(238, 77, 46,0.5); /* Blau, anpassbar */
    color: white;
    border: solid 1px rgba(200,200,200,1);
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

/* Hover- und Active-Effekt */
.encryption-button:hover {
    background-color: rgba(238, 77, 46,0.8);
}

.encryption-button:active {
    transform: scale(0.9);
}

/* Nur auf Mobilgeräten anzeigen */
@media (min-width: 768px) {
    .encryption-button {
        display: none;
    }
}


.inline-checkbox{
    vertical-align:middle;
    display: inline-block;
    margin: 0px 5px;
}

.grayedout{
    opacity: 0.7;
    background-color: rgba(100,100,100,0.5);
}

.border-editable-top {
    border-top: outset 2px rgb(255 212 114);
    border-right: outset 2px rgb(255 212 114);
    border-left: outset 2px rgb(255 212 114);
}

.border-editable-bottom {
    border-bottom: outset 2px rgb(255 212 114);
    border-right: outset 2px rgb(255 212 114);
    border-left: outset 2px rgb(255 212 114);
}

.childborder {
    border-style: inset;
    border-width: 1px;
    border-color: rgba(100, 100, 100, 0.15);
    border-radius: 5px;
    box-shadow: inset 0 0 0.4em rgba(255,255,255,0.5);
    background-color: rgba(255, 255, 255, 0.15);
    margin: 5px 0px;
    padding: 10px;
    overflow: hidden;
    scroll-behavior: smooth;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: thin;
    scrollbar-color: #777 transparent;
}

.childborder.hidden {
    display: none !important;
}

.childborder::-webkit-scrollbar {
    height: 6px;                    /* horizontale Höhe */
}

.childborder::-webkit-scrollbar-track {
    background: transparent;
}

.childborder::-webkit-scrollbar-thumb {
    background: #777;
    border-radius: 4px;
}

.unitchildborder {
    border-style: inset;
    border-width: 2px;
    border-color: rgba(100, 100, 100, 0.5);
    border-radius: 2px;
    background-color: rgba(8, 29, 34, 0.05);
    margin: 5px 0px;
    padding: 10px;
}

.unitsolution {
    border-style: inset;
    border-width: 1px;
    border-radius: 2px;
    background-color: rgba(8, 29, 34, 0.05);
    margin: 5px 0px;
    padding: 2px;
}

.logo-container > img {
    height:100%;
    width: auto;
}

.site-title{
    display: inline-block;
    margin: 0px 20px;
    vertical-align:middle;
}

.site-title > a,.site-title > a:hover,.site-title > a:active,.site-title > a:visited {
    color: var(--text-3);
}

/* ===============================
   ERROR: ULTRA-ROBUSTE RAND-GLOWS
   =============================== */

body.animationError::before,
body.animationError::after,
body.animationError .edgeGlowLeft,
body.animationError .edgeGlowRight {
    content: "";
    position: fixed;
    z-index: 999999;
    pointer-events: none;
    opacity: 0;
    animation: glowError 1s ease-out forwards;
}

/* TOP */
body.animationError::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: radial-gradient(
        farthest-side at 50% 0%,
        rgba(255, 0, 0, 0.6),
        rgba(255, 0, 0, 0) 70%
    );
}

/* BOTTOM */
body.animationError::after {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: radial-gradient(
        farthest-side at 50% 100%,
        rgba(255, 0, 0, 0.6),
        rgba(255, 0, 0, 0) 70%
    );
}

/* LEFT */
body.animationError .edgeGlowLeft {
    top: 0;
    left: 0;
    width: 100px;
    height: 100%;
    background: radial-gradient(
        farthest-side at 0% 50%,
        rgba(255, 0, 0, 0.6),
        rgba(255, 0, 0, 0) 70%
    );
    position: fixed;
}

/* RIGHT */
body.animationError .edgeGlowRight {
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: radial-gradient(
        farthest-side at 100% 50%,
        rgba(255, 0, 0, 0.6),
        rgba(255, 0, 0, 0) 70%
    );
    position: fixed;
}

@keyframes glowError {
    0%   { opacity: 0; transform: scale(1.05); filter: blur(12px); }
    25%  { opacity: 1; transform: scale(1.0);  filter: blur(6px); }
    65%  { opacity: 1; transform: scale(1.0);  filter: blur(3px); }
    100% { opacity: 0; transform: scale(1.1);  filter: blur(12px); }
}



/* ===============================
   SUCCESS: ULTRA-ROBUSTE RAND-GLOWS
   =============================== */

body.animationSuccess::before,
body.animationSuccess::after,
body.animationSuccess .edgeGlowLeft,
body.animationSuccess .edgeGlowRight {
    content: "";
    position: fixed;
    z-index: 999999;
    pointer-events: none;
    opacity: 0;
    animation: glowSuccess 1s ease-out forwards;
}

/* TOP */
body.animationSuccess::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: radial-gradient(
        farthest-side at 50% 0%,
        rgba(0, 255, 0, 0.6),
        rgba(0, 255, 0, 0) 70%
    );
}

/* BOTTOM */
body.animationSuccess::after {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: radial-gradient(
        farthest-side at 50% 100%,
        rgba(0, 255, 0, 0.6),
        rgba(0, 255, 0, 0) 70%
    );
}

/* LEFT */
body.animationSuccess .edgeGlowLeft {
    top: 0;
    left: 0;
    width: 100px;
    height: 100%;
    background: radial-gradient(
        farthest-side at 0% 50%,
        rgba(0, 255, 0, 0.6),
        rgba(0, 255, 0, 0) 70%
    );
    position: fixed;
}

/* RIGHT */
body.animationSuccess .edgeGlowRight {
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: radial-gradient(
        farthest-side at 100% 50%,
        rgba(0, 255, 0, 0.6),
        rgba(0, 255, 0, 0) 70%
    );
    position: fixed;
}

@keyframes glowSuccess {
    0%   { opacity: 0; transform: scale(1.05); filter: blur(12px); }
    25%  { opacity: 1; transform: scale(1.0);  filter: blur(6px); }
    65%  { opacity: 1; transform: scale(1.0);  filter: blur(3px); }
    100% { opacity: 0; transform: scale(1.1);  filter: blur(12px); }
}


.uppercase{
    text-transform:uppercase;
}

.textshadow{
    text-shadow: 1px 1px rgba(0, 0, 0, 0.2);
}

.none-option{
    color: red;
}

.sub-element-divider{
    display: inline-block;
    margin: 5px 0px;
    float: left;
}

.content-container {
    min-height: calc(80vh - 240px);
    padding: 25px 50px;
}

.table-cell{
    display: table-cell !important;
    vertical-align: middle;
    padding:2px 4px;
}

.qr-printbox > div {
    display: inline-block;
    margin: 20px;
}

.qr-printbox > div > div {
    text-align: center;
}
.centered{
    text-align:center;
    justify-content: center;
    align-content: center;
    align-items: center;
    justify-items: center;
    vertical-align: middle;
}

.crosshover {
  position: relative; /* Macht das Element zum Positionierungs-Referenzpunkt */
}

.crosshover::after {
  content: '✖'; /* Unicode für das X-Symbol */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 124px; /* Größe des Symbols */
  color: rgba(1000, 0, 0, 0.5); /* Halbtransparentes Schwarz */
  opacity: 0; /* Unsichtbar, bis gehovered wird */
  transition: opacity 0.3s ease;
  pointer-events: none; /* Stellt sicher, dass das Symbol nicht klickbar ist */
}

.crosshover:hover::after {
  opacity: 1 !important; /* Symbol erscheint beim Hover */
}


.table-row{
    display: table-row !important;
    background: rgb(255,255,255);
    background: -moz-linear-gradient(0deg, rgba(255,255,255,0.05) 0%, rgba(100,100,100,0.2) 100%);
    background: -webkit-linear-gradient(0deg, rgba(255,255,255,0.05) 0%, rgba(100,100,100,0.2) 100%);
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.05) 20%, rgba(100,100,100,0.1) 80%, rgba(100,100,100,0.1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffff",endColorstr="#646464",GradientType=1);
}

.table{
    /*border-spacing: 2px;*/
}

.toggle-password{
    user-select: none;
    margin-left: -50px;
    padding-right: 10px;
    font-size: 18px;
}
