/* ==========================================================================
   Kamiran Transporte — Basis-Stylesheet
   Gilt für alle Seiten. Seiten-spezifische Regeln liegen in den jeweiligen
   css/<seite>.css Dateien.
   ========================================================================== */

:root {
  --color-primary: #a5262c;
  --color-primary-dark: #7c1c21;
  --color-primary-tint: #f3e4e2;
  --color-ink: #1c1a19;
  --color-ink-soft: #55504d;
  --color-ink-faint: #8a8481;
  --color-paper: #faf8f6;
  --color-paper-alt: #f1ece8;
  --color-line: #e3dcd8;
  --color-white: #ffffff;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 1180px;
  --container-narrow: 760px;

  --gap-xs: 0.5rem;
  --gap-sm: 1rem;
  --gap-md: 2rem;
  --gap-lg: 4rem;
  --gap-xl: 7rem;

  --shadow-sm: 0 1px 2px rgba(20, 10, 10, 0.06);
  --shadow-md: 0 18px 40px -12px rgba(20, 10, 10, 0.22);
  --shadow-header: 0 8px 24px -12px rgba(20, 10, 10, 0.18);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: var(--container-narrow);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--color-primary);
}

.section {
  padding: var(--gap-xl) 0;
}

.section--tight {
  padding: var(--gap-lg) 0;
}

.section--alt {
  background: var(--color-paper-alt);
}

.section--dark {
  background: var(--color-ink);
  color: #f3efec;
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--gap-lg);
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin-top: 0.9rem;
}

.section-head p {
  margin-top: 1.1rem;
  color: var(--color-ink-soft);
  font-size: 1.05rem;
}

.section--dark .section-head p {
  color: #cfc7c2;
}

/* ---- Buttons -------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  font-size: 0.98rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 14px 28px -10px rgba(165, 38, 44, 0.55);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -10px rgba(165, 38, 44, 0.6);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: inherit;
}

.btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--color-ink);
  color: var(--color-white);
}

.btn-dark:hover {
  background: #000;
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  border-color: var(--color-ink);
  color: var(--color-ink);
}

.btn-outline-dark:hover {
  background: var(--color-ink);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(250, 248, 246, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-header);
  border-bottom-color: var(--color-line);
  background: rgba(250, 248, 246, 0.98);
}

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

.brand {
  margin-left: -0.3rem;
}

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

.brand img {
  height: 42px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--color-ink-faint);
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}

.main-nav .btn {
  display: none;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-ink-soft);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.2s var(--ease);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: var(--color-primary);
  transition: width 0.25s var(--ease);
}

.main-nav a:hover {
  color: var(--color-ink);
}

.main-nav a:hover::after {
  width: 100%;
}

.main-nav a.is-active {
  color: var(--color-ink);
}

.main-nav a.is-active::after {
  width: 100%;
}

/* ---- Mega Menu (Header Leistungen Dropdown) --------------------------- */

.nav-mega {
  position: relative;
}

.nav-mega summary {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-ink-soft);
  padding: 0.3rem 0;
  list-style: none;
  transition: color 0.2s var(--ease);
}

.nav-mega summary::-webkit-details-marker {
  display: none;
}

.nav-mega summary::marker {
  content: none;
}

.nav-mega summary:hover,
.nav-mega[open] summary {
  color: var(--color-ink);
}

.nav-mega summary::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: var(--color-primary);
  transition: width 0.25s var(--ease);
}

.nav-mega[open] summary::after {
  width: 100%;
}

.mega-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 16px;
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.18);
  padding: 1.5rem 1.8rem;
  z-index: 300;
  min-width: 480px;
  animation: megaIn 0.25s var(--ease);
}

@keyframes megaIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.mega-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--color-ink);
  transition: background 0.2s ease;
}

.mega-item:hover {
  background: var(--color-paper-alt);
}

.mega-item--all {
  grid-column: 1 / -1;
  border-top: 1px solid var(--color-line);
  padding-top: 0.9rem;
  margin-top: 0.3rem;
}

.mega-item--all .mega-text b {
  color: var(--color-primary);
}

.mega-icon {
  flex: none;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--color-primary-tint);
  color: var(--color-primary);
}

.mega-text {
  display: flex;
  flex-direction: column;
}

.mega-text b {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
}

.mega-text small {
  font-size: 0.76rem;
  color: var(--color-ink-faint);
  font-weight: 400;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.header-phone {
  display: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-ink);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 26px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 210;
}

.main-nav .nav-close {
  display: none;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 860px) {
  .header-phone {
    display: inline-flex;
  }
}

@media (max-width: 520px) {
  .brand-tagline {
    display: none;
  }

  .brand img {
    height: 32px;
  }

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

  .header-actions {
    gap: 0.8rem;
  }

  .header-actions > .btn {
    display: none;
  }
}

