/*
Theme Name: KAHL Shop
Theme URI: https://www.kahlfilm.de/
Author: MADE Development
Description: Individuelles WooCommerce-Theme für den KAHL Film & TV Einzelstück-Shop.
Version: 1.0.0
Text Domain: kahl-shop
*/

:root {
  --kahl-blue: #0296d7;
  --kahl-blue-dark: #007db5;
  --kahl-night: #101820;
  --kahl-night-soft: #19242c;
  --kahl-dark: #202a31;
  --kahl-text: #202b33;
  --kahl-muted: #687781;
  --kahl-surface: #f1f4f5;
  --kahl-surface-strong: #e5eaed;
  --kahl-white: #ffffff;
  --kahl-border: #d5dde1;
  --kahl-success: #177447;
  --kahl-warning: #a26100;
  --kahl-width: 1240px;
  --kahl-radius: 0;
  --kahl-shadow: 0 22px 60px rgba(16, 24, 32, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--kahl-surface);
  color: var(--kahl-text);
  font-family:
    Arial,
    Helvetica,
    sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body.admin-bar .kahl-site-header {
  top: 32px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--kahl-blue-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: var(--kahl-blue);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
input[type="submit"],
.wp-element-button,
.button {
  border-radius: var(--kahl-radius) !important;
}

.kahl-container {
  width: min(calc(100% - 48px), var(--kahl-width));
  margin-inline: auto;
}

.kahl-screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ======================================================
   HEADER
   ====================================================== */

.kahl-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 24, 32, 0.97);
  color: var(--kahl-white);
  backdrop-filter: blur(15px);
}

.kahl-header-inner {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 38px;
}

.kahl-brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.kahl-brand img {
  display: block;
  width: 300px;
  max-height: 74px;
  object-fit: contain;
  object-position: left center;
}

.kahl-primary-navigation {
  margin-left: auto;
}

.kahl-primary-navigation ul,
.kahl-mobile-navigation ul {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kahl-primary-navigation a,
.kahl-mobile-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 2px solid transparent;
  color: var(--kahl-white);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.kahl-primary-navigation a:hover,
.kahl-primary-navigation a:focus-visible,
.kahl-primary-navigation .current-menu-item > a {
  border-bottom-color: var(--kahl-blue);
  color: var(--kahl-blue);
}

.kahl-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kahl-icon-link {
  position: relative;
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--kahl-white);
  text-decoration: none;
}

.kahl-icon-link:hover,
.kahl-icon-link:focus-visible {
  border-color: var(--kahl-blue);
  background: var(--kahl-blue);
  color: var(--kahl-white);
}

.kahl-icon-link svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.kahl-cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  padding-inline: 5px;
  border: 2px solid var(--kahl-night);
  border-radius: 50%;
  background: var(--kahl-blue);
  color: var(--kahl-white);
  font-size: 10px;
  font-weight: 800;
}

.kahl-mobile-menu {
  display: none;
}

.kahl-mobile-menu summary {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
  list-style: none;
}

.kahl-mobile-menu summary::-webkit-details-marker {
  display: none;
}

.kahl-mobile-menu summary span,
.kahl-mobile-menu summary::before,
.kahl-mobile-menu summary::after {
  width: 21px;
  height: 2px;
  display: block;
  background: var(--kahl-white);
}

.kahl-mobile-menu summary {
  gap: 5px;
}

.kahl-mobile-menu summary::before,
.kahl-mobile-menu summary::after {
  content: "";
}

.kahl-mobile-navigation {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  padding: 18px 24px 25px;
  background: var(--kahl-night);
  box-shadow: var(--kahl-shadow);
}

.kahl-mobile-navigation ul {
  align-items: stretch;
  flex-direction: column;
  gap: 0;
}

.kahl-mobile-navigation li,
.kahl-mobile-navigation a {
  width: 100%;
}

