/* Version 1.2.0: mobile Bedienung und interne Sicherheitsübersicht. */
.security-summary{display:flex;flex-wrap:wrap;gap:14px;margin:18px 0;font-size:.875rem}.security-summary strong{background:var(--mint);border-radius:8px;padding:12px 15px}.security-ok{color:var(--green);font-size:.875rem;margin:18px 0}.security-alerts{margin-bottom:25px}.security-event{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:9px;border-bottom:1px solid var(--border);padding:15px 0;font-size:.8125rem;overflow-wrap:anywhere}.security-event div{min-width:0}.security-event strong,.security-event small{display:block}.security-event small{margin-top:5px;color:var(--muted)}.security-event>span{color:var(--muted);font-size:.75rem;overflow-wrap:anywhere;max-width:100%}
.nav-short{display:none}.reminders-card{grid-column:1/-1}.reminder-heading{display:flex;justify-content:space-between;gap:18px;align-items:center}.reminder-heading .eyebrow{margin-bottom:6px}.reminders-card>.muted{margin-top:15px;font-size:1rem;max-width:750px}.reminder-detail{font-size:.875rem;color:var(--muted);margin-top:12px;max-width:800px}.reminder-actions{display:flex;flex-wrap:wrap;gap:12px;margin:22px 0 12px}.reminders-card .info-box p{margin-top:0}.device-list{border-top:1px solid var(--border);margin-top:20px;padding-top:16px}.device-list summary{font-size:.875rem;cursor:pointer;min-height:44px}.device-row{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:14px 0;border-top:1px solid var(--border)}.device-row strong,.device-row small{display:block;font-size:.875rem}.device-row small{color:var(--muted);margin-top:4px;font-size:.8rem}.checkbox-label{min-height:28px;align-items:flex-start}.dialog textarea{scroll-margin-top:20px}input,textarea,select{scroll-margin-block:95px}.snapshot dd{overflow-wrap:anywhere}.dialog-header .close-dialog{width:44px;height:44px}.icon-button{min-width:44px;min-height:44px}.profile strong,.entry-excerpt{overflow-wrap:anywhere}.reminder-actions .button{white-space:normal;text-align:center}
@media(pointer:coarse){.checkbox-label{min-height:44px;align-items:center}.checkbox-label input{width:22px;height:22px;margin-top:0}.checkbox-label.consent{align-items:flex-start}.checkbox-label.consent input{margin-top:2px}input[type=range]{height:32px;touch-action:pan-y}.range-scale{margin-top:4px}}
@media(max-width:800px){
  .account-grid{grid-template-columns:minmax(0,1fr)}.account-grid>.surface{min-width:0;max-width:100%}.privacy-explanation .button{width:100%;white-space:normal;overflow-wrap:anywhere}.checkbox-label{min-height:44px;align-items:center}.checkbox-label input{width:22px;height:22px}.checkbox-label.consent{align-items:flex-start}.intensity-label input{min-height:48px!important}
  body{padding-bottom:calc(76px + env(safe-area-inset-bottom));overflow-wrap:anywhere}
  .auth-layout{min-height:100dvh;margin-bottom:calc(-76px - env(safe-area-inset-bottom))}
  .sidebar{padding:calc(15px + env(safe-area-inset-top)) max(5%,env(safe-area-inset-right)) 15px max(5%,env(safe-area-inset-left))}
  .sidebar .brand{max-width:calc(100% - 55px)}.sidebar-bottom{top:calc(18px + env(safe-area-inset-top));right:max(5%,env(safe-area-inset-right))}.profile>div{display:none}.profile .icon-button{width:44px;height:44px}
  .sidebar nav{position:fixed;left:0;right:0;bottom:0;z-index:10;display:flex;align-items:stretch;gap:0;margin:0;overflow:visible;border-top:1px solid var(--border);background:#fff;padding:5px max(8px,env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));box-shadow:0 -3px 20px #193c3108}
  .sidebar nav .sidebar-caption{display:none}.sidebar nav button{flex:1;min-width:0;min-height:64px;display:flex;flex-direction:column;justify-content:center;gap:4px;padding:8px 3px;font-size:.8125rem;line-height:1.2;text-align:center;white-space:normal;border-radius:10px}.sidebar nav .icon{width:23px;height:23px}.nav-long{display:none}.nav-short{display:inline}
  .topbar{font-size:.8125rem;gap:15px;min-height:50px}.secure-label{font-size:.75rem}.topbar #breadcrumb{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.secure-label{white-space:nowrap}
  #main{padding-top:27px}.page-heading{align-items:flex-start}.page-heading>div{min-width:0}.page-heading h1{font-size:2rem;overflow-wrap:normal}.page-heading p{font-size:.9375rem}.page-heading .eyebrow{font-size:.75rem}.page-heading .button{font-size:.875rem;min-height:48px;margin-top:18px}.stat-label{font-size:.8125rem;line-height:1.4;min-height:40px}.stat-card small{font-size:.8125rem}.stat-card strong{font-size:1.6rem}.stats{gap:10px}.stat-card{min-width:0;padding:15px 12px}.encouragement h2{font-size:1rem}.encouragement p,.section-heading p{font-size:.875rem}.section-heading h2{font-size:1.25rem}.search-field{max-width:none}.search-field input{min-height:48px!important;font-size:1rem}.search-field input::placeholder{font-size:.875rem}.entry-card{gap:12px;align-items:flex-start;padding:18px 13px}.entry-date{padding-right:12px}.entry-top{flex-wrap:wrap;gap:9px}.entry-top h3{font-size:1rem}.entry-time{font-size:.8125rem}.entry-excerpt{font-size:.875rem}.entry-meta{font-size:.8125rem}.badge{font-size:.75rem}.entry-card>.icon-button{margin-left:-5px;min-width:40px}.entry-date span{font-size:.8125rem}.feeling-chip{font-size:.75rem}.revision-note{font-size:.75rem}.empty-state p{font-size:1rem}.empty-state .button{font-size:.9375rem}.app-footer{font-size:.75rem;flex-direction:column;gap:5px;padding-bottom:22px}
  input:not([type=checkbox]):not([type=range]),textarea,select{font-size:1rem;min-height:48px}input::placeholder,textarea::placeholder{font-size:.9375rem}form label,.checkbox-label{font-size:.9375rem}.field-help{font-size:.8125rem}.auth-tabs button{font-size:.9375rem;min-height:44px}.auth-box>.muted{font-size:1rem}.privacy-note strong{font-size:.9375rem}.privacy-note p{font-size:.875rem}.checkbox-label.consent{font-size:.875rem}.auth-submit{font-size:1rem;min-height:50px}.story-content h1{font-size:2.3rem}.auth-story{padding-top:calc(24px + env(safe-area-inset-top))}.auth-panel{padding-bottom:calc(35px + env(safe-area-inset-bottom))}
  .surface>.muted,.privacy-explanation p,.info-box p,.info-box strong{font-size:.9375rem}.reminder-heading{align-items:flex-start;flex-direction:column;gap:12px}.reminder-actions{flex-direction:column}.reminder-actions .button{width:100%;min-height:48px}.reminder-detail{font-size:.9375rem}.reminders-card .field-help{font-size:.8125rem}.device-row{align-items:flex-start}.device-row>div{min-width:0}.device-row .button{white-space:normal;min-height:44px}.device-row small{font-size:.75rem}.admin-note p{font-size:.875rem}.audit-row{font-size:.8125rem}.audit-row>*{min-width:0;overflow-wrap:anywhere}
  #notifications{bottom:calc(92px + env(safe-area-inset-bottom));left:16px;right:16px;max-width:none}.toast{font-size:.9375rem}.auth-layout~#notifications{bottom:20px}
}
@media(max-width:600px){
  .page-heading{flex-direction:column;gap:18px}.page-heading .button{width:100%;margin:0}.page-heading h1{font-size:2rem}.page-heading p{max-width:none}.stats{grid-template-columns:1fr}.stat-card{display:flex;gap:16px;padding:18px}.stat-icon{width:43px;height:43px;margin:0}.stat-icon .icon{width:23px;height:23px}.stat-label{min-height:0;font-size:.875rem}.stat-card strong{display:flex;gap:10px;align-items:baseline;font-size:1.7rem;margin-top:2px}.stat-card small{display:inline;font-size:.875rem}.encouragement{align-items:flex-start}.encouragement-art{right:5px;opacity:.07}
  .dialog[open]{display:flex;flex-direction:column;position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100dvh;max-height:100dvh;border:0;border-radius:0;overflow:hidden}.dialog-header{flex-shrink:0;padding:calc(13px + env(safe-area-inset-top)) 18px 13px;position:relative}.dialog-header h2{font-size:1.2rem}.dialog-header .eyebrow{font-size:.7rem}.dialog-body{overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:0;padding:17px max(14px,env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left))}.form-notice{font-size:.875rem;align-items:flex-start}.form-section{padding:20px 15px}.form-section h3{font-size:1.125rem}.moment-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}.moment-grid>label{min-width:0}.moment-grid input{min-width:0;width:100%;padding-left:9px;padding-right:9px}.checkbox-grid{gap:7px}.checkbox-label>span{min-width:0;overflow-wrap:anywhere}.feelings-list{gap:4px}.feeling-row{grid-template-columns:minmax(0,1fr) 103px;gap:8px}.feeling-row>*{min-width:0}.feeling-row:last-child>input{grid-row:2;grid-column:1/-1}.feeling-row:last-child .intensity-label{grid-row:1;grid-column:2}.intensity-label input{width:62px!important;min-height:44px!important;font-size:1rem}.intensity-label{font-size:.8125rem}.range-label{align-items:flex-start;gap:15px}.range-label>label{max-width:65%}.range-scale{font-size:.75rem}.form-bottom{position:sticky;bottom:calc(-20px - env(safe-area-inset-bottom));background:var(--bg);border-top:1px solid var(--border);padding:14px 0 calc(14px + env(safe-area-inset-bottom));display:block;z-index:1}.form-bottom>span{max-width:none;font-size:.8125rem;margin-bottom:9px}.form-bottom>div{text-align:left}.form-bottom .button{width:100%;min-height:48px;font-size:.9375rem}.form-error{font-size:.875rem}.history-strip{font-size:.8125rem}.history-strip .button{font-size:.875rem;min-height:44px}.revision-button{font-size:.875rem;min-height:48px}.snapshot dt{font-size:.9375rem}.snapshot dd{font-size:1rem}
  .table-surface{background:transparent;border:0;overflow:visible}.table-scroll{overflow:visible}table{display:block;font-size:.9375rem}thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}tbody{display:grid;gap:16px}tbody tr{display:block;background:#fff;border:1px solid var(--border);border-radius:12px;padding:10px 17px}tbody td{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 0;font-size:.875rem;border-bottom:1px solid var(--border)}tbody td::before{content:attr(data-label);font-size:.8125rem;color:var(--muted);flex-shrink:0}tbody td:first-child{flex-wrap:wrap;justify-content:flex-start}tbody td select{width:155px;min-width:0;font-size:.9375rem;min-height:44px}tbody td .button{min-height:44px;font-size:.875rem}tbody td .checkbox-label{font-size:.875rem}tbody td:last-child{border-bottom:0}.admin-note{gap:12px;padding:20px 17px}.audit-surface{padding:22px 17px}
}
@media(max-width:360px){.sidebar .brand{font-size:1.05rem;gap:9px}.sidebar .brand-sub{font-size:.44rem}.sidebar .brand-icon{width:35px;height:35px}.topbar #breadcrumb{display:none}.topbar{justify-content:center}.entry-card{position:relative;padding-right:45px;gap:10px}.entry-card>.icon-button{position:absolute;right:5px;top:12px}.entry-date{padding-right:9px;width:25px}.entry-date strong{font-size:1.3rem}.entry-top .badge{font-size:.7rem}.sidebar nav button{font-size:.75rem}.story-content h1{font-size:2.05rem}}
