/* ==========================================================================
   Taxi4Tirol – base styles
   Brand tokens, typography, header/footer, navigation, cookie banner
   ========================================================================== */

/* ---- Fonts (self hosted) ---- */
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../assets/fonts/manrope.woff2?v=ce340d48") format("woff2");
}

/* ---- Brand tokens ---- */
:root {
  --navy: #3c0000;
  --navy2: #2a0000;
  --gold: #e8ddd0;
  --gold2: #f5ece0;
  --gold-light: #ffffff;
  --silver: #c8bfb5;
  --white: #f5f0eb;
  --mid: #9a8580;
  --card: #320000;
  --border: rgba(200, 80, 80, 0.3);
  --contrast: #111111;
  --accent-5: #fbfaf3;

  --fs-small: 0.875rem;
  --fs-medium: clamp(1rem, 1rem + ((1vw - 0.2rem) * 0.196), 1.125rem);
  --fs-large: clamp(1.125rem, 1.125rem + ((1vw - 0.2rem) * 0.392), 1.375rem);
  --fs-xl: clamp(1.75rem, 1.75rem + ((1vw - 0.2rem) * 0.392), 2rem);
  --fs-xxl: clamp(2.15rem, 2.15rem + ((1vw - 0.2rem) * 1.333), 3rem);

  --pad: clamp(24px, 5vw, 50px);
  --content-size: 645px;
  --wide-size: 1340px;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background-color: #320000;
  color: var(--white);
  font-family: Manrope, system-ui, sans-serif;
  font-size: var(--fs-large);
  font-weight: 300;
  letter-spacing: -0.1px;
  line-height: 1.4;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
/* Keep <picture> wrappers layout-transparent so existing rules on <img> still apply. */
picture {
  display: contents;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #ffffff;
  font-weight: 400;
  letter-spacing: -0.1px;
  line-height: 1.125;
  margin: 0 0 0.5em;
}
h1 {
  font-size: var(--fs-xxl);
}
h2 {
  font-size: var(--fs-xl);
}
h3 {
  font-size: var(--fs-large);
}
p {
  margin: 0 0 1em;
}
p,
li,
td,
th,
label {
  color: var(--silver);
}
a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--gold-light);
}
button {
  font-family: inherit;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--navy);
}
::-webkit-scrollbar-thumb {
  background: #8b1a1a;
  border-radius: 2px;
}