.kahl-mobile-navigation a {
  padding: 12px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* ======================================================
   HERO
   ====================================================== */

.kahl-shop-hero,
.kahl-front-hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 92px;
  background:
    radial-gradient(
      circle at 86% 16%,
      rgba(2, 150, 215, 0.31),
      transparent 33%
    ),
    linear-gradient(
      125deg,
      #101820,
      #173441
    );
  color: var(--kahl-white);
}

.kahl-shop-hero::after,
.kahl-front-hero::after {
  content: "";
  position: absolute;
  top: -220px;
  right: -180px;
  width: 580px;
  height: 580px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(255, 255, 255, 0.025),
    0 0 0 140px rgba(255, 255, 255, 0.018);
}

.kahl-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 70px;
  align-items: center;
}

.kahl-eyebrow {
  margin: 0 0 14px;
  color: var(--kahl-blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.kahl-shop-hero h1,
.kahl-front-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(48px, 6vw, 82px);
  line-height: 0.99;
  letter-spacing: -0.045em;
}

.kahl-shop-hero h1 span,
.kahl-front-hero h1 span {
  display: block;
  color: var(--kahl-blue);
}

.kahl-hero-copy {
  max-width: 720px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.kahl-hero-panel {
  padding: 30px;
  border-top: 5px solid var(--kahl-blue);
  background: rgba(255, 255, 255, 0.08);
}

.kahl-hero-panel strong {
  display: block;
  margin-bottom: 15px;
  font-size: 24px;
  line-height: 1.25;
}

.kahl-hero-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

.kahl-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.kahl-hero-facts span {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

/* ======================================================
   SEITEN UND ABSCHNITTE
   ====================================================== */

.kahl-page-shell,
.kahl-woo-shell,
.kahl-front-section {
  width: min(calc(100% - 48px), var(--kahl-width));
  margin-inline: auto;
}

.kahl-page-shell,
.kahl-woo-shell {
  padding-block: 75px 100px;
}

.kahl-page-header {
  max-width: 850px;
  margin-bottom: 45px;
}

.kahl-page-header h1,
.kahl-section-heading h2 {
  margin: 0;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.kahl-page-content {
  padding: 38px;
  border: 1px solid var(--kahl-border);
  background: var(--kahl-white);
  box-shadow: 0 16px 46px rgba(16, 24, 32, 0.08);
}

.kahl-front-section {
  padding-block: 86px;
}

.kahl-front-section-alt {
  max-width: none;
  width: 100%;
  background: var(--kahl-white);
}

.kahl-front-section-alt > .kahl-container {
  padding-block: 86px;
}

.kahl-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 42px;
}

.kahl-section-heading p {
  max-width: 600px;
  margin: 0;
  color: var(--kahl-muted);
}

.kahl-primary-button,
.kahl-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 21px;
  border: 0;
  background: var(--kahl-blue);
  color: var(--kahl-white);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.kahl-primary-button:hover,
.kahl-primary-button:focus-visible {
  background: var(--kahl-blue-dark);
  color: var(--kahl-white);
}

.kahl-secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
}

.kahl-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.kahl-process-card {
  padding: 26px;
  border-top: 4px solid var(--kahl-blue);
  background: var(--kahl-surface);
}

.kahl-process-number {
  display: block;
  margin-bottom: 24px;
  color: var(--kahl-blue);
  font-size: 13px;
  font-weight: 900;
}

.kahl-process-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.2;
}

.kahl-process-card p {
  margin: 0;
  color: var(--kahl-muted);
}

/* ======================================================
   WOOCOMMERCE ALLGEMEIN
   ====================================================== */

.woocommerce .woocommerce-breadcrumb {
  margin: 0 0 28px;
  color: var(--kahl-muted);
  font-size: 13px;
}

.woocommerce .woocommerce-breadcrumb a {
  color: var(--kahl-blue-dark);
}

.woocommerce-products-header {
  display: none;
}

.woocommerce-notices-wrapper:empty {
  display: none;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  margin-bottom: 25px !important;
  padding: 18px 22px 18px 54px !important;
  border: 1px solid var(--kahl-border) !important;
  border-top: 4px solid var(--kahl-blue) !important;
  background: var(--kahl-white) !important;
  color: var(--kahl-text) !important;
  box-shadow: none !important;
}

.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--kahl-blue) !important;
}

