/* ========================================
   aklump.de — Design System
   ======================================== */

/* --- Reset & Base --- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: white;
    overflow-x: hidden;
    overflow-y: scroll;
    font-family: "Century Gothic", CenturyGothic, Geneva, AppleGothic, sans-serif;
    color: black;
    font-size: 14px;
    line-height: 1.45;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: black;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    color: #454545;
}

/* --- Headings (compact, Legacy-style) --- */

h1, h2, h3, h4 {
    font-weight: bold;
    margin: 1em 0 0.5em;
    line-height: 1.2;
}
h1 { font-size: 1.4em; }
h2 { font-size: 1.2em; }
h3 { font-size: 1.05em; }
h4 { font-size: 0.95em; }

/* --- Block defaults --- */

p { margin: 0.7em 0; }
ul, ol { margin: 0.7em 0; padding-left: 1.4em; }
li { margin-bottom: 0.3em; }
hr { border: 0; border-top: 1px solid #ccc; margin: 1em 0; }

/* --- Inputs (Legacy look: underline only) --- */

input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    border-bottom: 1px solid #aaa;
    background: #f6f6f6;
    padding: 1px 2px;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-bottom-color: #252525;
}

button:not(.navbutton):not(.subbutton),
input[type="submit"] {
    font-family: inherit;
    font-size: inherit;
    padding: 1px 8px;
    cursor: pointer;
    background: #f0f0f0;
    border: 1px solid #bbb;
}
button:not(.navbutton):not(.subbutton):hover,
input[type="submit"]:hover {
    background: #e6e6e6;
}

/* --- Tables (Legacy-style: dense) --- */

table {
    border-collapse: collapse;
}
table td, table th {
    padding: 2px 8px 2px 0;
    text-align: left;
    vertical-align: top;
}

/* --- Header --- */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background-color: #252525;
    color: white;
    z-index: 10;
}

header a {
    color: white;
}

header a:hover {
    color: white;
}

#headbar {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#headbarcanvas {
    position: absolute;
}

#headbox {
    height: 100%;
    width: 90%;
    margin: 0 auto;
}

/* --- Logo --- */

#logobox {
    height: 50px;
    float: left;
    margin-bottom: 5px;
    user-select: none;
}

#logo {
    height: 40px;
    width: 60px;
    background-size: cover;
    float: left;
}

#logotext {
    height: 17px;
    width: 100%;
    line-height: 17px;
    font-size: 17px;
    margin-top: 3px;
    float: left;
    user-select: none;
}

/* --- Navigation --- */

nav {
    height: 100%;
    float: right;
    user-select: none;
}

.navbutton {
    display: block;
    height: 100%;
    padding: 0 12px;
    font-size: 21px;
    line-height: 60px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    float: left;
    transition: 0.5s;
    background: transparent;
    border: none;
    color: inherit;
    font-family: inherit;
}

.navbutton:hover {
    text-decoration: overline;
    color: #999;
}

.navbutton sup {
    vertical-align: baseline;
    font-size: 0.6em;
    position: relative;
    top: -0.5em;
}

.subbar {
    position: absolute;
    top: 55px;
    display: none;
    padding-top: 10px;
}

.navbutton:hover > .subbar,
.navbutton:focus-within > .subbar {
    display: block;
}

.subbutton {
    display: block;
    width: 100%;
    padding: 0 8px;
    font-size: 17px;
    line-height: 40px;
    text-align: left;
    background-color: #252525;
    color: #DDD;
    user-select: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.subbutton:hover {
    background-color: #303030;
}

/* --- Login Modal --- */

.loginbackground {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    visibility: hidden;
    z-index: 13;
}

.loginfield {
    position: absolute;
    top: 40%;
    left: 40%;
    min-height: 170px;
    min-width: 280px;
    width: 14%;
    background: white;
    text-align: left;
    padding-left: 3%;
    border: 1px solid black;
}

/* --- Content --- */

.content {
    flex: 1;
    width: 90%;
    position: relative;
    padding: 12px;
    margin: 80px auto 0;
    text-align: left;
}

/* --- Footer --- */

footer {
    width: 100%;
    background-color: #252525;
    padding: 5px 0;
    color: white;
    z-index: 9;
    margin-top: auto;
}

footer a {
    color: white;
}

.footbox {
    width: 90%;
    margin: 0 auto;
    text-align: right;
    user-select: none;
}

/* --- Easter Egg --- */

#easter1blub {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 100;
}

#easter1blub > * {
    pointer-events: auto;
}
