:root{
    --navy:#3E8ED9;
    --navy-dark:#2E6FAE;
    --navy-tint:#EAF3FC;
    --bg:#F4F6F9;
    --card:#FFFFFF;
    --ink:#1B2733;
    --ink-muted:#6B7785;
    --line:#E4E9EF;
    --green:#2FAE6B;
    --green-tint:#E8F8EF;
    --amber:#D98F2B;
    --amber-tint:#FBF1E1;
    --red:#D9534F;
    --red-tint:#FBEAE9;
    --radius:18px;
    --radius-sm:12px;
    --shadow:0 6px 20px rgba(27,39,51,.06);
}

*{box-sizing:border-box;}

body{
    margin:0;
    font-family:'Inter',-apple-system,sans-serif;
    background:#DDE4EC;
    color:var(--ink);
    display:flex;
    justify-content:center;
    min-height:100vh;
}

.phone{
    width:100%;
    max-width:430px;
    min-height:100vh;
    background:var(--bg);
    display:flex;
    flex-direction:column;
    position:relative;
    box-shadow:0 0 40px rgba(0,0,0,.15);
}

/* Topbar */
.topbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:18px 20px 14px;
    background:var(--card);
    border-bottom:1px solid var(--line);
    position:sticky;
    top:0;
    z-index:10;
}

.brand{ display:flex; align-items:center; gap:8px; }

.heart{
    width:32px; height:32px;
    background:var(--navy);
    color:#fff;
    border-radius:10px;
    display:flex; align-items:center; justify-content:center;
    font-size:16px;
}

.brand-name{ font-weight:800; font-size:19px; letter-spacing:-0.02em; }

.bell-btn{
    position:relative;
    background:var(--navy-tint);
    border:none;
    width:38px; height:38px;
    border-radius:12px;
    font-size:16px;
    cursor:pointer;
}

.bell-dot{
    position:absolute; top:-4px; right:-4px;
    min-width:18px; height:18px;
    padding:0 4px;
    background:var(--red);
    color:#fff;
    border-radius:999px;
    border:2px solid var(--card);
    font-size:10.5px;
    font-weight:800;
    line-height:14px;
    text-align:center;
}

/* Content */
.content{
    flex:1;
    padding:18px 18px 90px;
    overflow-y:auto;
}

.view-title{
    font-size:22px;
    font-weight:800;
    letter-spacing:-0.02em;
    margin:4px 0 4px;
}

.view-sub{
    color:var(--ink-muted);
    font-size:13.5px;
    margin:0 0 18px;
}

/* Cards */
.card{
    background:var(--card);
    border:1px solid var(--line);
    border-radius:var(--radius);
    padding:16px;
    margin-bottom:12px;
    box-shadow:var(--shadow);
}

.card h3{
    margin:0 0 10px;
    font-size:15px;
    font-weight:700;
}

/* Dienstplan */
.week-nav{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:14px;
}

.week-nav button{
    background:var(--card);
    border:1px solid var(--line);
    border-radius:10px;
    width:34px; height:34px;
    font-size:15px;
    cursor:pointer;
}

.week-nav .week-label{ font-weight:700; font-size:14px; }

.day-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:12px 4px;
    border-bottom:1px solid var(--line);
}
.day-row:last-child{ border-bottom:none; }

.day-info{ display:flex; align-items:center; gap:12px; }

.day-date{
    width:42px;
    text-align:center;
}
.day-date .dow{ font-size:11px; color:var(--ink-muted); text-transform:uppercase; }
.day-date .num{ font-size:17px; font-weight:700; }

.day-today .num{ color:var(--navy); }

