/**
  SEE FOR CSS SELECTORS https://www.w3schools.com/cssref/css_selectors.asp
*/

/* SELFHOSTING MATERIAL ICONS 
  https://developers.google.com/fonts/docs/material_icons
*/
@font-face {
  font-family: 'Material Symbols';
  font-style: normal;
  font-weight: normal;
  src:
    local('MateriaSymbols-Outlined'),
    /* Check if font is already installed locally on the client */ local('MaterialSymbols-Outlined'),
    url(../fonts/Material_Symbols/MaterialSymbols-Outlined.woff2) format('woff2'),
    url(../fonts/Material_Symbols/MaterialSymbols-Outlined.ttf) format('truetype');
}

.material-symbols {
  font-family: 'Material Symbols';
  font-weight: normal;
  font-style: normal;
  font-size: 24px; /* Preferred icon size */
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
}

@font-face {
  font-family: Lexend;
  src:
    local('Lexend'),
    url(../fonts/Lexend_variable/Lexend.woff2) format('woff2'),
    url(../fonts/Lexend_variable/Lexend.woff) format('woff'),
    url(../fonts/Lexend_variable/Lexend.ttf) format('truetype');
}

@media only screen and (max-width: 400px) {
}

@media only screen and (min-width: 401px) and (max-width: 600px) {
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
  [class*='col-'] {
    width: 100%;
  }

  .row {
    flex-direction: column;
  }

  .column {
    width: 100%;
    display: block;
  }

  .hide-on-small {
    display: none;
  }

  .spacer-horizontal {
    margin: 1rem 0 !important;
  }

  .footer {
    padding: 0.2rem 0.5rem 0.2rem 0 !important;
  }
}

/* iPhone 12 -> 1179×2556 pixels at 460ppi */
@media only screen and (max-width: 395px) and (max-height: 860px) {
  .footer {
    padding: 0.2rem 0.5rem 0.2rem 0 !important;
  }
}

/* iPhone 15 and iPhone 15 Pro -> 1179×2556 pixels at 460ppi */
@media only screen and (width: 393px) and (height: 852px) and (-webkit-device-pixel-ratio: 3) {
}

/* iPhone 15 Plus and iPhone 15 Pro Max -> 1284×2778 pixels at 460ppi */
@media only screen and (width: 430px) and (height: 932px) and (-webkit-device-pixel-ratio: 3) {
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 601px) {
  .col-s-1 {
    width: 8.33%;
  }
  .col-s-2 {
    width: 16.66%;
  }
  .col-s-3 {
    width: 25%;
  }
  .col-s-4 {
    width: 33.33%;
  }
  .col-s-5 {
    width: 41.66%;
  }
  .col-s-6 {
    width: 50%;
  }
  .col-s-7 {
    width: 58.33%;
  }
  .col-s-8 {
    width: 66.66%;
  }
  .col-s-9 {
    width: 75%;
  }
  .col-s-10 {
    width: 83.33%;
  }
  .col-s-11 {
    width: 91.66%;
  }
  .col-s-12 {
    width: 100%;
  }

  .hide-on-large-phones-and-up {
    display: none;
  }
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 767px) {
  body {
    margin: 0 1rem !important;
  }
  .hide-on-small-and-premedium {
    display: none;
  }

  .intro-content {
    margin: 1rem 0 !important;
  }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
  .col-1 {
    width: 8.33%;
  }
  .col-2 {
    width: 16.66%;
  }
  .col-3 {
    width: 25%;
  }
  .col-4 {
    width: 33.33%;
  }
  .col-5 {
    width: 41.66%;
  }
  .col-6 {
    width: 50%;
  }
  .col-7 {
    width: 58.33%;
  }
  .col-8 {
    width: 66.66%;
  }
  .col-9 {
    width: 75%;
  }
  .col-10 {
    width: 83.33%;
  }
  .col-11 {
    width: 91.66%;
  }
  .col-12 {
    width: 100%;
  }

  .hide-on-medium-up {
    display: none !important;
  }
}