.woocommerce-error {
  border-top-color: #bd2c2c !important;
}

.woocommerce .woocommerce-result-count {
  margin: 0 0 25px;
  color: var(--kahl-muted);
}

.woocommerce .woocommerce-ordering {
  margin: 0 0 25px;
}

.woocommerce .woocommerce-ordering select {
  min-height: 45px;
  padding: 8px 38px 8px 13px;
  border: 1px solid var(--kahl-border);
  background: var(--kahl-white);
  color: var(--kahl-text);
}

/* ======================================================
   PRODUKTKATALOG
   ====================================================== */

.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  clear: both;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
}

.woocommerce ul.products li.product {
  position: relative;
  width: auto !important;
  min-width: 0;
  display: flex;
  flex-direction: column;
  float: none !important;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid var(--kahl-border);
  background: var(--kahl-white);
  box-shadow: 0 12px 34px rgba(16, 24, 32, 0.07);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-5px);
  box-shadow: var(--kahl-shadow);
}

.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.woocommerce ul.products li.product a img {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 !important;
  padding: 20px;
  object-fit: contain;
  background: #f8f9f9;
  filter: saturate(0.8);
  transition:
    transform 250ms ease,
    filter 250ms ease;
}

.woocommerce ul.products li.product:hover a img {
  transform: scale(1.025);
  filter: saturate(1);
}

.kahl-product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 7px 10px;
  background: var(--kahl-blue);
  color: var(--kahl-white);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  margin: 0 !important;
  padding: 22px 21px 8px !important;
  color: var(--kahl-text);
  font-size: 19px !important;
  line-height: 1.25;
}

.woocommerce ul.products li.product .price {
  margin: 0;
  padding: 0 21px 20px;
  color: var(--kahl-blue-dark) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
}

.woocommerce ul.products li.product .button {
  margin: auto 20px 20px !important;
  padding: 13px 16px !important;
  border: 0 !important;
  background: var(--kahl-night) !important;
  color: var(--kahl-white) !important;
  text-align: center;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.woocommerce ul.products li.product .button:hover {
  background: var(--kahl-blue) !important;
}

/* ======================================================
   EINZELPRODUKT
   ====================================================== */

.woocommerce div.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  gap: 60px;
}

.woocommerce div.product .woocommerce-product-gallery,
.woocommerce div.product .summary {
  width: auto !important;
  float: none !important;
}

.woocommerce div.product .woocommerce-product-gallery {
  padding: 28px;
  border: 1px solid var(--kahl-border);
  background: var(--kahl-white);
}

.woocommerce div.product .woocommerce-product-gallery img {
  object-fit: contain;
}

.woocommerce div.product .summary {
  align-self: center;
  margin: 0 !important;
}

.woocommerce div.product .product_title {
  margin: 0 0 20px;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--kahl-blue-dark) !important;
  font-size: 27px !important;
  font-weight: 800;
}

.woocommerce div.product .woocommerce-product-details__short-description {
  margin-block: 24px;
  color: var(--kahl-muted);
  font-size: 18px;
}

.woocommerce div.product .stock {
  color: var(--kahl-success) !important;
  font-weight: 800;
}

.woocommerce div.product form.cart {
  margin-top: 28px;
}

.woocommerce div.product form.cart .button {
  min-height: 52px;
  padding: 14px 24px;
  border: 0;
  background: var(--kahl-blue);
  color: var(--kahl-white);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.woocommerce div.product form.cart .button:hover {
  background: var(--kahl-blue-dark);
}

.woocommerce div.product .product_meta {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--kahl-border);
  color: var(--kahl-muted);
  font-size: 13px;
}

.woocommerce div.product .woocommerce-tabs {
  grid-column: 1 / -1;
  margin-top: 45px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  padding: 0 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
  border-bottom-color: var(--kahl-border) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border: 0 !important;
  background: transparent !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  border-bottom: 3px solid var(--kahl-blue) !important;
}

