
@font-face {
    font-family: 'CarosSoft';
    src: url('../fonts/CarosSoft.woff');
}
/*
@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    src: url(../fonts/CarosSoft.eot);
    src: url(../fonts/MaterialIcons-Regular.eot);    
     For IE6-8 
    src: local('Material Icons'), local('MaterialIcons-Regular'), url(../fonts/MaterialIcons-Regular.woff2) format('woff2'), url(../fonts/MaterialIcons-Regular.woff) format('woff'), url(../fonts/MaterialIcons-Regular.ttf) format('truetype');
}
*/
:root{
  --f7-list-item-text-max-lines: 5;
  --f7-theme-color: #005286;
  --f7-theme-color-rgb: 0, 182, 134;
} 
 
 body {
    font-family: 'CarosSoft', sans-serif;
}
 
.eventlogo {
    width: 25px;
    height:25px;
}

.odometer {
    font-size: 100px;
}

.alarm-info {
	font-weight: bold;
	font-size: 100px;	
}

.card-header {
	font-weight: bold;
	font-size: 18px;	
}

.flow {
  animation: shadow 1s infinite ease;
}

.shadow {
  animation: shadow 8s infinite ease;
}

@keyframes shadow {
  0% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
  to {
    opacity: 0.2;
  }
}

.add-button {
  position: absolute;
  top: 1px;
  left: 1px;
}


.bg-color-green {
  --f7-theme-color-bg-color: #abdbb6;
}

.bg-color-red {
  --f7-theme-color-bg-color: #dbabad;
}

.bg-color-orange {
  --f7-theme-color-bg-color: #dbd6ab;
}


.home_statusline .item-content,
.home_statusline .item-inner {
  padding-top: 0px;
  padding-bottom: 0px;
}

.home_statusline .item-title,
.home_statusline .item-after {
  line-height: 0.9;
  font-size: 16px;
}

.page-signin .header-logo img {
  width: 216px;   /* 3× larger */
  height: auto;
  margin: 0 auto;
  display: block;
}

.page-signin .header-logo h4 {
  margin-top: 5rem;
  font-weight: 500;
  color: #fff; /* or adjust for background */
}

.page-signin .button {
  min-width: 150px;
}

.page-signin .button-outline {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.page-signin .cid-block {
  font-size: 12px;
  opacity: 0.6;
}


.vacation-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 2px solid var(--f7-color-gray);
  color: var(--f7-color-gray);
}

/* Active (vacation mode ON) */
.vacation-btn.active {
  background-color: var(--f7-color-green);
  border-color: var(--f7-color-green);
  color: #fff;
  box-shadow: 0 3px 8px rgba(0, 128, 0, 0.3);
}

/* Icon size */
.vacation-btn i {
  font-size: 24px;
}

.custom-slider-item .item-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--f7-text-color);
  white-space: normal; /* allow wrapping */
 line-height: 1.3;        /* increase line spacing */  
  margin-bottom: 5px;      /* extra space below headline */  
}

/* Ensure description text wraps and has good spacing */
.custom-slider-item .item-description {
  margin-top: 4px;
  margin-bottom: 10px; /* more space below text */
  white-space: normal;
  word-break: break-word;
  color: var(--f7-text-muted-color);
  line-height: 1.3em;
}

/* Add space below slider */
.custom-slider-item .range-slider {
  margin-bottom: 14px;
}


.sublist {
  margin-left: 1.5rem;   /* leicht eingerückt */
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--f7-text-color-gray);
}
.sublist .subitem {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.sublist .key {
  font-weight: 500;
}
.sublist .value {
  color: var(--f7-theme-color);
}


/* Remove bottom border if you want a very clean look */
.home_lower .item-content:after {
  display: none;
}
/* Make the list fully compact */
.compact-list .item-content {
  min-height: unset;            /* remove default min height (44px on iOS) */
  padding-top: 0;
  padding-bottom: 0;
}

/* Tighten outer padding */
.compact-list {
  padding-top: 0;
  padding-bottom: 0;
  margin-top: -2px;             /* slightly collapse remaining spacing */
  margin-bottom: -2px;
}


/* Tighten inner padding */
.compact-list .item-inner {
  padding-top: 0;
  padding-bottom: 0;
  margin-top: -2px;             /* slightly collapse remaining spacing */
  margin-bottom: -2px;
}

/* Reduce text line height */
.compact-list .item-title,
.compact-list .item-after {
  font-size: 0.9rem;
  line-height: 1.1;             /* << this is key to reduce vertical spacing */
  padding-top: 0;
  padding-bottom: 0;
}

/* Remove the F7 default borders (optional) */
.compact-list .item-content:after {
  display: none;
}

/* Remove any top/bottom margins on UL */
.compact-list ul {
  margin-top: 0;
  margin-bottom: 0;
  line-height: 0.9;             /* << this is key to reduce vertical spacing */
}

/* Remove any top/bottom margins on UL */
.compact-list li {
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
  line-height: 0.9;             /* << this is key to reduce vertical spacing */
}

/* Reduce button height inside the list */
.compact-list .button {
  --f7-button-height: 24px;     /* smaller height variable */
  padding: 0 8px;
  font-size: 0.8rem;
}
 
.alarm-item {
  align-items: center;
  min-height: 46px;
  padding: 4px 0;
  transition: opacity 0.2s;
}

/* ===== Alarm List Styling ===== */
.alarm-item {
  align-items: center;
  min-height: 48px;
  padding: 4px 0;
  transition: opacity 0.25s, background 0.25s;
}

/* Left alarm icon box */
.alarm-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eee;
}
.alarm-icon-box i {
  font-size: 20px;
  color: var(--f7-theme-color, #007aff);
}

/* Alarm title */
.alarm-title {
  font-weight: 600;
  margin-left: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--f7-list-item-text-color, #000);
}

/* Right indicator bar (mail/push/voice/valve) */
.alarm-indicators {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 90px;
  line-height: 1;
}
.indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: inherit;
}
.indicator i.f7-icons {
  font-size: 20px;
  line-height: 1;
  display: block;
  vertical-align: middle;
}
.indicator svg {
  width: 20px;
  height: 20px;
  display: block;
  vertical-align: middle;
}

