/* digipot — Sicherheitstechnik Darmstadt */

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

:root {
  --color-primary: #1f81da;
  --color-primary-dark: #0b3a66;
  --color-surface: #ffffff;
  --color-surface-alt: #f5f7fa;
  --color-text: #1a1a1a;
  --color-muted: #5a6472;
  --color-line: #e3e8ef;
  --color-accent: #cc0000;
  --color-accent-hover: #b00000;
  --color-on-primary: #ffffff;
  --max-width: 1140px;
  --radius: 10px;
  --shadow: 0 10px 30px -15px rgba(11, 58, 102, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

@media (min-width: 640px) {
  html {
    scroll-padding-top: 80px;
  }
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-surface);
}

@media (min-width: 960px) {
  body {
    font-size: 17px;
  }
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

.muted {
  color: var(--color-muted);
}

section {
  padding: 64px 0;
}

@media (min-width: 960px) {
  section {
    padding: 96px 0;
  }
}

.section-head {
  max-width: 640px;
  margin: 0 0 40px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn:active {
  transform: translateY(1px);
}

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

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

.btn-secondary {
  background: transparent;
  color: var(--color-primary-dark);
  border-color: var(--color-line);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
}

.btn-on-dark {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-on-dark:hover {
  border-color: #ffffff;
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

/* Header */
.season-banner {
  background: var(--color-accent);
  color: #ffffff;
}

.season-banner-inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 20px;
  font-size: 15px;
}

.season-banner-inner a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 600;
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--color-line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

@media (min-width: 640px) {
  .logo-img {
    height: 48px;
  }

  .site-header .container {
    height: 80px;
  }
}

.main-nav {
  display: none;
  gap: 32px;
}

.main-nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--color-text);
}

.main-nav a:hover {
  color: var(--color-primary-dark);
}

@media (min-width: 640px) {
  .main-nav {
    display: flex;
  }
}

.header-actions .btn {
  padding: 0.65em 1.2em;
  font-size: 0.95rem;
}

.header-actions .btn-primary-text {
  display: none;
}

@media (min-width: 480px) {
  .header-actions .btn-primary-text {
    display: inline;
  }
}

/* Hero */
.hero {
  background: var(--color-primary-dark);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

@media (min-width: 960px) {
  .hero {
    padding: 128px 0;
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.05) 0px,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px,
      transparent 56px
    ),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.04) 0px,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px,
      transparent 56px
    );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 760px;
}

.hero-eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #cfd9e8;
  margin-bottom: 16px;
}

.hero p.lead {
  font-size: 1.15rem;
  color: #d7deea;
  max-width: 560px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.hero-whatsapp-note {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.hero-form-link {
  display: inline-block;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
  font-size: 0.9rem;
}

.hero-form-link:hover {
  color: #ffffff;
}

.icon-whatsapp {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

.whatsapp-fab {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 40;
}

.whatsapp-fab svg {
  width: 28px;
  height: 28px;
}

@media (min-width: 960px) {
  .whatsapp-fab {
    display: none;
  }
}

/* Leistungen */
.cards {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.einzelhandel-note {
  text-align: center;
  color: var(--color-muted);
  margin: 40px 0 0;
}

.einzelhandel-note a {
  color: var(--color-primary-dark);
  font-weight: 600;
  text-decoration: underline;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 32px;
}

.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-surface-alt);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card .icon svg {
  width: 24px;
  height: 24px;
}

.card ul {
  margin: 16px 0 0;
  padding-left: 1.1em;
  color: var(--color-muted);
}

.card li {
  margin-bottom: 0.4em;
}

/* Ablauf */
.steps {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 16px;
}

/* Für jeden Bedarf (Bento) */
.bento {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bento-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 240px;
  display: flex;
  flex-direction: column;
}

.bento-photo {
  background-size: cover;
  background-position: center;
  justify-content: flex-end;
  padding: 28px;
  color: #ffffff;
}

.bento-photo-pfosten {
  background-image: url("assets/bento-pfosten.jpg");
  background-image: image-set(url("assets/bento-pfosten.webp") type("image/webp"), url("assets/bento-pfosten.jpg") type("image/jpeg"));
}

.bento-photo-masten {
  background-image: url("assets/bento-masten.jpg");
  background-image: image-set(url("assets/bento-masten.webp") type("image/webp"), url("assets/bento-masten.jpg") type("image/jpeg"));
}

.bento-photo-smartphone {
  background-image: url("assets/bento-smartphone.jpg");
  background-image: image-set(url("assets/bento-smartphone.webp") type("image/webp"), url("assets/bento-smartphone.jpg") type("image/jpeg"));
}

.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 58, 102, 0) 35%, rgba(11, 58, 102, 0.9) 100%);
}

.bento-content {
  position: relative;
  z-index: 1;
}

.bento-content h3 {
  color: #ffffff;
  margin-bottom: 0.3em;
}

.bento-content p {
  color: #e3e8ef;
  margin: 0;
  font-size: 0.95rem;
}

.bento-icon {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  padding: 32px;
  justify-content: center;
}

.bento-icon .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-surface-alt);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.bento-icon .icon svg {
  width: 24px;
  height: 24px;
}