.woocommerce div.product .woocommerce-tabs .panel {
  padding: 30px;
  border: 1px solid var(--kahl-border);
  background: var(--kahl-white);
}

/* ======================================================
   WARENKORB, KASSE UND KONTO
   ====================================================== */

.woocommerce table.shop_table {
  border: 1px solid var(--kahl-border);
  border-collapse: collapse;
  background: var(--kahl-white);
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  padding: 18px;
  border-color: var(--kahl-border);
}

.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-checkout-review-order,
.woocommerce-checkout #payment,
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
  padding: 28px;
  border: 1px solid var(--kahl-border);
  background: var(--kahl-white);
}

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.wc-block-components-button {
  min-height: 48px;
  border: 0 !important;
  background: var(--kahl-night) !important;
  color: var(--kahl-white) !important;
  font-weight: 800 !important;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.wc-block-components-button:hover {
  background: var(--kahl-blue) !important;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.wc-block-components-text-input input,
.wc-block-components-combobox-control input {
  min-height: 48px;
  border: 1px solid #9ca9b1 !important;
  border-radius: 0 !important;
  background: var(--kahl-white) !important;
}

.woocommerce form .form-row textarea {
  min-height: 140px;
}

.woocommerce-checkout #payment {
  border-radius: 0 !important;
  background: var(--kahl-white) !important;
}

.woocommerce-checkout #payment div.payment_box {
  background: var(--kahl-surface) !important;
}

.woocommerce-checkout #payment div.payment_box::before {
  border-bottom-color: var(--kahl-surface) !important;
}

.wc-block-cart,
.wc-block-checkout,
.wc-block-order-confirmation-summary,
.wc-block-order-confirmation-totals {
  padding: 28px;
  border: 1px solid var(--kahl-border);
  background: var(--kahl-white);
}

.wc-block-components-order-summary,
.wc-block-components-totals-wrapper {
  border-color: var(--kahl-border) !important;
}

.woocommerce-order-received .woocommerce-order {
  padding: 32px;
  border: 1px solid var(--kahl-border);
  background: var(--kahl-white);
}

/* ======================================================
   FOOTER
   ====================================================== */

.kahl-site-footer {
  background: var(--kahl-night);
  color: rgba(255, 255, 255, 0.72);
}

.kahl-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 0.8fr));
  gap: 70px;
  padding-block: 70px;
}

.kahl-footer-logo {
  width: 270px;
  margin-bottom: 24px;
}

.kahl-footer-grid h2,
.kahl-footer-grid h3 {
  margin: 0 0 17px;
  color: var(--kahl-white);
}

.kahl-footer-grid h2 {
  font-size: 24px;
}

.kahl-footer-grid h3 {
  font-size: 15px;
  text-transform: uppercase;
}

.kahl-footer-grid p {
  margin: 0;
}

.kahl-footer-grid a {
  color: rgba(255, 255, 255, 0.74);
}

.kahl-footer-grid a:hover {
  color: var(--kahl-blue);
}

.kahl-footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.kahl-footer-links li + li {
  margin-top: 9px;
}

.kahl-footer-bottom {
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.kahl-footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  font-size: 12px;
}

/* ======================================================
   RESPONSIVE
   ====================================================== */

