/* AllSky Website - Production CSS */
/* Based on Tailwind CSS - Compiled & Minified */

:root {
  /* Theme Colors - gesetzt per app.js aus site-config.json */
  --theme-primary:       #3b82f6;       /* blue-500  (AllSky default) */
  --theme-primary-rgb:   59,130,246;
  --theme-secondary:     #0ea5e9;       /* sky-500 */
  --theme-secondary-rgb: 14,165,233;
  --theme-accent:        #22d3ee;       /* cyan-400 */
  --theme-accent-rgb:    34,211,238;
  --theme-background:    linear-gradient(135deg, #0f172a 0%, #0f172a 100%);
  --theme-card-bg:       rgba(30,41,59,0.7);
  --theme-header-bg:     linear-gradient(to right, rgb(15 23 42 / 0.95), rgba(var(--theme-primary-rgb), 0.1), rgb(15 23 42 / 0.95));
}

html{scrollbar-gutter:stable}
*,::before,::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}
::before,::after{--tw-content:''}
html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"}
body{margin:0;line-height:inherit}
hr{height:0;color:inherit;border-top-width:1px}
abbr:where([title]){text-decoration:underline dotted}
h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}
a{color:inherit;text-decoration:inherit}
b,strong{font-weight:bolder}
code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em}
small{font-size:80%}
sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}
sub{bottom:-.25em}
sup{top:-.5em}
table{text-indent:0;border-color:inherit;border-collapse:collapse}
button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}
button,select{text-transform:none}
button,[type='button'],[type='reset'],[type='submit']{-webkit-appearance:button;background-color:transparent;background-image:none}
:-moz-focusring{outline:auto}
:-moz-ui-invalid{box-shadow:none}
progress{vertical-align:baseline}
::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}
[type='search']{-webkit-appearance:textfield;outline-offset:-2px}
::-webkit-search-decoration{-webkit-appearance:none}
::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}
summary{display:list-item}
blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}
fieldset{margin:0;padding:0}
legend{padding:0}
ol,ul,menu{list-style:none;margin:0;padding:0}
textarea{resize:vertical}
input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}
button,[role="button"]{cursor:pointer}
:disabled{cursor:default}
img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}
img,video{max-width:100%;height:auto}

/* Custom Animations */
@keyframes pulse-glow{0%,100%{opacity:1;box-shadow:0 0 20px rgba(var(--theme-accent-rgb),0.5)}50%{opacity:0.8;box-shadow:0 0 30px rgba(var(--theme-accent-rgb),0.8)}}
.live-pulse{animation:pulse-glow 2s ease-in-out infinite}

/* Utility Classes */
.container{width:100%;margin-left:auto;margin-right:auto;padding-left:1rem;padding-right:1rem}
@media(min-width:640px){.container{max-width:640px}}
@media(min-width:768px){.container{max-width:768px}}
@media(min-width:1024px){.container{max-width:1024px}}
@media(min-width:1280px){.container{max-width:1280px}}
@media(min-width:1536px){.container{max-width:1536px}}

.glass-card{background:var(--theme-card-bg);backdrop-filter:blur(12px);border:1px solid rgba(var(--theme-primary-rgb),0.2)}
.gradient-border{position:relative;background:linear-gradient(180deg,rgba(37,99,235,0.1) 0%,transparent 100%)}
.gradient-border::before{content:'';position:absolute;inset:0;border-radius:inherit;padding:1px;background:linear-gradient(135deg,rgba(37,99,235,0.5),rgba(14,165,233,0.5));-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude}
.sidebar-icon{transition:all 0.3s cubic-bezier(0.4,0,0.2,1)}
.sidebar-icon:hover{transform:scale(1.1);color:rgb(59,130,246)}
.weather-card{background:linear-gradient(135deg,rgba(59,130,246,0.1) 0%,rgba(147,51,234,0.1) 100%)}

