/* ===================================================================
   emplace – Arbeitszeiterfassung
   Design angelehnt an mechela-heidenreich.de
   =================================================================== */

@font-face { font-family: "Raleway"; src: url("./fonts/static/Raleway-Light.ttf")     format("truetype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("./fonts/static/Raleway-Regular.ttf")   format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("./fonts/static/Raleway-Medium.ttf")    format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("./fonts/static/Raleway-SemiBold.ttf")  format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("./fonts/static/Raleway-Bold.ttf")      format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("./fonts/static/Raleway-ExtraBold.ttf") format("truetype"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  /* Farben – Basis aus mechela-heidenreich, plus emplace-Signatur (Teal) */
  --primary-color: #004a7a;
  --primary-dark:  #001d30;
  --accent-color:  #0077b6;
  --emplace:       #12a594;   /* Produkt-Signaturton */
  --emplace-dark:  #0c7d70;
  --text-color:    #56606a;
  --heading-color: #00314f;
  --bg-light:      #f1f7fd;
  --bg-tint:       rgba(0, 29, 48, 0.05);
  --border-color:  #d8e2ec;

  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;

  --shadow-sm: 0 4px 12px rgba(0, 49, 79, 0.08);
  --shadow-md: 0 12px 28px rgba(0, 49, 79, 0.16);
  --shadow-lg: 0 24px 48px -12px rgba(0, 29, 48, 0.35);

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;

  --radius: 12px;
  --maxw: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { overflow-x: hidden; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  color: var(--text-color);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

section { scroll-margin-top: 84px; }

a { color: inherit; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--spacing-lg); }

/* ===================== WORTMARKE / LOGO ===================== */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  font-size: 26px;
  line-height: 1;
}
.wordmark .em { color: #fff; }
.wordmark .place { color: #fff; opacity: 0.92; font-weight: 600; }
.wordmark .pin {
  width: 26px; height: 26px;
  flex-shrink: 0;
  color: var(--emplace);
}
/* dunkle Variante (auf hellem Grund) */
.wordmark--dark .em { color: var(--heading-color); }
.wordmark--dark .place { color: var(--accent-color); }

/* ===================== NAVIGATION ===================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px var(--spacing-xl);
  transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.navbar.scrolled {
  background-color: rgba(0, 29, 48, 0.96);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  padding-top: 10px; padding-bottom: 10px;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 9px 14px;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: all var(--transition-normal);
  white-space: nowrap;
}
.nav-links a:hover { background: rgba(255,255,255,0.14); }
.nav-links a.nav-cta {
  background: var(--emplace);
  border-color: var(--emplace);
  margin-left: 6px;
  font-weight: 600;
}
.nav-links a.nav-cta:hover { background: var(--emplace-dark); border-color: var(--emplace-dark); }

.menu-toggle {
  display: none;
  font-size: 24px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
  width: 46px; height: 46px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(0,29,48,0.94) 0%, rgba(0,74,122,0.88) 55%, rgba(12,125,112,0.82) 130%),
    url('./img/slider2.jpg') center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(18,165,148,0.25), transparent 45%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 130px var(--spacing-lg) 90px;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #bfe9e2;
  background: rgba(18,165,148,0.18);
  border: 1px solid rgba(18,165,148,0.45);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 62px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  max-width: 14ch;
}
.hero h1 .accent { color: var(--emplace); }
.hero .claim {
  font-size: clamp(19px, 2.6vw, 26px);
  font-weight: 300;
  letter-spacing: 0.01em;
  margin: 0 0 18px;
  color: #eaf3fb;
}
.hero .lead {
  font-size: clamp(15px, 1.6vw, 18px);
  max-width: 56ch;
  margin: 0 0 38px;
  color: #cfe0ee;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition-normal), background var(--transition-normal), box-shadow var(--transition-normal);
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--emplace); color: #fff; box-shadow: 0 8px 20px rgba(18,165,148,0.35); }
.btn-primary:hover { background: var(--emplace-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(18,165,148,0.45); }
.btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-ghost:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--accent-color); border-color: var(--accent-color); }
.btn-outline:hover { background: var(--accent-color); color: #fff; transform: translateY(-2px); }

/* ===================== SECTION HEADER ===================== */
.section { padding: 84px 0; }
.section-tint { background: var(--bg-light); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--emplace);
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--heading-color);
  margin: 0 0 14px;
}
.section-head p { font-size: 17px; margin: 0; }

/* ===================== FEATURE GRID ===================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: var(--spacing-lg);
}
.card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--accent-color), var(--emplace));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px;
  background: rgba(18,165,148,0.10);
  border: 1px solid rgba(18,165,148,0.25);
  color: var(--emplace);
  margin-bottom: 20px;
  transition: transform var(--transition-normal), background var(--transition-normal);
}
.card-icon svg { width: 32px; height: 32px; }
.card:hover .card-icon { transform: scale(1.08); background: rgba(18,165,148,0.18); }
.card h3 { color: var(--heading-color); font-size: 19px; font-weight: 700; margin: 0 0 10px; }
.card p { margin: 0; font-size: 15.5px; }

/* ===================== SPLIT / BENEFITS ===================== */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.split h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  color: var(--heading-color);
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}
.benefit-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.benefit-list li { display: flex; gap: 14px; align-items: flex-start; }
.benefit-list .tick {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--emplace);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.benefit-list .tick svg { width: 15px; height: 15px; }
.benefit-list strong { color: var(--heading-color); display: block; font-size: 16.5px; }
.benefit-list span { font-size: 15px; }