.bento-icon p {
  margin: 0;
}

/* Prozess mit Foto */
.process-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .process-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 56px;
  }
}

.process-grid .steps {
  grid-template-columns: 1fr;
  gap: 28px;
}

.process-photo picture {
  display: block;
  height: 100%;
}

.process-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* CTA-Banner */
.cta-banner {
  position: relative;
  background-image: url("assets/cta-kameras-mobile.jpg");
  background-image: image-set(url("assets/cta-kameras-mobile.webp") type("image/webp"), url("assets/cta-kameras-mobile.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center;
  padding: 96px 0;
  color: #ffffff;
}

@media (min-width: 640px) {
  .cta-banner {
    background-image: url("assets/cta-kameras.jpg");
    background-image: image-set(url("assets/cta-kameras.webp") type("image/webp"), url("assets/cta-kameras.jpg") type("image/jpeg"));
  }
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 58, 102, 0.86), rgba(11, 58, 102, 0.93));
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  text-align: center;
  margin-inline: auto;
}

.cta-inner h2 {
  color: #ffffff;
}

.cta-inner p {
  color: #d7deea;
  font-size: 1.1rem;
}

.cta-inner .btn {
  margin-top: 8px;
}

.section-alt {
  background: var(--color-surface-alt);
}

/* Warum digipot */
.benefits {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .benefits {
    grid-template-columns: repeat(3, 1fr);
  }
}

.benefit {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.benefit .icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--color-surface-alt);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit .icon svg {
  width: 20px;
  height: 20px;
}

.about-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 800px) {
  .about-grid {
    grid-template-columns: 260px 1fr;
    gap: 64px;
  }
}

.about-portrait {
  position: relative;
  max-width: 260px;
  margin: 0 auto;
}

.about-portrait-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-portrait-frame picture {
  display: block;
}

.about-portrait-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.about-portrait::before {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  background: var(--color-primary-dark);
  border-radius: var(--radius);
  z-index: 0;
}

.about-accent {
  position: absolute;
  top: -14px;
  left: -14px;
  width: 36px;
  height: 36px;
  background: var(--color-accent);
  border-radius: 6px;
  z-index: 2;
}

.about-eyebrow {
  color: var(--color-accent);
}

.about-quote {
  margin: 0 0 20px;
  padding: 0;
  border: none;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.6;
}

.about-signature {
  margin: 0 0 32px;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.benefits-compact {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-line);
  padding: 20px 0;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--color-muted);
  border-bottom: 2px solid var(--color-muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
}

.faq-item p {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-muted);
}

/* Referenzen / Kunden-Marquee */
.kunden-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.kunden-track {
  display: flex;
  width: max-content;
  gap: 20px;
  animation: kunden-scroll 42s linear infinite;
}

.kunden-marquee:hover .kunden-track {
  animation-play-state: paused;
}

@keyframes kunden-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.kunde-tile {
  flex: 0 0 auto;
  width: 200px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.kunde-tile picture {
  display: block;
}

.kunde-tile img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}

.kunde-tile.kunde-logo img {
  object-fit: contain;
  background: #ffffff;
}

.kunde-name {
  display: block;
  padding: 10px 12px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  border-top: 1px solid var(--color-line);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 640px) {
  .kunde-tile {
    width: 240px;
  }

  .kunde-tile img {
    height: 170px;
  }
}

/* Kontakt */
.contact-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

.form-error {
  background: #fdecea;
  color: var(--color-accent-hover);
  border: 1px solid #f3b4ab;
  border-radius: 8px;
  padding: 0.8em 1em;
  margin: 0 0 20px;
  font-size: 0.95rem;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75em 0.9em;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  font: inherit;
  color: inherit;
  background: #fff;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

.form-field-hidden {
  position: absolute;
  left: -9999px;
}

@media (max-width: 959px) {
  #kontaktformular {
    padding-bottom: 80px;
  }
}

.form-field.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-field.checkbox input {
  width: auto;
  margin-top: 4px;
}

.form-field.checkbox label {
  font-weight: 400;
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.form-note {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.form-note a {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.contact-info {
  background: var(--color-primary-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
  overflow: hidden;
}

.contact-info-photo {
  width: calc(100% + 64px);
  margin: -32px -32px 24px -32px;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.contact-info h3 {
  color: #fff;
}

.contact-info .line {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.contact-whatsapp-note {
  margin: -8px 0 16px 32px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.contact-whatsapp-note a {
  color: #ffffff;
  text-decoration: underline;
}

.contact-info .line svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #cfd9e8;
}

.contact-info a {
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: var(--color-primary-dark);
  color: #d7deea;
  padding: 48px 0 24px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  margin-bottom: 32px;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 12px;
}

.site-footer a {
  text-decoration: none;
  color: #d7deea;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #c3cee0;
}

.footer-bottom .legal-links {
  display: flex;
  gap: 16px;
}

/* Legal pages */
.legal-page {
  padding: 56px 0 80px;
}

.legal-page .container {
  max-width: 760px;
}

.legal-page h2 {
  margin-top: 2em;
}

.legal-page h2:first-of-type {
  margin-top: 0;
}

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

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-weight: 600;
  color: var(--color-primary-dark);
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}