@media (max-width: 1080px) {
  .kahl-primary-navigation {
    display: none;
  }

  .kahl-mobile-menu {
    display: block;
  }

  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kahl-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kahl-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 782px) {
  body.admin-bar .kahl-site-header {
    top: 46px;
  }

  .kahl-container,
  .kahl-page-shell,
  .kahl-woo-shell,
  .kahl-front-section {
    width: min(calc(100% - 28px), var(--kahl-width));
  }

  .kahl-header-inner {
    min-height: 88px;
    gap: 12px;
  }

  .kahl-brand img {
    width: min(235px, 48vw);
  }

  .kahl-header-actions .kahl-account-link {
    display: none;
  }

  .kahl-shop-hero,
  .kahl-front-hero {
    padding: 70px 0 64px;
  }

  .kahl-hero-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .kahl-shop-hero h1,
  .kahl-front-hero h1 {
    font-size: clamp(44px, 13vw, 66px);
  }

  .kahl-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .woocommerce div.product {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .kahl-footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .kahl-footer-bottom-inner {
    flex-direction: column;
  }
}

@media (max-width: 560px) {

  .kahl-header-inner {
    min-height: 78px;
  }

  .kahl-brand img {
    width: 205px;
  }

  .kahl-icon-link,
  .kahl-mobile-menu summary {
    width: 42px;
    height: 42px;
  }

  .kahl-shop-hero h1,
  .kahl-front-hero h1 {
    font-size: 43px;
  }

  .kahl-hero-panel,
  .kahl-page-content {
    padding: 22px;
  }

  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }

  .kahl-process-grid {
    grid-template-columns: 1fr;
  }

  .kahl-page-shell,
  .kahl-woo-shell {
    padding-block: 52px 70px;
  }

  .woocommerce div.product .product_title {
    font-size: 38px;
  }
}

/* KAHL FINAL PRESENTATION POLISH */

/*
 * Der eigene Hero enthält bereits die vollständige Shopüberschrift.
 */
.post-type-archive-product .woocommerce-products-header,
.post-type-archive-product .woocommerce-products-header__title,
.post-type-archive-product .page-title,
.tax-product_cat .woocommerce-products-header,
.tax-product_cat .woocommerce-products-header__title,
.tax-product_cat .page-title {
  display: none !important;
}

/*
 * Leere und kurze Inhaltsbereiche erhalten eine ruhigere Mindesthöhe.
 */
.woocommerce-cart .kahl-page-content,
.woocommerce-checkout .kahl-page-content {
  min-height: 320px;
}

/*
 * Produktmetadaten lesbarer trennen.
 */
.woocommerce div.product .product_meta > span {
  display: block;
  margin-top: 5px;
}

/* KAHL MOBILE FINALIZATION V1 */

/*
 * Auf Smartphones scrollt der Header normal mit.
 * Dadurch erscheint er beim längeren Scrollen nicht mitten
 * innerhalb von Bestelltabellen oder Produktinformationen.
 */
