/* ============================================================
   Socialwy — styles.css
   Firmenwebsite der Socialwy UG (haftungsbeschränkt)
   Design: reines Weiß, schwarze Schrift, keine Verläufe/Leuchteffekte
   ============================================================ */

@font-face {
  font-family: 'Space Grotesk';
  src: url('../assets/fonts/space-grotesk-latin-wght.woff2') format('woff2-variations'),
       url('../assets/fonts/space-grotesk-latin-wght.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-latin-wght.woff2') format('woff2-variations'),
       url('../assets/fonts/inter-latin-wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------
   Design-Tokens
   ------------------------------------------------------------ */
:root {
  --font-display: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --container: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-pad: clamp(4.5rem, 10vw, 8rem);
  --radius: 18px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
  --bg: #FFFFFF;
  --text: #000000;
  --text-dim: #3A3A3A;
  --text-faint: #6B6B6B;
  --line: #E4E4E4;
  --line-strong: #B8B8B8;
  --selection: rgba(0, 0, 0, 0.12);
}

/* ------------------------------------------------------------
   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: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

::selection { background: var(--selection); }

img, svg { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--text);
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.25rem; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--text);
  color: var(--bg);
  border-radius: 999px;
  font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------
   Navigation
   ------------------------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand__mark { width: 28px; height: 28px; flex: none; }

.nav__links {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__links a {
  display: inline-block;
  padding: .5rem .85rem;
  border-radius: 999px;
  color: var(--text-dim);
  font-weight: 500;
  font-size: .95rem;
  transition: color .2s, background .2s;
}

.nav__links a:hover { color: var(--text); background: #F2F2F2; }

.nav__actions { display: flex; align-items: center; gap: .5rem; }

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: border-color .2s;
}
.icon-btn:hover { border-color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }

.nav-toggle { display: none; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 880px) {
  .nav__links {
    display: none;
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    padding: .75rem var(--gutter) 1.25rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: .9rem 1rem; font-size: 1.1rem; }
  .nav-toggle { display: inline-grid; }
  .nav .btn--nav { display: none; } /* höhere Spezifität als .btn (steht später in der Datei) */
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.45rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  border: 1px solid var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.btn svg { width: 16px; height: 16px; flex: none; }

.btn--primary, .btn--accent { background: var(--text); color: var(--bg); }
.btn--primary:hover, .btn--accent:hover { background: #2A2A2A; border-color: #2A2A2A; }

.btn--ghost { background: var(--bg); color: var(--text); }
.btn--ghost:hover { background: var(--text); color: var(--bg); }

.btn--sm { padding: .62rem 1.05rem; font-size: .92rem; }

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  position: relative;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text);
}

.hero__lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--text-dim);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.25rem; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.chips li {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-dim);
  padding: .45rem .85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
}

.hero__visual {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  aspect-ratio: 1;
}
.hero__visual svg { width: 100%; height: 100%; overflow: visible; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
}