/* Layout */
.fixed{position:fixed}
.absolute{position:absolute}
.relative{position:relative}
.sticky{position:sticky}
.inset-0{top:0;right:0;bottom:0;left:0}
.top-0{top:0}
.top-4{top:1rem}
.top-24{top:6rem}
.right-0{right:0}
.right-4{right:1rem}
.bottom-0{bottom:0}
.bottom-4{bottom:1rem}
.left-0{left:0}
.left-4{left:1rem}
.z-40{z-index:40}
.z-50{z-index:50}

/* Flexbox & Grid */
.flex{display:flex}
.inline-flex{inline-flex}
.grid{display:grid}
.hidden{display:none}
.flex-col{flex-direction:column}
.flex-wrap{flex-wrap:wrap}
.flex-1{flex:1 1 0%}
.items-start{align-items:flex-start}
.items-center{align-items:center}
.items-end{align-items:flex-end}
.justify-start{justify-content:flex-start}
.justify-center{justify-content:center}
.justify-between{justify-content:space-between}
.justify-end{justify-content:flex-end}
.gap-2{gap:0.5rem}
.gap-3{gap:0.75rem}
.gap-4{gap:1rem}
.gap-6{gap:1.5rem}
.space-x-1>:not([hidden])~:not([hidden]){margin-left:0.25rem}
.space-x-2>:not([hidden])~:not([hidden]){margin-left:0.5rem}
.space-x-3>:not([hidden])~:not([hidden]){margin-left:0.75rem}
.space-x-4>:not([hidden])~:not([hidden]){margin-left:1rem}
.space-x-6>:not([hidden])~:not([hidden]){margin-left:1.5rem}
.space-y-1>:not([hidden])~:not([hidden]){margin-top:0.25rem}
.space-y-2>:not([hidden])~:not([hidden]){margin-top:0.5rem}
.space-y-3>:not([hidden])~:not([hidden]){margin-top:0.75rem}
.space-y-4>:not([hidden])~:not([hidden]){margin-top:1rem}
.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}

/* Sizing */
.h-auto{height:auto}
.h-2{height:0.5rem}
.h-10{height:2.5rem}
.h-11{height:2.75rem}
.h-fit{height:fit-content}
.min-h-screen{min-height:100vh}
.w-2{width:0.5rem}
.w-10{width:2.5rem}
.w-11{width:2.75rem}
.w-20{width:5rem}
.w-24{width:6rem}
.w-80{width:20rem}
.w-full{width:100%}
.w-1\/2{width:50%}
.w-1\/3{width:33.333333%}
.w-2\/3{width:66.666667%}
.w-3\/4{width:75%}
.min-w-0{min-width:0}
.max-w-3xl{max-width:48rem}
.max-w-7xl{max-width:80rem}
.max-h-\[90vh\]{max-height:90vh}

/* Spacing */
.m-0{margin:0}
.mx-auto{margin-left:auto;margin-right:auto}
.mb-1{margin-bottom:0.25rem}
.mb-2{margin-bottom:0.5rem}
.mb-3{margin-bottom:0.75rem}
.mb-4{margin-bottom:1rem}
.mb-6{margin-bottom:1.5rem}
.mt-1{margin-top:0.25rem}
.mr-1{margin-right:0.25rem}
.mr-2{margin-right:0.5rem}
.p-2{padding:0.5rem}
.p-3{padding:0.75rem}
.p-4{padding:1rem}
.p-5{padding:1.25rem}
.p-6{padding:1.5rem}
.px-3{padding-left:0.75rem;padding-right:0.75rem}
.px-4{padding-left:1rem;padding-right:1rem}
.py-1{padding-top:0.25rem;padding-bottom:0.25rem}
.py-1\.5{padding-top:0.375rem;padding-bottom:0.375rem}
.py-2{padding-top:0.5rem;padding-bottom:0.5rem}
.py-3{padding-top:0.75rem;padding-bottom:0.75rem}
.pt-3{padding-top:0.75rem}
.pt-6{padding-top:1.5rem}