.mockup {
  background: linear-gradient(160deg, var(--primary-color), var(--primary-dark));
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.mockup::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 10%, rgba(18,165,148,0.4), transparent 50%);
}
.mockup-head { position: relative; display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.mockup-head .dots { display: flex; gap: 6px; }
.mockup-head .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.35); display: block; }
.mockup-head .live { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #bfe9e2; }
.timer {
  position: relative;
  font-size: clamp(40px, 8vw, 58px);
  font-weight: 800;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  margin: 6px 0 4px;
}
.timer-label { position: relative; font-size: 14px; color: #cfe0ee; margin-bottom: 22px; }
.mock-rows { position: relative; display: flex; flex-direction: column; gap: 10px; }
.mock-row {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 9px;
  padding: 11px 14px;
  font-size: 14px;
}
.mock-row .proj { display: flex; align-items: center; gap: 10px; }
.mock-row .swatch { width: 9px; height: 9px; border-radius: 3px; }
.mock-row .dur { font-variant-numeric: tabular-nums; font-weight: 600; color: #eaf3fb; }

/* ===================== STEPS ===================== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--spacing-lg); counter-reset: step; }
.step { text-align: center; padding: 12px; position: relative; }
.step .num {
  counter-increment: step;
  width: 58px; height: 58px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--emplace);
  color: var(--emplace);
  font-weight: 800;
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
}
.step .num::before { content: counter(step); }
.step h3 { color: var(--heading-color); font-size: 18px; margin: 0 0 8px; }
.step p { margin: 0; font-size: 15px; }

/* ===================== PREISE / CTA ===================== */
.price-card {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.price-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 5px;
  background: linear-gradient(90deg, var(--accent-color), var(--emplace));
}
.price-badge {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--emplace); background: rgba(18,165,148,0.10);
  padding: 6px 16px; border-radius: 100px; margin-bottom: 18px;
}
.price-card h2 { font-size: clamp(24px, 3vw, 32px); color: var(--heading-color); margin: 0 0 10px; font-weight: 800; }
.price-card .price-line { font-size: 20px; font-weight: 600; color: var(--accent-color); margin: 0 0 16px; }
.price-card p { margin: 0 auto 28px; max-width: 46ch; }
.price-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ===================== HERSTELLER-BANNER ===================== */
.maker {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  color: #fff;
}
.maker .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 56px; }
.maker-text { max-width: 620px; }
.maker-text .section-eyebrow { color: #7fd8cc; }
.maker-text h2 { color: #fff; font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin: 0 0 12px; }
.maker-text p { color: #cfe0ee; margin: 0 0 4px; font-size: 16px; }
.maker-logo { background: #fff; border-radius: 14px; padding: 22px 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; box-shadow: var(--shadow-md); }
.maker-logo img { max-width: 210px; height: auto; display: block; }
.maker-logo .btn { padding: 11px 22px; font-size: 14px; }

/* ===================== FOOTER ===================== */
.footer { background: var(--primary-dark); color: #cfe0ee; padding: 56px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: #fff; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 16px; }
.footer p { margin: 0 0 10px; font-size: 14.5px; }
.footer .wordmark { font-size: 24px; margin-bottom: 16px; }
.footer-claim { font-size: 14px; color: #8fb0c8; max-width: 32ch; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul li { margin-bottom: 10px; }
.footer ul a, .footer ul button {
  color: #cfe0ee; text-decoration: none; font-size: 14.5px;
  background: none; border: none; padding: 0; cursor: pointer; font-family: inherit;
  transition: color var(--transition-fast);
}
.footer ul a:hover, .footer ul button:hover { color: var(--emplace); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  font-size: 13.5px; color: #8fb0c8;
}
.footer-bottom a { color: #8fb0c8; text-decoration: none; }
.footer-bottom a:hover { color: var(--emplace); }

/* ===================== MODAL ===================== */
.modal {
  display: none;
  position: fixed; inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.7);
  animation: fadeIn 0.3s ease;
}
.modal-content {
  background: #fff;
  margin: 6% auto;
  padding: 32px;
  border-radius: 12px;
  width: 90%; max-width: 640px;
  max-height: 82vh; overflow-y: auto;
  position: relative;
  animation: slideIn 0.3s ease;
  color: var(--text-color);
}
.modal-content h2 { color: var(--heading-color); margin-top: 0; }
.modal-content b { color: var(--heading-color); }
.close-button {
  position: absolute; top: 14px; right: 18px;
  font-size: 30px; color: #aaa; background: none; border: none; cursor: pointer; line-height: 1;
  transition: color var(--transition-fast);
}
.close-button:hover { color: #000; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateY(-40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ===================== ANIMATION ===================== */
.fade-in-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in-up.animated { opacity: 1; transform: translateY(0); }

/* ===================== SCROLL TOP ===================== */
#toTop {
  position: fixed; bottom: 28px; right: 28px;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--primary-color); color: #fff;
  border: none; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 100;
  transition: background var(--transition-normal), transform var(--transition-normal);
}
#toTop svg { width: 20px; height: 20px; }
#toTop:hover { background: var(--emplace); transform: translateY(-3px); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 920px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .maker .container { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: min(80%, 320px);
    height: 100dvh;
    background: rgba(0,29,48,0.98);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 90px 24px 24px;
    gap: 6px;
    transition: right var(--transition-normal);
    box-shadow: -8px 0 30px rgba(0,0,0,0.4);
  }
  .nav-links.show { right: 0; }
  .nav-links a { padding: 14px; text-align: center; font-size: 16px; }
  .nav-links a.nav-cta { margin-left: 0; margin-top: 8px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 64px 0; }
  .hero-inner { padding-top: 110px; }
}
