/* ============================================================
   Rasouli IT Solutions: Design System
   Palette:  paper #F6F5F0 · ink #131614 · pine #0E3B2E
             leaf #2E9E63 · mist #ECEAE2 · line #DFDBD0
   Type:     Space Grotesk (Display) · IBM Plex Sans (Body)
             IBM Plex Mono (Labels/Eyebrows)
   ============================================================ */

:root {
  --paper: #F6F5F0;
  --ink: #131614;
  --ink-soft: #3D443F;
  --pine: #0E3B2E;
  --pine-deep: #092A20;
  --leaf: #2E9E63;
  --leaf-dark: #1F7A4D;
  --leaf-bright: #4ECb85;
  --mist: #ECEAE2;
  --line: #DFDBD0;
  --white: #FFFFFF;

  --font-display: "Space Grotesk", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --container: 1140px;
  --radius: 14px;
  --radius-lg: 22px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1em; color: var(--ink-soft); }
p.lead { font-size: 1.125rem; }

a { color: var(--leaf-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pine); }

:focus-visible {
  outline: 3px solid var(--leaf);
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* --- Eyebrow labels ---------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pine);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--leaf);
  display: inline-block;
}
.on-dark .eyebrow { color: var(--leaf-bright); }

/* --- Buttons ------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 13px 24px;
  min-height: 48px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-primary { background: var(--pine); color: var(--white); }
.btn-primary:hover { background: var(--pine-deep); color: var(--white); }
.btn-light { background: var(--white); color: var(--pine); }
.btn-light:hover { background: var(--mist); color: var(--pine-deep); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-outline-light { border-color: rgba(255,255,255,0.55); color: var(--white); background: transparent; }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,0.1); color: var(--white); }
.btn .arrow { font-family: var(--font-mono); }

/* --- Header / Nav ------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 245, 240, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(6px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 20px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand .tick { color: var(--leaf); }
.brand-logo { height: 36px; width: auto; display: block; }
.site-footer .brand-logo { filter: invert(1) brightness(1.4); height: 32px; margin-bottom: 22px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
}
.nav-links a:hover { color: var(--ink); background: var(--mist); }
.nav-links a[aria-current="page"] { color: var(--pine); font-weight: 600; }
.nav-cta { margin-left: 8px; }
/* Spezifitäts-Fix: Nav-Linkfarbe darf die Button-Schrift nicht überschreiben */
.nav-links a.nav-cta { color: var(--white); background: var(--pine); }
.nav-links a.nav-cta:hover { color: var(--white); background: var(--pine-deep); }
.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  width: 44px; height: 44px;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--ink);
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
    display: none;
  }
  .nav-links.open { display: flex; animation: nav-in 0.22s ease both; }
  .nav-links a { padding: 13px 12px; font-size: 1rem; }
  .nav-cta { margin: 8px 0 0; justify-content: center; }
}
@keyframes nav-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Sections ------------------------------------------------ */
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--mist); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: end;
}
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-head.split { grid-template-columns: 1fr; gap: 12px; }
}

/* --- Hero ----------------------------------------------------- */
.hero-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 48px 0 28px;
  flex-wrap: wrap;
}
.hero-title-row h1 { margin: 0; }
.hero-title-row .underscore { color: var(--leaf); }
.hero-owner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
}
.hero-owner .avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--pine);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}
.hero-owner .who strong { display: block; font-size: 0.95rem; }
.hero-owner .who span { font-size: 0.82rem; color: var(--ink-soft); }

.hero-card {
  margin-top: 44px;
  background: var(--pine);
  background-image:
    radial-gradient(ellipse 90% 130% at 108% -20%, rgba(78, 203, 133, 0.28), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 72px);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 40px;
  align-items: center;
}
.hero-card h2 {
  color: var(--white);
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  margin-bottom: 20px;
}
.hero-card p { color: rgba(255,255,255,0.82); max-width: 46ch; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

.hero-panel {
  display: grid;
  gap: 12px;
  align-content: center;
}
.hero-panel .chip {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.hero-panel .chip strong {
  font-family: var(--font-display);
  display: block;
  font-size: 1rem;
  margin-bottom: 2px;
}
.hero-panel .chip span { font-size: 0.85rem; color: rgba(255,255,255,0.72); }

@media (max-width: 860px) {
  .hero-card { grid-template-columns: 1fr; }
}

/* --- Guarantee strip ------------------------------------------ */
.guarantee {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border: 1.5px solid var(--pine);
  border-radius: var(--radius);
  padding: 20px 26px;
  margin-top: 22px;
  background: var(--white);
}
.guarantee .claim {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--pine);
}
.guarantee .note { font-size: 0.9rem; color: var(--ink-soft); }

/* --- Tech row -------------------------------------------------- */
.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.tech-row li {
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--ink-soft);
}
ul.tech-row { padding: 0; margin: 0; }

