/* Mein-Rosapineta Header v4 + breite PC-Startseite */
.site-header-v4{
  position:sticky;
  top:0;
  z-index:3200;
  color:#fff;
  background:
    linear-gradient(115deg,rgba(9,31,77,.98),rgba(28,75,163,.97) 52%,rgba(47,151,211,.96)),
    radial-gradient(circle at 82% -120%,rgba(255,255,255,.24),transparent 42%);
  border-bottom:1px solid rgba(255,255,255,.12);
  box-shadow:0 12px 34px rgba(8,31,77,.2);
  backdrop-filter:saturate(150%) blur(16px);
  -webkit-backdrop-filter:saturate(150%) blur(16px);
}
.site-header-v4 .header-shell{
  width:100%;
  max-width:none;
  min-height:76px;
  margin:0;
  padding:0 clamp(18px,2.25vw,42px);
  display:flex;
  align-items:center;
  gap:clamp(12px,1.5vw,24px);
}
.brand-v4{gap:11px;flex:0 0 auto}
.brand-v4 .brand-logo{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:linear-gradient(145deg,rgba(255,255,255,.22),rgba(255,255,255,.08));
  border:1px solid rgba(255,255,255,.18);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 10px 24px rgba(4,21,55,.2);
}
.brand-v4 .brand-logo img{width:40px;height:40px}
.brand-v4 .brand-copy strong{font-size:18px;letter-spacing:-.02em}
.brand-v4 .brand-copy small{font-size:10px;opacity:.74;letter-spacing:.015em}

