:root {
  --blue: #14a3d6;
  --blue-700: #0b72a3;
  --text: #0a0f1a;
  --bg: #f8fbff;
  --card: #ffffff;
  --muted: #475569;
  --ring: 0 0 0 4px rgba(20, 163, 214, 0.2);
  --outline: #0b72a3;
  --ok: #15803d;
  --err: #b91c1c;
  --neutral: #e5e7eb;

  /* ALTCHA Widget Styles */
  --altcha-border-width: 1px;
  --altcha-border-radius: 10px;
  --altcha-color-base: #ffffff;
  --altcha-color-border: #d1d5db;
  --altcha-color-text: var(--text);
  --altcha-color-border-focus: var(--blue);
  --altcha-color-error-text: var(--err);
  --altcha-color-footer-bg: transparent;
  --altcha-max-width: 100%;
}
* {
  box-sizing: border-box;
}
html:focus-within {
  scroll-behavior: smooth;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Inter, system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
/* Skip Link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  overflow: hidden;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  background: #fff;
  color: #000;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 1000;
  outline: 3px solid var(--outline);
}
header {
  position: sticky;
  top: 0;
  background: #ffffffcc;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #e5e7eb;
  z-index: 30;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.brand img {
  height: 44px;
  width: auto;
}
.brand h1 {
  font-size: 18px;
  line-height: 1.1;
  margin: 0;
  font-weight: 700;
  color: var(--blue-700);
}
.nav .links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.nav a.btn {
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  white-space: nowrap;
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
  padding: 32px 0 16px;
}
.hero .card {
  background: var(--card);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 6px 24px rgba(2, 23, 42, 0.06);
  border: 1px solid #e5e7eb;
}
.kicker {
  color: var(--blue-700);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
  margin: 0 0 12px;
}
.title {
  font-size: 28px;
  line-height: 1.3;
  margin: 0 0 16px;
  color: var(--blue-700);
  font-weight: 700;
}
.subtitle {
  color: #334155;
  margin: 0 0 20px;
  line-height: 1.6;
}
.badges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 20px;
}
.badge {
  background: #e7f6fd;
  border: 1px solid #b6e7fa;
  color: #0a6c96;
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-align: center;
}
.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  background: var(--blue);
  color: white;
  font-weight: 700;
}
.btn.secondary {
  background: #fff;
  color: var(--blue-700);
  border: 1px solid #cfe8f4;
}
.btn:focus {
  outline: none;
  box-shadow: var(--ring);
}
.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.card {
  background: var(--card);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 6px 24px rgba(2, 23, 42, 0.06);
  border: 1px solid #e5e7eb;
  width: 100%;
  box-sizing: border-box;
}
.products-grid {
  grid-column: span 8;
  padding: 32px 0 16px;
}
.products-grid h2 {
  color: var(--blue-700);
  font-size: 28px;
  margin: 0 0 12px;
  font-weight: 700;
}
.products-grid .muted {
  color: #334155;
  margin: 0 0 24px;
}
.order-grid {
  grid-column: span 4;
}
/* Produktkarten */
#products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.product {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 280px;
}
.product img {
  width: 100%;
  height: 120px;
  object-fit: fill;
  aspect-ratio: 350/120;
  object-position: center;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f8f9fa;
}
.product h3 {
  font-size: 15px;
  margin: 0;
  flex: 1;
}
.qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.qty button {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}
.qty button:focus {
  outline: 3px solid var(--outline);
}
.qty input {
  width: 64px;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  text-align: center;
}
.sidebar {
  position: sticky;
  top: 84px;
}
.sidebar .card + .card {
  margin-top: 20px;
}
.sidebar .card h3 {
  margin-bottom: 16px;
  margin-top: 0;
}
.sidebar .card canvas {
  margin-bottom: 12px;
}
#statusText {
  margin-top: 8px;
  margin-bottom: 8px;
}
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0;
}
.feature {
  background: var(--card);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
}
footer {
  margin-top: auto;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 30px 0;
}
.footer-grid div a {
  display: block;
  margin: 6px 0;
}
.footer small {
  color: #6b7280;
}
/* Floating Pie */
#floatingPie {
  position: fixed;
  right: 16px;
  top: 120px;
  width: 220px;
  z-index: 200;
  display: none;
}
#floatingPie.show {
  display: block;
}
#floatingPie .card {
  padding: 12px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(2, 23, 42, 0.18);
}
/* Kontaktbox */
.contact-card {
  background: linear-gradient(135deg, #e7f6fd 0%, #ffffff 60%);
  border: 1px solid #b6e7fa;
  padding: 20px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(20, 163, 214, 0.12);
}
.contact-card h3 {
  font-size: 20px;
  color: var(--blue-700);
  margin-top: 0;
  margin-bottom: 12px;
}
.contact-card p {
  line-height: 1.6;
  color: #334155;
  margin: 12px 0;
}
.contact-card a {
  color: var(--blue-700);
  font-weight: 600;
}
/* Contact Form */
.contact-form-section {
  padding: 32px 0 16px;
  width: 100%;
}
.contact-form {
  padding: 32px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
}
.contact-form h2 {
  color: var(--blue-700);
  font-size: 28px;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-form p {
  color: #334155;
  margin: 0 0 24px;
}
.contact-form form {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.contact-form form button[type='submit'] {
  width: auto;
  align-self: flex-end;
  margin-top: auto;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  font-size: 14px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: var(--ring);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9ca3af;
}
/* Rechtstexte optisch */
#legalContent h2 {
  background: #e7f6fd;
  padding: 8px 12px;
  border-radius: 8px;
  margin-top: 24px;
  color: var(--blue-700);
}
#legalContent h3 {
  margin-top: 16px;
  color: var(--blue-700);
}
/* FAQ – volle Breite */
.faq-section {
  padding: 32px 0 16px;
  width: 100%;
}
.faq-card {
  padding: 32px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
}
.faq-card h2 {
  color: var(--blue-700);
  font-size: 28px;
  margin: 0 0 20px;
}
.faq-list {
  display: block;
  flex: 1;
}
.faq-item {
  transition: all 0.3s ease;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #fff;
  margin-bottom: 16px;
}
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px;
  cursor: pointer;
  width: 100%;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item .faq-icon {
  width: 18px;
  height: 18px;
  stroke: #0b72a3;
  transition: transform 0.3s ease;
  flex: 0 0 auto;
}
.faq-item[open] summary .faq-icon {
  transform: rotate(180deg);
}
.faq-item p {
  margin: 0;
  padding: 0 18px 18px 18px;
}
.faq-item:hover summary {
  color: var(--blue);
}
.card:hover {
  box-shadow: 0 8px 28px rgba(2, 23, 42, 0.12);
}
/* Gesetz Section */
.gesetz-section {
  padding: 32px 0 16px;
  width: 100%;
}
.gesetz-card {
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
  min-height: 400px;
  width: 100%;
  max-width: 100%;
}
.gesetz-heading {
  font-size: 28px;
  color: var(--blue-700);
  margin: 0 0 20px;
}
.gesetz-text {
  margin: 0 0 8px;
  color: #334155;
}
.gesetz-list {
  margin: 0 0 0 18px;
  color: #334155;
  line-height: 1.6;
}
.gesetz-image {
  width: 100%;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
}
/* Step Cards Animation */
.steps-section {
  padding: 32px 0 16px;
  width: 100%;
}
.steps-card {
  padding: 32px;
  margin-bottom: 0;
}
.steps-card h2 {
  margin: 0 0 24px;
  color: var(--blue-700);
  font-size: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}
.steps-card h2 svg {
  flex-shrink: 0;
}
.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step-card {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s ease-out;
  padding: 20px;
  border-radius: 16px;
  background: white;
  border: 1px solid #cfe8f4;
  text-align: center;
  box-sizing: border-box;
  width: 100%;
}
.step-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.step-card > div:first-child {
  font-size: 34px;
  font-weight: 700;
  color: var(--blue-700);
  margin-bottom: 8px;
}
.step-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-700);
  font-size: 16px;
}
.step-card p {
  font-size: 15px;
  color: #334155;
  margin: 0;
  line-height: 1.5;
}
/* Live total display */
.totals {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}
.totals strong {
  color: #111827;
}
/* Accessibility: high-contrast focus */
:focus-visible {
  outline: 3px solid var(--outline);
  outline-offset: 2px;
}
/* Motion reduce */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
/* Mobile Tweaks */
@media (max-width: 980px) {
  header {
    padding: 0;
  }
  .nav {
    flex-wrap: wrap;
    height: auto;
    padding: 16px 16px;
    gap: 12px;
  }
  .nav .links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    justify-content: flex-start;
  }
  .nav .links a {
    font-size: 14px;
    padding: 8px 12px;
  }
  .brand h1 {
    font-size: 16px;
  }
  #floatingPie {
    display: none !important;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 24px 16px 8px;
    margin-bottom: 0;
  }
  .hero > div {
    padding: 0 4px;
  }
  .products-grid {
    grid-column: span 12;
    padding: 24px 16px 8px;
    margin-bottom: 0;
  }
  .contact-form-section {
    padding: 24px 16px 8px;
    margin-bottom: 0;
  }
  .faq-section {
    padding: 24px 16px 8px;
    margin-bottom: 0;
  }
  .gesetz-section {
    padding: 24px 16px 8px;
    margin-bottom: 0;
  }
  section.container {
    margin-bottom: 0;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 24px;
    padding-bottom: 8px;
  }
  .steps-section {
    padding: 24px 16px 8px;
    margin-bottom: 0;
  }
  .steps-card {
    padding: 24px 20px 24px 24px;
  }
  .steps-card h2 {
    font-size: 26px;
    margin-bottom: 20px;
    padding-left: 0;
    margin-left: 0;
    flex-wrap: wrap;
  }
  .steps-card h2 svg {
    flex-shrink: 0;
  }
  .steps-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .card {
    margin-left: 4px;
    margin-right: 4px;
  }
  .order-grid {
    grid-column: span 12;
  }
  #products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product img {
    height: 180px;
  }
  .badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .container {
    padding: 0 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    padding: 24px 16px;
  }
  footer {
    margin-top: 32px;
    padding: 0 16px;
  }
  .sidebar {
    position: static;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .gesetz-card {
    grid-template-columns: 1fr;
  }
  .steps-section {
    padding: 40px 16px 24px;
    margin-bottom: 8px;
  }
  .steps-card {
    padding: 24px 20px 24px 24px;
  }
  .steps-card h2 {
    font-size: 26px;
    padding-left: 0;
    margin-left: 0;
    flex-wrap: wrap;
  }
  .steps-card h2 svg {
    flex-shrink: 0;
  }
  .steps-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 560px) {
  header {
    padding: 0;
  }
  .nav {
    gap: 8px;
    padding: 12px 16px;
  }
  .brand {
    gap: 8px;
  }
  .brand img {
    height: 36px;
  }
  .brand h1 {
    font-size: 14px;
    display: none;
  }
  .nav .links {
    gap: 6px;
    width: 100%;
  }
  .nav .links a {
    font-size: 13px;
    padding: 8px 10px;
    flex: 1;
    min-width: 0;
    text-align: center;
  }
  .nav .links a:last-child {
    flex: 1 1 100%;
    margin-top: 4px;
  }
  #floatingPie {
    display: none !important;
  }
  .hero {
    padding: 20px 16px 6px;
    margin-bottom: 0;
  }
  .hero > div {
    padding: 0 4px;
  }
  .products-grid {
    padding: 20px 16px 6px;
    margin-bottom: 0;
  }
  .contact-form-section {
    padding: 20px 16px 6px;
    margin-bottom: 0;
  }
  .faq-section {
    padding: 20px 16px 6px;
    margin-bottom: 0;
  }
  .gesetz-section {
    padding: 20px 16px 6px;
    margin-bottom: 0;
  }
  section.container {
    margin-bottom: 0;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 20px;
    padding-bottom: 6px;
  }
  .steps-section {
    padding: 20px 16px 6px;
    margin-bottom: 0;
  }
  .card {
    margin-left: 4px;
    margin-right: 4px;
  }
  #products {
    grid-template-columns: 1fr;
  }
  .product img {
    height: 200px;
  }
  .badges {
    grid-template-columns: 1fr;
  }
  .contact-form {
    padding: 24px 20px;
  }
  .faq-card {
    padding: 24px 20px;
  }
  .footer-grid {
    padding: 24px 16px;
  }
  footer {
    margin-top: 24px;
    padding: 0 16px;
  }
}

/* ALTCHA Widget Custom Styling - Compact Design */
altcha-widget {
  display: inline-block;
  margin: 16px 0;
  max-width: fit-content;
}

altcha-widget .altcha {
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 8px 12px;
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

altcha-widget .altcha:focus-within {
  border-color: var(--blue);
  box-shadow: var(--ring);
}

altcha-widget .altcha-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

altcha-widget .altcha-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

altcha-widget .altcha-checkbox input[type='checkbox'] {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--blue);
}

altcha-widget .altcha-label {
  font-family: Inter, system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
  margin: 0;
  cursor: pointer;
  white-space: nowrap;
}

altcha-widget .altcha-footer {
  display: none; /* Hide footer for compact design */
}

altcha-widget .altcha-logo {
  opacity: 0.5;
  transition: opacity 0.2s;
  margin-left: 8px;
}

altcha-widget .altcha-logo:hover {
  opacity: 1;
}

altcha-widget .altcha-logo svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

/* Spacing for ALTCHA widget in order form */
#orderStep3 altcha-widget {
  display: inline-block;
}

/* Spacing for ALTCHA widget in contact form */
#contactForm altcha-widget {
  margin: 16px 0 20px;
  display: block;
}