/* --- Cards ------------------------------------------------------ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .card-grid, .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .card-grid, .card-grid.cols-2, .card-grid.cols-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.card .num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--leaf-dark);
  margin-bottom: 14px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; flex-grow: 0; }
.card .card-link {
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
}
.card.dark { background: var(--pine); border-color: var(--pine); color: var(--white); }
.card.dark h3 { color: var(--white); }
.card.dark p { color: rgba(255,255,255,0.8); }
.card.dark .card-link { color: var(--leaf-bright); }

.checklist { list-style: none; padding: 0; margin: 12px 0 0; }
.checklist li {
  padding-left: 26px;
  position: relative;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--leaf-dark);
  font-weight: 700;
}
.card.dark .checklist li { color: rgba(255,255,255,0.8); }
.card.dark .checklist li::before { color: var(--leaf-bright); }

/* --- Process steps ---------------------------------------------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }
.steps li {
  counter-increment: step;
  border-top: 2px solid var(--pine);
  padding-top: 18px;
}
.steps li::before {
  content: "0" counter(step);
  font-family: var(--font-mono);
  color: var(--leaf-dark);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 8px;
}
.steps h3 { font-size: 1.1rem; }
.steps p { font-size: 0.9rem; margin: 0; }

/* --- Split feature (text + panel) -------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }

/* --- CTA band ------------------------------------------------------ */
.cta-band {
  background: var(--pine);
  background-image: radial-gradient(ellipse 80% 120% at -5% 120%, rgba(78, 203, 133, 0.22), transparent 55%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin: 0 0 8px; }
.cta-band p { color: rgba(255,255,255,0.8); margin: 0; }

/* --- Forms ---------------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.88rem; font-weight: 600; }
.field label .req { color: var(--leaf-dark); }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  min-height: 48px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid var(--leaf);
  outline-offset: 0;
  border-color: var(--pine);
}
.consent {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--pine); flex-shrink: 0; }
.form-status { font-size: 0.92rem; margin-top: 12px; }
.form-status.error { color: #A33A2A; }
.form-status.ok { color: var(--leaf-dark); }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* --- Contact info list ----------------------------------------------- */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  display: flex;
  gap: 14px;
  align-items: baseline;
  flex-wrap: wrap;
}
.contact-list .k {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  min-width: 110px;
}

/* --- Footer ------------------------------------------------------------ */
.site-footer {
  background: var(--pine-deep);
  color: rgba(255,255,255,0.78);
  margin-top: 84px;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 44px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: var(--white); }
.site-footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,0.78); text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: var(--leaf-bright); }
.site-footer p { color: rgba(255,255,255,0.78); }
.footer-note { font-size: 0.88rem; max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

/* --- Page hero (subpages) ----------------------------------------------- */
.page-hero { padding: 72px 0 48px; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { max-width: 58ch; }
@media (max-width: 768px) { .page-hero { padding: 48px 0 32px; } }

/* --- NFC card page ------------------------------------------------------- */
.nfc-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pine-deep);
  background-image: radial-gradient(ellipse 100% 90% at 50% -20%, rgba(46, 158, 99, 0.25), transparent 60%);
  padding: 24px;
}
.nfc-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  max-width: 420px;
  width: 100%;
  padding: 40px 32px;
  text-align: center;
}
.nfc-card .avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--pine);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.nfc-card h1 { font-size: 1.7rem; margin-bottom: 4px; }
.nfc-card .role {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--leaf-dark);
  margin-bottom: 18px;
}
.nfc-actions { display: grid; gap: 12px; margin-top: 24px; }
.nfc-actions .btn { justify-content: center; width: 100%; }

/* --- Produktbild ---------------------------------------------------------------- */
.product-shot {
  width: 100%;
  height: auto;
}

/* --- Porträt & Avatare -------------------------------------------------------- */
.portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 12%;
  border-radius: 10px;
  margin-bottom: 18px;
}
.role-line {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--leaf-dark);
  margin-bottom: 10px;
}
.nfc-card .avatar-img {
  width: 104px; height: 104px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 25%;
  margin: 0 auto 18px;
}

/* --- Scroll-Reveal (sanftes Einblenden) --------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* --- Mobile-Feinschliff --------------------------------------------------------- */
@media (max-width: 640px) {
  .hero-title-row { padding: 32px 0 20px; }
  .hero-ctas .btn, .cta-band .btn { width: 100%; justify-content: center; }
  .guarantee { flex-direction: column; align-items: flex-start; gap: 6px; }
  .cta-band { text-align: left; }
  .section-head { margin-bottom: 32px; }
  .card { padding: 22px; }
  .brand-logo { height: 30px; }
}

/* --- Typewriter (Hero) ------------------------------------------------------ */
.tw-word { color: var(--leaf-bright); }
.tw-word::after {
  content: "|";
  margin-left: 2px;
  font-weight: 400;
  animation: tw-blink 1s step-end infinite;
}
@keyframes tw-blink {
  50% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tw-word::after { animation: none; content: ""; }
}

/* --- Utilities ------------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mb-lg { margin-bottom: 44px; }
.center { text-align: center; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--pine);
  color: var(--white);
  padding: 12px 18px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: var(--white); }