.desktop-nav-v4{
  flex:1;
  min-width:0;
  justify-content:center;
  gap:4px;
  padding:5px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:18px;
  background:rgba(5,25,65,.17);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
.desktop-nav-v4>a,
.desktop-nav-more{
  min-height:43px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 13px;
  border:0;
  border-radius:13px;
  background:transparent;
  color:rgba(236,246,255,.82);
  font:inherit;
  font-size:13px;
  font-weight:800;
  text-decoration:none;
  white-space:nowrap;
  cursor:pointer;
  transition:background .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease;
}
.desktop-nav-v4>a .ui-icon,
.desktop-nav-more>.ui-icon:first-child{width:18px;height:18px;color:#b9ddff}
.desktop-nav-v4>a:hover,
.desktop-nav-more:hover{
  color:#fff;
  background:rgba(255,255,255,.12);
  transform:translateY(-1px);
}
.desktop-nav-v4>a.is-active,
.desktop-nav-more.is-active{
  color:#153d83;
  background:linear-gradient(180deg,#fff,#edf7ff);
  box-shadow:0 8px 20px rgba(3,24,64,.16),inset 0 1px 0 #fff;
}
.desktop-nav-v4>a.is-active .ui-icon,
.desktop-nav-more.is-active>.ui-icon:first-child{color:#256fd5}
.header-chevron{width:13px!important;height:13px!important;transform:rotate(90deg);opacity:.7}
.header-menu{position:relative}

.header-actions-v4{gap:8px;flex:0 0 auto}
.site-header-v4 .icon-button{
  width:43px;
  height:43px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.13);
  background:rgba(255,255,255,.1);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
.site-header-v4 .icon-button:hover,
.site-header-v4 .icon-button.is-open{background:rgba(255,255,255,.2);transform:translateY(-1px)}
.site-header-v4 .has-badge b{top:-5px;right:-5px;border-color:#1e58ad;background:linear-gradient(135deg,#ff7c73,#ff4965);box-shadow:0 4px 10px rgba(89,9,27,.22)}
.points-chip-v4{
  height:43px;
  padding:0 12px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:14px;
  background:rgba(255,255,255,.1);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
.points-chip-v4:hover{background:rgba(255,255,255,.18)}
.points-chip-v4 .ui-icon{color:#ffe36b;filter:drop-shadow(0 2px 5px rgba(95,71,0,.18))}
.points-chip-v4 strong{font-size:13px}
.points-chip-v4 span{font-size:10px;text-transform:uppercase;letter-spacing:.06em;opacity:.72}
.profile-chip-v4{
  height:43px;
  gap:9px;
  padding:0 11px 0 4px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:14px;
  background:rgba(255,255,255,.1);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
.profile-chip-v4:hover{background:rgba(255,255,255,.18)}
.profile-chip-v4>span{display:flex;min-width:0;flex-direction:column;line-height:1.08}
.profile-chip-v4>span strong{max-width:110px;overflow:hidden;text-overflow:ellipsis;font-size:12px}
.profile-chip-v4>span small{margin-top:3px;font-size:9px;opacity:.68;font-weight:600}
.site-header-v4 .header-register{padding:10px 15px;background:linear-gradient(135deg,#fff,#dff5ff);color:#153e83;box-shadow:0 9px 22px rgba(3,24,64,.18)}
.site-header-v4 .header-login{height:43px;padding:0 13px;border-color:rgba(255,255,255,.15);background:rgba(255,255,255,.09)}

.header-popover{
  position:absolute;
  z-index:3300;
  top:calc(100% + 14px);
  right:0;
  width:min(410px,calc(100vw - 28px));
  overflow:hidden;
  border:1px solid #d8e6f4;
  border-radius:22px;
  background:rgba(255,255,255,.98);
  color:#20345f;
  box-shadow:0 24px 70px rgba(7,30,72,.25);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  transform-origin:top right;
  animation:headerPopoverIn .16s ease-out;
}
@keyframes headerPopoverIn{from{opacity:0;transform:translateY(-7px) scale(.98)}to{opacity:1;transform:none}}
.header-popover-title,
.notification-popover-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:17px 18px;
  border-bottom:1px solid #e5edf6;
  background:linear-gradient(135deg,#f7fbff,#eef7ff);
}
.header-popover-title>span,
.notification-popover-head>div{display:flex;flex-direction:column}
.header-popover-title strong,
.notification-popover-head strong{color:#112d65;font-size:15px}
.header-popover-title small,
.notification-popover-head small{margin-top:3px;color:#71809a;font-size:11px}
.notification-popover-head a{color:#2469d8;text-decoration:none;font-size:11px;font-weight:900}
.header-more-popover{width:510px}
.header-more-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px}
.header-more-grid>a{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  align-items:center;
  gap:11px;
  padding:12px;
  border-radius:16px;
  color:#233b67;
  text-decoration:none;
  transition:.16s ease;
}
.header-more-grid>a:hover,.header-more-grid>a.is-active{background:#eef6ff;color:#174b9a}
.header-more-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(135deg,#eaf5ff,#e9faf6);color:#236bd2}
.header-more-icon .ui-icon{width:20px;height:20px}
.header-more-grid>a>span:last-child{display:flex;min-width:0;flex-direction:column}
.header-more-grid strong{font-size:12px}
.header-more-grid small{margin-top:3px;color:#70809b;font-size:10px;line-height:1.35}

.notification-popover{width:390px}
.notification-preview-list{max-height:360px;overflow:auto;padding:8px}
.notification-preview-item{
  display:grid;
  grid-template-columns:38px minmax(0,1fr);
  gap:10px;
  padding:11px;
  border-radius:15px;
  color:#253a63;
  text-decoration:none;
}
.notification-preview-item:hover{background:#eef6ff}
.notification-preview-item.is-read{opacity:.68}
.notification-preview-item>span{display:flex;min-width:0;flex-direction:column}
.notification-preview-item strong{font-size:12px;color:#142f66}
.notification-preview-item small{margin-top:3px;color:#6d7d98;font-size:10px;line-height:1.4}
.notification-preview-item time{margin-top:4px;color:#96a1b4;font-size:9px}
.notification-empty{padding:26px;text-align:center;color:#7a899f;font-size:12px}
.notification-popover-status{display:grid;grid-template-columns:10px 1fr;gap:10px;align-items:start;padding:13px 17px;border-top:1px solid #e6edf6;background:#f8fbff}
.notification-popover-status>span:last-child{display:flex;flex-direction:column}
.notification-popover-status strong{font-size:11px;color:#29446f}
.notification-popover-status small{margin-top:2px;font-size:10px;color:#77869d}
.status-dot{width:9px;height:9px;margin-top:4px;border-radius:50%;background:#aab4c4;box-shadow:0 0 0 4px rgba(170,180,196,.13)}
.status-dot.is-on{background:#21aa76;box-shadow:0 0 0 4px rgba(33,170,118,.14)}

/* PC-Startseite bewusst nicht mehr auf 1180 Pixel begrenzen. */
body.page-index .site-main{
  width:100%;
  max-width:none;
  padding:clamp(22px,2.2vw,42px) clamp(18px,2.8vw,58px) 76px;
}
body.page-index .welcome-hero,
body.page-index .stat-grid,
body.page-index .weather-card,
body.page-index .feature-grid,
body.page-index .home-community,
body.page-index .grid.three,
body.page-index>.site-main>.section-title{width:100%;max-width:none}
body.page-index .welcome-hero{min-height:min(72vh,790px)}

@media(max-width:1380px){
  .site-header-v4 .header-shell{padding-inline:20px;gap:12px}
  .desktop-nav-v4>a,.desktop-nav-more{padding-inline:10px;font-size:12px}
  .brand-v4 .brand-copy small{display:none}
  .profile-chip-v4>span small{display:none}
  .points-chip-v4 span{display:none}
}
@media(max-width:1160px){
  .brand-v4 .brand-copy{display:none}
  .desktop-nav-v4>a,.desktop-nav-more{padding-inline:9px}
  .desktop-nav-v4>a span,.desktop-nav-more span{display:none}
  .desktop-nav-v4>a .ui-icon,.desktop-nav-more>.ui-icon:first-child{width:20px;height:20px}
  .header-chevron{display:none}
  .profile-chip-v4>span{display:none}
  .profile-chip-v4{padding-right:4px}
}
@media(max-width:860px){
  .site-header-v4 .header-shell{min-height:64px;padding:0 12px}
  .brand-v4 .brand-copy{display:flex}
  .brand-v4 .brand-logo{width:43px;height:43px;border-radius:14px}
  .brand-v4 .brand-logo img{width:36px;height:36px}
  .brand-v4 .brand-copy strong{font-size:15px}
  .header-actions-v4{margin-left:auto}
  .points-chip-v4,.profile-chip-v4,.header-notification-menu{display:none!important}
  .site-header-v4 .header-search-button,.site-header-v4 .mobile-menu-button{display:inline-flex!important}
  body.page-index .site-main{padding:16px 12px 96px}
  body.page-index .welcome-hero{min-height:0}
}
@media(max-width:500px){
  .brand-v4 .brand-copy small{display:none}
  .brand-v4 .brand-copy strong{max-width:145px;overflow:hidden;text-overflow:ellipsis}
  .site-header-v4 .icon-button{width:41px;height:41px}
}