/* ---- WhatsApp bubble --------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  left: 1.3rem;
  bottom: 1.3rem;
  z-index: 999;
}

.whatsapp-float a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float a:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.28);
}

@media (max-width: 640px) {
  .whatsapp-float {
    left: 1rem;
    bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .whatsapp-float a {
    width: 48px;
    height: 48px;
    font-size: 1rem;
  }
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: 0;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background: var(--color-ink);
    color: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 0 1.5rem;
    transition: max-height 0.35s var(--ease), padding 0.35s var(--ease);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 220;
  }

  .main-nav.is-open {
    max-height: calc(100vh - 4rem);
    padding: 1.3rem 1.5rem 2rem;
    overflow-y: auto;
  }

  .main-nav::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.96);
    pointer-events: none;
    z-index: -1;
  }

  .main-nav .nav-close {
    display: flex;
    justify-content: flex-end;
    padding: 1rem 0 0;
    margin-bottom: 0.5rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.9rem;
    line-height: 1;
    cursor: pointer;
  }

  .main-nav a {
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
  }

  .main-nav a:hover,
  .main-nav a.is-active {
    color: #fff;
  }

  .main-nav .btn {
    display: inline-flex;
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
  }

  .hamburger {
    display: flex;
  }

  .nav-close {
    display: none;
  }

  /* Mobile Mega Menu */
  .nav-mega summary {
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    font-weight: 500;
  }

  .nav-mega summary:hover {
    color: #fff;
  }

  .nav-mega[open] summary {
    border-bottom-color: transparent;
  }

  .mega-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    border-radius: 0;
    padding: 0 0 0.5rem 1rem;
    min-width: auto;
    animation: none;
  }

  .mega-menu-grid {
    grid-template-columns: 1fr;
  }

  .mega-item {
    padding: 0.6rem 0;
    border-radius: 0;
  }

  .mega-item:hover {
    background: transparent;
  }

  .mega-item--all {
    border-top-color: rgba(255, 255, 255, 0.12);
  }

  .mega-icon {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    width: 32px;
    height: 32px;
  }

  .mega-text b {
    color: rgba(255, 255, 255, 0.9);
  }

  .mega-text small {
    color: rgba(255, 255, 255, 0.55);
  }

  .mega-item--all .mega-text b {
    color: var(--color-primary);
  }

  .drop-icon::before,
  .drop-icon::after {
    background: rgba(255, 255, 255, 0.92);
  }
}

@media (max-width: 520px) {
  .nav-close {
    display: flex;
  }
}

/* ---- Footer ------------------------------------------------------------ */

.site-footer {
  background: var(--color-ink);
  color: #d9d3cf;
  padding: var(--gap-lg) 0 var(--gap-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--gap-lg);
  padding-bottom: var(--gap-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.footer-brand img {
  height: 38px;
  width: auto;
  background: #ffffff;
  padding: 0.35rem;
  border-radius: 0.75rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
}

.footer-brand span {
  font-weight: 800;
  color: var(--color-white);
  font-size: 1.02rem;
}

.footer-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a79f9a;
  margin-bottom: 1.1rem;
}

.footer-col p,
.footer-col li {
  font-size: 0.94rem;
  margin-bottom: 0.55rem;
  color: #d9d3cf;
}

.footer-col a:hover {
  color: var(--color-white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--gap-md);
  font-size: 0.85rem;
  color: #a79f9a;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal {
  display: flex;
  gap: 1.4rem;
}

.footer-legal a:hover {
  color: var(--color-white);
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-md);
  }
}

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---- Page hero (interior pages) ---------------------------------------- */

.page-hero {
  padding: 5.5rem 0 var(--gap-lg);
  background: var(--color-paper-alt);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -6%;
  top: -30%;
  width: 46%;
  height: 220%;
  background: var(--color-primary);
  opacity: 0.06;
  transform: rotate(14deg);
}

.page-hero .eyebrow {
  margin-bottom: 1rem;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  max-width: 760px;
}

.page-hero p {
  margin-top: 1.2rem;
  max-width: 600px;
  color: var(--color-ink-soft);
  font-size: 1.08rem;
}

/* ---- Shared components -------------------------------------------------- */

.diagonal-frame {
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0% 100%);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  padding: 2.2rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.stat-row {
  display: flex;
  gap: var(--gap-lg);
  flex-wrap: wrap;
}

.stat-row .stat b {
  display: block;
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--color-ink);
}

.stat-row .stat span {
  font-size: 0.88rem;
  color: var(--color-ink-soft);
}

.cta-band {
  background: var(--color-ink);
  color: #f3efec;
  padding: var(--gap-lg) 0;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  max-width: 520px;
}

.cta-band p {
  margin-top: 0.6rem;
  color: #cfc7c2;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--color-white);
  padding: 0.6rem 1rem;
  z-index: 999;
}

@media (max-width: 700px) {
  .cta-band-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
