:root {
  color-scheme: light;
  --brand: #0078d7;
  --brand-hover: #005fa3;
  --text: #333;
  --text-strong: #222;
  --surface: #fff;
  --surface-muted: #f7f7fa;
  --border: #d9e1e8;
  --page-gutter: clamp(1rem, 4vw, 2.5rem);
  --content-width: 76rem;
  --section-space: clamp(2.5rem, 6vw, 4rem);
  --radius: 6px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

body {
  color: var(--text);
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(0, 120, 215, 0.4);
  outline-offset: 3px;
}

.navbar {
  min-height: 4rem;
  gap: 1rem;
  padding-inline: var(--page-gutter);
}

.navbar-logo img,
.logoimg {
  display: block;
  width: auto;
  max-width: min(100%, 12rem);
  height: 40px;
  object-fit: contain;
}

.navbar-menu {
  gap: clamp(0.35rem, 1.4vw, 1.25rem);
}

.navbar-menu a {
  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.navbar-action,
.navbar-menu .navbar-action:hover {
  background-color: var(--brand);
}

.navbar-action:hover {
  background-color: var(--brand-hover);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
  width: min(calc(100% - 2 * var(--page-gutter)), var(--content-width));
  margin: var(--section-space) auto;
}

.feature {
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  overflow: hidden;
  border-color: var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature img {
  width: min(100%, 15rem);
  max-width: 100%;
  margin: 1.25rem auto 0.5rem;
  object-fit: contain;
}

.txtwrap {
  padding: clamp(1rem, 2vw, 1.5rem);
}

.produkte {
  padding: var(--section-space) var(--page-gutter);
}

.produkt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 16rem));
  justify-content: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  max-width: var(--content-width);
  margin: 2rem auto;
}

.produkt-grid .produkt {
  width: 100%;
  min-width: 0;
  max-width: none;
  border-color: var(--border);
  border-radius: var(--radius);
}

.produkt-carousel {
  width: min(100%, var(--content-width));
  max-width: none;
}

.produkt-wrapper {
  min-width: 0;
}

.produkt {
  border-radius: var(--radius);
}

.slideshow-bg {
  min-height: max(25rem, 52vh);
  margin-block: clamp(1rem, 3vw, 2rem);
}

.slide-content {
  width: min(90%, 56rem);
  max-width: none;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border-radius: var(--radius);
}

.slide-content h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  text-wrap: balance;
}

.slide-content p {
  text-wrap: pretty;
}

.slide-btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  font-size: 1.5rem;
  background: rgba(0, 0, 0, 0.5);
}

.row1 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: clamp(1rem, 3vw, 2.5rem);
  width: min(calc(100% - 2 * var(--page-gutter)), var(--content-width));
  max-width: none;
  margin: 0 auto clamp(2rem, 5vw, 4rem);
}

.blog1,
.blog2,
.blog3 {
  max-width: none;
  margin: 0;
}

.blog1 img,
.blog2 img,
.blog3 img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.fire-section,
.lava-section {
  min-height: clamp(26rem, 78svh, 52rem);
  gap: clamp(1rem, 4vw, 4rem);
  padding: var(--section-space) var(--page-gutter);
}

.fire-section img,
.lava-section img {
  width: min(38vw, 34rem);
  min-width: 0;
  max-height: 70svh;
  object-fit: contain;
}

.fire-text,
.lava-text {
  width: min(100%, 34rem);
  max-width: 48%;
}

.fire-section .fire-text,
.lava-section .lava-text {
  padding: clamp(1rem, 4vw, 2.5rem);
  border-radius: var(--radius);
}

#email-formula {
  padding: var(--section-space) var(--page-gutter);
}

