/*
Theme Name: Cocos Choice – Hello Child
Description: Schlankes Child-Theme für Hello Elementor, Elementor Pro und WooCommerce. Cream & Espresso Designsystem für Cocos Choice. Enthält noch keine Startseiten-Templates.
Author: Cocos Choice
Version: 0.1.0
Template: hello-elementor
Text Domain: cocos-choice-hello-child
Requires at least: 6.2
Requires PHP: 7.4
License: GPL-2.0-or-later
*/

/* 01 — Design-Tokens. Können später zentral angepasst werden. */
:root {
  --cc-ivory: #FCFAF6;
  --cc-cream: #F5EFE6;
  --cc-sand: #D7BEA8;
  --cc-caramel: #A47E66;
  --cc-espresso: #49342D;
  --cc-espresso-dark: #30211D;
  --cc-cocoa-soft: #77594C;
  --cc-border: #E8DBD0;
  --cc-white: #FFFFFF;
  --cc-success: #3C6B56;
  --cc-font-display: "Bricolage Grotesque", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --cc-font-body: "Outfit", "Inter", "Segoe UI", Arial, sans-serif;
  --cc-content-width: 1240px;
  --cc-text-width: 690px;
  --cc-radius-sm: 10px;
  --cc-radius-md: 18px;
  --cc-radius-lg: 28px;
  --cc-radius-pill: 999px;
  --cc-shadow-soft: 0 10px 32px rgb(73 52 45 / 7%);
  --cc-space-1: 8px;
  --cc-space-2: 16px;
  --cc-space-3: 24px;
  --cc-space-4: 36px;
  --cc-space-5: 56px;
  --cc-space-6: 88px;
}

/* 02 — Ruhiges Basissystem. Elementor-Widgets behalten ihre eigenen Einstellungen. */
body.cc-site {
  background: var(--cc-ivory);
  color: var(--cc-espresso);
  font-family: var(--cc-font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.cc-site :where(button, input, textarea, select) { font-family: inherit; }
body.cc-site :where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--cc-caramel);
  outline-offset: 3px;
}
body.cc-site ::selection { color: var(--cc-white); background: var(--cc-espresso); }

/* 03 — Wiederverwendbare Elementor-Klassen (CSS-Klasse unter Erweitert eintragen). */
.cc-container {
  width: min(calc(100% - 48px), var(--cc-content-width));
  margin-inline: auto;
}
.cc-container--narrow { max-width: var(--cc-text-width); }
.cc-section { padding-block: clamp(48px, 6vw, 96px); }
.cc-section--compact { padding-block: clamp(28px, 4vw, 60px); }
.cc-section--cream { background: var(--cc-cream); }
.cc-section--white { background: var(--cc-white); }
.cc-display,
.cc-title,
.cc-h1,
.cc-h2,
.cc-h3 {
  color: var(--cc-espresso);
  font-family: var(--cc-font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.cc-display, .cc-h1 { font-size: clamp(2.8rem, 6vw, 5.6rem); line-height: 1.02; }
.cc-h2 { font-size: clamp(2.05rem, 4vw, 3.7rem); line-height: 1.10; }
.cc-h3 { font-size: clamp(1.4rem, 2vw, 2rem); line-height: 1.2; }
.cc-lead { color: var(--cc-cocoa-soft); font-size: clamp(1.06rem, 1.5vw, 1.22rem); line-height: 1.7; }
.cc-muted { color: var(--cc-cocoa-soft); }
.cc-eyebrow {
  display: inline-block;
  color: var(--cc-cocoa-soft);
  font: 700 0.74rem/1.4 var(--cc-font-body);
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.cc-round { border-radius: var(--cc-radius-lg); overflow: hidden; }
.cc-card {
  background: var(--cc-white);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-md);
  overflow: hidden;
}
.cc-card--cream { background: var(--cc-cream); }
.cc-card--lift { box-shadow: var(--cc-shadow-soft); }
.cc-card--lift { transition: transform .2s ease, box-shadow .2s ease; }
.cc-card--lift:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgb(73 52 45 / 11%); }
.cc-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cc-cream); color: var(--cc-espresso);
  border: 1px solid var(--cc-border); border-radius: var(--cc-radius-pill);
  padding: 8px 14px; font-size: .84rem; font-weight: 600;
}
.cc-divider { height: 1px; width: 100%; background: var(--cc-border); }
.cc-accent-line { width: 44px; height: 3px; border-radius: 3px; background: var(--cc-caramel); }
.cc-text-center { text-align: center; }
.cc-image-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* 04 — Buttons. An Elementor-Buttons die zusätzliche Klasse cc-btn anhängen. */
body.cc-site :where(a.cc-btn, button.cc-btn, .cc-btn .elementor-button, .elementor-button.cc-btn) {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 26px;
  border: 1px solid var(--cc-espresso);
  border-radius: var(--cc-radius-pill);
  background: var(--cc-espresso);
  color: var(--cc-white);
  font: 650 0.97rem/1.3 var(--cc-font-body);
  text-decoration: none;
  box-shadow: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
  cursor: pointer;
}
body.cc-site :where(a.cc-btn, button.cc-btn, .cc-btn .elementor-button, .elementor-button.cc-btn):hover {
  color: var(--cc-white);
  background: var(--cc-espresso-dark);
  border-color: var(--cc-espresso-dark);
  transform: translateY(-1px);
}
body.cc-site :where(a.cc-btn--outline, button.cc-btn--outline, .cc-btn--outline .elementor-button) {
  color: var(--cc-espresso); background: transparent;
}
body.cc-site :where(a.cc-btn--outline, button.cc-btn--outline, .cc-btn--outline .elementor-button):hover {
  color: var(--cc-white); background: var(--cc-espresso);
}
body.cc-site :where(a.cc-btn--light, button.cc-btn--light, .cc-btn--light .elementor-button) {
  color: var(--cc-espresso); background: var(--cc-white); border-color: var(--cc-white);
}
body.cc-site :where(a.cc-btn--light, button.cc-btn--light, .cc-btn--light .elementor-button):hover {
  color: var(--cc-espresso); background: var(--cc-cream); border-color: var(--cc-cream);
}

