/* Mobile-first, ausschließlich Handy-Nutzung */

/* --- Base --- */
:root{
  --bg:#f5f6f8;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --line:#e5e7eb;
  --accent:#2bb7a7;
  --accent2:#e9eef2;
  --danger:#ef4444;
  --radius:16px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container{
  width:100%;
  max-width: 560px;
  margin:0 auto;
  padding: 14px 12px 106px; /* Platz für Bottom-Nav */
}

/* Cards */
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
  margin-bottom: 12px;
}

h1{
  margin:0 0 8px;
  font-size: 20px;
  line-height: 1.2;
}

small{ color: var(--muted); }

/* Badges */
.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background:#eef5f7;
  border:1px solid #dbe7ea;
}

/* Links */
a{ color: inherit; text-decoration: none; }
a:active{ opacity:.75; }

/* --- Forms --- */
form{ margin:0; }
.row{ display:flex; gap:10px; flex-wrap:wrap; }

input, textarea, select{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border:1px solid var(--line);
  background:#fff;
  font-size: 16px; /* iOS Zoom vermeiden */
  outline: none;
}

textarea{ min-height: 110px; resize: vertical; }

/* Buttons */
button{
  width: 100%;
  padding: 14px 14px;
  border-radius: 14px;
  border:0;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  background: var(--accent);
  color: white;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

button:active{ transform: translateY(1px); }

button.secondary{
  background: var(--accent2);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

/* Tasks */
.task{
  display:flex;
  flex-direction: column;
  gap: 12px;
}

.task-top{ display:flex; flex-direction: column; gap: 6px; }

.task-title{
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.task-notes{
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.task-meta{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.done{
  opacity: .55;
  text-decoration: line-through;
}

/* Stats row */
.stats{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 10px;
}

/* --- Bottom Navigation (5 Tabs) --- */
.bottom-nav{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
  background: rgba(245,246,248,.92);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}

.bottom-nav-inner{
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.bottom-nav a{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 10px 6px;
  border-radius: 14px;
  background:#fff;
  border:1px solid var(--line);
  font-weight: 800;
  font-size: 12px;
  text-align:center;
  line-height: 1.1;
}

.bottom-nav a.active{
  border-color: rgba(43,183,167,.55);
  box-shadow: 0 8px 16px rgba(0,0,0,.06);
}

/* Optional: auf größeren Screens etwas luftiger */
@media (min-width: 768px){
  .container{ padding: 18px 16px 110px; }
  h1{ font-size: 22px; }
  .bottom-nav a{ font-size: 13px; }
}
