/*
Theme Name:   Swissasia Lean
Theme URI:    https://www.swissasiatrading.com
Description:  Schlankes, schnelles Standalone-Theme für Swissasia Trading. Kein Elementor, keine Addon-Plugins. Inhalte ACF-/CPT-basiert. Ersetzt __constructify. Design an der bestehenden Seite orientiert (auf Staging feinabstimmbar via CSS-Variablen).
Author:       Swissasia Trading GmbH
Version:      0.4.2
Text Domain:  swissasia-lean
Tested up to: 6.6
Requires PHP: 8.1
*/

/* =========================================================
   DESIGN TOKENS (auf Staging hier zentral feinjustierbar)
   ========================================================= */
:root {
  --sat-red:        #df2c2c;   /* Akzent / Sidebar-Leiste / Buttons */
  --sat-red-dark:   #c0392b;
  --sat-ink:        #1a1a1a;   /* Überschriften */
  --sat-body:       #777777;   /* Fliesstext */
  --sat-line:       #e6e6e6;
  --sat-bg:         #ffffff;
  --sat-bg-dark:    #0e0e10;   /* dunkle Sektionen */
  --sat-sidebar-w:  300px;
  --sat-railbar-w:  68px;
  --sat-font-body:  'Hind', 'Open Sans', Arial, Helvetica, sans-serif;
  --sat-font-head:  'Rubik', Arial, Helvetica, sans-serif;
  --sat-maxw:       1180px;
  --sat-radius:     4px;
}

/* =========================================================
   RESET / BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sat-font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--sat-body);
  background: var(--sat-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sat-red); text-decoration: none; }
a:hover { color: var(--sat-red-dark); }

h1, h2, h3, h4 {
  font-family: var(--sat-font-head);
  color: var(--sat-ink);
  font-weight: 300;
  line-height: 1.15;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; font-weight: 500; }
p { margin: 0 0 1.1em; }
strong, b { font-weight: 600; color: #555; }

.sat-container { max-width: var(--sat-maxw); margin-inline: auto; padding-inline: 24px; }
.sat-section { padding: 84px 0; }
.sat-section--dark { background: var(--sat-bg-dark); color: #c9c9cf; }
.sat-section--dark h1, .sat-section--dark h2, .sat-section--dark h3 { color: #fff; }
.sat-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--sat-red); font-weight: 600; margin-bottom: .8rem; }
.sat-heading-center { text-align: center; max-width: 760px; margin-inline: auto; }
.sat-heading-center .sat-rule { width: 64px; height: 3px; background: var(--sat-red); margin: 1rem auto 0; border: 0; }

/* Buttons */
.sat-btn {
  display: inline-block;
  background: var(--sat-red);
  color: #fff;
  font-family: var(--sat-font-head);
  font-weight: 500;
  padding: 14px 30px;
  border-radius: var(--sat-radius);
  transition: background .2s ease, transform .2s ease;
}
.sat-btn:hover { background: var(--sat-red-dark); color: #fff; transform: translateY(-1px); }
.sat-btn--block { display: block; text-align: center; }

/* =========================================================
   LAYOUT: fixe linke Navigation + schmale rote Leiste
   ========================================================= */
.sat-shell { min-height: 100vh; }

.sat-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sat-sidebar-w);
  background: #fff;
  border-right: 1px solid var(--sat-line);
  display: flex; flex-direction: column;
  padding: 36px 30px 24px;
  z-index: 50;
  overflow-y: auto;
}
.sat-logo { margin-bottom: 40px; }
.sat-logo img { max-width: 168px; }

.sat-nav ul { list-style: none; margin: 0; padding: 0; }
.sat-nav li { margin: 0; }
.sat-nav a {
  display: block;
  font-family: var(--sat-font-head);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .92rem;
  color: var(--sat-ink);
  padding: 11px 0;
}
.sat-nav a:hover, .sat-nav .current-menu-item > a { color: var(--sat-red); }
.sat-nav .sub-menu { padding-left: 14px; border-left: 2px solid var(--sat-line); margin: 2px 0 6px; }
.sat-nav .sub-menu a { font-size: .82rem; padding: 7px 0; color: var(--sat-body); }

.sat-member { margin-top: 28px; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--sat-ink); }
.sat-lang { margin-top: 18px; display: flex; gap: 12px; font-size: .82rem; }

