/*
Theme Name: S&R Travels
Theme URI: https://srtravels.site/
Author: S&R Travels
Description: Öffentliche Seiten von S&R Travels in Luzern. Startseite, Fahrzeuge, Über uns und Kontakt.
Version: 1.0.2
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: sr-travels
*/

:root {
  --navy: #102a56;
  --navy-dark: #0b1d3d;
  --red: #c8102e;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #e7e5e4;
  --soft: #fafaf9;
  --white: #fff;
  --max: 72rem;
  --header: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.topbar {
  height: 4px;
  background: var(--red);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-right: auto;
}

button.nav-toggle {
  display: none;
}

.nav-list,
.account-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a,
.account-links a {
  color: #44403c;
  font-size: 0.95rem;
}

.nav-list a[aria-current="page"],
.nav-list .current-menu-item > a {
  color: var(--ink);
  font-weight: 600;
}

.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  background: var(--navy);
  color: var(--white);
  font-weight: 500;
  cursor: pointer;
}

.btn:hover {
  background: var(--navy-dark);
}

header button.nav-toggle {
  display: none;
}

.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border-color: #d6d3d1;
}

.btn-ghost:hover {
  background: var(--soft);
}

.hero {
  background: var(--navy);
}

.hero img {
  width: min(1100px, 100%);
  margin-inline: auto;
}

.section {
  padding: 3.5rem 0;
}

.section-soft {
  background: var(--soft);
  border-block: 1px solid var(--line);
}

.lede {
  max-width: 40rem;
}

h1,
h2,
h3 {
  letter-spacing: -0.025em;
  line-height: 1.2;
  font-weight: 600;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
}

.muted {
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--white);
  overflow: hidden;
}

.card-media {
  aspect-ratio: 16 / 10;
  background: #f5f5f4;
  object-fit: cover;
  width: 100%;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem;
  height: 100%;
}

.card-body h2,
.card-body h3 {
  margin: 0;
  font-size: 1.25rem;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 1rem;
  margin: 0.75rem 0;
  font-size: 0.925rem;
}

.specs dt {
  color: var(--muted);
}

.specs dd {
  margin: 0;
}

.price {
  margin: 0.25rem 0 0;
  font-weight: 600;
}

.card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.features li {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--white);
}

.features h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.features p,
.prose p {
  margin: 0;
  color: var(--muted);
}

.posters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}

.posters img {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.925rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--white);
}

.filters label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.filters input,
.filters select,
.field input,
.field textarea {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid #d6d3d1;
  border-radius: 0.375rem;
  background: var(--white);
}

.filters .span-2 {
  grid-column: span 2;
}

.vehicle-layout {
  display: grid;
  gap: 2rem;
}

.vehicle-layout img {
  width: 100%;
  border-radius: 0.5rem;
  background: #f5f5f4;
  object-fit: cover;
}

.panel {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.badge {
  display: inline-flex;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 0.8rem;
  font-weight: 600;
}

.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li + li {
  margin-top: 0.85rem;
}

.form {
  display: grid;
  gap: 0.85rem;
}

.field {
  display: grid;
  gap: 0.3rem;
}

.hp {
  position: absolute;
  left: -9999px;
}

.notice {
  padding: 0.8rem 1rem;
  border-radius: 0.375rem;
  background: #ecfdf5;
  color: #065f46;
}

.back {
  color: var(--muted);
  font-size: 0.925rem;
}

@media (min-width: 48rem) {
  .vehicle-layout,
  .contact-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(16rem, 0.8fr);
    align-items: start;
  }
}

@media (max-width: 860px) {
  header button.nav-toggle {
    display: inline-flex;
  }

  .nav-list,
  .account-links {
    display: none;
  }

  .header-inner.is-open {
    align-items: flex-start;
    flex-wrap: wrap;
    padding-block: 0.8rem;
  }

  .header-inner.is-open .nav-list,
  .header-inner.is-open .account-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0.7rem;
  }

  .filters .span-2 {
    grid-column: auto;
  }
}