/* 05 — Header-Bausteine für späteren Elementor Theme Builder. */
.cc-announcement {
  background: var(--cc-espresso);
  color: var(--cc-white);
  text-align: center;
  padding: 10px 16px;
  font-size: .77rem;
  letter-spacing: .025em;
}
.cc-announcement a { color: inherit; text-decoration: underline; }
.cc-header {
  background: var(--cc-ivory);
  border-bottom: 1px solid var(--cc-border);
}
.cc-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 22px; min-height: 88px;
}
.cc-brand {
  display: inline-flex; align-items: center; gap: 11px;
  color: var(--cc-espresso); text-decoration: none; white-space: nowrap;
}
.cc-brand:hover { color: var(--cc-espresso); }
.cc-brand__mascot { display: block; width: 68px; height: 67px; object-fit: contain; }
.cc-brand__name {
  display: block; font: 800 clamp(1.25rem, 2vw, 1.9rem)/1 var(--cc-font-display);
  letter-spacing: -.055em;
}
.cc-brand__caption {
  display: block; margin-top: 6px; font: 700 .59rem/1.35 var(--cc-font-body);
  letter-spacing: .17em;
}
.cc-brand--text .cc-brand__name { font-size: clamp(1.6rem, 2vw, 2rem); }
.cc-brand__full-image { display: block; width: min(300px, 100%); height: auto; }
.cc-header-nav a { font-size: .94rem; font-weight: 600; color: var(--cc-espresso); }
.cc-header-nav a:hover { color: var(--cc-cocoa-soft); }
.cc-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  color: var(--cc-espresso); background: transparent; border: none;
}
.cc-icon-btn:hover { background: var(--cc-cream); }

