/*
Theme Name: ViaVade Academy
Theme URI: https://example.com/viavade-academy
Author: ViaVade Academy GmbH
Author URI: https://example.com
Description: Custom WooCommerce theme for IHK taxi and rental car exam preparation.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: viavade-academy
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
*/

:root {
  --bg: #eef4ff;
  --surface: #ffffff;
  --ink: #1f2b4f;
  --muted: #526181;
  --accent: #1f4dbf;
  --accent-dark: #173a8f;
  --line: #d8e3fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, #bce8ff 0%, transparent 35%),
    radial-gradient(circle at 85% 20%, #c8f7e7 0%, transparent 28%),
    var(--bg);
}

a {
  color: inherit;
}

.site-header,
.site-main,
.site-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.site-header {
  padding-top: 1rem;
  padding-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-logo {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  border-radius: 0.45rem;
  background: #fff;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
}

.brand-text small {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.primary-nav a {
  text-decoration: none;
  font-weight: 600;
}

.cart-btn {
  text-decoration: none;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.site-main {
  padding-bottom: 2rem;
}

.hero {
  background: linear-gradient(120deg, #e9f0ff 0%, #ffffff 100%);
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  padding: clamp(1.3rem, 3vw, 2.6rem);
  margin-top: 0.6rem;
  animation: rise 650ms ease;
}

.badge {
  display: inline-block;
  background: #dce8ff;
  color: #264a9d;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
  margin: 0;
}

h1,
h2,
h3 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

h1 {
  margin: 0.8rem 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.12;
  max-width: 18ch;
}

.hero p {
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.5;
}

.hero-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn,
.button,
button,
input[type='submit'] {
  border: none;
  border-radius: 0.8rem;
  padding: 0.72rem 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary,
.button.alt,
.single_add_to_cart_button {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover,
.button.alt:hover,
.single_add_to_cart_button:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.products,
.benefits,
.cta,
.content-card,
.woocommerce ul.products li.product,
.woocommerce div.product,
.woocommerce-cart-form,
.cart_totals,
.woocommerce-checkout-review-order,
.woocommerce-form-coupon,
.woocommerce-info {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.products,
.benefits,
.cta,
.content-card {
  margin-top: 2rem;
  padding: 1.2rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 320px;
  animation: rise 700ms ease;
}

.product-media-link {
  display: block;
}

.product-media {
  width: 100%;
  height: 160px;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  object-fit: cover;
  background: #f5f8ff;
}

.card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  flex-grow: 1;
}

.highlight {
  border: 2px solid var(--accent);
  position: relative;
}

.highlight::before {
  content: 'Beliebt';
  position: absolute;
  top: -10px;
  right: 12px;
  background: var(--accent);
  color: white;
  padding: 0.2rem 0.55rem;
  border-radius: 0.6rem;
  font-size: 0.75rem;
}

.price {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.address {
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.benefit-intro {
  margin: 0.2rem 0 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

.site-footer {
  margin: 2rem 0 1rem;
}

.site-footer-inner {
  color: #495780;
  font-size: 0.9rem;
}

.legal-nav {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
}

.legal-nav a {
  text-decoration: underline;
}

.cookie-settings-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 16px 40px rgba(31, 43, 79, 0.18);
  padding: 1rem;
  z-index: 9999;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.cookie-banner a {
  font-weight: 700;
}

.cookie-actions {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.woocommerce ul.products {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

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

.woocommerce ul.products li.product {
  float: none;
  width: 100%;
  margin: 0;
  padding: 1rem;
}

.woocommerce .woocommerce-breadcrumb {
  margin-top: 1rem;
}

.woocommerce-notices-wrapper {
  margin-top: 1rem;
}

.woocommerce div.product,
.content-card {
  margin-top: 1rem;
  padding: 1.2rem;
}

.woocommerce table.shop_table {
  border-color: var(--line);
  border-radius: 0.7rem;
}

.woocommerce table.shop_table td,
.woocommerce table.shop_table th {
  border-color: var(--line);
}

.thankyou-clean {
  margin-top: 1.2rem;
  display: grid;
  place-items: center;
}

.thankyou-clean-inner {
  width: min(760px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  padding: clamp(1.2rem, 3vw, 2.2rem);
  text-align: center;
  box-shadow: 0 20px 45px rgba(20, 47, 101, 0.1);
}

.thankyou-check {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.8rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e6f8ee;
  color: #11855d;
  font-size: 1.4rem;
  font-weight: 800;
}

.thankyou-clean-kicker {
  margin: 0;
  color: #264a9d;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.thankyou-clean h1 {
  margin: 0.6rem auto;
  max-width: 23ch;
}

.thankyou-clean-lead {
  margin: 0.4rem auto 0;
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.55;
}

.thankyou-clean-actions {
  margin-top: 1.2rem;
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.thankyou-clean-meta {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.thankyou-clean-meta p {
  margin: 0.2rem 0;
  color: var(--muted);
}

.thankyou-clean-meta strong {
  color: var(--ink);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .product-grid,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .product-grid,
  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-wrap: wrap;
  }
}