/* === Alarm Icon Styling === */
.alarm-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px; /* slightly rounded */
  color: white;
  font-size: 18px;
  flex-shrink: 0;
  margin-right: 8px;
}

.alarm-item .alarm-title {
  font-weight: 500;
  font-size: 15px;
  line-height: 1.2;
}

.alarm-item .alarm-indicators {
  display: flex;
  gap: 6px;
  align-items: center;
}

.alarm-item .alarm-indicators .indicator i {
  font-size: 18px;
}

.alarm-item.inactive .alarm-title,
.alarm-item.inactive .alarm-icon-box {
  opacity: 0.5;
  filter: grayscale(70%);
}

.hidden {
  display: none !important;
}
#deviceCards .card {
  display: block !important;
}

#acc5_content .card {
  margin: 1rem auto;
  max-width: 400px;
}
.card img {
  border-radius: 12px;
}
.shadow-md {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.buttons-center {
  display: flex;
  justify-content: center;      /* center horizontally */
  align-items: center;
  gap: 0.75rem;                 /* space between buttons */
  flex-wrap: wrap;              /* stack nicely on small screens */
  margin-top: 0.5rem;
}

.buttons-center .button {
  min-width: 150px;             /* optional: same width for both */
  flex: 0 0 auto;
}

.accordion-locked {
  pointer-events: none;
  opacity: 0.5;             /* optional: leicht ausgegraut */
  cursor: not-allowed;
}

.blink-dot{
  --size: 12px;
  --red:  #e53935;
  --green:#43a047;

  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  display: inline-block;
  background: var(--red);
  box-shadow: 0 0 6px rgba(229,57,53,0.8);
  animation: dotBlink 1s steps(1, end) infinite;
  vertical-align: middle;
}

@keyframes dotBlink{
  0%,49.9%{
    background: var(--red);
    box-shadow: 0 0 6px rgba(229,57,53,0.8);
  }
  50%,100%{
    background: var(--green);
    box-shadow: 0 0 6px rgba(67,160,71,0.8);
  }
}

/* Barrierefreiheit: Animation abschalten, wenn gewünscht */
@media (prefers-reduced-motion: reduce){
  .blink-dot{ animation: none; }
}

.hidden {
  display: none;
}

.block.text-align-center {
  text-align: center;
}

.margin-top {
  margin-top: 1rem;
}

.margin-bottom {
  margin-bottom: 1rem;
}

.margin-right-half {
  margin-right: 0.5rem;
}

.input-outline {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 8px;
}

/* 🔥 Shake Animation for invalid inputs */
@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.4s ease-in-out;
}

.page[data-name="auth"] .page-content {
  margin-top: 100px; /* Platz für Navbar + Tabs */
}

.navbar .subnavbar {
  top: 44px; /* direkt unter dem Navbar-Titel */
}

.tabbar a.tab-link {
  font-size: 15px;
  font-weight: 500;
  padding-top: 6px;
  padding-bottom: 6px;
}

.tabbar a.tab-link-active {
  border-bottom: 3px solid #007aff; /* iOS-Blau sichtbar */
  color: #007aff !important;
}

.loader-screen {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;     /* vertikal zentrieren */
  justify-content: center; /* horizontal zentrieren */
  flex-direction: column;
  text-align: center;
}

.loader-logo {
  width: 120px; /* nach Bedarf anpassen */
  height: auto;
}

.background-overlay {
  position: absolute;
  top: 0; left: 0;
  right: 0; bottom: 0;
  z-index: -1;
  background: rgba(0,0,0,0.4); /* optional */
}

/* Beispiel für Spinner-Animation */
.loader-rectangles {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.loader-rectangles div {
  width: 6px;
  height: 20px;
  background-color: #00aaff;
  animation: bounce 1.2s infinite ease-in-out;
}

.loader-rectangles div:nth-child(2) {
  animation-delay: -1.1s;
}
.loader-rectangles div:nth-child(3) {
  animation-delay: -1.0s;
}

@keyframes bounce {
  0%, 80%, 100% { transform: scaleY(0.4); }
  40% { transform: scaleY(1.0); }
}