/* -----------------------------
   TSS FleetSolutions
   ----------------------------- */

:root {
  --primary: #1f5eff;
  --primary-hover: #184bd1;

  --text: #111827;
  --text-light: #64748b;

  --background: #fafbfc;
  --surface: #ffffff;

  --border: #e5e7eb;

  --radius: 18px;

  --container: 1500px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #4d8dff;
    --primary-hover: #77a8ff;

    --text: #f8fafc;
    --text-light: #94a3b8;

    --background: #0b1120;
    --surface: #111827;

    --border: #253041;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, system-ui, sans-serif;

  background: var(--background);

  color: var(--text);

  line-height: 1.7;
}

.container {
  /* width: min(95%, var(--container)); */
  width: min(92%);
  margin: auto;
}

/* -----------------------------
Header
----------------------------- */

header {
  position: sticky;

  top: 0;

  background: rgba(250, 251, 252, 0.92);

  backdrop-filter: blur(18px);

  border-bottom: 1px solid var(--border);

  z-index: 1000;
}

@media (prefers-color-scheme: dark) {
  header {
    background: rgba(11, 17, 32, 0.92);
  }
}

header .container {
  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 22px 0;
}

.logo {
  text-decoration: none;

  color: var(--text);

  font-weight: 700;

  font-size: 1.3rem;
}

.logo span {
  color: var(--primary);
}

nav {
  display: flex;

  gap: 35px;
}

nav a {
  text-decoration: none;

  color: var(--text-light);

  transition: 0.25s;
}

nav a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
}

/* -----------------------------
Hero
----------------------------- */

.hero {
  position: relative;

  overflow: hidden;

  padding: 140px 0;
}

.hero .container {
  position: relative;

  z-index: 2;
}

.hero-text {
  max-width: 720px;
}

.hero-bg {
  position: absolute;

  inset: 0;
}

.hero-bg img {
  width: 100%;

  height: 100%;

  object-fit: cover;
}

.hero-bg::before {
  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(
    90deg,
    var(--background) 10%,
    rgba(255, 255, 255, 0) 70%
  );
}

@media (max-width: 900px) {
  .hero-bg {
    opacity: 0.25;
  }
}

.tag {
  display: inline-block;

  margin-bottom: 25px;

  padding: 8px 18px;

  border-radius: 999px;

  background: #eaf1ff;

  color: var(--primary);

  font-size: 0.9rem;

  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);

  line-height: 1.05;

  margin-bottom: 28px;

  letter-spacing: -2px;
}

.hero p {
  max-width: 650px;

  color: var(--text);

  font-size: 1.1rem;
}

.button {
  display: inline-block;

  margin-top: 40px;

  background: var(--primary);

  color: white;

  text-decoration: none;

  padding: 18px 34px;

  border-radius: 12px;

  font-weight: 600;

  transition: 0.25s;
}

.button:hover {
  background: var(--primary-hover);

  transform: translateY(-2px);
}

.hero-image {
  display: flex;

  justify-content: center;

  align-items: center;
}

.hero-image img {
  width: 100%;

  max-width: 520px;

  height: auto;

  object-fit: cover;

  border-radius: 22px;

  border: 1px solid var(--border);

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* -----------------------------
Sections
----------------------------- */

section {
  padding: 100px 0;
}

section h2 {
  font-size: 2.4rem;

  margin-bottom: 60px;

  letter-spacing: -1px;
}

/* -----------------------------
Leistungen
----------------------------- */

.leistungen {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 35px;
}

.leistungen article {
  padding-bottom: 25px;

  border-bottom: 1px solid var(--border);
}

.leistungen h3 {
  margin-bottom: 15px;
}

.leistungen p {
  color: var(--text-light);
}

/* -----------------------------
Zitat
----------------------------- */

.quote {
  background: var(--surface);

  border-top: 1px solid var(--border);

  border-bottom: 1px solid var(--border);
}

.quote h2 {
  text-align: center;

  font-size: 3rem;

  max-width: 900px;

  margin: auto;

  line-height: 1.2;
}

/* -----------------------------
Trust
----------------------------- */

.trust .container {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 45px;
}

.trust h3 {
  margin-bottom: 15px;
}

.trust p {
  color: var(--text-light);
}

/* -----------------------------
Kontakt
----------------------------- */

.contact-item {
  padding: 0.8rem 1rem;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
}

.contact-box {
  display: grid;

  grid-template-columns: 1fr 1fr;

  margin: auto;

  gap: 60px;

  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: var(--radius);

  padding: 60px;

  max-width: 1200px;
}

.left p {
  color: var(--text-light);

  max-width: 420px;
}

form {
  display: flex;

  flex-direction: column;

  gap: 22px;
}

label {
  display: flex;

  flex-direction: column;

  gap: 8px;

  font-weight: 500;
}

#privacy-label {
  display: block;
}

