/* TailwindCSS übernimmt das komplette Styling.
   Diese Datei bleibt bewusst minimal für optionale spätere Ergänzungen. */

.hub-header .hub-header-row {
   display: grid;
   grid-template-columns: minmax(0, 1fr) auto;
   align-items: center;
}

.hub-header .hub-header-brand {
   grid-column: 1;
   grid-row: 1;
}

.hub-header .hub-header-actions {
   grid-column: 2;
   grid-row: 1;
   justify-self: end;
}

.hub-header .hub-header-activity {
   grid-column: 1 / -1;
   grid-row: 3;
}

.hub-header .hub-header-activity > div {
   min-width: 0;
   max-width: 100%;
   flex-shrink: 1;
   flex-wrap: wrap;
}

.hub-header .hub-header-profile-menu {
   width: min(360px, calc(100vw - 40px));
   min-width: 0;
   max-height: calc(100dvh - 90px);
   overflow: auto;
   overflow-wrap: anywhere;
}

.hub-header-profile-menu label {
   white-space: normal;
}

.hub-header #hub-radio-header-widget {
   min-width: 0;
   max-width: 220px;
}

.hub-header #hub-radio-header-widget > :not(#hub-radio-header-text) {
   flex-shrink: 0;
}

@media (max-width: 1023px) {
   .hub-header .hub-header-brand-text,
   .hub-header .hub-header-profile-text,
   .hub-header .hub-header-profile-chevron {
      display: none;
   }

   .hub-header .hub-header-profile > summary {
      width: 44px;
      height: 44px;
      min-width: 44px;
      padding: 2px;
      border-radius: 50%;
   }
}

@media (max-width: 639px) {
   .hub-header .hub-header-actions {
      display: contents;
   }

   .hub-header .hub-header-profile {
      grid-column: 2;
      grid-row: 1;
      justify-self: end;
   }

   .hub-header #hub-radio-header-widget {
      grid-column: 1 / -1;
      grid-row: 2;
      max-width: none;
   }

   .hub-header #hub-radio-header-text {
      flex: 1;
      max-width: none;
   }

   .hub-header #hub-radio-header-widget button {
      width: 44px;
      height: 44px;
   }
}

@media (min-width: 1536px) {
   .hub-header .hub-header-row {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
   }

   .hub-header .hub-header-activity {
      grid-column: 2;
      grid-row: 1;
   }

   .hub-header .hub-header-actions {
      grid-column: 3;
   }
}

details.status-panel > summary {
   list-style: none;
}

details.status-panel > summary::-webkit-details-marker {
   display: none;
}

.service-grid {
   display: grid;
   gap: 1rem;
   grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.padel-avatar.hub-padel-avatar {
   background: #0e7490;
   font-size: .75rem;
}

.service-trial-ribbon {
   position: relative;
   background: repeating-linear-gradient(135deg, #facc15 0 10px, #1c1917 10px 20px);
   border-radius: .35rem;
   padding: .2rem;
   text-align: center;
   cursor: help;
}

.service-trial-label {
   display: inline-flex;
   align-items: center;
   gap: .4rem;
   background: #facc15;
   color: #1c1917;
   padding: .15rem .65rem;
   border-radius: .2rem;
   font-size: .75rem;
   font-weight: 700;
}

.service-trial-tooltip {
   display: none;
   position: absolute;
   z-index: 20;
   top: calc(100% + .4rem);
   left: 0;
   right: 0;
   border-radius: .5rem;
   padding: .65rem .8rem;
   background: #1c1917;
   color: #fff;
   font-size: .8rem;
   line-height: 1.5;
   text-align: left;
   box-shadow: 0 4px 12px #0003;
}

.service-trial-ribbon:is(:hover, :focus-within) .service-trial-tooltip {
   display: block;
}

.service-trial-ribbon:focus-visible {
   outline: 2px solid #075985;
   outline-offset: 3px;
}

.hub-layout {
   display: grid;
   gap: 1.5rem;
}

.news-card {
   height: 34rem;
   display: flex;
   flex-direction: column;
}

.news-card [data-news-image-open] {
   height: 24rem;
   flex: 0 0 24rem;
}

.news-card-image {
   height: 100%;
   object-position: center;
}

.news-card > div:last-child {
   flex: 1 1 auto;
}

@keyframes news-carousel-progress {
   from { transform: scaleX(0); }
   to { transform: scaleX(1); }
}

@keyframes news-card-fade-in {
   from { opacity: 0; }
   to { opacity: 1; }
}

.news-card-fade-in {
   animation: news-card-fade-in 320ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
   .news-card-fade-in {
      animation: none;
   }
}

@media (max-width: 639px) {
   .news-card {
      height: 31rem;
   }

   .news-card [data-news-image-open] {
      height: 21rem;
      flex-basis: 21rem;
   }
}

.news-markdown h2 {
   margin: 2rem 0 0.75rem;
   font-size: 1.25rem;
   font-weight: 700;
   color: #1e293b;
}

.news-markdown h2:first-child {
   margin-top: 0;
}

.news-markdown p,
.news-markdown ul,
.news-markdown blockquote {
   margin: 0.75rem 0;
}

.news-markdown ul {
   padding-left: 1.5rem;
   list-style: disc;
}

.news-markdown blockquote {
   border-left: 4px solid #06b6d4;
   background: #ecfeff;
   padding: 0.75rem 1rem;
   color: #155e75;
}

.news-markdown a {
   color: #0e7490;
   text-decoration: underline;
}

.main-content-compact .text-base {
   font-size: 0.875rem;
   line-height: 1.25rem;
}

.main-content-compact .text-sm {
   font-size: 0.75rem;
   line-height: 1rem;
}

.main-content-compact .text-lg {
   font-size: 1rem;
   line-height: 1.5rem;
}

.main-content-compact .text-xl {
   font-size: 1.125rem;
   line-height: 1.75rem;
}

.main-content-compact .text-2xl {
   font-size: 1.25rem;
   line-height: 1.75rem;
}

.main-content-compact .text-3xl {
   font-size: 1.5rem;
   line-height: 2rem;
}

.main-content-compact .text-4xl {
   font-size: 1.875rem;
   line-height: 2.25rem;
}

.main-content-compact .text-5xl {
   font-size: 2.25rem;
   line-height: 1;
}

@media (min-width: 1280px) {
   .hub-layout {
      grid-template-columns: 18rem minmax(0, 1fr) 24rem;
      align-items: start;
   }

   .hub-news {
      grid-column: 1;
      grid-row: 1;
      margin-top: 0;
   }

   .hub-applications {
      grid-column: 2;
      grid-row: 1;
   }

   .hub-sidebar {
      grid-column: 3;
      grid-row: 1;
   }
}