/* 06 — WooCommerce: optische Basiselemente, ohne Template-Overrides. */
body.cc-site.woocommerce-page :where(.woocommerce-breadcrumb, .woocommerce-result-count),
body.cc-site :where(.woocommerce .woocommerce-breadcrumb, .woocommerce .woocommerce-result-count) {
  color: var(--cc-cocoa-soft);
}
body.cc-site .woocommerce ul.products li.product { margin-bottom: 34px; }
body.cc-site .woocommerce ul.products li.product a img {
  width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain;
  padding: clamp(10px, 1.4vw, 20px);
  background: var(--cc-cream);
  border-radius: var(--cc-radius-md);
  transition: transform .2s ease;
}
body.cc-site .woocommerce ul.products li.product a:hover img { transform: translateY(-2px); }
body.cc-site .woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: var(--cc-espresso);
  font-family: var(--cc-font-body);
  font-weight: 650; line-height: 1.4;
  font-size: 1rem;
}
body.cc-site .woocommerce ul.products li.product .price,
body.cc-site .woocommerce div.product p.price,
body.cc-site .woocommerce div.product span.price {
  color: var(--cc-espresso); font-weight: 700;
}
body.cc-site .woocommerce span.onsale {
  background: var(--cc-espresso); color: var(--cc-white);
  border-radius: var(--cc-radius-pill); padding: 4px 10px;
  min-height: 0; min-width: 0; line-height: 1.6;
}
body.cc-site .woocommerce :where(a.button, button.button, input.button, #respond input#submit),
body.cc-site .woocommerce :where(a.button.alt, button.button.alt, input.button.alt) {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--cc-espresso); color: var(--cc-white);
  border: 1px solid var(--cc-espresso);
  border-radius: var(--cc-radius-pill);
  min-height: 44px;
  padding: 12px 20px;
  font-family: var(--cc-font-body); font-weight: 650; line-height: 1.25;
  text-decoration: none; transition: background-color .2s ease;
}
body.cc-site .woocommerce :where(a.button, button.button, input.button, #respond input#submit):hover,
body.cc-site .woocommerce :where(a.button.alt, button.button.alt, input.button.alt):hover {
  color: var(--cc-white); background: var(--cc-espresso-dark); border-color: var(--cc-espresso-dark);
}
body.cc-site .woocommerce :where(input.input-text, textarea, select),
body.cc-site .woocommerce :where(.quantity input.qty) {
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-sm);
  background: var(--cc-white);
  color: var(--cc-espresso);
  min-height: 45px;
  padding: 10px 12px;
}
body.cc-site .woocommerce :where(.woocommerce-info, .woocommerce-message) {
  border-top-color: var(--cc-caramel);
  background: var(--cc-cream);
  color: var(--cc-espresso);
}
body.cc-site .woocommerce :where(.woocommerce-info, .woocommerce-message)::before {
  color: var(--cc-cocoa-soft);
}
/* Neuere WooCommerce-Blocks: bewusst begrenzt auf universelle Design-Elemente. */
body.cc-site .wc-block-components-button:not(.is-link) {
  background: var(--cc-espresso); border-color: var(--cc-espresso);
  border-radius: var(--cc-radius-pill); color: var(--cc-white);
}
body.cc-site .wc-block-components-button:not(.is-link):hover { background: var(--cc-espresso-dark); }
body.cc-site .wc-block-components-text-input input,
body.cc-site .wc-block-components-combobox .wc-block-components-combobox-control input {
  border-radius: var(--cc-radius-sm);
}

/* 07 — Mobile: weniger Headerhöhe, großzügige Bedienflächen. */
@media (max-width: 1024px) {
  .cc-header__inner { min-height: 76px; }
  .cc-brand__mascot { width: 57px; height: 57px; }
  .cc-brand__caption { font-size: .52rem; letter-spacing: .12em; }
}
@media (max-width: 767px) {
  :root { --cc-radius-md: 15px; --cc-radius-lg: 20px; }
  .cc-container { width: min(calc(100% - 32px), var(--cc-content-width)); }
  .cc-section { padding-block: 44px; }
  .cc-section--compact { padding-block: 30px; }
  .cc-header__inner { gap: 10px; min-height: 68px; }
  .cc-brand { gap: 6px; }
  .cc-brand__mascot { width: 44px; height: 48px; }
  .cc-brand__name { font-size: 1.18rem; }
  .cc-brand__caption { font-size: .45rem; }
  .cc-brand__full-image { width: min(225px, 100%); }
  .cc-eyebrow { font-size: .68rem; }
  .cc-card--lift:hover { transform: none; }
  body.cc-site :where(a.cc-btn, button.cc-btn, .cc-btn .elementor-button, .elementor-button.cc-btn) { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .cc-card--lift, .cc-btn, .cc-btn .elementor-button,
  body.cc-site .woocommerce ul.products li.product a img,
  body.cc-site .woocommerce :where(a.button, button.button, input.button) { transition: none !important; transform: none !important; }
}
