@font-face {
    font-family: 'Ubuntu';
    src: url(/ttf/Ubuntu-L.ttf) format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Ubuntu';
    src: url(/ttf/Ubuntu-B.ttf) format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

html, body {
    font-family: 'Ubuntu', sans-serif;
    font-weight: 300;
    font-size: 18px;
    text-align: center;
    margin: 0;
    padding: 0;
}

body {
    width: 100%;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

form {
    flex-shrink: 0;
    margin-top: 8px;
    padding: 0 8px;
}

.content {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}


img.loginlogo {
    max-width: 300px;
}

.login-page {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 22px 12px 24px;
    overflow-y: auto;
}

.login-card {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    padding: 14px 12px 18px;
    border: 1px solid #eee;
    border-radius: 1em;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
    padding: 0;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.login-field label {
    font-size: 0.72em;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-left: 6px;
}

.login-field input {
    width: 100%;
    font-size: 18px;
    padding: 8px 10px;
    background-color: #fff;
}

.login-field input:focus {
    outline: 2px solid rgba(55,95,215,0.22);
    border-color: rgb(55,95,215);
}

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 2px;
    font-family: 'Ubuntu', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    background-color: rgb(55,95,215);
    border: none;
    border-radius: 0.5em;
    padding: 9px 12px;
    cursor: pointer;
    touch-action: manipulation;
    transition: background-color 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.login-btn:hover {
    background-color: rgb(45,85,195);
}

.login-btn:active {
    background-color: rgb(40,75,180);
    transform: scale(0.98);
}

.login-btn:disabled {
    cursor: wait;
    opacity: 0.85;
}

.btn-icon {
    transition: transform 0.18s ease;
}

.login-btn:hover .btn-icon {
    transform: translateX(3px);
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.register {
    font-size: 12px;
    margin-top: 18px;
}

.fehler {
    color: rgb(150,50,50);
    font-size: 14px;
    margin-top: 10px;
}

.input-row {
    display: flex;
    gap: 6px;
    width: 100%;
}

input {
    font-family: 'Ubuntu', sans-serif;
    font-size: 18px;
    color: rgb(50,150,50);
    text-align: center;
    border-radius: 0.5em;
    border: 1px solid #ccc;
    padding: 5px 8px;
}

input.text {
    flex: 1;
    min-width: 0;
}

button.add-btn {
    flex-shrink: 0;
    width: 44px;
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
    color: #fff;
    background-color: rgb(50,150,50);
    border: none;
    border-radius: 0.5em;
    padding: 4px 0;
    cursor: pointer;
    touch-action: manipulation;
}

button.add-btn:active {
    background-color: rgb(35,120,35);
}

select.kat-select {
    display: block;
    width: 100%;
    margin-top: 6px;
    font-family: 'Ubuntu', sans-serif;
    font-size: 15px;
    color: rgb(50,100,50);
    border-radius: 0.5em;
    border: 1px solid #ccc;
    padding: 5px 8px;
    background: #fff;
    -webkit-appearance: none;
    appearance: none;
}

a {
    text-decoration: none;
    color: rgb(50,150,50);
}

a.inandout {
    color: #fff;
}

a.renew {
    color: rgb(150,50,50);
}

div.headbar,
div.fussbereich {
    width: 100%;
    flex-shrink: 0;
    font-size: 1.1em;
    font-weight: 700;
    background-color: rgb(55,95,215);
    color: #fff;
    padding: 9px 0;
}

div.headbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
}

.headbar-title {
    flex: 1;
}

.headbar-logout {
    color: rgba(255,255,255,0.85);
    font-size: 0.8em;
    font-weight: 300;
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 0.4em;
    padding: 3px 10px;
    white-space: nowrap;
}

.headbar-logout:hover,
.headbar-logout:active {
    color: #fff;
    background: rgba(255,255,255,0.18);
}

div.fussbereich {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

div.mylist,
div.renew {
    width: 100%;
    margin: 0;
    padding: 6px 10px;
    text-align: left;
}

div.mylist {
    flex-shrink: 0;
    max-height: 60vh;
    overflow-y: auto;
    padding-bottom: 4px;
}

div.renew {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.item-row {
    display: flex;
    align-items: center;
    padding: 0;
}

a.item-link {
    flex: 1;
    color: rgb(50,150,50);
    line-height: 1.05;
    padding: 2px 0;
}

a.item-done {
    flex-shrink: 0;
    color: rgb(50,150,50);
    font-size: 1em;
    padding: 2px 5px;
    opacity: 0.5;
}

a.item-done:hover,
a.item-done:active {
    opacity: 1;
}

.menge-badge {
    font-weight: 700;
    color: rgb(55,95,215);
}

.offline-banner {
    display: none;
    flex-shrink: 0;
    background: rgb(200, 100, 0);
    color: #fff;
    font-size: 0.78em;
    font-weight: 700;
    text-align: center;
    padding: 4px 8px;
}

a.item-pending {
    opacity: 0.5;
}

a.item-done-pending {
    opacity: 0.15;
    pointer-events: none;
}

.kategorie-header {
    font-size: 0.7em;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 6px;
    margin-bottom: 0;
    padding-bottom: 1px;
    border-bottom: 1px solid #eee;
}