@media screen and (max-width: 782px) {
  .kahl-site-header,
  body.admin-bar .kahl-site-header {
    position: relative;
    top: auto !important;
  }

  /*
   * Bestellübersicht auf der Danke-Seite untereinander statt
   * in mehreren sehr schmalen Spalten anzeigen.
   */
  .woocommerce-order-received .woocommerce-order-overview {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0 0 28px !important;
    padding: 18px 22px !important;
    border: 1px solid var(--kahl-border);
    background: var(--kahl-white);
    list-style: none;
  }

  .woocommerce-order-received .woocommerce-order-overview li {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 12px 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--kahl-border);
    overflow-wrap: anywhere;
  }

  .woocommerce-order-received
    .woocommerce-order-overview
    li:last-child {
    border-bottom: 0;
  }

  /*
   * Produkt-, Liefer- und Zahlungstabellen auf Smartphones
   * vertikal stapeln.
   */
  .woocommerce-order-received
    .woocommerce-order-details
    table.shop_table {
    width: 100%;
    display: block;
    border: 1px solid var(--kahl-border);
    border-collapse: collapse;
    overflow: visible;
  }

  .woocommerce-order-received
    .woocommerce-order-details
    table.shop_table
    thead {
    display: none;
  }

  .woocommerce-order-received
    .woocommerce-order-details
    table.shop_table
    tbody,
  .woocommerce-order-received
    .woocommerce-order-details
    table.shop_table
    tfoot {
    width: 100%;
    display: block;
  }

  .woocommerce-order-received
    .woocommerce-order-details
    table.shop_table
    tr {
    width: 100%;
    display: block;
    padding: 14px 18px;
    border-bottom: 1px solid var(--kahl-border);
  }

  .woocommerce-order-received
    .woocommerce-order-details
    table.shop_table
    tr:last-child {
    border-bottom: 0;
  }

  .woocommerce-order-received
    .woocommerce-order-details
    table.shop_table
    th,
  .woocommerce-order-received
    .woocommerce-order-details
    table.shop_table
    td {
    width: 100% !important;
    display: block;
    padding: 4px 0 !important;
    border: 0 !important;
    text-align: left !important;
    overflow-wrap: anywhere;
  }

  .woocommerce-order-received
    .woocommerce-order-details
    table.shop_table
    th {
    color: var(--kahl-text);
    font-weight: 800;
  }

  .woocommerce-order-received
    .woocommerce-order-details
    table.shop_table
    td {
    color: var(--kahl-muted);
  }

  .woocommerce-order-received
    .woocommerce-order-details
    table.shop_table
    td.product-name {
    color: var(--kahl-text);
    font-weight: 700;
  }

  .woocommerce-order-received
    .woocommerce-customer-details
    address {
    padding: 18px;
    border: 1px solid var(--kahl-border);
    border-radius: 0;
    background: var(--kahl-white);
    line-height: 1.65;
    overflow-wrap: anywhere;
  }

  .woocommerce-order-received .woocommerce-order {
    padding: 22px;
  }

  /*
   * Sicherheitsnetz gegen horizontales Scrollen.
   */
  .woocommerce-order-received,
  .woocommerce-order-received main,
  .woocommerce-order-received .kahl-page-shell,
  .woocommerce-order-received .kahl-page-content,
  .woocommerce-order-received .woocommerce,
  .woocommerce-order-received .woocommerce-order {
    max-width: 100%;
    overflow-x: hidden;
  }
}

@media screen and (max-width: 520px) {
  .kahl-header-inner {
    padding-block: 12px;
  }

  .kahl-header-actions {
    gap: 8px;
  }

  .kahl-brand img {
    width: min(190px, 48vw);
  }

  .woocommerce-order-received .kahl-page-content {
    padding: 16px;
  }

  .woocommerce-order-received .woocommerce-order {
    padding: 16px;
  }

  .woocommerce-order-received .woocommerce-order-overview {
    padding: 14px 16px !important;
  }

  .woocommerce-order-received
    .woocommerce-order-details
    table.shop_table
    tr {
    padding: 13px 15px;
  }
}

/* KAHL WITHDRAWAL FUNCTION V1 */
.kahl-withdrawal-link {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 2px solid var(--kahl-white);
  border-radius: 999px;
  background: var(--kahl-blue);
  color: var(--kahl-white);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.kahl-withdrawal-link:hover,
.kahl-withdrawal-link:focus-visible {
  background: var(--kahl-night);
  color: var(--kahl-white);
}

.kahl-legal-open {
  margin: 22px 0;
  padding: 16px 18px;
  border-left: 4px solid #b66a00;
  background: #fff7e7;
  color: var(--kahl-text);
}

.kahl-product-legal,
.kahl-cart-legal,
.kahl-checkout-legal {
  margin: 24px 0;
  padding: 18px;
  border: 1px solid var(--kahl-border);
  border-radius: 4px;
  background: var(--kahl-light);
  font-size: 0.92rem;
}

.kahl-product-legal p,
.kahl-cart-legal p,
.kahl-checkout-legal p {
  margin: 0 0 10px;
  font-weight: 700;
}

.kahl-inline-legal,
.kahl-email-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  line-height: 1.5;
}

.kahl-inline-legal a,
.kahl-email-legal a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.kahl-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 600px) {
  .kahl-withdrawal-link {
    right: 10px;
    bottom: 10px;
    min-height: 42px;
    padding: 8px 14px;
    font-size: 14px;
  }
}

/* KAHL TARGETED FIX ROUND V2 */

.kahl-legal-page .kahl-page-header {
  max-width: 920px;
  margin-right: auto;
  margin-bottom: 34px;
  margin-left: auto;
}