input,
select {
  padding: 15px;

  border-radius: 12px;

  border: 1px solid var(--border);

  background: transparent;

  color: var(--text);

  font-size: 1rem;
}

button {
  margin-top: 10px;

  border: none;

  cursor: pointer;

  padding: 18px;

  border-radius: 12px;

  background: var(--primary);

  color: white;

  font-size: 1rem;

  font-weight: 600;

  transition: 0.25s;
}

button:hover {
  background: var(--primary-hover);
}

/* ==========================
   Footer
========================== */

footer {
  margin-top: 100px;

  border-top: 1px solid var(--border);

  background: var(--surface);
}

.footer-grid {
  display: grid;

  grid-template-columns: 2fr 1fr 1fr 1fr;

  gap: 60px;

  padding: 70px 0;
}

.footer-grid h3 {
  margin-bottom: 18px;
}

.footer-grid h4 {
  margin-bottom: 18px;

  font-size: 1rem;
}

.footer-grid p {
  color: var(--text-light);

  line-height: 1.8;
}

.footer-grid a {
  display: block;

  margin-bottom: 12px;

  color: var(--text-light);

  text-decoration: none;

  transition: 0.2s;
}

.footer-grid a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);

  padding: 25px 0;
}

.footer-bottom p {
  text-align: center;

  color: var(--text-light);

  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;

    gap: 40px;
  }

  .footer-bottom p {
    text-align: left;
  }
}

/* ==========================
   Rechtliche Seiten
========================== */

.legal {
  padding: 100px 0;
}

.legal-box {
  max-width: 900px;

  margin: auto;

  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: 20px;

  padding: 60px;
}

.legal h1 {
  font-size: 3rem;

  margin-bottom: 40px;
}

.legal h2 {
  margin-top: 40px;

  margin-bottom: 15px;

  font-size: 1.4rem;
}

.legal p,
.legal li {
  color: var(--text-light);

  line-height: 1.9;
}

.legal ul {
  padding-left: 22px;

  margin-top: 15px;
}

.honeypot {
  display: none;
}

.alert {
  margin-bottom: 30px;

  padding: 20px;

  border-radius: 14px;

  border: 1px solid;

  animation: fadeIn 0.4s ease;
}

.success {
  background: #ecfdf5;

  border-color: #86efac;

  color: #166534;
}

.error {
  background: #fef2f2;

  border-color: #fca5a5;

  color: #991b1b;
}

.privacy-check {
  display: flex;

  align-items: flex-start;

  gap: 14px;

  margin-top: 10px;

  margin-bottom: 25px;
}

.privacy-check input {
  width: 20px;

  height: 20px;

  margin-top: 2px;

  accent-color: var(--primary);

  cursor: pointer;

  flex-shrink: 0;
}

.privacy-check label {
  font-size: 0.95rem;

  line-height: 1.6;

  color: var(--text-light);

  cursor: pointer;
}

.privacy-check a {
  color: var(--primary);

  text-decoration: none;

  font-weight: 600;
}

.privacy-check a:hover {
  text-decoration: underline;
}

