/***********************************************
 * To override the default style (for project)
 ***********************************************/

/*
 *  Sytral colors scheme
 *  - white: #FFFFFF
 *  - red sytral: #e2001a
 *  - grey sytral: #707173
 *  - light grey shade: #f1f5f5
 *  - dark grey shade: #272727
 */

/* Allow to hide [] in geolocation */
app-journey-details {
    visibility: hidden;
}



.iframeSips{ 
    overflow: scroll !important;
}

body {
  font-family: "Roboto" !important;
}

a, p, span {
    font-family: "Roboto" !important;
}


h1, h2, h3, h4 {
  font-family: "TTRoundCondensed" !important;
}


#container::before {
    content: none !important;
    background: none !important;
}


body {
    font-family: "Roboto" !important;
    background-color: #e7e7e7 !important;
}

#container {
    background-color: #e7e7e7 !important;
}

/* Top header */
.h1-header, .log-box {
    background: #ffffff !important;
}

.login-data {
  border: 1px solid rgb(60, 60, 60) !important;
  background-color: white !important;
  color: #3c3c3c
}

.language-select li {
  border: 2px solid rgb(60, 60, 60) !important;
}

.icon-logout {
  filter: brightness(20%) sepia(100%) hue-rotate(0deg) saturate(0%) !important;
  width: 20px !important;
  height: 20px !important;
}

button.lang:focus, button.lang:hover {
  border: 2px solid black !important;
  border-radius: 50% !important;
}

.icon-logout h1 {
  background-color: transparent !important;
}


@media screen and (max-width:750px) {
 h1 {
  background:0 0 !important;
 }
}

.navbar-logo {
    background: url(/assets/img/wiener_linien_logo.png) 0 0/contain no-repeat !important;
    margin-left: 1em;
}

#user-name {
    font-weight: bold !important;
}


/* Header navbar */
nav.sidenav li a {
    color: #333 !important;
    font-weight: bold;
    opacity: 1;
}

nav.sidenav li.active a {
    color: #e2001a !important;
}

nav.sidenav li a:hover {
    background-color: transparent !important;
}

.label-info {
    color: #e2001a !important;
}

h2 {
    color: #333 !important;
    border-top: 3px solid #333 !important;
}

/* Buttons */
.highlight-bt {
    background-color: #e2001a !important;
    color: #ffffff !important;
    border: 2px solid #e2001a !important;
}

.highlight-bt:focus, .highlight-bt:hover {
    border: 2px solid #e2001a !important;
    color: #e2001a !important;
    background: #ffffff !important;
}

.btn-primary {
    background-color: #e2001a !important;
    color: #ffffff !important;
    border: 2px solid #e2001a !important;
}

.btn-primary:focus, .btn-primary:hover {
    border: 2px solid #e2001a !important;
    color: #e2001a !important;
    background: #ffffff !important;
}

.secondary-bt {
    color: #e2001a !important;
}

.highlight-bt, .secondary-bt {
    font-family: "Roboto" !important;
    font-style: normal !important;

}

.secondary-bt:focus, .secondary-bt:hover {
    border: 2px solid #e2001a !important;
    color: #e2001a !important;
}


input#buttonFilter {
    margin-right: 10px;
    background: #e2001a;
    color: #fff;
    border-color: #e2001a;
    padding: 0.5rem 2.7rem;
}

input#buttonReinit {
    margin-right: 10px;
    background: #e2001a;
    color: #fff;
    border-color: #e2001a;
    padding: 0.5rem 2.7rem;
}

.search-filter {
    background-color: #ffffff !important;
}

/* Icons and badges */
.fa-exclamation {
    color: #e2001a !important;
    font-size: 43px !important;
}

.icon-bus {
    background-color: #ffffff !important;
}

.icon-invoice {
    background-color: #f0f0f0 !important;
}

/* Extras */
.total-bill {
    background-color: #d1d1d1 !important;
    color: #222 !important;
}

/* Tab panel */
.tab-typeTrip>ul.tabs a.active, .tab-typeTrip>ul.tabs a.active:link, .tab-typeTrip>ul.tabs a.active:visited {
    background: #e2001a !important;
    color: #ffffff !important;
}

.tab-typeTrip>ul.tabs a:focus, .tab-typeTrip>ul.tabs a:hover {
    color: white !important;
}

.modal-content {
    background-color: #fff;
    border-radius: 4px;
    margin: 16px auto;
    max-width: 600px !important;
    position: relative;
    width: 100%;
    display: flex;
    text-align: left;
    max-height: 90vh;
}

/* Footer */
footer {
    background-color: #272727 !important;
}
* FAQ card list */
.faq { display: grid; gap: 14px; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease;
}
.faq-item:hover { transform: translateY(-1px); }

/* Question bar (acts as the toggle) */
.faq-question {
  width: 100%;
  background: #fff;
  border: none;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--heading);
  text-align: left;
}
.faq-question:focus { outline: 3px solid #4a90e2; outline-offset: 2px; }

/* Right-side icon area (plus/minus) */
.icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #333;
  margin-left: 8px;
}

/* The two bars of the plus icon are created with pseudo-elements */
.icon::before,
.icon::after {
  content: '';
  position: absolute;
  background-color: currentColor;
}

/* Horizontal bar */
.icon::before { top: 50%; left: 4px; width: 14px; height: 2px; margin-top: -1px; }

/* Vertical bar (this is the one that animates) */
.icon::after {
  top: 4px; left: 50%; width: 2px; height: 14px; margin-left: -1px; transition: transform 0.2s ease-in-out;
}

/* Answer area */
.faq-answer {
  padding: 0 22px;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.6;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
  border-top: 1px solid #f0f0f0;
  background: #fff;
}

.faq-item.open .faq-answer { max-height: 500px; padding-bottom: 16px; }

/* Style for hyperlinks within the answer content */
/* We use ::ng-deep because the link is inside HTML injected via [innerHTML] */
:host ::ng-deep .faq-answer a {
  color: #007bff; /* A standard, accessible blue */
  text-decoration: underline;
  transition: color 0.2s ease;
}

:host ::ng-deep .faq-answer a:hover,
:host ::ng-deep .faq-answer a:focus {
  color: #0056b3; /* A darker blue for interaction */
}

/* When open, the vertical bar is scaled to 0, creating a minus sign */
.faq-item.open .icon::after { transform: scaleY(0); }

@media (max-width: 750px) {
    .faq-question { font-size: 1.1rem; padding-left: 10px; }
    .faq-item{ margin-left:50px; margin-right:50px; }
    .icon { padding-right:10px; padding-left:10px; }
    .faq { display: grid;gap: 14px; margin-bottom: 100px;}
     #table-title {
       padding-left: 30px;
       padding-right: 30px;
       position: relative;
       border-top: none;
     }
     #table-title::before {
       content: "";
       position: absolute;
       top: 0;
       left: 25px;
       right: 25px;
       height: 2px;
       background-color: #fff;
     }
   }

/* Custom fonts */


@font-face {
    font-family: "Roboto";
    src: url("../fonts/Roboto-Regular.woff2") format("woff2"), url("../fonts/Roboto-Regular.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Roboto";
    src: url("../fonts/Roboto-Italic.woff2") format("woff2"), url("../fonts/Roboto-Italic.woff") format("woff");
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: "Roboto";
    src: url("../fonts/Roboto-Bold.woff2") format("woff2"), url("../fonts/Roboto-Bold.woff") format("woff");
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: "TTRoundCondensed";
    src: url("../fonts/TTRoundsCondensed-Regular.woff2") format("woff2"), url("../fonts/Roboto-TTRoundsCondensed-Regular.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}