.kahl-legal-page .kahl-page-content {
  width: 100%;
  max-width: 920px;
  margin-inline: auto;
  padding: clamp(28px, 4vw, 48px);
  line-height: 1.75;
  overflow: visible;
  overflow-wrap: anywhere;
}

.kahl-legal-page .kahl-page-content h2,
.kahl-legal-page .kahl-page-content h3,
.kahl-legal-page .kahl-page-content h4 {
  margin: 34px 0 14px;
  line-height: 1.18;
}

.kahl-legal-page .kahl-page-content > :first-child {
  margin-top: 0;
}

.kahl-imprint-company {
  margin: 0 0 32px;
  padding: 24px 28px;
  border-left: 4px solid var(--kahl-blue);
  background: var(--kahl-surface);
}

.kahl-imprint-company h2 {
  margin-top: 0;
}

.kahl-legal-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 34px;
  padding: 0 0 18px;
  border-bottom: 2px solid var(--kahl-blue);
}

.kahl-legal-subnav > span {
  display: none;
}

.kahl-legal-subnav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--kahl-border);
  background: var(--kahl-light);
  color: var(--kahl-text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}

.kahl-legal-subnav a:hover,
.kahl-legal-subnav a:focus-visible {
  border-color: var(--kahl-blue);
  color: var(--kahl-blue-dark);
}

.kahl-footer-grid a {
  color: rgba(255, 255, 255, 0.9);
  text-underline-offset: 3px;
}

.kahl-footer-grid a:focus-visible {
  outline: 2px solid var(--kahl-blue);
  outline-offset: 3px;
}

.kahl-site-footer > .kahl-withdrawal-link {
  position: static;
  width: max-content;
  max-width: calc(100% - 28px);
  min-height: 46px;
  margin: 0 auto 32px;
  justify-content: center;
  box-shadow: none;
}