/* Netzwerk-Grafik (Strichzeichnung in Schwarz-Weiß) */
.net { animation: drift 9s ease-in-out infinite alternate; }
.net__edges line {
  stroke: var(--line-strong);
  stroke-width: 2;
  stroke-linecap: round;
}
.net__edges .net__edge--hub { stroke: var(--text); opacity: .35; }
.net__node circle.net__shell {
  fill: var(--bg);
  stroke: var(--text);
  stroke-width: 2;
}
.net__dot { fill: var(--text); }
.net__hub { fill: var(--bg); stroke: var(--text); stroke-width: 2; }
.net__hub-glyph { fill: none; stroke: var(--text); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.net__hub-glyph-dot { fill: var(--text); }
.net__tag rect { fill: var(--bg); stroke: var(--text); stroke-width: 1.5; }
.net__tag text { font: 600 14px var(--font-body); fill: var(--text); }
.net__tag circle { fill: var(--text); }

@keyframes drift {
  from { transform: translateY(-8px); }
  to { transform: translateY(8px); }
}

/* ------------------------------------------------------------
   Sektionen
   ------------------------------------------------------------ */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--alt { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section__head { max-width: 42rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head > p:not(.eyebrow) { font-size: 1.125rem; color: var(--text-dim); margin: 0; }
.section__head .eyebrow { margin-bottom: 1rem; }

.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  padding-block: 2rem;
}
.principle { padding-inline: 1.5rem; }
.principle + .principle { border-left: 1px solid var(--line); }
.principle:first-child { padding-left: 0; }
.principle:last-child { padding-right: 0; }
.principle__icon { color: var(--text); margin-bottom: 1.25rem; }
.principle__icon svg { width: 26px; height: 26px; }
.principle h3 { font-size: 1.2rem; line-height: 1.25; margin-bottom: .75rem; }
.principle p { color: var(--text-dim); font-size: 1rem; margin: 0; }

@media (max-width: 1000px) {
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: 0; }
  .principle { padding: 1.75rem; }
  .principle:nth-child(odd) { padding-left: 0; border-left: 0; }
  .principle:nth-child(even) { padding-right: 0; }
  .principle:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 600px) {
  .principles { grid-template-columns: 1fr; }
  .principle { padding: 1.5rem 0; }
  .principle + .principle { border-left: 0; border-top: 1px solid var(--line); }
  .principle__icon { margin-bottom: .75rem; }
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: border-color .2s;
}
.card:hover { border-color: var(--text); }

.card h3 { margin-bottom: .5rem; }
.card p { color: var(--text-dim); margin: 0; }

/* Produkt */
.product {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3.5rem);
  overflow: hidden;
}

.product__brand { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.product__icon { width: 64px; height: 64px; border-radius: 18px; border: 1px solid var(--line); flex: none; }
.product__name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.product__tag { font-size: .88rem; color: var(--text-faint); margin-top: .2rem; }
.product__text { color: var(--text-dim); font-size: 1.05rem; }

.product__features {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.75rem;
  display: grid;
  gap: .65rem;
}
.product__features li { display: flex; gap: .65rem; align-items: flex-start; color: var(--text-dim); }
.product__features svg { flex: none; width: 20px; height: 20px; color: var(--text); margin-top: .15rem; }
.product__features strong { color: var(--text); font-weight: 600; }

.product__cta { display: flex; flex-wrap: wrap; gap: .75rem; }

.product__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  width: min(320px, 100%);
  aspect-ratio: 1 / 1.9;
  justify-self: center;
}

/* Das Blender-Modell erhält seinen Screenshot direkt im Browser. */
.product__phone {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  touch-action: pan-y;
  --progress-bar-color: transparent;
}
.product__fallback {
  width: 78%;
  height: auto;
  border-radius: 28px;
}
.product__visual.is-ready .product__phone { opacity: 1; pointer-events: auto; }
.product__visual.is-ready .product__fallback { visibility: hidden; }

@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; }
  .product__visual { min-height: 0; padding: 1rem 0; }
}

/* Über uns */
.about {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about__text p { color: var(--text-dim); font-size: 1.05rem; }
.about__text p:first-of-type { color: var(--text); font-size: 1.15rem; }

.facts {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
}
.facts dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .8rem 1.5rem;
  align-items: baseline;
}
.facts dt { color: var(--text-faint); font-size: .88rem; font-weight: 500; white-space: nowrap; }
.facts dd { margin: 0; font-weight: 500; }
.facts dd a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; }
  .facts dl { grid-template-columns: 1fr; gap: .25rem; }
  .facts dd { margin-bottom: .75rem; }
}

/* Kontakt */
.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.contact__label {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: .6rem;
}
.contact__mail {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
  margin-bottom: .5rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--line-strong);
}
.contact__mail:hover { text-decoration-color: var(--text); }
.contact address, .contact-side address { font-style: normal; color: var(--text-dim); }
.contact p a { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  color: var(--text-faint);
  font-size: .9rem;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
}
.footer__brand { display: flex; align-items: center; gap: .75rem; }
.footer__brand .brand { font-size: 1.1rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.footer__links a { transition: color .2s; }
.footer__links a:hover { color: var(--text); }

/* ------------------------------------------------------------
   Rechtstexte
   ------------------------------------------------------------ */
.legal { padding: clamp(3rem, 7vw, 5rem) 0; }
.legal__inner { max-width: 46rem; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: .5rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2.5rem; }
.legal h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.legal p, .legal li, .legal address { color: var(--text-dim); }
.legal address { font-style: normal; margin-bottom: 1rem; }
.legal a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.legal .meta { color: var(--text-faint); font-size: .9rem; margin-bottom: 2rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .4rem; }
.legal .summary {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 0;
}
.legal .summary ul { margin: 0; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--text-dim);
  font-weight: 500;
  margin-bottom: 2rem;
}
.back-link svg { width: 16px; height: 16px; }
.back-link:hover { color: var(--text); }

