/* Alpha Transportation Services Management GmbH – component styles (plain CSS, used alongside the Tailwind CDN) */

html { scroll-padding-top: 4.25rem; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Focus and skip link */
:focus-visible { outline: 3px solid #7A5C2E; outline-offset: 3px; }
.on-dark :focus-visible { outline-color: #B8955A; }
[tabindex="-1"]:focus { outline: none; }

.skip-link {
  position: absolute; left: 1rem; top: -6rem; z-index: 100;
  padding: .75rem 1.125rem; border-radius: .5rem;
  background: #B8955A; color: #0A1622; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Navigation */
.nav-link {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  padding: 0 .875rem; border-radius: .375rem;
  font-size: .9375rem; font-weight: 500; color: #E2E8F0; text-decoration: none;
  transition: color .15s ease, background-color .15s ease;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, .08); }

.mobile-link {
  display: block; padding: .8rem 1rem; border-radius: .5rem;
  font-size: 1rem; font-weight: 500; color: #fff; text-decoration: none;
}
.mobile-link:hover { background: rgba(255, 255, 255, .08); }

/* Hero background */
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 88% 8%, rgba(184, 149, 90, .20), transparent 60%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(255, 255, 255, .06), transparent 60%),
    linear-gradient(160deg, #0F2A44 0%, #0C2136 55%, #0A1622 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 90%);
          mask-image: linear-gradient(to bottom, #000 0%, transparent 90%);
}

/* Buttons */
.btn-gold, .btn-ghost, .btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: 0 1.5rem; border-radius: .5rem;
  font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-gold { background: #B8955A; color: #0A1622; }
.btn-gold:hover { background: #C9A76E; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .4); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .7); }
.btn-primary { min-height: 2.75rem; background: #0F2A44; color: #fff; font-size: .9375rem; }
.btn-primary:hover { background: #163A5C; }

/* Section headings */
.eyebrow {
  font-size: .75rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #7A5C2E;
}
.eyebrow-dark { color: #B8955A; }
.section-title {
  margin-top: .75rem; font-size: 1.875rem; line-height: 1.2; font-weight: 600;
  letter-spacing: -.01em; color: #0F2A44;
}
@media (min-width: 640px) { .section-title { font-size: 2.25rem; } }

/* Cards and icons */
.card {
  display: flex; flex-direction: column;
  padding: 1.75rem; border: 1px solid #E2E8F0; border-radius: 1rem; background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: rgba(184, 149, 90, .6); box-shadow: 0 12px 30px -18px rgba(15, 42, 68, .35); }
.card-title { margin-top: 1.25rem; font-size: 1.125rem; line-height: 1.35; font-weight: 600; color: #0F2A44; }
.card-text { margin-top: .75rem; font-size: .9375rem; line-height: 1.7; color: #334155; }

.icon-box {
  display: grid; place-items: center; width: 3rem; height: 3rem;
  border-radius: .75rem; background: #0F2A44; color: #B8955A;
}
.icon-box svg { width: 1.75rem; height: 1.75rem; }
.icon-box-dark { background: rgba(184, 149, 90, .12); border: 1px solid rgba(184, 149, 90, .35); }

/* Key facts */
.fact-row { display: grid; gap: .25rem; padding: 1rem 1.25rem; background: #fff; }
.fact-row:nth-child(even) { background: #F4F6F9; }
.fact-label { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #475569; }
.fact-value { font-size: 1rem; line-height: 1.55; color: #0A1622; }
@media (min-width: 640px) {
  .fact-row { grid-template-columns: 11rem 1fr; gap: 1.5rem; padding: 1.125rem 1.5rem; }
  .fact-label { padding-top: .2rem; }
}

/* Footer */
.footer-btn {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: .5rem;
  font-size: .875rem; font-weight: 500; color: #fff; text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.footer-btn:hover { border-color: #B8955A; background: rgba(184, 149, 90, .1); }

/* Legal dialogs */
.legal-dialog {
  width: min(42rem, calc(100% - 2rem)); max-width: none;
  max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem);
  padding: 0; border: 0; border-top: 4px solid #B8955A; border-radius: 1rem;
  background: #fff; color: #1E293B;
  box-shadow: 0 30px 60px -20px rgba(10, 22, 34, .55);
}
.legal-dialog::backdrop { background: rgba(10, 22, 34, .75); }
.legal-inner {
  display: flex; flex-direction: column;
  max-height: calc(100vh - 2.25rem); max-height: calc(100dvh - 2.25rem);
}
.legal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1rem 1rem 1.5rem; border-bottom: 1px solid #E2E8F0;
}
.legal-body {
  overflow-y: auto; padding: 1.5rem;
  font-size: .9375rem; line-height: 1.7; color: #334155;
}
.legal-body section + section, .legal-body section + p { margin-top: 1.5rem; }
.legal-body h3 { margin-bottom: .5rem; font-size: 1rem; font-weight: 600; color: #0F2A44; }
.legal-body p + p { margin-top: .75rem; }
.legal-body a { color: #0F2A44; text-decoration: underline; text-underline-offset: 2px; }
.legal-body a:hover { color: #7A5C2E; }
.legal-foot {
  display: flex; justify-content: flex-end;
  padding: 1rem 1.5rem; border-top: 1px solid #E2E8F0;
}
.close-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: .5rem; color: #475569; cursor: pointer;
}
.close-btn:hover { background: #F1F5F9; color: #0F2A44; }

html.dialog-open { overflow: hidden; }
dialog:focus { outline: none; }

/* Without JavaScript the legal texts stay reachable through #impressum / #datenschutz */
.no-js dialog:target { display: block; position: static; margin: 2rem auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