@media (max-width: 782px) {
  .kahl-mobile-navigation {
    padding: 12px 20px 16px;
  }

  .kahl-mobile-navigation a {
    min-height: 48px;
    padding: 11px 4px;
  }

  .kahl-footer-grid {
    gap: 0;
    padding-block: 54px 22px;
  }

  .kahl-footer-grid > section {
    padding-bottom: 32px;
  }

  .kahl-footer-grid > section + section {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .kahl-footer-links li + li {
    margin-top: 2px;
  }

  .kahl-footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
  }

  .kahl-footer-bottom {
    padding-block: 26px;
  }

  .kahl-footer-bottom-inner {
    gap: 12px;
    line-height: 1.55;
  }

  .kahl-withdrawal-link {
    position: static;
    width: min(calc(100% - 28px), 420px);
    min-height: 46px;
    margin: 0 auto 32px;
    padding: 10px 16px;
    justify-content: center;
    box-shadow: none;
  }

  .kahl-legal-page .kahl-page-shell {
    padding-block: 52px 76px;
  }

  .kahl-legal-page .kahl-page-header {
    margin-bottom: 26px;
  }

  .kahl-legal-subnav {
    flex-wrap: nowrap;
    gap: 6px;
    margin-right: -22px;
    margin-bottom: 28px;
    margin-left: -22px;
    padding: 0 22px 12px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .kahl-legal-subnav a {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 7px 10px;
    white-space: nowrap;
    scroll-snap-align: start;
  }
}

@media (max-width: 430px) {
  .kahl-legal-page .kahl-page-header h1 {
    font-size: clamp(32px, 10vw, 42px);
  }

  .kahl-legal-page .kahl-page-content {
    padding: 20px;
  }

  .kahl-inline-legal {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .kahl-inline-legal > span {
    display: none;
  }

  .kahl-inline-legal a {
    padding-block: 4px;
  }

  .kahl-footer-logo {
    width: min(250px, 78vw);
  }

  .kahl-footer-grid h2 {
    font-size: 22px;
  }
}

/* KAHL WITHDRAWAL FOOTER FIX 2026-08-26 */
.kahl-footer-withdrawal {
  margin: 18px 0 0;
}

.kahl-footer-withdrawal .kahl-withdrawal-link {
  position: static;
  display: inline-flex;
  width: auto;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 9px 14px;
  justify-content: center;
  box-shadow: none;
  font-size: 13px;
}

@media (max-width: 782px) {
  .kahl-footer-withdrawal {
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }

  .kahl-footer-withdrawal .kahl-withdrawal-link {
    width: min(100%, 360px);
    margin: 0;
  }
}


/* ==========================================================
   KAHL FOOTER WITHDRAWAL BUTTON TUNING 2026-08-27
   Sichtbar, aber bewusst als sekundäre Aktion.
   ========================================================== */

.kahl-footer-withdrawal {
  margin: 14px 0 0;
  text-align: left;
}

.kahl-footer-withdrawal .kahl-withdrawal-link {
  display: inline-flex !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100%;
  min-height: 0;
  align-items: center;
  justify-content: center;

  padding: 8px 14px !important;

  border: 1px solid rgba(83, 200, 246, 0.85);
  border-radius: 7px !important;

  background: transparent !important;
  color: #ffffff !important;

  font-size: 14px !important;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none !important;

  box-shadow: none !important;
}

.kahl-footer-withdrawal .kahl-withdrawal-link:hover,
.kahl-footer-withdrawal .kahl-withdrawal-link:focus-visible {
  background: #0296d7 !important;
  border-color: #53c8f6;
  color: #ffffff !important;
}


/* Kein Full-Width-CTA auf kleinen Geräten. */
@media screen and (max-width: 620px) {

  .kahl-footer-withdrawal {
    margin-top: 14px;
  }

  .kahl-footer-withdrawal .kahl-withdrawal-link {
    width: auto !important;
    max-width: calc(100vw - 32px);
    padding: 9px 15px !important;
    font-size: 14px !important;
  }

}


/* ==========================================================
   KAHL FINAL CHECKOUT LEGAL 2026-08-27
   ========================================================== */

.kahl-final-checkout-legal {
  margin: 14px 0 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 29, 39, 0.18);
  font-size: 13px;
  line-height: 1.45;
}

.kahl-final-checkout-legal p {
  margin: 0 0 7px;
}

.kahl-final-checkout-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 7px;
}

.kahl-final-checkout-legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.kahl-purchase-request-note {
  margin: 14px 0 16px;
  padding: 14px 16px;
  border-left: 4px solid var(--kahl-blue);
  background: var(--kahl-surface);
  font-size: 13px;
  line-height: 1.5;
}

.kahl-purchase-request-note p {
  margin: 0;
}

@media screen and (max-width: 620px) {

  .kahl-final-checkout-legal {
    font-size: 12px;
  }

  .kahl-woo-shell,
  .wc-block-cart,
  .wc-block-checkout,
  .wc-block-components-sidebar-layout,
  .wc-block-components-sidebar-layout .wc-block-components-main,
  .wc-block-components-sidebar-layout .wc-block-components-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  .wc-block-cart,
  .wc-block-checkout {
    padding: 18px 14px;
    overflow-x: clip;
  }

  .wc-block-components-sidebar-layout {
    display: block !important;
  }

  .wp-block-woocommerce-checkout > .wc-block-components-sidebar-layout.wc-block-checkout {
    padding: 0 !important;
    border: 0;
    background: transparent;
    overflow: visible;
  }

  .wc-block-components-sidebar-layout .wc-block-components-main,
  .wc-block-components-sidebar-layout .wc-block-components-sidebar {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .wc-block-cart-items,
  .wc-block-cart-items__row,
  .wc-block-cart-item__product,
  .wc-block-components-order-summary-item,
  .wc-block-components-order-summary-item__description {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .wc-block-components-product-name,
  .wc-block-cart-item__product {
    overflow-wrap: anywhere;
  }

  .kahl-purchase-request-note {
    font-size: 12px;
  }

}
