/* ============================================
   Maschinenvermietung René Hanko – Stylesheet
   ============================================ */

:root {
  --navy: #262c35;
  --navy-dark: #181d24;
  --navy-soft: #3a4250;
  --orange: #f59700;
  --orange-light: #ffb238;
  --orange-text: #b35f00;
  --bg: #f6f7f8;
  --card-bg: #ffffff;
  --text: #23272e;
  --text-muted: #656c76;
  --border: #e4e6ea;
  --radius: 14px;
  --shadow: 0 4px 16px rgba(24, 29, 36, 0.08);
  --shadow-hover: 0 10px 28px rgba(24, 29, 36, 0.14);
  --max-width: 1180px;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Icons ---------- */
.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  vertical-align: -0.15em;
}

/* ---------- Focus states ---------- */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 .5em;
}

section {
  padding: 64px 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--orange);
  color: var(--navy-dark);
}

.btn-primary:hover {
  background: var(--orange-light);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-dark {
  background: var(--navy);
  color: #fff;
}

.btn-dark:hover {
  background: var(--navy-soft);
}

.btn-whatsapp {
  background: #0f7a3d;
  color: #fff;
}

.btn-whatsapp:hover {
  background: #0c6531;
}

.btn-sm {
  padding: 12px 16px;
  font-size: 0.85rem;
  flex: 1 1 auto;
  min-width: 108px;
}

.btn-block-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 128px;
  gap: 16px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-link img {
  height: 104px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

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

.header-call {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--navy);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 15% 20%, rgba(245, 151, 0, 0.18), transparent 45%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 88px 0 76px;
  text-align: center;
  overflow: hidden;
}

.hero-watermark {
  position: absolute;
  top: 50%;
  right: -60px;
  transform: translateY(-50%);
  height: 130%;
  width: auto;
  opacity: 0.1;
  filter: grayscale(1) brightness(2);
  pointer-events: none;
  user-select: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero .eyebrow {
  display: inline-block;
  background: rgba(245, 151, 0, 0.16);
  color: var(--orange-light);
  border: 1px solid rgba(245, 151, 0, 0.4);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.hero p.lead {
  max-width: 600px;
  margin: 0 auto 32px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.hero-meta strong {
  color: #fff;
  display: block;
  font-size: 1.4rem;
}

/* ---------- Category nav chips ---------- */
.category-nav {
  padding: 28px 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.category-nav .container {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.chip .icon {
  color: var(--orange-text);
}

.chip:hover {
  border-color: var(--orange);
  color: var(--navy);
  background: #fff4e2;
}

/* ---------- Machine categories & cards ---------- */
.category-block {
  scroll-margin-top: 148px;
}

.category-block + .category-block {
  border-top: 1px solid var(--border);
}

.category-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.category-heading h2 {
  font-size: 1.7rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-heading h2 .icon {
  width: 1em;
  height: 1em;
  color: var(--orange-text);
}

.category-heading .count {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.machine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.machine-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: box-shadow .2s ease, transform .2s ease;
}

.machine-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.machine-card .card-image {
  position: relative;
  overflow: hidden;
  background: #eef0f2;
}

.gallery-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: none;
  border-radius: 999px;
  background: rgba(24, 29, 36, 0.75);
  backdrop-filter: blur(4px);
  color: #fff;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background .15s ease;
}

.gallery-toggle:hover {
  background: rgba(24, 29, 36, 0.9);
}

.machine-card .card-image img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.gallery-main {
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  cursor: grab;
}

.gallery-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 7px 10px;
  background: rgba(24, 29, 36, 0.4);
  border-radius: 999px;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}

.gallery-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.gallery-dot.is-active {
  background: #fff;
  transform: scale(1.3);
}

/* Featured card with photo gallery */
.machine-card.is-featured {
  grid-column: 1 / -1;
}

.card-gallery {
  display: flex;
  flex-direction: column;
}

.gallery-thumbs {
  display: none;
  gap: 8px;
  padding: 10px;
  background: #eef0f2;
}

.gallery-thumbs.is-open {
  display: flex;
}

.gallery-thumb {
  flex: 1;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  opacity: 0.65;
  transition: opacity .15s ease, border-color .15s ease;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumb:hover {
  opacity: 1;
}

.gallery-thumb.is-active {
  opacity: 1;
  border-color: var(--orange);
}

@media (min-width: 720px) {
  .machine-card.is-featured {
    flex-direction: row;
  }

  .machine-card.is-featured .card-gallery {
    width: 46%;
    flex-shrink: 0;
  }

  .machine-card.is-featured .card-body {
    flex: 1;
  }
}

.machine-card .card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.machine-card h3 {
  font-size: 1.25rem;
  margin-bottom: 2px;
}

.machine-card .subtitle {
  color: var(--orange-text);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.spec-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 14px 0 4px;
  border-top: 1px dashed var(--border);
  display: grid;
  gap: 9px;
  font-size: 0.9rem;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.spec-list .spec-label {
  color: var(--text-muted);
}

.spec-list .spec-value {
  font-weight: 600;
  text-align: right;
}

.machine-card .card-footer {
  margin-top: auto;
}

/* ---------- Contact section ---------- */
.contact-section {
  background: var(--navy);
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.contact-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 30px;
}

.contact-card h3 {
  font-size: 1.1rem;
  color: var(--orange-light);
}

.contact-detail {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.contact-detail .icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--orange-light);
  margin-top: 2px;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--orange-light);
  flex-shrink: 0;
}

.contact-detail a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.contact-detail a:hover {
  color: var(--orange-light);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 46px 0 26px;
  font-size: 0.9rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top img {
  height: 48px;
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
}

.footer-links a:hover {
  color: var(--orange-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 20px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: var(--orange-light);
  text-decoration: none;
  font-weight: 600;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* ---------- Legal pages ---------- */
.legal-page {
  padding: 56px 0 90px;
}

.legal-page .container {
  max-width: 820px;
}

.legal-page h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.legal-page h2 {
  font-size: 1.2rem;
  margin-top: 2em;
}

.legal-page p, .legal-page li {
  color: var(--text-muted);
}

.legal-page .back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-weight: 600;
  text-decoration: none;
  color: var(--navy);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 92px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 20px 24px;
    gap: 16px;
    display: none;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .header-call.desktop-only {
    display: none;
  }

  .site-header .container {
    min-height: 92px;
  }

  .logo-link img {
    height: 68px;
  }

  .category-block {
    scroll-margin-top: 112px;
  }

  section {
    padding: 44px 0;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .hero-watermark {
    display: none;
  }

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