/* ---- Layout helpers ---- */
.container {
  width: 100%;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.content-width {
  max-width: var(--content-size);
  margin-left: auto;
  margin-right: auto;
}
.wide-width {
  max-width: var(--wide-size);
  margin-left: auto;
  margin-right: auto;
}
.alignfull {
  margin-left: calc(-1 * var(--pad));
  margin-right: calc(-1 * var(--pad));
}
.has-text-align-center {
  text-align: center;
}
.spacer {
  height: 40px;
}
.spacer--lg {
  height: clamp(70px, 10vw, 140px);
}
.has-small-font-size {
  font-size: var(--fs-small) !important;
}
.has-medium-font-size {
  font-size: var(--fs-medium) !important;
}
.has-large-font-size {
  font-size: var(--fs-large) !important;
}
.has-xx-large-font-size {
  font-size: var(--fs-xxl) !important;
}
.section-light {
  background-color: var(--accent-5);
  color: var(--contrast);
}
.section-light p,
.section-light li,
.section-light span,
.section-light label {
  color: var(--contrast);
}

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 200;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 20px var(--pad);
}
.site-logo img {
  width: 168px;
  height: auto;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.primary-nav a {
  color: var(--silver);
  font-size: var(--fs-medium);
  white-space: nowrap;
}
.primary-nav a:hover,
.primary-nav a.is-active {
  color: #ffffff;
}

/* Language switcher */
.lang-switcher {
  position: relative;
}
.lang-switcher__button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: none;
  color: var(--silver);
  font-size: var(--fs-medium);
  padding: 0;
  cursor: pointer;
}
.lang-switcher__button:hover {
  color: #fff;
}
.lang-switcher__chevron {
  width: 10px;
  height: 10px;
  fill: currentColor;
}
.lang-switcher__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 160px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--navy2);
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 300;
}
.lang-switcher.is-open .lang-switcher__menu {
  display: block;
}
.lang-switcher__menu a {
  display: block;
  padding: 8px 12px;
  font-size: var(--fs-small);
  color: var(--silver);
}
.lang-switcher__menu a:hover,
.lang-switcher__menu a.is-active {
  color: #fff;
  background: rgba(200, 80, 80, 0.12);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--navy2);
  border-top: 1px solid var(--border);
  color: var(--mid);
  margin-top: 0;
}
.site-footer__inner {
  padding: clamp(30px, 6vw, 60px) var(--pad);
}
.site-footer__grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}
.site-footer__brand img {
  width: 150px;
  height: auto;
}
.site-footer__title {
  margin: 1rem 0 0;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 400;
}
.site-footer__contact {
  margin: 0.75rem 0 0;
  color: var(--mid);
  font-size: var(--fs-small);
  font-style: normal;
  line-height: 1.6;
}
.site-footer__contact a {
  color: var(--gold);
}
.site-footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.85rem;
  margin-top: 0.25rem;
}
.site-footer__links a {
  color: var(--gold);
  font-size: var(--fs-medium);
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.site-footer__bottom p {
  margin: 0;
  color: var(--mid);
  font-size: var(--fs-small);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--navy);
  color: #fff;
  transition: all 0.25s ease;
}
.btn:hover {
  background: #520000;
  color: #fff;
}
.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.btn--gold:hover {
  background: var(--gold2);
  color: var(--navy);
}

/* ==========================================================================
   Cookie banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--navy2);
  border-top: 1px solid var(--border);
  padding: 1rem var(--pad);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.4);
}
.cookie-banner[hidden] {
  display: none;
}
.cookie-banner__message {
  margin: 0;
  color: var(--silver);
  font-size: var(--fs-small);
  max-width: 720px;
  flex: 1 1 320px;
  text-align: center;
}
.cookie-banner__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.cookie-banner__actions button {
  padding: 8px 16px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid #ffffff;
  background: #ffffff;
  color: #111111;
}
.cookie-banner__actions button:hover {
  background: var(--gold2);
}
.cookie-banner__actions .cookie-accept {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.65);
}
.cookie-modal[hidden] {
  display: none;
}
.cookie-modal__panel {
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--navy);
  border: 1px solid var(--border);
  padding: 1.5rem;
}
.cookie-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.cookie-modal__head h2 {
  margin: 0;
  font-size: 1.3rem;
}
.cookie-modal__close {
  background: transparent;
  border: none;
  color: var(--silver);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.cookie-cat {
  border: 1px solid var(--border);
  padding: 0.9rem 1rem;
  margin-bottom: 0.75rem;
}
.cookie-cat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cookie-cat__head strong {
  color: #fff;
}
.cookie-cat p {
  margin: 0.5rem 0 0;
  font-size: var(--fs-small);
}
.cookie-toggle {
  flex-shrink: 0;
  font-size: 0.7rem;
}
.cookie-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1rem;
}

/* ==========================================================================
   Responsive navigation (mobile)
   ========================================================================== */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }
  .primary-nav {
    position: fixed;
    inset: 0;
    z-index: 400;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.25rem;
    padding: 84px var(--pad) 2rem;
    background: var(--navy2);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  .primary-nav.is-open {
    transform: translateX(0);
  }
  .primary-nav a {
    width: 100%;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.1rem;
  }
  .lang-switcher {
    margin-top: 1rem;
  }
  .lang-switcher__menu {
    position: static;
    margin-top: 6px;
    box-shadow: none;
  }
  .site-footer__grid {
    flex-direction: column;
  }
  .site-footer__links {
    align-items: flex-start;
  }
}