/* 404 */
.notfound {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--section-pad) 0;
}
.notfound p { color: var(--text-dim); max-width: 30rem; margin-inline: auto; }
.notfound__code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  margin-bottom: .5rem;
}

/* ------------------------------------------------------------
   Reveal-Animation (nur mit JS)
   ------------------------------------------------------------ */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }
html.js .reveal--delay-1 { transition-delay: .08s; }
html.js .reveal--delay-2 { transition-delay: .16s; }
html.js .reveal--delay-3 { transition-delay: .24s; }

/* ------------------------------------------------------------
   Reduzierte Bewegung
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .net { animation: none; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .icon-btn { transition: none; }
}

/* ------------------------------------------------------------
   Produkte: Badges, zweite Produktkarte, App-Skizze
   ------------------------------------------------------------ */
.badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .6rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-dim);
  margin-left: .5rem;
  vertical-align: middle;
  line-height: 1;
}
.product + .product { margin-top: 1.5rem; }

.card--note { margin-top: 1.5rem; }
.card--note .card__lead { color: var(--text-dim); margin-bottom: 1.25rem; }

/* Footer auf schmalen Screens untereinander */
@media (max-width: 640px) {
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .footer__brand { flex-direction: column; align-items: flex-start; gap: .6rem; }
}

/* ------------------------------------------------------------
   Kontaktformular
   ------------------------------------------------------------ */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1.25rem;
  align-items: start;
}
.contact-side { display: grid; gap: 1.25rem; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-form h3 { margin-bottom: .35rem; }
.contact-form__intro { color: var(--text-dim); margin-bottom: 1.5rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field--full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.form-field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; }
.form-field label span { font-weight: 400; color: var(--text-faint); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: .75rem .9rem;
  transition: border-color .2s;
}
.form-field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; background-size: 16px; padding-right: 2.5rem; }
.form-field textarea { resize: vertical; min-height: 9rem; }
.form-field input:hover, .form-field select:hover, .form-field textarea:hover { border-color: var(--text); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid var(--text); outline-offset: 0; border-color: var(--text); }
.form-field input:user-invalid, .form-field select:user-invalid, .form-field textarea:user-invalid { border-color: var(--text); border-width: 2px; }

.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-consent {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  font-size: .9rem;
  color: var(--text-dim);
  margin: 1.1rem 0 1.25rem;
  cursor: pointer;
}
.form-consent input { margin: .25rem 0 0; width: 18px; height: 18px; accent-color: #000; flex: none; }
.form-consent a { text-decoration: underline; text-underline-offset: 3px; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-actions .btn[disabled] { opacity: .45; cursor: not-allowed; }
.form-message { margin: 0; font-size: .95rem; color: var(--text-dim); }
.form-message[data-kind="ok"] { color: var(--text); font-weight: 600; }
.form-message[data-kind="error"] { color: var(--text); font-weight: 600; }
.form-note { margin: 1rem 0 0; font-size: .9rem; color: var(--text-dim); }
.form-note a { text-decoration: underline; }

/* Kontaktkarte mit Foto */
.card--person { display: flex; align-items: flex-start; gap: 1.1rem; }
.person__photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  flex: none;
  background: #f2f2f2;
}
.person__body { min-width: 0; }
.person__body .contact__mail { overflow-wrap: anywhere; }
@media (max-width: 420px) { .person__photo { width: 72px; height: 72px; } }

.card--person .contact__mail { font-size: 1.1rem; }
.card--person .contact__label { margin-bottom: .4rem; }

.text-link { text-decoration: underline; text-underline-offset: 3px; }