/* schmale rote Kontaktleiste rechts neben der Sidebar */
.sat-rail {
  position: fixed; top: 0; bottom: 0;
  left: var(--sat-sidebar-w);
  width: var(--sat-railbar-w);
  background: var(--sat-red);
  z-index: 49;
  display: flex; flex-direction: column; align-items: center;
  padding-top: 22px; gap: 18px;
}
.sat-rail a { color: #fff; opacity: .92; display: grid; place-items: center; width: 34px; height: 34px; }
.sat-rail a:hover { opacity: 1; transform: translateY(-1px); }
.sat-rail svg { width: 18px; height: 18px; fill: currentColor; }
.sat-rail .sat-rail-sep { width: 22px; height: 1px; background: rgba(255,255,255,.45); }

.sat-main {
  margin-left: calc(var(--sat-sidebar-w) + var(--sat-railbar-w));
  min-height: 100vh;
}

/* Mobile-Burger (nur < 1024px sichtbar) */
.sat-burger { display: none; }

/* =========================================================
   HERO
   ========================================================= */
.sat-hero { position: relative; min-height: 88vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.sat-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.sat-hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,0) 100%); }
.sat-hero__inner { position: relative; z-index: 2; max-width: 620px; padding: 60px 40px; }
.sat-hero__inner .sat-eyebrow { color: #fff; opacity: .85; }
.sat-hero h1 { color: #fff; font-weight: 300; }
.sat-hero p { color: rgba(255,255,255,.9); font-size: 1.05rem; }
.sat-hero .sat-btn { margin-top: 14px; }

/* =========================================================
   VORTEILE / FEATURE-KARTEN
   ========================================================= */
.sat-grid { display: grid; gap: 28px; }
.sat-grid--2 { grid-template-columns: repeat(2, 1fr); }
.sat-grid--3 { grid-template-columns: repeat(3, 1fr); }
.sat-grid--4 { grid-template-columns: repeat(4, 1fr); }

.sat-card {
  background: #161619; border: 1px solid #232327; border-radius: var(--sat-radius);
  padding: 34px 30px;
}
.sat-card__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--sat-red); margin-bottom: 18px; }
.sat-card__icon svg { width: 26px; height: 26px; fill: var(--sat-red); }
.sat-card h3 { color: #fff; }
.sat-card p { color: #9a9aa2; font-size: .95rem; margin: 0; }

/* Service-Übersicht (helle Karten) */
.sat-service {
  display: block; background: #fff; border: 1px solid var(--sat-line); border-radius: var(--sat-radius);
  padding: 30px; transition: box-shadow .2s ease, transform .2s ease; color: var(--sat-body);
}
.sat-service:hover { box-shadow: 0 14px 40px rgba(0,0,0,.08); transform: translateY(-3px); color: var(--sat-body); }
.sat-service h3 { color: var(--sat-ink); }
.sat-service .sat-service__more { color: var(--sat-red); font-weight: 600; font-size: .9rem; }
.sat-service__time { display:inline-block; margin-top: 8px; font-size:.8rem; color: var(--sat-red); border:1px solid var(--sat-red); border-radius: 40px; padding: 2px 12px; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.sat-quote { background: #fff; border: 1px solid var(--sat-line); border-radius: var(--sat-radius); padding: 34px; }
.sat-quote p { font-style: italic; color: #555; }
.sat-quote__name { font-family: var(--sat-font-head); color: var(--sat-ink); font-weight: 500; margin-top: 10px; }
.sat-quote__meta { font-size: .85rem; color: var(--sat-red); }

/* =========================================================
   FAQ (native <details>)
   ========================================================= */
.sat-faq-list { max-width: 820px; margin-inline: auto; }
.sat-faq-item { border-bottom: 1px solid var(--sat-line); }
.sat-faq-item summary { font-family: var(--sat-font-head); font-weight: 500; cursor: pointer; list-style: none; padding: 18px 0; color: var(--sat-ink); position: relative; padding-right: 30px; }
.sat-faq-item summary::-webkit-details-marker { display: none; }
.sat-faq-item summary::after { content: '+'; position: absolute; right: 4px; top: 16px; color: var(--sat-red); font-size: 1.3rem; line-height: 1; }
.sat-faq-item[open] summary::after { content: '\2212'; }
.sat-faq-answer { padding: 0 0 20px; color: var(--sat-body); }

/* =========================================================
   TEAM
   ========================================================= */
.sat-team-card { text-align: center; }
.sat-team-card img { border-radius: var(--sat-radius); margin-bottom: 14px; aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.sat-team-card h3 { margin-bottom: 2px; }
.sat-team-card .sat-team-role { font-size: .85rem; color: var(--sat-red); }

/* =========================================================
   FOOTER
   ========================================================= */
.sat-footer { background: var(--sat-bg-dark); color: #8a8a92; font-size: .85rem; padding: 26px 0; text-align: center; }
.sat-footer a { color: #b9b9c0; }

/* =========================================================
   SERVICE-SEITEN (template-service.php)
   ========================================================= */
.sat-banner { position: relative; min-height: 320px; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; margin: 0 24px; border-radius: var(--sat-radius); overflow: hidden; }
.sat-banner__bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-color: var(--sat-red); }
.sat-banner__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(120,10,10,.55), rgba(60,5,5,.72)); }
.sat-banner__inner { position: relative; z-index: 2; max-width: 820px; padding: 56px 32px; }
.sat-banner h2 { color: #fff; text-transform: uppercase; font-weight: 600; letter-spacing: .02em; }
.sat-banner p { color: rgba(255,255,255,.92); font-size: 1.05rem; margin: 0; }

.sat-redcard { position: relative; border: 3px solid var(--sat-red); border-radius: 2px; padding: 42px 34px 30px; }
.sat-redcard::before { content: ''; position: absolute; top: -3px; left: 28px; width: 52px; height: 40px; background: var(--sat-red); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); }
.sat-redcard h3 { text-transform: uppercase; letter-spacing: .02em; font-weight: 600; margin-top: 14px; }
.sat-redcard p { font-size: .97rem; }

.sat-punch { font-family: var(--sat-font-head); font-weight: 600; color: var(--sat-red); text-transform: uppercase; letter-spacing: .06em; text-align: center; margin-top: 28px; font-size: 1.1rem; }

.sat-checklist { list-style: none; padding: 0; margin: 32px 0 0; }
.sat-checklist li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px solid var(--sat-line); }
.sat-checklist li::before { content: '✓'; position: absolute; left: 4px; top: 9px; color: var(--sat-red); font-weight: 700; }

/* =========================================================
   PROZESS-SCHRITTE (nummerierte Timeline)
   ========================================================= */
.sat-steps { list-style: none; counter-reset: satstep; margin: 24px 0 0; padding: 0; }
.sat-steps li { counter-increment: satstep; position: relative; padding: 0 0 36px 78px; }
.sat-steps li::before {
  content: counter(satstep);
  position: absolute; left: 0; top: 0;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--sat-red); color: #fff;
  font-family: var(--sat-font-head); font-weight: 600; font-size: 1.3rem;
  display: grid; place-items: center;
}
.sat-steps li:not(:last-child)::after { content: ''; position: absolute; left: 25px; top: 56px; bottom: 4px; width: 2px; background: var(--sat-line); }
.sat-steps h3 { text-transform: uppercase; font-weight: 600; margin-bottom: .4em; padding-top: 12px; }

/* =========================================================
   FORMULARE (lean, ohne Plugin)
   ========================================================= */
.sat-form { margin-top: 36px; }
.sat-form label { display: block; font-family: var(--sat-font-head); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: #c9c9cf; margin-bottom: 18px; }
.sat-form input, .sat-form textarea {
  display: block; width: 100%; margin-top: 6px;
  background: #1b1b1f; border: 1px solid #2d2d33; border-radius: var(--sat-radius);
  color: #fff; padding: 13px 14px; font-family: var(--sat-font-body); font-size: 1rem;
}
.sat-form input:focus, .sat-form textarea:focus { outline: 2px solid var(--sat-red); border-color: var(--sat-red); }
.sat-form button { border: 0; cursor: pointer; width: 100%; font-size: 1rem; }
.sat-form--light label { color: var(--sat-ink); }
.sat-form--light input, .sat-form--light textarea { background: #fff; border-color: var(--sat-line); color: var(--sat-ink); }
.sat-form input[type=file] { padding: 10px; }

/* =========================================================
   WORDPRESS DEFAULTS
   ========================================================= */
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.aligncenter { margin-inline: auto; }
.entry-content img { border-radius: var(--sat-radius); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .sat-rail { display: none; }
  .sat-sidebar {
    transform: translateX(-100%);
    transition: transform .25s ease;
    width: 280px; box-shadow: 0 0 40px rgba(0,0,0,.2);
  }
  body.sat-nav-open .sat-sidebar { transform: translateX(0); }
  .sat-main { margin-left: 0; }
  .sat-burger {
    display: grid; place-items: center;
    position: fixed; top: 16px; left: 16px; z-index: 60;
    width: 48px; height: 48px; border-radius: var(--sat-radius);
    background: var(--sat-red); border: 0; cursor: pointer;
  }
  .sat-burger span, .sat-burger span::before, .sat-burger span::after {
    content: ''; display: block; width: 22px; height: 2px; background: #fff; position: relative;
  }
  .sat-burger span::before { position: absolute; top: -7px; }
  .sat-burger span::after { position: absolute; top: 7px; }
  .sat-hero__inner { padding: 40px 24px; }
  .sat-grid--3, .sat-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .sat-section { padding: 56px 0; }
  .sat-grid--2, .sat-grid--3, .sat-grid--4 { grid-template-columns: 1fr; }
}
