/* Schriften lokal (statt Google Fonts): Sora + Instrument Sans, Zeichensatz latin (Deutsch + Französisch) */
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/instrument-sans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/instrument-sans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/instrument-sans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/sora-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/sora-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/sora-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/sora-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

html { scroll-behavior: smooth; }
body { margin: 0; background: #0A0A0B; color: #F5F5F4; font-family: "Instrument Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
a:hover { color: #9A9CA1; }
input, textarea { color-scheme: light; }
::placeholder { color: #6B6D72; opacity: 1; }
:focus-visible { outline: 2px solid #17181A; outline-offset: 2px; }

.btn-dark:hover { background: #2A2B2E !important; color: #FFFFFF !important; }
.link-line:hover { color: #5B5D62; border-bottom-color: #5B5D62 !important; }
button[type="submit"]:hover { background: #2A2B2E !important; }

header nav > a:last-of-type { white-space: nowrap; }

/* Sprachumschalter DE | FR: Pille rechts neben dem Beratungsknopf, aktive Sprache hinterlegt */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid rgba(245,245,244,0.4); border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; line-height: 1; }
.lang-switch > * { display: block; padding: 7px 10px; border-radius: 999px; }
.lang-switch > span { background: #F5F5F4; color: #0A0A0B; }
.lang-switch > a { color: rgba(245,245,244,0.7); transition: color 0.2s ease, background-color 0.2s ease; }
.lang-switch > a:hover { color: #F5F5F4; background: rgba(245,245,244,0.12); }

html { -webkit-text-size-adjust: 100%; }
section[id] { scroll-margin-top: 76px; }
/* Wörter nicht automatisch trennen, nur an gesetzten &shy;-Stellen */
h1, h2, h3 { hyphens: manual; -webkit-hyphens: manual; }

/* Rechtsseiten (Impressum, Datenschutz, AGB / Mentions légales, Confidentialité, CGV) */
.legal-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 80px); align-items: end; max-width: 1320px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) clamp(16px, 5vw, 72px) clamp(28px, 4vw, 48px); }
.legal-hero h1 { font-family: 'Sora', sans-serif; font-weight: 600; font-size: clamp(40px, 5.4vw, 76px); line-height: 1; letter-spacing: -0.045em; margin: 0 0 22px; text-wrap: balance; }
.legal-hero .lead { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6; color: #3F4045; margin: 0; max-width: 46ch; }
.legal-hero .stand { margin: 18px 0 0; font-size: 14px; color: #5B5D62; }

/* Typenschild: Firmendaten wie auf dem Geräteschild, vier „Schrauben“ in den Ecken */
.legal-plate { position: relative; background: #0A0A0B; color: #F5F5F4; border-radius: 20px; padding: clamp(24px, 2.6vw, 34px); box-shadow: 0 30px 60px rgba(10, 10, 11, 0.18);
  background-image: radial-gradient(circle at 14px 14px, #2E2F33 3px, transparent 3.6px), radial-gradient(circle at calc(100% - 14px) 14px, #2E2F33 3px, transparent 3.6px), radial-gradient(circle at 14px calc(100% - 14px), #2E2F33 3px, transparent 3.6px), radial-gradient(circle at calc(100% - 14px) calc(100% - 14px), #2E2F33 3px, transparent 3.6px); }
.legal-plate-top { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; }
.legal-plate-top img { width: 44px; height: 44px; object-fit: contain; display: block; }
.legal-plate-top strong { display: block; font-family: 'Sora', sans-serif; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.legal-plate-top div > span { display: block; font-size: 14px; color: #B4B6BA; margin-top: 2px; }
.legal-plate-top div > span > span { white-space: nowrap; }
.legal-plate-role { margin: 0 0 0 auto; align-self: flex-start; padding: 6px 12px; border: 1px solid rgba(245, 245, 244, 0.25); border-radius: 999px; font-size: 13px; color: #F5F5F4; white-space: nowrap; }
.legal-plate dl { display: grid; grid-template-columns: minmax(84px, auto) 1fr; margin: 0; font-size: 15px; line-height: 1.5; }
.legal-plate dt, .legal-plate dd { margin: 0; padding: 11px 0; border-top: 1px solid rgba(245, 245, 244, 0.12); }
.legal-plate dt { color: #9A9CA1; font-size: 14px; padding-right: 16px; }
.legal-plate dd a:hover { color: #B4B6BA; }

.legal-tabs-wrap { max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 72px); }
.legal-tabs { display: flex; gap: 4px; padding: 4px; width: max-content; max-width: 100%; overflow-x: auto; border: 1px solid #E4E4E1; border-radius: 999px; }
.legal-tabs > * { padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; color: #3F4045; }
.legal-tabs > span { background: #0A0A0B; color: #F5F5F4; }
.legal-tabs > a:hover { background: #F2F2F0; color: #0A0A0B; }

.legal-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); max-width: 1320px; margin: 0 auto; padding: clamp(40px, 5vw, 72px) clamp(16px, 5vw, 72px) clamp(64px, 8vw, 120px); }
.legal-toc { position: sticky; top: 110px; align-self: start; display: flex; flex-direction: column; font-size: 14px; line-height: 1.4; }
.legal-toc p { margin: 0 0 12px; font-family: 'Sora', sans-serif; font-weight: 600; color: #0A0A0B; }
.legal-toc a { padding: 7px 0 7px 14px; border-left: 2px solid #E4E4E1; color: #5B5D62; }
.legal-toc a:hover { color: #0A0A0B; border-left-color: #0A0A0B; }
.legal-prose { max-width: 68ch; font-size: 17px; line-height: 1.7; color: #3F4045; }
.legal-prose section + section { margin-top: clamp(36px, 4vw, 52px); }
.legal-prose h2 { font-family: 'Sora', sans-serif; font-size: clamp(21px, 1.9vw, 26px); font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; color: #0A0A0B; margin: 0 0 14px; }
.legal-prose p, .legal-prose address, .legal-prose ul { margin: 0 0 14px; }
.legal-prose address { font-style: normal; }
.legal-prose ul { padding-left: 20px; }
.legal-prose li + li { margin-top: 6px; }
.legal-prose strong { color: #0A0A0B; font-weight: 600; }
.legal-prose a { color: #0A0A0B; border-bottom: 1px solid currentColor; }
.legal-prose a:hover { color: #5B5D62; }

@media (max-width: 900px) {
  .legal-hero, .legal-body { grid-template-columns: 1fr; }
  .legal-toc { display: none; }
}

/* Handy */
@media (max-width: 640px) {
  /* Kopfzeile: nur der Beratungs-Button */
  body > div > header { flex-wrap: nowrap !important; mix-blend-mode: normal !important; background: rgba(10,10,11,0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  header nav > a:not(:last-of-type) { display: none; }
  header nav { gap: 10px !important; flex-wrap: nowrap !important; }
  header nav > a:last-of-type { padding: 10px 14px !important; }
  .lang-switch > * { padding: 6px 8px; font-size: 11px; }

  /* Produktkarten zweispaltig und kompakt */
  #produkte > div:last-child, #produits > div:last-child { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  :is(#produkte, #produits) article { border-radius: 16px !important; background: linear-gradient(180deg,#FFFFFF 0px,#EDEDEE 104px,#7C7E83 134px,#111214 160px,#111214 100%) !important; }
  :is(#produkte, #produits) article > div:first-child { height: 150px !important; padding: 14px 12px 8px !important; }
  :is(#produkte, #produits) article > div:last-child { padding: 12px 14px 16px !important; gap: 6px !important; }
  :is(#produkte, #produits) article h3 { font-size: 16px !important; overflow-wrap: normal !important; }
  :is(#produkte, #produits) article p { font-size: 13px !important; line-height: 1.5 !important; }
  :is(#produkte, #produits) article > div:last-child > a { font-size: 13px !important; padding-top: 6px; }

  /* Servierroboter: immer erst Video, dann Text */
  :is(#einsatz, #utilisation) > div:nth-child(3) > div:first-child { order: 2; }

  /* Größere Tippflächen für Textlinks */
  section a[href^="#"]:not([style*="border-radius"]),
  section a[href*=".html#"]:not([style*="border-radius"]) { padding-top: 10px !important; padding-bottom: 6px !important; }
  footer a { display: inline-block; padding: 3px 0; }
}

/* Schmale Handys: Schriftzug neben dem Logo ausblenden, damit Knopf und Sprachwahl in eine Zeile passen */
@media (max-width: 419px) {
  body > div > header > a > span { display: none; }
}

/* Sehr kleine Handys (z. B. iPhone SE 1. Gen.) */
@media (max-width: 359px) {
  #produkte > div:last-child, #produits > div:last-child { grid-template-columns: 1fr !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