@media only screen and (max-width: 900px) and (min-width: 601px) {
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 768px) and (max-width: 1199px) {
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (max-width: 1199px) {
  .hide-on-medium-and-down {
    display: none;
  }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
  .col-l-1 {
    width: 8.33%;
  }
  .col-l-2 {
    width: 16.66%;
  }
  .col-l-3 {
    width: 25%;
  }
  .col-l-4 {
    width: 33.33%;
  }
  .col-l-5 {
    width: 41.66%;
  }
  .col-l-6 {
    width: 50%;
  }
  .col-l-7 {
    width: 58.33%;
  }
  .col-l-8 {
    width: 66.66%;
  }
  .col-l-9 {
    width: 75%;
  }
  .col-l-10 {
    width: 83.33%;
  }
  .col-l-11 {
    width: 91.66%;
  }
  .col-l-12 {
    width: 100%;
  }

  .margin-left-right-large {
    margin-left: 2rem !important;
    margin-right: 2rem !important;
  }

  .margin-left-right {
    margin-left: 2rem !important;
    margin-right: 2rem !important;
  }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1800px) {
  .col-sl-1 {
    width: 8.33%;
  }
  .col-sl-2 {
    width: 16.66%;
  }
  .col-sl-3 {
    width: 25%;
  }
  .col-sl-4 {
    width: 33.33%;
  }
  .col-sl-5 {
    width: 41.66%;
  }
  .col-sl-6 {
    width: 50%;
  }
  .col-sl-7 {
    width: 58.33%;
  }
  .col-sl-8 {
    width: 66.66%;
  }
  .col-sl-9 {
    width: 75%;
  }
  .col-sl-10 {
    width: 83.33%;
  }
  .col-sl-11 {
    width: 91.66%;
  }
  .col-sl-12 {
    width: 100%;
  }

  .margin-left-right-large {
    margin-left: 12.33% !important;
    margin-right: 12.33% !important;
  }

  .margin-left-right {
    margin-left: 12.33% !important;
    margin-right: 12.33% !important;
  }
}

.z-depth-0 {
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
}

/* 2dp elevation modified*/
.z-depth-1 {
  -webkit-box-shadow:
    0 2px 2px 0 rgba(0, 0, 0, 0.14),
    0 3px 1px -2px rgba(0, 0, 0, 0.12),
    0 1px 5px 0 rgba(0, 0, 0, 0.2);
  box-shadow:
    0 2px 2px 0 rgba(0, 0, 0, 0.14),
    0 3px 1px -2px rgba(0, 0, 0, 0.12),
    0 1px 5px 0 rgba(0, 0, 0, 0.2);
}

/* 6dp elevation modified*/
.z-depth-2 {
  -webkit-box-shadow:
    0 4px 5px 0 rgba(0, 0, 0, 0.14),
    0 1px 10px 0 rgba(0, 0, 0, 0.12),
    0 2px 4px -1px rgba(0, 0, 0, 0.3);
  box-shadow:
    0 4px 5px 0 rgba(0, 0, 0, 0.14),
    0 1px 10px 0 rgba(0, 0, 0, 0.12),
    0 2px 4px -1px rgba(0, 0, 0, 0.3);
}

/* 12dp elevation modified*/
.z-depth-3 {
  -webkit-box-shadow:
    0 8px 17px 2px rgba(0, 0, 0, 0.14),
    0 3px 14px 2px rgba(0, 0, 0, 0.12),
    0 5px 5px -3px rgba(0, 0, 0, 0.2);
  box-shadow:
    0 8px 17px 2px rgba(0, 0, 0, 0.14),
    0 3px 14px 2px rgba(0, 0, 0, 0.12),
    0 5px 5px -3px rgba(0, 0, 0, 0.2);
}

/* 16dp elevation */
.z-depth-4 {
  -webkit-box-shadow:
    0 16px 24px 2px rgba(0, 0, 0, 0.14),
    0 6px 30px 5px rgba(0, 0, 0, 0.12),
    0 8px 10px -7px rgba(0, 0, 0, 0.2);
  box-shadow:
    0 16px 24px 2px rgba(0, 0, 0, 0.14),
    0 6px 30px 5px rgba(0, 0, 0, 0.12),
    0 8px 10px -7px rgba(0, 0, 0, 0.2);
}

/* 24dp elevation */
.z-depth-5 {
  -webkit-box-shadow:
    0 24px 38px 3px rgba(0, 0, 0, 0.14),
    0 9px 46px 8px rgba(0, 0, 0, 0.12),
    0 11px 15px -7px rgba(0, 0, 0, 0.2);
  box-shadow:
    0 24px 38px 3px rgba(0, 0, 0, 0.14),
    0 9px 46px 8px rgba(0, 0, 0, 0.12),
    0 11px 15px -7px rgba(0, 0, 0, 0.2);
}

:root {
  --primary-color: 0, 0, 0; /* Black */
  --secondary-color: 200, 156, 1; /* DARK ORANGE #C89C01 */
  --accent-color: 241, 209, 34; /* Yellow #f1d122 */
  --primary-font-color: 255, 255, 255; /* WHITE */
  --secondary-font-color: 0, 0, 0; /* BLACK */
  --positive-color: 60, 212, 35; /* Green #22c52d */
  --negative-color: 197, 48, 45; /* Red #c530 */
}

/*
  When input is filled with text, a blueish background color is applied.
  Prevent this with this hack
  https://stackoverflow.com/questions/61083813/how-to-avoid-internal-autofill-selected-style-to-be-applied
*/
input:-webkit-autofill,
input:-webkit-autofill:focus {
  transition:
    background-color 600000s 0s,
    color 600000s 0s;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
  /* Remove blue outline when focusing on element */
  outline: none;
}

* {
  box-sizing: border-box;
}
*:before,
*:after {
  box-sizing: inherit;
}
/* Column container */
.row {
  display: -ms-flexbox; /* IE10 */
  display: flex;
  -ms-flex-wrap: wrap; /* IE10 */
  flex-wrap: wrap;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  height: 100%;
  font-family: Lexend;
  font-weight: 400;
  font-size: 1.1rem;
  color: rgb(var(--primary-font-color));
  background-color: rgba(var(--primary-color), 1);
}
footer {
  display: flex;
  padding-top: 10px;
  padding-bottom: 10px;
  /* position: fixed; 
  bottom: 0; */
  width: 100%;
  width: -moz-available; /* For Mozzila */
  width: -webkit-fill-available; /* For Chrome */
  width: stretch; /* Unprefixed */
  transition: all 0.4s;
}

footer.static {
  position: fixed !important;
  bottom: 0 !important;
}

.btn,
a {
  color: rgba(var(--secondary-font-color), 1);
  text-decoration: none;
}

a:hover {
  color: rgba(var(--secondary-accent-color), 1);
  cursor: pointer;
}

button {
  border: none;
  padding: 0;
  margin: 0;
  font-family: Lexend;
  color: rgba(var(--secondary-color), 1);
  font-size: 1rem;
  text-decoration: none;
  background: unset;
  transition: 0.3s;
}

button:hover {
  color: rgba(var(--secondary-accent-color), 1);
  cursor: pointer;
}

button:focus {
  text-decoration: underline;
}

.no-touch {
  pointer-events: none;
}

.no-select {
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

.center-in-screen {
  position: fixed;
  top: 3vh;
  left: 50%;
  transform: translate(-50%, 0%);
}

.horizontal-align {
  display: flex;
  align-items: center;
}

.singleline-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.hide {
  display: none;
}

.no-scroll {
  overflow-y: hidden;
}

.out-faded {
  opacity: 0 !important;
  pointer-events: none;
}

.flex-row {
  display: flex;
  flex-direction: row;
}

.flex-center {
  justify-content: center;
  align-items: center;
}

.card {
  border-radius: 15px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.background-blend-bg-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Make touches go through */
  background-color: rgba(0, 0, 0, 1);
  z-index: 0;
  opacity: 0;
  overflow-y: hidden;
  transition: opacity 1s;
}

.background-blend-bg-active {
  pointer-events: visible;
  z-index: 1100;
  opacity: 0.8;
  cursor: pointer;
}

.footerPages-container-initial {
  position: fixed;
  bottom: 3rem;
  right: 0.5rem;
  z-index: -1;
  opacity: 0;
  color: rgba(var(--secondary-font-color), 1);
  background: white;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  transition: opacity 0s;
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
}

.footerPages-container-active {
  opacity: 1;
  z-index: 1101;
  transition: opacity 1.5s;
}

/* Footer */
.footer {
  padding: 0.5rem 0.5rem;
  text-align: left;
  opacity: 1;
  transition: opacity 1s 2.1s;
}

#footer-imprint,
#footer-terms {
  color: rgba(var(--primary-font-color), 1);
}

footer.static #footer-imprint {
  color: rgba(var(--accent-color), 1);
}

