
/* --- VARIABLEN ---- */

:root {
    --primary-color: #064663;    /* dunkle Blau aus deinem Header */
    --accent-color: #cc5050;     /* roter Hover-Ton */
    --text-color: #064663;
    --nav-text-color: #ffffff;   /* Weiße Schrift für die Navigation */
    --bg-light: #f0f8f8;         /* Dein ursprünglicher heller Hintergrund */
    --transition: all 0.2s ease;
}

/* --- HTML --- */
* {
    box-sizing: border-box;
}

html, body {
	margin: 0;
    padding: 0;
    height: 100%;
    width: 100vw;
    overflow: hidden;
    background-color: var(--bg-light);
}

body {
    font-family: Arial, sans-serif;
	color: var(--text-color);

    display: flex;
	flex-direction: column;
}

main {
    padding-top: 40px;
    position: relative;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* --- HINTERGRUND ---- */

.background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* --- HEADER & NAVIGATION --- */


header {
    background-color: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    position: fixed;
    top: 0;
    width: 100%;
    height: 36px; /* Height of the header */
    z-index: 100;
}

nav {
    display: flex;
	gap: 2px;
}

nav a {
    color: var(--nav-text-color);
    padding: 6px;
    text-decoration: none;
    font-weight: normal;
}

nav a:hover {
    color: var(--text-color);
    background-color: #9cd1f1;
    border-radius: 4px;
}

nav a.active {
    color: var(--text-color);
    background-color: white;
    border-radius: 4px;
}

header .date_time a {
    color: var(--nav-text-color);
    text-decoration: none;
    margin-right: 10px;
}

/* --- LAYOUT BEREICHE --- */

.top_left, .top_right, .bottom_left, .bottom_right {
    position: absolute;
    z-index: 10;
    background: transparent;
    width: auto;
    height: auto;
}

.top_left {
    top: 40px;
    left: 8px;
}

.top_right {
    top: 40px;
    right: 8px;
	text-align: right; 
}

.bottom_left {
    bottom: 20px;
    left: 8px;
}

.bottom_right {
    bottom: 20px;
    right: 8px;
	
    height: 36%;
    max-height: 500px;
	
    width: 36%;
    max-width: 500px;
	
    box-sizing: border-box;
    display: flex;
    justify-content: right;
    align-items: flex-end;
    text-align: right;
    padding: 4px;
    overflow: hidden;
}

.bottom_left,
.bottom_right {
    transition: bottom 0.3s ease;
}

.text_left {
    margin-left: 6px;
}

/* --- Icons --- */

.icon {
    width: 64px;
    height: 64px;
    border-radius: 4px;
    padding: 4px;
    background: transparent;
}

.icons_left {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.icons_left div {
    background: transparent;
    margin: 2px;
}

.icons_left .icon:hover {
    transform: scale(1.1);
}

.icons_right {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.icons_right div {
    background: transparent;
    margin: 2px;
}

.icons_right .icon:hover {
    transform: scale(1.1);
}

.text_right {
    text-align: right;
    margin-right: 6px;
}

/* Page */

a {
    color: #064663;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    color: #cc5050;
}

b {
    font-weight: bold;
    font-weight: 900;
    /*  */
}

hr {
    width: 100%;
    height: 1px;
    background-color: #005578;
    border: none;
}


/* --- Boxes --- */

#time_box {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translate(-50%, 0%);
    z-index: 120;

    width: 40%;
    max-width: 400px;
    padding: 4px;
    overflow: auto;

    text-align: center;
    background-color: #f0f8f8;
    border-radius: 6px;
    border: 2px solid #005081;
    box-shadow: 0 4px 15px rgba(0, 80, 129, 0.75);
}

#time_box a:hover {
    color: #005081;
}

#setup_box {
    background-color: #f0f8f8;
    border-radius: 6px;
    border: 2px solid #005081;
    overflow: auto;
    width: 60%;
    max-width: 600px;
    z-index: 120;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    padding: 4px;
    box-shadow: 0 4px 15px rgba(0, 80, 129, 0.75); 
}

.blur-effect {
    filter: blur(2px);
}

/* --- iFrame --- */


iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.i_frame {
    width: 100%;
    max-width: 500px;
    height: 100%;
    max-height: 500px;
    font-family: Courier, serif;
    background-color: #ffffff;
    overflow-y: scroll;
    padding: 10px;
}

.right_bottom_sticky {
    width: 100%;
    max-width: 500px;
    height: 100%;
    max-height: 500px;
    font-family: Courier, serif;
    color: #005081;
    text-align: right;
    background-color: #ffffff;
    padding: 10px;
    box-sizing: border-box;
    overflow: hidden;

    border-radius: 6px;
    border: 2px solid #005081;
}


/* --- Sticky-Bereich (ersetzt die früheren iFrame-Seiten) --- */

.right_bottom_sticky .i_frame {
    height: 100%;
    max-height: none;
    padding: 0;
    text-align: left;
    color: #064663;
}

.right_bottom_sticky .i_frame h3 {
    margin: 0.9em 0 0.4em;
}

.right_bottom_sticky .i_frame h3:first-child {
    margin-top: 0;
}


/* --- Passwort-Tresor --- */

#vault_short {
    text-decoration: none;
}

.vault-key {
    text-decoration: none;
    font-weight: normal;
}

#vault_box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 130;

    width: 70%;
    max-width: 720px;
    max-height: 80vh;
    overflow: auto;
    padding: 10px;

    background-color: #f0f8f8;
    border-radius: 6px;
    border: 2px solid #005081;
    box-shadow: 0 4px 15px rgba(0, 80, 129, 0.75);
}

#vault_box label {
    display: block;
    margin: 6px 0;
    font-size: 0.9em;
}

#vault_box input[type="text"],
#vault_box input[type="password"],
#vault_box input[type="search"],
#vault_box textarea {
    display: block;
    width: 100%;
    margin-top: 2px;
    padding: 6px 8px;
    border: 1px solid #9cd1f1;
    border-radius: 4px;
    background: #ffffff;
    color: var(--text-color);
    font: inherit;
}

#vault_box textarea {
    resize: vertical;
}

#vault_box button {
    padding: 6px 10px;
    border: 1px solid #005081;
    border-radius: 4px;
    background: #ffffff;
    color: var(--text-color);
    font: inherit;
    font-weight: bold;
    cursor: pointer;
}

#vault_box button:hover {
    background-color: #9cd1f1;
}

.v-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.v-msg {
    min-height: 1.2em;
    margin: 6px 0;
    font-size: 0.9em;
}

.v-err {
    color: var(--accent-color);
}

.v-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.v-entry {
    margin-top: 8px;
    padding: 8px;
    border: 1px solid #c5dbe6;
    border-radius: 4px;
    background: #ffffff;
    line-height: 1.5;
}

.v-pass {
    font-family: Courier, monospace;
}

.v-note {
    font-size: 0.9em;
    opacity: 0.8;
}

.v-acts {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin-top: 4px;
    font-size: 0.9em;
}

.v-url {
    font-weight: normal;
    font-size: 0.85em;
}