/* ==========================
   FAQ
========================== */

details {
  border: 1px solid var(--border);

  border-radius: 14px;

  padding: 20px 24px;

  margin-bottom: 18px;

  background: var(--surface);

  transition: 0.25s;
}

details:hover {
  border-color: var(--primary);
}

summary {
  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 20px;

  cursor: pointer;

  font-size: 1.05rem;

  font-weight: 600;

  list-style: none;
}

summary::after {
  content: "+";

  flex-shrink: 0;

  color: var(--primary);

  font-size: 1.4rem;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";

  float: right;

  font-size: 1.4rem;

  color: var(--primary);

  transition: 0.2s;
}

details[open] summary::after {
  content: "−";
}

details p {
  margin-top: 18px;

  color: var(--text-light);

  line-height: 1.8;
}

.page-header {
  padding: 90px 0 40px;
}

.page-header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);

  margin: 20px 0;

  letter-spacing: -1px;
}

.page-header p {
  max-width: 720px;

  color: var(--text-light);

  font-size: 1.1rem;
}

.price-note {
  margin-top: 24px;

  padding-top: 18px;

  border-top: 1px solid var(--border);

  font-size: 0.9rem;

  color: var(--text-light);

  line-height: 1.7;

  max-width: 430px;
}

@media (prefers-color-scheme: dark) {
  .success {
    background: #052e16;

    color: #bbf7d0;

    border-color: #166534;
  }

  .error {
    background: #450a0a;

    color: #fecaca;

    border-color: #7f1d1d;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;

    transform: translateY(-10px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .legal-box {
    padding: 35px 25px;
  }

  .legal h1 {
    font-size: 2.2rem;
  }
}

/* -----------------------------
Responsive
----------------------------- */

@media (max-width: 900px) {
  .hero-grid,
  .contact-box,
  .trust .container {
    grid-template-columns: 1fr;
  }

  .leistungen {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 80px 0;
  }

  .hero-image {
    min-height: 260px;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle {
    width: 48px;

    height: 48px;

    border: none;

    background: none;

    cursor: pointer;

    padding: 0;
  }

  .menu-toggle span {
    display: block;

    width: 26px;

    height: 2px;

    margin: 6px auto;

    background: var(--text);

    transition: 0.3s;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  nav {
    position: absolute;

    left: 0;

    top: 100%;

    width: 100%;

    background: var(--surface);

    border-bottom: 1px solid var(--border);

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 0;

    max-height: 0;

    overflow: hidden;

    transition: max-height 0.3s ease;
  }

  nav.open {
    max-height: 350px;
  }

  nav a {
    width: 100%;

    text-align: center;

    padding: 18px;

    border-top: 1px solid var(--border);
  }

  footer .container {
    flex-direction: column;
  }

  section {
    padding: 70px 0;
  }
}

@media (max-width: 900px) {
  .container {
    width: min(96%);
  }

  .contact-box {
    padding: 32px 22px;

    gap: 40px;
  }

  section {
    padding: 55px 0;
  }

  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 2.5rem;

    line-height: 1.15;
  }

  .hero p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    width: 95%;
  }

  .contact-box {
    padding: 28px 18px;
  }
}

/* ==========================
   CTA
========================== */

.cta-section {
  padding: 80px 0;
}

.cta-box {
  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: 28px;

  padding: 80px 40px;

  text-align: center;
}

.cta-box h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);

  margin-bottom: 24px;

  letter-spacing: -1px;
}

.cta-box p {
  max-width: 700px;

  margin: 0 auto;

  color: var(--text-light);

  font-size: 1.1rem;

  line-height: 1.8;
}

.cta-box .button {
  margin-top: 45px;
}

@media (max-width: 900px) {
  .cta-box {
    padding: 55px 25px;

    border-radius: 22px;
  }

  .cta-box h2 {
    font-size: 2rem;
  }

  .cta-box p {
    font-size: 1rem;
  }
}
