/* Zyntho Firmenseite. Farbwerte entsprechen tests/fixtures/design.ts. */

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

:root {
  --bg: #1a1d21;
  --surface: #22262b;
  --border: #30353c;
  --accent: #22d3ee;
  --on-accent: #1a1d21;
  --heading: #ffffff;
  --text: #ebebeb;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 0.75rem;

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* Kopfzeile */

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
}

.brand {
  color: var(--heading);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

/* Hero */

.hero {
  padding-block: clamp(4rem, 12vw, 8rem);
  background: radial-gradient(60rem 30rem at 85% -10%, rgb(34 211 238 / 0.12), transparent 70%);
}

.hero h1 {
  max-width: 20ch;
}

.lead {
  max-width: 40rem;
  margin-top: 1.5rem;
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0.5rem 1.5rem rgb(34 211 238 / 0.25);
}

/* Sprachumschalter */

.lang-switch {
  display: flex;
  gap: 0.25rem;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.lang-switch a:hover {
  color: var(--heading);
}

.lang-switch a[aria-current='page'] {
  background-color: var(--surface);
  color: var(--heading);
  box-shadow: inset 0 0 0 1px var(--border);
}

/* Fakten-Streifen */

.facts {
  border-block: 1px solid var(--border);
}

.facts-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 2rem;
  margin: 0;
  padding-block: 2.5rem;
}

.fact {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.25rem;
}

.fact dt {
  font-size: 0.9375rem;
}

.fact dd {
  margin: 0;
  color: var(--accent);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* Produktkarten */

.products {
  padding-block: clamp(4rem, 10vw, 6.5rem);
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.875rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--surface);
}

.card-name {
  font-size: 1.375rem;
}

.card-featured {
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-color: rgb(34 211 238 / 0.35);
  background:
    radial-gradient(40rem 20rem at 100% 0%, rgb(34 211 238 / 0.1), transparent 70%),
    var(--surface);
}

.card-featured + .card-featured {
  margin-top: 1.5rem;
}

.card-featured .card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  max-width: 40rem;
}

.card-featured .card-name {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

.card-featured .actions {
  margin-top: 0.5rem;
}

.card-media {
  display: block;
  align-self: stretch;
}

.card-media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 0.25rem);
}

/* Handy: Screenshot bis an den Kartenrand, damit die Schrift darin lesbar bleibt. */
@media (max-width: 40rem) {
  .card-featured {
    --card-pad: clamp(1.5rem, 4vw, 3rem);
  }

  .card-featured .card-media {
    margin: 0 calc(-1 * var(--card-pad)) calc(-1 * var(--card-pad));
  }

  .card-featured .card-media img {
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px);
  }
}

.ideas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
}

.tag-live {
  border-color: rgb(34 211 238 / 0.5);
  color: var(--accent);
}

.tag-live::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(34 211 238 / 0.2);
}

/* Abschluss */

.closing {
  padding-block: clamp(4rem, 10vw, 7rem);
  border-top: 1px solid var(--border);
  text-align: center;
  background: radial-gradient(50rem 25rem at 50% 100%, rgb(34 211 238 / 0.1), transparent 70%);
}

.closing p {
  margin-top: 1rem;
  font-size: 1.125rem;
}

.closing .actions {
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.link-contact {
  font-weight: 600;
  text-underline-offset: 0.25em;
}

/* Rechtstexte */

.legal {
  padding-block: clamp(3rem, 8vw, 5rem);
}

.legal .container {
  max-width: 48rem;
}

/* Lange Wörter wie „Auftragsverarbeitungsvertrag“ auf schmalen Bildschirmen trennen. */
.legal {
  overflow-wrap: break-word;
  hyphens: auto;
}

.legal h2 {
  margin-top: 2.5rem;
  font-size: 1.25rem;
}

.legal p,
.legal ul {
  margin-top: 1rem;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal li + li {
  margin-top: 0.25rem;
}

.legal strong {
  color: var(--heading);
  font-weight: 600;
}

.legal code {
  font-size: 0.9em;
}

.legal-meta {
  font-size: 0.9375rem;
}

/* 404 */

.not-found .lead {
  margin-top: 1rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2rem;
  font-size: 0.9375rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--text);
  text-underline-offset: 0.25em;
}

.footer-links a:hover {
  color: var(--heading);
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}
