/* ==========================================================================
   Solavi — getsolavi.com
   Static one-pager. No framework, no tracking.
   Fonts are self-hosted (DSGVO: keine Anfragen an Google-CDN).
   ========================================================================== */

/* --- Self-hosted fonts ---------------------------------------------------- */
/* Latin display (headlines, craft character) */
@font-face {
  font-family: 'Fraunces';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('../assets/fonts/fraunces-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal; font-weight: 900; font-display: swap;
  src: url('../assets/fonts/fraunces-900.woff2') format('woff2');
}
/* Latin body */
@font-face {
  font-family: 'Work Sans';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/work-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('../assets/fonts/work-sans-600.woff2') format('woff2');
}
/* Thai body */
@font-face {
  font-family: 'Noto Sans Thai';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/noto-sans-thai-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Sans Thai';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('../assets/fonts/noto-sans-thai-600.woff2') format('woff2');
}
/* Thai display */
@font-face {
  font-family: 'Noto Serif Thai';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('../assets/fonts/noto-serif-thai-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Serif Thai';
  font-style: normal; font-weight: 900; font-display: swap;
  src: url('../assets/fonts/noto-serif-thai-900.woff2') format('woff2');
}

/* --- Design tokens -------------------------------------------------------- */
:root {
  /* Erdtöne */
  --terracotta:   #b5533a;
  --terracotta-d: #8f3f2c;
  --ocker:        #cc8f3c;
  --sand:         #efe6d6;
  --sand-2:       #e6d9c3;
  --braun:        #3a2a20;
  --braun-2:      #2b1e17;
  --indigo:       #2e4372;   /* Batik-Akzent */
  --creme:        #f7f1e6;

  --text:         #33261d;
  --text-soft:    #6b5a4c;
  --line:         rgba(58, 42, 32, 0.14);

  /* Schrift-Stacks: Latin-Font zuerst, Thai-Font als Fallback für Thai-Glyphen */
  --font-display: 'Fraunces', 'Noto Serif Thai', Georgia, serif;
  --font-body:    'Work Sans', 'Noto Sans Thai', system-ui, -apple-system, sans-serif;

  --maxw: 1080px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(58, 42, 32, 0.10);
}

/* --- Reset / Basis -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--sand);
  /* Dezente Textil-Textur (SVG, sehr zurückhaltend) */
  background-image: url('../assets/texture.svg');
  background-size: 320px 320px;
}
img { max-width: 100%; display: block; }
a { color: var(--terracotta-d); }

/* Thai: etwas mehr Zeilenhöhe für die höheren Glyphen */
body.lang-th { line-height: 1.85; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .4em; }
h1 { font-weight: 900; }
h2 { font-weight: 600; letter-spacing: .2px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; }
.section__eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .74rem;
  font-weight: 600;
  color: var(--terracotta);
  margin: 0 0 .8em;
}
.section h2 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); color: var(--braun); }
.section p { max-width: 62ch; color: var(--text-soft); }
.section p.lead { color: var(--text); font-size: 1.08rem; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: .85em 1.6em; border-radius: 999px;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn--primary { background: var(--terracotta); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--terracotta-d); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--braun); border-color: var(--braun); }
.btn--ghost:hover { background: var(--braun); color: var(--creme); }
.btn .pill {
  font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255,255,255,.22); padding: .2em .6em; border-radius: 999px;
}

