/* Gruker Digital Solutions — gruker.de
   Keine externen Ressourcen (Fonts, Skripte, Tracker): alles wird lokal ausgeliefert. */

:root {
  color-scheme: light;

  --bg: #ffffff;
  --ink: #0a0a0c;
  --muted: #6a6e76;
  --tile: #f3f3f5;
  --line: #e5e5ea;
  --accent: #2f5bff;
  --todo-bg: #ffe98a;
  --todo-ink: #4a3800;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1rem, 3.2vw, 2rem);
  --max: 76rem;
  --radius: clamp(1.5rem, 2.6vw, 2.25rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Sprachumschaltung: Standard ist Deutsch, auch ohne JavaScript */
html[data-lang="de"] body [lang="en"],
html[data-lang="en"] body [lang="de"] {
  display: none !important;
}

::selection {
  background: var(--accent);
  color: #fff;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  text-wrap: balance;
}

p {
  margin: 0;
}

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

.skip {
  position: absolute;
  left: -999rem;
}

.skip:focus {
  left: var(--gutter);
  top: 0.75rem;
  z-index: 200;
  background: #fff;
  color: var(--ink);
  padding: 0.6rem 1rem;
  border-radius: 999px;
}

/* Schaltflächen */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.btn:hover {
  opacity: 0.85;
}

.btn:active {
  transform: scale(0.97);
}

.btn.light {
  background: #fff;
  color: var(--ink);
}

.btn.glass {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.btn.small {
  padding: 0.6rem 1.15rem;
  font-size: 0.92rem;
}

/* Kopfzeile */
.masthead {
  --fg: var(--ink);
  --fg-inverse: #fff;
  position: relative;
  z-index: 10;
  color: var(--fg);
}

.masthead.on-dark {
  --fg: #fff;
  --fg-inverse: var(--ink);
  position: absolute;
  inset: 0 0 auto;
}

.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4.75rem;
}

.masthead a {
  text-decoration: none;
}

.brand {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.055em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2rem);
  margin-right: clamp(0.5rem, 2vw, 1.5rem);
  font-weight: 500;
  font-size: 0.97rem;
}

.nav-links a {
  opacity: 0.8;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 1;
}

@media (max-width: 52rem) {
  .nav-links {
    display: none;
  }
}

.lang {
  display: inline-flex;
  padding: 0.2rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fg) 12%, transparent);
}

.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  background: var(--fg);
  color: var(--fg-inverse);
}

.masthead .btn.small {
  background: var(--fg);
  color: var(--fg-inverse);
}

/* Auftakt */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding-top: clamp(8.5rem, 15vw, 12rem);
  border-radius: 0 0 var(--radius) var(--radius);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -35% -10%;
  height: 85%;
  background: radial-gradient(50% 60% at 50% 60%, var(--accent), transparent 72%);
  opacity: 0.75;
  pointer-events: none;
}

.hero > * {
  position: relative;
}

.hero h1 {
  max-width: 11ch;
  margin-inline: auto;
  font-size: clamp(3rem, 1rem + 9.4vw, 8rem);
  line-height: 0.93;
  letter-spacing: -0.055em;
}