.email-formula-container {
  width: min(100%, 30rem);
  max-width: none;
  padding: clamp(1.25rem, 5vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

#contactForm input,
#contactForm textarea,
.login input,
.register input {
  width: 100%;
  min-width: 0;
}

.login,
.register {
  min-height: 80svh;
  height: auto;
  padding: var(--section-space) var(--page-gutter);
}

.login .main,
.register .main {
  width: min(100%, 22rem);
  min-width: 0;
  max-width: 100%;
  padding: clamp(1.25rem, 5vw, 2.5rem);
  border-radius: var(--radius);
}

.main {
  max-width: var(--content-width);
  margin-inline: auto;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.products {
  border-radius: var(--radius);
}

.footer {
  padding: clamp(1.25rem, 4vw, 2rem) var(--page-gutter);
}

@media (max-width: 900px) {
  .navbar {
    flex-direction: row;
    justify-content: space-between;
  }

  .navbar-logo {
    flex: 1 1 auto;
  }

  .navbar-toggle {
    position: absolute;
    top: 50%;
    right: var(--page-gutter);
    z-index: 22;
    display: block;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0;
    transform: translateY(-50%);
    opacity: 0;
    cursor: pointer;
  }

  .navbar-toggle + label {
    position: absolute;
    top: 50%;
    right: var(--page-gutter);
    z-index: 21;
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    transform: translateY(-50%);
    border-radius: var(--radius);
    cursor: pointer;
  }

  .navbar-toggle + label span,
  .navbar-toggle + label span::before,
  .navbar-toggle + label span::after {
    position: absolute;
    display: block;
    width: 1.5rem;
    height: 2px;
    border-radius: 2px;
    background: var(--text-strong);
    content: "";
    transition:
      transform 180ms ease,
      background-color 180ms ease;
  }

  .navbar-toggle + label span::before {
    transform: translateY(-7px);
  }

  .navbar-toggle + label span::after {
    transform: translateY(7px);
  }

  .navbar-toggle:checked + label span {
    background: transparent;
  }

  .navbar-toggle:checked + label span::before {
    transform: rotate(45deg);
  }

  .navbar-toggle:checked + label span::after {
    transform: rotate(-45deg);
  }

  .navbar-toggle:focus-visible + label {
    outline: 3px solid rgba(0, 120, 215, 0.4);
    outline-offset: 2px;
  }

  .navbar-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 20;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.75rem var(--page-gutter) 1rem;
    border-top: 1px solid #eef1f5;
    background: var(--surface);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  }

  .navbar-toggle:checked ~ .navbar-menu {
    display: flex;
  }

  .navbar-menu a {
    width: 100%;
    padding: 0.75rem;
    border-radius: var(--radius);
  }

  .navbar-action {
    margin: 0;
  }

  .navbar-menu button {
    align-self: flex-start;
  }

  .fire-section,
  .lava-section {
    min-height: 60svh;
  }

  .fire-section img,
  .lava-section img {
    width: min(38vw, 26rem);
  }
}

@media (max-width: 600px) {
  .slideshow-bg {
    min-height: clamp(20rem, 64svh, 30rem);
  }

  .slide-content {
    width: calc(100% - 5rem);
  }

  .features {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature {
    width: 100%;
  }

  .produkt-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .fire-section,
  .lava-section {
    min-height: auto;
    flex-direction: column;
    text-align: center;
  }

  .fire-section img,
  .lava-section img {
    width: min(76vw, 22rem);
    max-height: 40svh;
    margin: 0;
  }

  .fire-text,
  .lava-text {
    width: 100%;
    max-width: 100%;
  }

  .fire-section .fire-text h1,
  .lava-section .lava-text h1 {
    font-size: clamp(1.5rem, 7vw, 2.5rem);
  }

  .produkt-carousel {
    max-width: 100%;
  }

  .produkt-track {
    width: 100%;
  }

  .produkt {
    flex: 0 0 100%;
    width: 100%;
  }

  .carousel-btn {
    width: 2.25rem;
    height: 3rem;
    font-size: 1.5rem;
  }

  .row1 {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