#footer-imprint:hover,
#footer-terms:hover {
  color: rgba(var(--accent-color), 1);
}

footer.static #footer-imprint:hover {
  color: rgba(var(--secondary-color), 1);
}

.footer-certs {
  gap: 0.5rem;
  align-items: center;
}

.footer-cert {
  height: 60px;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .footer-cert {
    height: 24px;
  }
}

/* CUSTOM PART OF WEBSITE */

.on-error {
  animation: shake-on-error 0.5s;
}

/* The snackbar - position it at the bottom and in the middle of the screen */
#snackbar {
  visibility: hidden; /* Hidden by default. Visible on click */
  min-width: 250px; /* Set a default minimum width */
  margin-left: -125px; /* Divide value of min-width by 2 */
  background-color: #333; /* Black background color */
  font-size: 1.3rem;
  color: #fff; /* White text color */
  text-align: center; /* Centered text */
  border-radius: 10px; /* Rounded borders */
  padding: 0.5rem;
  position: fixed; /* Sit on top of the screen */
  z-index: 1; /* Add a z-index if needed */
  left: 50%; /* Center the snackbar */
  bottom: 30px; /* 30px from the bottom */
}

/* Show the snackbar when clicking on a button (class added with JavaScript) */
#snackbar.show {
  visibility: visible; /* Show the snackbar */
  /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
  However, delay the fade out process for 2.5 seconds */
  -webkit-animation:
    fadein 0.5s,
    fadeout 0.5s 2.5s;
  animation:
    fadein 0.5s,
    fadeout 0.5s 2.5s;
}

