/* =========================================================
   SISpro-connect Cyprus Limited — styles
   Brand: red #e31e24 · grey #b2b3b3 · ink #14171b
   ========================================================= */

:root {
  --red:        #e31e24;
  --red-dark:   #b42125;
  --red-soft:   rgba(227,30,36,.10);
  --ink:        #14171b;
  --ink-2:      #1d222a;
  --ink-3:      #2a313c;
  --grey:       #b2b3b3;
  --grey-text:  #5c6470;
  --line:       #e6e8ec;
  --bg:         #ffffff;
  --bg-soft:    #f6f7f9;
  --white:      #ffffff;

  --maxw: 1160px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20,23,27,.05), 0 12px 32px -12px rgba(20,23,27,.16);
  --shadow-lg: 0 24px 60px -24px rgba(20,23,27,.4);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --t: .25s cubic-bezier(.4,0,.2,1);
}

/* ---- reset ---- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3 { line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
p { color: var(--grey-text); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 16px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-weight: 600; font-size: 16px; line-height: 1;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px -8px rgba(227,30,36,.6); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(227,30,36,.7); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); transform: translateY(-2px); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 15px; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t);
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 24px -16px rgba(20,23,27,.4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 24px; }
.brand { flex: 0 0 auto; }
.brand-logo { height: 48px; width: auto; flex: none; display: block; }
.footer-logo { height: 52px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav > a { font-weight: 500; font-size: 15.5px; color: var(--ink); position: relative; transition: color var(--t); }
.main-nav > a:hover { color: var(--red); }
.main-nav > a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--red); transition: width var(--t);
}
.main-nav > a:hover::after { width: 100%; }
.nav-cta { color: #fff !important; }

.lang-dd { position: relative; }
.lang-current {
  display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 14px; font-weight: 600;
  color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 10px; cursor: pointer; transition: border-color var(--t), box-shadow var(--t);
}
.lang-current:hover { border-color: var(--grey); }
.lang-dd.open .lang-current { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.flag { width: 20px; height: 14px; border-radius: 3px; overflow: hidden; display: inline-block; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.flag-svg { width: 100%; height: 100%; display: block; }
.lang-caret { width: 12px; height: 12px; color: var(--grey-text); transition: transform var(--t); }
.lang-dd.open .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 168px; list-style: none; margin: 0; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--t), transform var(--t), visibility var(--t); z-index: 110;
}
.lang-dd.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--ink); }
.lang-menu a:hover { background: var(--bg-soft); }
.lang-menu a.is-active { color: var(--red); font-weight: 600; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: var(--t); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- generic section ---- */
section { padding: 96px 0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red); margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--red); display: inline-block; }
.section-head.center .eyebrow::before { display: none; }
h2.section-title { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.section-lead { font-size: 18px; color: var(--grey-text); }

/* ---- hero ---- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 80% -10%, #20262f 0%, var(--ink) 55%);
  color: #fff; padding: 120px 0 110px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120% 100% at 70% 0%, #000 0%, transparent 70%);
  pointer-events: none;
}
.hero-bars {
  position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
  width: min(46vw, 560px); opacity: .9; pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; }
.hero .eyebrow { color: #ff7a7f; }
.hero .eyebrow::before { background: var(--red); }
.hero h1 {
  font-size: clamp(36px, 6vw, 64px); font-weight: 800; letter-spacing: -.03em;
  margin-bottom: 22px;
}
.hero h1 .accent { color: var(--red); }
.hero-lead { font-size: clamp(18px, 2.2vw, 21px); color: #c7ccd4; max-width: 620px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---- stats strip ---- */
.stats { background: var(--ink-2); color: #fff; padding: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 24px; text-align: center; border-right: 1px solid rgba(255,255,255,.08); }
.stat:last-child { border-right: 0; }
.stat-value { font-size: 24px; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.stat-value .dot { color: var(--red); }
.stat-label { font-size: 14px; color: #9aa2ae; margin-top: 4px; }

/* ---- services ---- */
.services { background: var(--bg); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 32px; transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  overflow: hidden;
}
.card::before {
  content: ''; position: absolute; left: 0; top: 0; width: 4px; height: 0; background: var(--red); transition: height var(--t);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { height: 100%; }
.card-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--red-soft); color: var(--red); margin-bottom: 22px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 21px; margin-bottom: 12px; }
.card p { font-size: 16px; margin-bottom: 18px; }
.card-points { list-style: none; padding: 0; display: grid; gap: 9px; }
.card-points li { position: relative; padding-left: 26px; font-size: 15px; color: var(--ink); }
.card-points li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 14px; height: 14px;
  background: var(--red); clip-path: polygon(50% 0, 100% 100%, 0 100%); opacity: .85;
}

/* ---- approach ---- */
.approach { background: var(--bg-soft); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 28px; }
.step-no {
  font-size: 15px; font-weight: 800; color: var(--red);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.step::before { content: ''; position: absolute; top: 0; left: 0; width: 48px; height: 4px; background: var(--red); border-radius: 4px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 15.5px; }

/* ---- tech ---- */
.tech { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.tech .section-lead, .tech p { color: #aeb6c1; }
.tech .eyebrow { color: #ff7a7f; }
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tech-card {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius); padding: 26px 24px;
}
.tech-card h3 { font-size: 16px; text-transform: uppercase; letter-spacing: .08em; color: var(--grey); margin-bottom: 16px; font-weight: 700; }
.tech-card ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.tech-card li { font-size: 15.5px; color: #e7eaee; display: flex; align-items: center; gap: 10px; }
.tech-card li::before { content: ''; width: 7px; height: 7px; background: var(--red); border-radius: 2px; transform: rotate(45deg); flex: none; }

/* ---- about ---- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.about-text p + p { margin-top: 18px; }
.about-text p { font-size: 17px; color: var(--grey-text); }
.about-badges { display: grid; gap: 16px; }
.about-badge {
  display: flex; gap: 16px; padding: 22px 24px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.about-badge .mark {
  flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--ink);
  display: grid; place-items: center;
}
.about-badge .mark svg { width: 22px; height: 22px; color: var(--red); }
.about-badge h3 { font-size: 17px; margin-bottom: 3px; }
.about-badge p { font-size: 14.5px; margin: 0; }

/* ---- references ---- */
.references { background: var(--bg); }
.ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ref-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.ref-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.ref-link { position: absolute; inset: 0; z-index: 1; }
.ref-card h3 { font-size: 19px; margin-bottom: 10px; }
.ref-card p { font-size: 15.5px; margin-bottom: 18px; }
.ref-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ref-tags span {
  font-size: 12.5px; font-weight: 600; color: var(--red); background: var(--red-soft);
  padding: 5px 11px; border-radius: 999px;
}

/* ---- CTA band ---- */
.cta-band {
  background: linear-gradient(100deg, var(--red-dark), var(--red));
  color: #fff; text-align: center; position: relative; overflow: hidden;
}
.cta-band::after {
  content: ''; position: absolute; right: -60px; bottom: -60px; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%);
}
.cta-band h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.9); font-size: 18px; max-width: 560px; margin: 0 auto 30px; }
.cta-band .btn-outline { background: #fff; }

/* ---- contact ---- */
.contact { background: var(--bg-soft); }
.contact-grid { display: grid; grid-template-columns: 1.3fr .8fr; gap: 48px; align-items: start; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  transition: border-color var(--t), box-shadow var(--t);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.field-hp { position: absolute; left: -9999px; }
.check { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--grey-text); }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--red); flex: none; }
.check a { color: var(--red); text-decoration: underline; }
.captcha-q { font-weight: 600; color: var(--ink); }
.form-msg { display: none; padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 15px; }
.form-msg.ok  { display: block; background: #e8f6ec; color: #1c7a3c; border: 1px solid #bce3c8; }
.form-msg.err { display: block; background: #fdeaea; color: #b42125; border: 1px solid #f4c2c4; }

.contact-info { display: grid; gap: 22px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.info-card h3 { font-size: 17px; margin-bottom: 18px; }
.info-item { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
.info-item:last-child { margin-bottom: 0; }
.info-item .ico { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; }
.info-item .ico svg { width: 18px; height: 18px; }
.info-item .lbl { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--grey); font-weight: 700; }
.info-item .val { font-size: 15.5px; color: var(--ink); font-weight: 500; }
.info-item a.val:hover { color: var(--red); }

/* ---- footer ---- */
.site-footer { background: var(--ink); color: #c7ccd4; padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 48px; }
.footer-logo { filter: brightness(0) invert(1); opacity: .92; margin-bottom: 18px; }
.footer-tagline { font-size: 15px; color: #9aa2ae; max-width: 320px; }
.footer-col h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--grey); margin-bottom: 18px; font-weight: 700; }
.footer-col a, .footer-col span { display: block; font-size: 15px; color: #c7ccd4; margin-bottom: 11px; transition: color var(--t); }
.footer-col a:hover { color: #fff; }
.footer-addr { color: #9aa2ae; }
.footer-bar { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; }
.footer-bar-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: #8b93a0; }
.footer-parent strong { color: #c7ccd4; font-weight: 600; }
.footer-parent a { transition: color var(--t); }
.footer-parent a:hover strong { color: var(--red); }

/* ---- legal pages ---- */
.legal-page { padding: 64px 0 80px; }
.legal-page .container { max-width: 800px; }
.legal-page h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 28px; }
.legal-page h2 { font-size: 20px; margin: 34px 0 12px; }
.legal-page p, .legal-page address { font-size: 16px; color: var(--grey-text); font-style: normal; }
.legal-page address { line-height: 1.8; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px; color: var(--red); font-weight: 600; }
.legal-note { background: #fff8e6; border: 1px solid #f3e2af; color: #8a6d1a; padding: 13px 16px; border-radius: var(--radius-sm); font-size: 14.5px; margin-top: 28px; }
.legal-updated { margin-top: 30px; font-size: 13.5px; color: var(--grey); }

/* ---- rich text (WYSIWYG output) ---- */
.rich p { margin: 0 0 .8em; } .rich p:last-child { margin-bottom: 0; }
.rich div { margin: 0; }
.rich ul, .rich ol { margin: .5em 0; padding-left: 1.4em; }
.rich li { margin: .25em 0; }
.rich a { color: var(--red); text-decoration: underline; }
.rich strong, .rich b { font-weight: 700; }
.about-text .about-p { font-size: 17px; color: var(--grey-text); }
.about-text .about-p + .about-p { margin-top: 18px; }
.card-text { font-size: 16px; color: var(--grey-text); margin-bottom: 18px; }
.step .rich { font-size: 15.5px; color: var(--grey-text); }
.ref-card .rich { font-size: 15.5px; color: var(--grey-text); margin-bottom: 18px; }
.legal-page .rich { font-size: 16px; color: var(--grey-text); margin-bottom: 14px; }

/* ---- reference image ---- */
.ref-card.has-img { overflow: hidden; padding-top: 0; }
.ref-img { margin: 0 -28px 22px; background: var(--bg-soft); aspect-ratio: 16/10;
  display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.ref-img img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }

/* ---- reveal animation ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---- responsive ---- */
@media (max-width: 980px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .tech-grid, .steps, .ref-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
/* Navigation → Hamburger früh genug, damit die (längere) Navigation nie das Logo quetscht */
@media (max-width: 1200px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 80px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 18px 24px 28px; gap: 4px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); transform: translateY(-130%); transition: transform var(--t); z-index: 90;
  }
  .main-nav.is-open { transform: none; }
  .main-nav > a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .main-nav > a::after { display: none; }
  .nav-cta { margin-top: 12px; justify-content: center; }
  /* Sprachauswahl im Mobilmenü: Flaggen als Pillen, kein Aufklappen nötig */
  .lang-dd { padding: 14px 0; }
  .lang-current { display: none; }
  .lang-menu { position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0; min-width: 0; display: flex; gap: 10px; }
  .lang-menu a { border: 1px solid var(--line); border-radius: 999px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 72px 0; }
  .cards, .ref-grid { grid-template-columns: 1fr; }
  .hero-bars { display: none; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .steps { grid-template-columns: 1fr; }
  .contact-form { padding: 26px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