/* --- Header / Sprachumschalter -------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(239, 230, 214, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 22px; max-width: var(--maxw); margin: 0 auto;
}
.brand {
  font-family: var(--font-display); font-weight: 900;
  font-size: 1.5rem; color: var(--braun); text-decoration: none;
  display: inline-flex; align-items: center; gap: .5em;
}
.brand .brand__sun { width: 22px; height: 22px; }
.langswitch { display: flex; gap: 4px; background: rgba(58,42,32,.06); padding: 4px; border-radius: 999px; }
.langswitch button {
  font-family: var(--font-body); font-weight: 600; font-size: .85rem;
  color: var(--text-soft); background: transparent; border: 0; cursor: pointer;
  padding: .35em .8em; border-radius: 999px; transition: background-color .15s, color .15s;
  min-height: 44px; display: inline-flex; align-items: center; /* Touch-Ziel ≥44px */
}
.langswitch button:hover { color: var(--braun); }
.langswitch button[aria-pressed="true"] { background: var(--terracotta); color: #fff; }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(204,143,60,.55), transparent 60%),
    linear-gradient(160deg, #f3ead9 0%, #ecdcc2 48%, #e4cfae 100%);
  border-bottom: 1px solid var(--line);
}
.hero__inner { padding: 88px 22px 96px; position: relative; z-index: 2; }
.hero__sun {
  position: absolute; right: -60px; top: -60px; width: 340px; height: 340px;
  opacity: .5; z-index: 1; pointer-events: none;
}
.hero h1 {
  font-size: clamp(3.2rem, 11vw, 6rem); color: var(--terracotta-d);
  letter-spacing: -1px; margin-bottom: .1em;
}
.hero__tagline {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.3rem, 4vw, 2rem); color: var(--braun); margin: 0 0 .5em;
}
.hero__claim { font-size: 1.12rem; color: var(--text-soft); max-width: 46ch; margin: 0 0 2em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* --- Sortiment ------------------------------------------------------------ */
.assortment { background: var(--creme); }
.cards { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 34px; }
.card {
  background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card h3 { font-size: 1.25rem; color: var(--braun); }
.card p { margin: 0; color: var(--text-soft); }
.card__icon { font-size: 1.6rem; margin-bottom: .3em; }

/* Batik-Hinweis (Indigo-Akzent) */
.batik {
  margin-top: 30px; border-radius: var(--radius); overflow: hidden;
  background: var(--indigo); color: #eef1f8;
  display: grid; grid-template-columns: 1fr; box-shadow: var(--shadow);
}
.batik__body { padding: 26px 28px; }
.batik__badge {
  display: inline-block; font-family: var(--font-body); font-weight: 600;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(255,255,255,.16); color: #fff;
  padding: .35em .8em; border-radius: 999px; margin-bottom: .8em;
}
.batik h3 { color: #fff; font-size: 1.35rem; }
.batik p { color: rgba(255,255,255,.86); margin: 0; max-width: 60ch; }

/* --- Story ---------------------------------------------------------------- */
.story { background: var(--sand); }
.story .lead { font-size: clamp(1.05rem, 2.4vw, 1.25rem); }
.story__meta {
  margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px;
}
.chip {
  font-family: var(--font-body); font-weight: 600; font-size: .82rem;
  background: var(--sand-2); color: var(--braun);
  border: 1px solid var(--line); padding: .5em 1em; border-radius: 999px;
}

/* --- CTA ------------------------------------------------------------------ */
.cta { background: linear-gradient(160deg, var(--terracotta) 0%, var(--terracotta-d) 100%); color: #fff; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.88); margin-left: auto; margin-right: auto; }
.cta .btn--light { background: var(--creme); color: var(--terracotta-d); }
.cta .btn--light:hover { background: #fff; transform: translateY(-2px); }
.cta__note { font-size: .9rem; margin-top: 1.2em; }

/* --- Kontakt -------------------------------------------------------------- */
.contact { background: var(--creme); text-align: center; }
.contact a.mail {
  display: inline-block; margin-top: .4em;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.3rem, 4vw, 1.9rem); color: var(--terracotta-d);
  text-decoration: none; border-bottom: 2px solid rgba(181,83,58,.35);
}
.contact a.mail:hover { border-bottom-color: var(--terracotta-d); }

/* --- Footer --------------------------------------------------------------- */
.footer { background: var(--braun-2); color: rgba(247,241,230,.72); padding: 40px 0; }
.footer__inner {
  display: flex; flex-wrap: wrap; gap: 14px 26px;
  align-items: center; justify-content: space-between;
}
.footer .brand { color: var(--creme); font-size: 1.25rem; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer a { color: rgba(247,241,230,.82); text-decoration: none; font-size: .92rem; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__legal { flex-basis: 100%; font-size: .82rem; color: rgba(247,241,230,.5); margin-top: 6px; }

/* --- Rechtstext-Seiten (impressum / datenschutz) -------------------------- */
.legal { max-width: 760px; margin: 0 auto; padding: 48px 22px 80px; }
.legal .back { display: inline-block; margin-bottom: 24px; font-weight: 600; text-decoration: none; }
.legal h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); color: var(--braun); }
.legal h2 { font-size: 1.25rem; color: var(--braun); margin-top: 1.6em; }
.legal p, .legal li { color: var(--text-soft); }
.legal .todo {
  background: #fff7e6; border: 1px dashed var(--ocker); color: #6b4e1e;
  padding: 2px 8px; border-radius: 6px; font-weight: 600; white-space: nowrap;
}
.legal .note {
  background: var(--sand); border-left: 4px solid var(--indigo);
  padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 18px 0;
}

/* --- Utility -------------------------------------------------------------- */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--braun); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 2px; border-radius: 4px; }

/* --- Responsive ----------------------------------------------------------- */
@media (min-width: 680px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .batik { grid-template-columns: 1fr; }
}
@media (min-width: 900px) {
  .section { padding: 92px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn:hover { transition: none; transform: none; }
}