.shift-pill{
    padding:6px 12px;
    border-radius:999px;
    font-size:12.5px;
    font-weight:700;
}
.shift-F{ background:var(--navy-tint); color:var(--navy-dark); }
.shift-S{ background:var(--amber-tint); color:var(--amber); }
.shift-N{ background:#EDEAFB; color:#6C4FCE; }
.shift-K{ background:var(--red-tint); color:var(--red); }
.shift-U{ background:var(--green-tint); color:var(--green); }
.shift-frei{ background:var(--bg); color:var(--ink-muted); }

/* Buttons */
.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    width:100%;
    padding:13px 16px;
    border-radius:var(--radius-sm);
    border:none;
    font-weight:700;
    font-size:14.5px;
    cursor:pointer;
    font-family:inherit;
}
.btn-primary{ background:var(--navy); color:#fff; }
.btn-primary:hover{ background:var(--navy-dark); }
.btn-secondary{ background:var(--navy-tint); color:var(--navy-dark); }
.btn-ghost{ background:transparent; color:var(--ink-muted); border:1px solid var(--line); }
.btn-sm{ width:auto; padding:9px 14px; font-size:13px; }
.btn:disabled{ opacity:.45; cursor:not-allowed; }

/* Forms */
.form-group{ margin-bottom:14px; }
.form-label{
    display:block;
    font-size:12.5px;
    font-weight:700;
    color:var(--ink-muted);
    margin-bottom:6px;
    text-transform:uppercase;
    letter-spacing:.03em;
}
.form-input, .form-select, textarea.form-input{
    width:100%;
    padding:12px 14px;
    border-radius:var(--radius-sm);
    border:1px solid var(--line);
    background:var(--card);
    font-family:inherit;
    font-size:14.5px;
    color:var(--ink);
}
textarea.form-input{ resize:vertical; min-height:70px; }

/* Status badges */
.badge{
    display:inline-block;
    padding:4px 10px;
    border-radius:999px;
    font-size:11.5px;
    font-weight:700;
}
.badge-pending{ background:var(--amber-tint); color:var(--amber); }
.badge-approved{ background:var(--green-tint); color:var(--green); }
.badge-declined{ background:var(--red-tint); color:var(--red); }

/* Tab list for Anfragen/Tauschen selection */
.pill-tabs{
    display:flex;
    gap:8px;
    margin-bottom:16px;
    overflow-x:auto;
}
.pill-tab{
    padding:9px 15px;
    border-radius:999px;
    border:1px solid var(--line);
    background:var(--card);
    font-size:13px;
    font-weight:600;
    color:var(--ink-muted);
    white-space:nowrap;
    cursor:pointer;
}
.pill-tab.active{
    background:var(--navy);
    border-color:var(--navy);
    color:#fff;
}

/* Empty state */
.empty-state{
    text-align:center;
    padding:40px 20px;
    color:var(--ink-muted);
}
.empty-state .empty-icon{ font-size:34px; margin-bottom:10px; }
.empty-state p{ font-size:13.5px; margin:0; }

/* Notification list */
.notif-item{
    display:flex;
    gap:12px;
    padding:13px 0;
    border-bottom:1px solid var(--line);
}
.notif-item:last-child{ border-bottom:none; }
.notif-icon{
    width:36px; height:36px;
    border-radius:10px;
    background:var(--navy-tint);
    display:flex; align-items:center; justify-content:center;
    flex-shrink:0;
    font-size:15px;
}
.notif-text{ font-size:13.5px; line-height:1.4; }
.notif-time{ font-size:11.5px; color:var(--ink-muted); margin-top:2px; }
.notif-unread{ background:var(--navy-tint); margin:0 -10px; padding:13px 10px; border-radius:12px; border-bottom:none; }

/* Tabbar */
.tabbar{
    position:fixed;
    bottom:0;
    width:100%;
    max-width:430px;
    background:var(--card);
    border-top:1px solid var(--line);
    display:flex;
    padding:8px 6px calc(8px + env(safe-area-inset-bottom));
    z-index:10;
}
.tab{
    flex:1;
    background:none;
    border:none;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:3px;
    padding:6px 2px;
    font-size:10.5px;
    font-weight:600;
    color:var(--ink-muted);
    cursor:pointer;
    font-family:inherit;
    border-radius:12px;
}
.tab-icon{ font-size:19px; }
.tab.active{ color:var(--navy); }
.tab.active .tab-icon{ transform:translateY(-1px); }

/* Swap flow */
.swap-shift-card{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:14px;
    border:1px solid var(--line);
    border-radius:var(--radius-sm);
    margin-bottom:10px;
    cursor:pointer;
}
.swap-shift-card.selected{
    border-color:var(--navy);
    background:var(--navy-tint);
}
.swap-shift-info .swap-date{ font-weight:700; font-size:14px; }
.swap-shift-info .swap-detail{ font-size:12.5px; color:var(--ink-muted); }

@media (max-width:400px){
    .content{ padding:14px 14px 86px; }
}