#snackbar.info {
  color: black !important;
  background-color: rgba(var(--secondary-accent-color), 0.8) !important;
}

#snackbar.error {
  color: #fff !important;
  background-color: rgba(var(--negative-color), 0.85) !important;
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }
  to {
    bottom: 30px;
    opacity: 1;
  }
}

@keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }
  to {
    bottom: 30px;
    opacity: 1;
  }
}

@-webkit-keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }
  to {
    bottom: 0;
    opacity: 0;
  }
}

@keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }
  to {
    bottom: 0;
    opacity: 0;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fade-out {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
  }
}

@keyframes fade-in-out {
  0% {
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes fade-out-in {
  0% {
    opacity: 1;
  }
  20% {
    opacity: 0.8;
  }
  80% {
    opacity: 0.2;
  }
  100% {
    opacity: 0;
  }
}

@keyframes shake-on-error {
  0% {
    transform: translate(30px, 0);
  }
  20% {
    transform: translate(-30px, 0);
  }
  40% {
    transform: translate(15px, 0);
  }
  60% {
    transform: translate(-15px, 0);
  }
  80% {
    transform: translate(8px, 0);
  }
  100% {
    transform: translate(0, 0);
  }
}

main {
  min-height: calc(100vh - 10rem);
}

/* === Landing redesign === */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(var(--primary-color), 1);
  border-bottom: 1px solid rgba(var(--accent-color), 0.3);
  padding: 0.75rem 0;
}

.site-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo {
  width: 56px;
  height: 56px;
  /*background-color: rgba(var(--primary-font-color), 1);*/
  border: 1px solid rgba(var(--primary-font-color), 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-logo img {
  width: 70%;
  height: auto;
}

.brand-name {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.1;
  color: rgba(var(--primary-font-color), 1);
}

.brand-tagline {
  font-size: 0.85rem;
  opacity: 0.8;
  color: rgba(var(--primary-font-color), 1);
}

.system-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(var(--negative-color), 1);
  box-shadow: 0 0 8px rgba(var(--negative-color), 0.7);
  flex-shrink: 0;
}

.status-line-1 {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(var(--negative-color), 1);
  letter-spacing: 0.05em;
}

.status-line-1.online {
  color: rgba(var(--positive-color), 1);
}

.status-dot.online {
  background: rgba(var(--positive-color), 1);
  box-shadow: 0 0 8px rgba(var(--positive-color), 0.7);
}

.status-line-2 {
  font-size: 0.75rem;
  opacity: 0.7;
  color: rgba(var(--primary-font-color), 1);
}

.intro {
  padding: 0rem 1.5rem 0rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.intro-content {
  flex: 1;
}

.intro-map {
  flex: 0 0 auto;
}

.intro-map img {
  max-height: 260px;
  width: 40vw;
  object-fit: cover;
  opacity: 0.85;
}

.intro-headline {
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin: 0 0 0.75rem;
  color: rgba(var(--primary-font-color), 1);
}

.intro-subtitle {
  font-size: 0.95rem;
  opacity: 0.75;
  margin: 0 0 1.5rem;
  color: rgba(var(--primary-font-color), 1);
}

.btn-pill {
  display: inline-block;
  background: rgba(var(--accent-color), 1);
  color: rgba(var(--secondary-font-color), 1);
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: filter 0.2s;
  font-family: Lexend;
}

.btn-pill:hover {
  filter: brightness(1.08);
  color: rgba(var(--secondary-font-color), 1);
}

.btn-pill-large {
  font-size: 1rem;
  padding: 0.85rem 2rem;
}

.connect-cta .btn-pill {
  font-size: 1.1rem;
  padding: 1.35rem 2.5rem;
}

.stats-ribbon {
  background: rgba(var(--primary-color), 1);
  border-top: 1px solid rgba(var(--accent-color), 0.25);
  border-bottom: 1px solid rgba(var(--accent-color), 0.25);
  padding: 1rem 0;
  margin: 0rem 0 2rem;
}

.stats-ribbon-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 1rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stat-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(var(--primary-font-color), 1);
}

.stat-label {
  font-size: 0.8rem;
  opacity: 0.7;
  color: rgba(var(--primary-font-color), 1);
}

.connect-cta {
  display: flex;
  justify-content: center;
  padding: 4rem 0 3rem;
}

/* ---- stats-ribbon exit ---- */

.stats-ribbon {
  transition:
    transform 0.45s ease,
    opacity 0.45s ease;
}

.stats-ribbon.is-leaving {
  transform: translateX(-110%);
  opacity: 0;
}

/* ---- connect-cta pill exit ---- */

.connect-cta {
  transition: opacity 0.45s ease;
}

.connect-cta.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.connect-cta-btn {
  font-size: 1.1rem;
  padding: 1.35rem 2.5rem;
  cursor: pointer;
}

/* ---- connect-card reveal ---- */

.connect-card {
  display: flex;
  justify-content: center;
  padding: 2rem 0 3rem;
}

.connect-card[hidden] {
  display: none;
}

.connect-card-form {
  width: 100%;
  max-width: 640px;
  background: rgba(var(--primary-color), 1);
  border: 1px solid rgba(var(--primary-font-color), 1);
  border-radius: 12px;
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.connect-card.is-visible .connect-card-form {
  opacity: 1;
}

.connect-card.is-leaving .connect-card-form {
  opacity: 0;
}

.connect-card-title {
  margin: 0 0 0.5rem;
  color: rgba(var(--primary-font-color), 1);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.connect-field {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  gap: 1rem;
}

.connect-field label {
  color: rgba(var(--primary-font-color), 1);
  font-size: 0.95rem;
}

.connect-field input {
  background: rgba(var(--primary-color), 1);
  color: rgba(var(--primary-font-color), 1);
  border: 1px solid rgba(var(--primary-font-color), 1);
  border-radius: 6px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  width: 100%;
  transition: border-color 0.15s ease;
}

.connect-field input:focus {
  border-color: rgba(var(--accent-color), 1);
}

.connect-form-submit {
  width: 100%;
  margin-top: 0.5rem;
}

.connect-form-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: none;
}

.connect-input-uppercase {
  text-transform: uppercase;
}

.kundenservice-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(var(--accent-color), 1);
  color: rgba(var(--secondary-font-color), 1);
  padding: 1.5rem 2rem;
  border-radius: 8px;
  max-width: 80%;
  z-index: 1102;
  font-size: 0.95rem;
  text-align: center;
}

/* ---- aufzeichnung section ---- */

.aufzeichnung {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 0 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.aufzeichnung[hidden] {
  display: none;
}

.aufzeichnung.is-visible {
  opacity: 1;
}

.aufzeichnung > * {
  width: 100%;
  max-width: 720px;
}

.recording-title,
.log-title {
  margin: 0 0 0.75rem;
  color: rgba(var(--primary-font-color), 1);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recording-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 720px;
  background: #000;
  border: 1px solid rgba(var(--primary-font-color), 1);
  overflow: hidden;
}

.recording-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.recording-timestamp {
  position: absolute;
  top: 0.75rem;
  left: 1rem;
  font-family: monospace;
  font-size: 0.95rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.recording-playpause {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.recording-playpause-icon {
  font-size: 2.5rem;
}

.recording-frame.has-video:hover .recording-playpause {
  opacity: 1;
  pointer-events: auto;
}

/* ---- log cards: EREIGNISPROTOKOLL + NEWSCHANNEL ---- */

.log-cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.log-cards[hidden] {
  display: none;
}

.log-cards.is-visible {
  opacity: 1;
}

.log-card-wrapper {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
}

.log-card {
  border: 1px solid rgba(var(--primary-font-color), 1);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  overflow: hidden;
}

.log-id-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  padding-bottom: 1rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(var(--primary-font-color), 0.25);
}

.log-id {
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  color: rgba(var(--primary-font-color), 1);
  flex-shrink: 0;
}

.log-disclaimer {
  color: rgba(var(--negative-color), 1);
  font-size: 0.9rem;
  line-height: 1.4;
}

.log-entries {
  list-style: none;
  padding: 0;
  margin: 0;
}

.log-entries li {
  display: grid;
  grid-template-columns: 1.25rem 6rem 1fr;
  gap: 0.75rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(var(--primary-font-color), 0.15);
}

.log-entries li:last-child {
  border-bottom: none;
}

.log-entries-news li {
  grid-template-columns: 7rem 1fr;
}

.log-video-icon {
  width: 1rem;
  height: 1rem;
  color: rgba(var(--primary-font-color), 1);
  align-self: center;
  flex-shrink: 0;
}

.log-entries li[media-id] {
  cursor: pointer;
}

.log-entries li[media-id]:hover {
  background: rgba(var(--accent-color), 0.3);
}

.log-time {
  font-family: monospace;
  font-size: 0.95rem;
  color: rgba(var(--primary-font-color), 1);
  flex-shrink: 0;
}

.log-text {
  font-size: 0.95rem;
  color: rgba(var(--primary-font-color), 1);
}

@media only screen and (min-width: 1200px) {
  .log-cards {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 2.5rem;
  }

  .log-card-wrapper {
    flex: 1 1 0;
    max-width: 720px;
  }
}

@media only screen and (max-width: 768px) {
  .brand-tagline {
    display: none;
  }

  .status-line-2 {
    display: none;
  }

  .brand-name {
    font-size: 1.1rem;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .intro-headline {
    font-size: 1.3rem;
  }

  .stats-ribbon-inner {
    flex-wrap: wrap;
  }

  .stat-item {
    flex: 0 0 calc(50% - 1rem);
  }

  .stat-value {
    font-size: 1.2rem;
  }

  .stat-icon {
    width: 32px;
    height: 32px;
  }

  .intro-map {
    display: none;
  }
}
