/* ===== Grundlayout (Mobile First) ===== */

* {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    margin: 0;
    /*background: #f4f6f8;*/
    background: #cce5ff;
    color: #333;

    /* WICHTIG: Grundschrift größer für Smartphones */
    font-size: 18px;
    line-height: 1.6;
}

/* Body normal lassen, Container nicht mehr Flex */
body.login-page {
    background-color: #f4f6f8;
    margin: 0;
}

/* Container etwas schmaler */
body.login-page .container {
    max-width: 400px;
    width: 90%;
    margin: 0 auto; /* horizontal zentriert */
}

/* Nur das Formular vertikal zentrieren */
body.login-page .form-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertikal zentrieren */
    min-height: calc(100vh - 80px); /* Platz abziehen für Header */
}




/* ===== Zentrale "App-Karte" ===== */

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 1rem;
}

/* ===== Überschriften ===== */

h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}


/* ===== Formulare ===== */

form {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 1.5rem;
}

label {
    margin-bottom: 0.2rem;
    font-weight: bold;
    font-size: 1.05rem;
}

input[type="text"],
input[type="password"],
input[type="time"],
select {
    padding: 1rem;
    font-size: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 8px;
}

select option {
    font-size: 1.5rem;
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
    transform: scale(1.5);
}


/* ===== Buttons (groß für Touch!) ===== */

button {
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    background-color: #2d89ef;
    color: white;
    cursor: pointer;
}


button:hover {
    opacity: 0.9;
}



/* ===== Checkliste ===== */

ul {
    list-style: none;
    padding: 0;
}

li {
    background: white;
    padding: 1.2rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 1.1rem;   /* ← wichtig */
}


li.done span {
    text-decoration: line-through;
    color: gray;
}

/* Button-Gruppe unter jedem Eintrag */
.entry-buttons {
    display: flex;
    gap: 0.5rem;
}

/* ===== Links ===== */

a {
    text-decoration: none;
    color: #2d89ef;
}

/* ===== Tablet & Desktop Anpassung ===== */

@media (min-width: 600px) {
    li {
        flex-direction: row;
        justify-content: space-between;
        
    }

    .entry-buttons {
        flex-direction: row;
    }
}



/* ===== Menü Button im Header ===== */
.app-header {
    position: sticky;
    top: 0;
    background-color: #2d89ef;
    color: white;
    padding: 1rem;
    
    font-size: 1.3rem;
    font-weight: bold;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    margin: -1rem -1rem 1rem -1rem;
}

/* Menücontainer */
.app-header .menu {
    /*position: absolute;*/
    top: 1rem;
    right: 1rem;
}

.menu button{
padding: 0;
}

/* Menü Button */
.app-header {
    position: sticky;
    top: 0;
    background-color: #2d89ef;
    color: white;
    padding: 1rem;
    display: flex;           /* Flexbox aktivieren */
    justify-content: center; /* horizontal zentrieren */
    align-items: center;     /* vertikal zentrieren */
    font-size: 1.3rem;
    font-weight: bold;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    margin: -1rem -1rem 1rem -1rem;
}

/* Header-Titel zentriert, damit Button rechts bleibt */
.app-header .header-title {
    flex: 1;                  /* Nimmt den verfügbaren Platz ein */
    text-align: center;        /* Text bleibt mittig */
}

/* Menü Button rechts */
.app-header .menu {
    flex: 0;                  /* Größe nach Inhalt */
}


/* Menü Dropdown */
.menu-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 140px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border-radius: 8px;
    overflow: hidden;
    z-index: 100;
}

/* Menü Links */
.menu-content a {
    color: #333;
    padding: 0.8rem 1rem;
    display: block;
    text-decoration: none;
    z-index: 100;
}

.menu-content a:hover {
    background-color: #f4f6f8;
}


/* Abstand nach oben wie bei echten Apps */
body {
    padding-top: env(safe-area-inset-top);
}

.overlay-form {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.overlay-form form {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
}

.weekday-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 1rem;
}

.weekday-grid label {
    font-size: 1.5rem;
}

hr.all_tasks {
	width:80%;
	height:4px;
	border-width:0;
	color:#2d89ef;
	background-color:#2d89ef;
}

.back-button {
    color: white;
    text-decoration: none;
}

.app-header_all_tasks {
    position: sticky;
    top: 0;
    background-color: #2d89ef;
    color: white;
    padding: 1rem;
    display: flex;           /* Flexbox aktivieren */
    justify-content: space-between; /* horizontal zentrieren */
    align-items: center;     /* vertikal zentrieren */
    font-size: 1.3rem;
    font-weight: bold;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    margin: -1rem -1rem 1rem -1rem;
    z-index:1000;
}

.header-left,
.header-center,
.header-right {
    display: flex;
    align-items: center;
}

.task-item {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    border-bottom: 1px solid #ccc;
    
}

.task-item.done{
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    border-bottom: 1px solid #ccc;
 
    background-color: #d4edda; /* Beispiel hellgrün */
    color: #155724;            /* passende Textfarbe */
}

.task-item.additional{
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    border-bottom: 1px solid #ccc;
 
    background-color: #B3D7FF; /* hellblau #cce5ff*/
	color: #004085;             /* dunkles Blau für Text */
}

.task-title {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.task-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.due-time {
    font-size: 0.85rem;
    color: #555;
}

.toggle-form {
    margin: 0;
}

.status-btn {
    font-size: 1.2rem;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0 0.2rem;
}

.task-emoji {
    font-size: 2.5rem;
    margin-right: 0.5rem;
}

input[type="range"] {
  touch-action: pan-y;
    width: 80%;
  margin: 0 auto;
  display: block;
}