.lede {
  max-width: 33rem;
  margin: clamp(1.25rem, 2.5vw, 2rem) auto 0;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.74);
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.hero h1,
.hero .lede,
.hero .actions {
  animation: up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero .lede { animation-delay: 0.08s; }
.hero .actions { animation-delay: 0.16s; }

@keyframes up {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Gerät im Auftakt */
.phone {
  width: clamp(15rem, 30vw, 21rem);
  height: clamp(17rem, 34vw, 24rem);
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  padding: 0.65rem 0.65rem 0;
  border-radius: 3.2rem 3.2rem 0 0;
  background: #1c1c21;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 -2rem 6rem rgba(0, 0, 0, 0.45);
  animation: phone 1.1s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes phone {
  from {
    opacity: 0;
    transform: translateY(6rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.phone-screen {
  position: relative;
  height: 100%;
  padding: 3.4rem 1.1rem 0;
  border-radius: 2.6rem 2.6rem 0 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  overflow: hidden;
}

.phone-screen::before {
  content: "";
  position: absolute;
  top: 0.8rem;
  left: 50%;
  width: 32%;
  height: 1.5rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #0a0a0c;
}

.ui-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.ui-icon {
  width: 2.7rem;
  height: 2.7rem;
  flex: none;
  border-radius: 23%;
  background: linear-gradient(#5b8b78, #22553f);
  overflow: hidden;
}

.ui-icon img,
.app-icon img {
  display: block;
  width: 100%;
  height: 100%;
  transform: scale(1.05);
}

.ui-lines {
  flex: 1;
  display: grid;
  gap: 0.4rem;
}

.ui-line {
  height: 0.6rem;
  border-radius: 999px;
  background: var(--line);
}

.ui-line.short {
  width: 55%;
}

.ui-card {
  flex: none;
  height: 8rem;
  border-radius: 1.5rem;
  background: var(--accent);
}

.ui-row {
  flex: none;
  height: 3.6rem;
  border-radius: 1.1rem;
  background: var(--tile);
}

/* Abschnitte */
.section {
  padding-block: clamp(4rem, 9vw, 8rem) 0;
}

.section:last-of-type {
  padding-bottom: clamp(4rem, 9vw, 8rem);
}

.section-head {
  max-width: 52rem;
  margin: 0 auto clamp(2rem, 4.5vw, 3.5rem);
  text-align: center;
}

.section-head h2 {
  font-size: clamp(2.2rem, 1.1rem + 4.6vw, 4.6rem);
  line-height: 0.98;
}

.section-head p {
  max-width: 34rem;
  margin: 1.3rem auto 0;
  font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem);
  color: var(--muted);
  text-wrap: pretty;
}

/* Kacheln */
.tiles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.4vw, 1.1rem);
}

.tile {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  min-height: clamp(17rem, 28vw, 24rem);
  padding: clamp(1.5rem, 2.8vw, 2.4rem);
  border-radius: var(--radius);
  background: var(--tile);
  overflow: hidden;
  container-type: inline-size;
}

.tile.half {
  grid-column: span 3;
}

.tile.full {
  grid-column: 1 / -1;
}

.tile.dark {
  background: var(--ink);
  color: #fff;
}

.tile.blue {
  background: var(--accent);
  color: #fff;
}

.tile h3 {
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.tile p {
  color: var(--muted);
  max-width: 26rem;
}

.tile h3 ~ p {
  margin-top: 0.6rem;
}

.tile.dark p,
.tile.blue p {
  color: rgba(255, 255, 255, 0.76);
}

.figure {
  font-size: clamp(5.5rem, 2rem + 10vw, 10rem);
  font-size: clamp(4.5rem, 40cqi, 10rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.07em;
  margin-left: -0.04em;
}

@media (max-width: 60rem) {
  .tile {
    grid-column: span 3;
  }

  .tile:nth-child(3):not(.half) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 40rem) {
  .tile,
  .tile.half {
    grid-column: 1 / -1;
    min-height: 15rem;
  }
}

/* Produkt */
.product {
  flex-direction: row;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  min-height: clamp(20rem, 34vw, 28rem);
  padding: clamp(1.75rem, 5vw, 4.5rem);
}

.product > div:first-child {
  flex: 1;
}

.product h3 {
  font-size: clamp(2.2rem, 1.2rem + 4vw, 4.4rem);
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.product h3 ~ p {
  margin-top: 1.1rem;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.8rem;
}

.pill {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: #fff;
  font-size: 0.92rem;
  font-weight: 600;
}

.pill.on {
  background: var(--ink);
  color: #fff;
}

.app-icon {
  flex: none;
  width: clamp(9rem, 20vw, 15rem);
  aspect-ratio: 1;
  border-radius: 23%;
  background: linear-gradient(#5b8b78, #22553f);
  overflow: hidden;
  box-shadow: 0 2.5rem 4rem -1.5rem rgba(10, 10, 12, 0.45);
  transform: rotate(-6deg);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product:hover .app-icon {
  transform: rotate(0deg) scale(1.03);
}

@media (max-width: 44rem) {
  .product {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
}

/* Kontakt */
.tile .label {
  font-weight: 600;
  color: var(--muted);
}

.mail {
  display: block;
  margin-top: 0.5rem;
  font-size: clamp(1.6rem, 1rem + 2.4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.05;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.mail ~ p {
  margin-top: 0.9rem;
}

.tile .btn {
  align-self: flex-start;
}

/* Unternehmensangaben */
.details {
  justify-content: flex-start;
  min-height: 0;
  background: transparent;
  border: 1px solid var(--line);
}

.rows {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 4vw, 3.5rem);
}

.rows div {
  padding-block: 1rem;
  border-top: 1px solid var(--line);
}

.rows dt {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.rows dd {
  margin: 0.2rem 0 0;
  font-weight: 500;
  overflow-wrap: anywhere;
}

@media (max-width: 40rem) {
  .rows {
    grid-template-columns: 1fr;
  }
}

/* Platzhalter, die vor dem Livegang ersetzt werden müssen */
mark.todo {
  background: var(--todo-bg);
  color: var(--todo-ink);
  font-weight: 500;
  letter-spacing: 0;
  padding: 0.05em 0.3em;
  border-radius: 0.3em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

h3 mark.todo {
  letter-spacing: -0.03em;
}

/* Fußzeile */
.foot {
  background: var(--tile);
  border-radius: var(--radius) var(--radius) 0 0;
  padding-block: clamp(2.5rem, 5vw, 4rem) 2rem;
}

.foot .wrap {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

.foot-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}

.foot-brand {
  font-size: clamp(2.6rem, 1.5rem + 5vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  font-weight: 600;
}

.foot a {
  text-decoration: none;
}

.foot a:hover {
  text-decoration: underline;
}

.foot small {
  display: block;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Rechtstexte */
.legal {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(4rem, 8vw, 7rem);
}

.legal .wrap {
  max-width: 50rem;
}

.legal .kicker {
  display: block;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.legal h1 {
  font-size: clamp(2.8rem, 1.4rem + 6vw, 5.5rem);
  letter-spacing: -0.055em;
  line-height: 0.95;
  hyphens: manual;
}

.note {
  margin-top: 1.2rem;
  color: var(--muted);
}

.legal-body {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.legal-body h2 {
  margin: 2.6rem 0 0.7rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.legal-body > div > h2:first-child {
  margin-top: 0;
}

.legal-body p,
.legal-body ul,
.legal-body address {
  margin: 0 0 0.9em;
  color: #3c3f45;
  line-height: 1.6;
}

.legal-body ul {
  padding-left: 1.2em;
}

.legal-body li {
  margin-bottom: 0.3em;
}

.legal-body address {
  font-style: normal;
}

.legal-body a {
  color: var(--accent);
}

/* Fehlerseite */
.hero.lost {
  min-height: 100vh;
  display: grid;
  align-content: center;
  padding-block: 8rem;
  border-radius: 0;
}

.hero.lost h1 {
  max-width: 14ch;
}

/* Einblenden beim Scrollen (nur mit JavaScript) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