/* Typography */
.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif}
.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}
.text-xs{font-size:0.75rem;line-height:1rem}
.text-sm{font-size:0.875rem;line-height:1.25rem}
.text-lg{font-size:1.125rem;line-height:1.75rem}
.text-xl{font-size:1.25rem;line-height:1.75rem}
.text-2xl{font-size:1.5rem;line-height:2rem}
.text-4xl{font-size:2.25rem;line-height:2.5rem}
.font-medium{font-weight:500}
.font-semibold{font-weight:600}
.font-bold{font-weight:700}
.text-center{text-align:center}

/* Colors */
.bg-slate-950{background-color:rgb(2,6,23)}
body.themed-bg{background:var(--theme-background) !important;min-height:100vh;}
html.themed-bg-early body{background:var(--theme-background) !important;min-height:100vh;}
.bg-slate-900{background-color:rgb(15,23,42)}
.bg-slate-800{background-color:rgb(30,41,59)}
.bg-slate-700{background-color:rgb(51,65,85)}
.bg-emerald-500{background-color:rgb(16,185,129)}
.bg-black{background-color:rgb(0,0,0)}
.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}
.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}
.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}
.from-slate-900\/95{--tw-gradient-from:rgb(15 23 42 / 0.95);--tw-gradient-to:rgb(15 23 42 / 0);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}
.from-blue-500{--tw-gradient-from:#6366f1;--tw-gradient-to:rgb(99 102 241 / 0);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}
.from-blue-400{--tw-gradient-from:#818cf8;--tw-gradient-to:rgb(129 140 248 / 0);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}
.from-emerald-500{--tw-gradient-from:#10b981;--tw-gradient-to:rgb(16 185 129 / 0);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}
.from-blue-500{--tw-gradient-from:#3b82f6;--tw-gradient-to:rgb(59 130 246 / 0);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}
.from-black\/90{--tw-gradient-from:rgb(0 0 0 / 0.9);--tw-gradient-to:rgb(0 0 0 / 0);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}
.via-blue-900\/20{--tw-gradient-to:rgb(49 46 129 / 0);--tw-gradient-stops:var(--tw-gradient-from),rgb(49 46 129 / 0.2),var(--tw-gradient-to)}
.via-sky-500{--tw-gradient-to:rgb(168 85 247 / 0);--tw-gradient-stops:var(--tw-gradient-from),#a855f7,var(--tw-gradient-to)}
.via-sky-400{--tw-gradient-to:rgb(192 132 252 / 0);--tw-gradient-stops:var(--tw-gradient-from),#c084fc,var(--tw-gradient-to)}
.via-black\/70{--tw-gradient-to:rgb(0 0 0 / 0);--tw-gradient-stops:var(--tw-gradient-from),rgb(0 0 0 / 0.7),var(--tw-gradient-to)}
.to-slate-900\/95{--tw-gradient-to:rgb(15 23 42 / 0.95)}
.to-cyan-500{--tw-gradient-to:#ec4899}
.to-cyan-400{--tw-gradient-to:#f472b6}
.to-sky-600{--tw-gradient-to:#9333ea}
.to-sky-400{--tw-gradient-to:#c084fc}
.to-green-500{--tw-gradient-to:#22c55e}
.to-blue-500{--tw-gradient-to:#6366f1}
.to-transparent{--tw-gradient-to:transparent}
.to-slate-950{--tw-gradient-to:rgb(2,6,23)}
.text-gray-100{color:rgb(243,244,246)}
.text-gray-400{color:rgb(156,163,175)}
.text-gray-500{color:rgb(107,114,128)}
.text-white{color:rgb(255,255,255)}
.text-blue-400{color:rgb(96,165,250)}
.text-sky-400{color:rgb(56,189,248)}
.text-cyan-400{color:rgb(34,211,238)}
.text-blue-400{color:rgb(96,165,250)}
.text-cyan-400{color:rgb(34,211,238)}
.text-emerald-400{color:rgb(52,211,153)}
.text-yellow-300{color:rgb(253,224,71)}
.text-yellow-400{color:rgb(250,204,21)}

/* Borders */
.border{border-width:1px}
.border-b{border-bottom-width:1px}
.border-t{border-top-width:1px}
.border-blue-500\/20{border-color:rgb(99 102 241 / 0.2)}
.border-emerald-500\/30{border-color:rgb(16 185 129 / 0.3)}
.border-blue-500\/30{border-color:rgb(59 130 246 / 0.3)}
.border-white\/10{border-color:rgb(255 255 255 / 0.1)}
.rounded-full{border-radius:9999px}
.rounded-lg{border-radius:0.5rem}
.rounded-xl{border-radius:0.75rem}
.rounded-2xl{border-radius:1rem}

/* Effects */
.shadow-lg{box-shadow:0 10px 15px -3px rgb(0 0 0 / 0.1),0 4px 6px -4px rgb(0 0 0 / 0.1)}
.shadow-2xl{box-shadow:0 25px 50px -12px rgb(0 0 0 / 0.25)}
.shadow-blue-500\/50{--tw-shadow-color:rgb(99 102 241 / 0.5);--tw-shadow:var(--tw-shadow-colored)}
.overflow-hidden{overflow:hidden}
.overflow-y-auto{overflow-y:auto}
.backdrop-blur-sm{backdrop-filter:blur(4px)}

/* Transitions */
.transition-all{transition-property:all;transition-timing-function:cubic-bezier(0.4,0,0.2,1);transition-duration:150ms}
.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(0.4,0,0.2,1);transition-duration:150ms}
.hover\:bg-slate-700\/50:hover{background-color:rgb(51 65 85 / 0.5)}
.hover\:bg-slate-700\/80:hover{background-color:rgb(51 65 85 / 0.8)}
.hover\:text-white:hover{color:rgb(255,255,255)}
.hover\:text-blue-300:hover{color:rgb(165,180,252)}
.hover\:text-blue-400:hover{color:rgb(96,165,250)}
.hover\:text-sky-300:hover{color:rgb(216,180,254)}
.hover\:text-sky-400:hover{color:rgb(56,189,248)}
.hover\:text-cyan-300:hover{color:rgb(249,168,212)}
.hover\:text-cyan-300:hover{color:rgb(103,232,249)}
.hover\:text-blue-400:hover{color:rgb(96,165,250)}
.hover\:scale-105:hover{transform:scale(1.05)}
.group:hover .group-hover\:text-blue-300{color:rgb(165,180,252)}
.group:hover .group-hover\:text-sky-300{color:rgb(216,180,254)}
.group:hover .group-hover\:text-cyan-300{color:rgb(249,168,212)}
.group:hover .group-hover\:text-cyan-300{color:rgb(103,232,249)}
.group:hover .group-hover\:text-white{color:rgb(255,255,255)}
.group:hover .group-hover\:text-gray-400{color:rgb(156,163,175)}

/* Animations */
.animate-pulse{animation:pulse 2s cubic-bezier(0.4,0,0.6,1) infinite}
@keyframes pulse{50%{opacity:.5}}

/* Responsive */
@media(min-width:640px){
  .sm\:inline{display:inline}
  .sm\:flex{display:flex}
  .sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(min-width:768px){
  .md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
  .md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
  .md\:flex{display:flex}
}
@media(min-width:1024px){
  .lg\:block{display:block}
  .lg\:inline{display:inline}
  .lg\:flex{display:flex}
  .lg\:hidden{display:none}
  .lg\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}
  .lg\:col-span-2{grid-column:span 2 / span 2}
}
@media(min-width:1280px){
  .xl\:block{display:block}
}

/* Info Row Layout - verhindert Label-Text Umbruch-Mix */
.info-row{display:grid;grid-template-columns:auto 1fr;gap:0.5rem;align-items:start}
.info-row>span:first-child{white-space:nowrap}

/* Utilities */
.bg-clip-text{-webkit-background-clip:text;background-clip:text}
.text-transparent{color:transparent}

/* Label-Value Grid Layout */
.label-value{display:grid;grid-template-columns:auto 1fr;gap:0.5rem;align-items:start}
.label-value span:first-child{white-space:nowrap}

/* Status Badge States */
.status-active{background:rgba(16,185,129,0.2);border-color:rgba(16,185,129,0.3)}
.status-active .status-dot{background:#10b981}
.status-active .status-text{color:#10b981}
.status-pause{background:rgba(107,114,128,0.2);border-color:rgba(107,114,128,0.3)}
.status-pause .status-dot{background:#6b7280}
.status-pause .status-text{color:#6b7280}
.status-pause .live-pulse{animation:none}

/* Gradient Text Titles */
.gradient-title {
    background: linear-gradient(to right, var(--theme-primary), var(--theme-secondary), var(--theme-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gradient-title-alt {
    background: linear-gradient(to right, var(--theme-secondary), var(--theme-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Mobile Menu */
.mobile-menu-hidden {
    transform: translateX(100%);
}

/* Gradient Divider */
.gradient-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(var(--theme-primary-rgb),0.3), transparent);
    margin: 0.5rem 0;
}

/* Fullscreen Button am Live-Bild */
.fullscreen-button {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(var(--theme-primary-rgb), 0.3);
    color: rgb(156, 163, 175);
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    z-index: 10;
}

.fullscreen-button:hover {
    background: rgba(51, 65, 85, 0.95);
    color: var(--theme-secondary);
    border-color: rgba(var(--theme-secondary-rgb), 0.5);
    transform: scale(1.05);
}

.fullscreen-button:active {
    transform: scale(0.95);
}

.fullscreen-button i {
    display: block;
    font-size: 1.25rem;
}

/* Video Player - Hide PiP/Cast Buttons */
video::-webkit-media-controls-panel #detach-button-host,
video::-internal-media-controls-overflow-button {
    display: none !important;
}

/* ============================================================ */
/* THEME UTILITY CLASSES - nutzen CSS-Variablen aus site-config */
/* ============================================================ */

/* Header & Footer */
.theme-header {
    background: var(--theme-header-bg);
    border-color: rgba(var(--theme-primary-rgb), 0.2);
}

/* Logo Gradient */
.theme-logo {
    background: linear-gradient(to bottom right, var(--theme-primary), var(--theme-secondary), var(--theme-accent));
    box-shadow: 0 10px 15px -3px rgba(var(--theme-primary-rgb), 0.5);
}

/* Primary text color */
.theme-text { color: var(--theme-secondary); }
.theme-text-accent { color: var(--theme-accent); }
.theme-text-hover:hover { color: var(--theme-secondary); }

/* Borders */
.theme-border { border-color: rgba(var(--theme-primary-rgb), 0.35); }
.theme-border-md { border-color: rgba(var(--theme-primary-rgb), 0.3); }

/* Hover backgrounds */
.theme-hover:hover { background-color: rgba(var(--theme-primary-rgb), 0.1); }

/* Image card header gradient */
.theme-card-header {
    background: linear-gradient(to right,
        rgba(var(--theme-primary-rgb), 0.15),
        rgba(var(--theme-secondary-rgb), 0.15),
        rgba(var(--theme-primary-rgb), 0.1));
}

/* Image card border */
.theme-card-border { border-color: rgba(var(--theme-primary-rgb), 0.3); }

/* Icon colors */
.theme-icon { color: var(--theme-secondary); }
.theme-icon-accent { color: var(--theme-accent); }

/* Sidebar hover */
.sidebar-icon:hover { transform: scale(1.1); color: var(--theme-secondary); }

/* Mobile menu */
.theme-mobile-header { border-color: rgba(var(--theme-primary-rgb), 0.2); }
.theme-mobile-title { color: var(--theme-secondary); }
.theme-mobile-divider { border-color: rgba(var(--theme-primary-rgb), 0.2); }

/* Links */
.theme-link { color: var(--theme-secondary); }
.theme-link:hover { color: var(--theme-accent); }

/* Info modal section titles */
.theme-section-title-primary { color: var(--theme-primary); }
.theme-section-title-secondary { color: var(--theme-secondary); }
.theme-section-title-accent { color: var(--theme-accent); }

/* Hellere Statustext-Elemente im Livebild-Header */
.theme-header-text-light { color: rgb(209,213,219); }  /* gray-300 */

.group:hover .group-hover\:text-theme { color: var(--theme-secondary); }
.hover\:text-theme:hover { color: var(--theme-secondary); }
