/*
 Theme Name:   Asana Praxis
 Theme URI:    https://asana-praxis.de
 Description:  Child-Theme für Hello Elementor – Asana Praxis Yoga Lübeck
 Author:       paneri communication
 Author URI:   https://paneri.de
 Template:     hello-elementor
 Version:      1.1.0
 Text Domain:  asana-praxis
 License:      proprietary
*/

/* ============================================
   DESIGN SYSTEM – paneri DS v2.0 Tokens
   Quelle: paneri-ds-v2.css
   ============================================ */
:root {

  /* ─── MARKENFARBEN ──────────────────────── */
  --ap-red:              #E1123C;
  --ap-red-dark:         #B40E30;
  --ap-red-soft:         #FCEDEF;
  --ap-red-hover:        #C80F35;

  /* ─── NEUTRALS (warm-toned) ─────────────── */
  --ap-brown:            #583916;     /* Headlines */
  --ap-brown-soft:       #7A5A35;     /* Subheadlines */
  --ap-text:             #141414;     /* Fließtext */
  --ap-text-soft:        #4A4540;     /* Sekundärtext */
  --ap-text-muted:       #8A847C;     /* Tertiär, Captions */

  /* ─── HINTERGRÜNDE ──────────────────────── */
  --ap-bg:               #FFFFFF;
  --ap-bg-cream:         #FAF1E7;     /* Sektions-Hintergrund */
  --ap-bg-cream-dark:    #F0E3D3;     /* Hover auf Cream */
  --ap-bg-blush:         #E6C6CD;     /* Footer */
  --ap-bg-blush-soft:    #F3E0E5;
  --ap-bg-warm:          #FDF8F2;     /* Noch heller als Cream */

  /* ─── BORDERS ───────────────────────────── */
  --ap-border:           #E0D5C8;
  --ap-border-light:     #EDE6DC;
  --ap-border-red:       rgba(225, 18, 60, 0.15);

  /* ─── SEMANTISCH ────────────────────────── */
  --ap-white:            #FFFFFF;
  --ap-black:            #141414;

  /* ─── TYPOGRAFIE ────────────────────────── */
  --ap-font-display:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --ap-font-body:     'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ap-weight-regular:   400;
  --ap-weight-medium:    500;
  --ap-weight-semibold:  600;
  --ap-weight-bold:      700;

  /* ─── TYPE SCALE (fluid, bewusst groß) ─── */
  --ap-text-xs:     clamp(0.75rem,  0.72rem + 0.15vw, 0.833rem);
  --ap-text-sm:     clamp(0.875rem, 0.84rem + 0.18vw, 0.975rem);
  --ap-text-base:   clamp(1.125rem, 1.06rem + 0.33vw, 1.3rem);
  --ap-text-md:     clamp(1.25rem,  1.16rem + 0.45vw, 1.5rem);
  --ap-text-lg:     clamp(1.5rem,   1.35rem + 0.75vw, 1.875rem);
  --ap-text-xl:     clamp(1.75rem,  1.5rem  + 1.25vw, 2.5rem);
  --ap-text-2xl:    clamp(2.125rem, 1.75rem + 1.88vw, 3.25rem);
  --ap-text-3xl:    clamp(2.5rem,   2rem    + 2.5vw,  4rem);
  --ap-text-hero:   clamp(3rem,     2.2rem  + 4vw,    5.5rem);

  /* ─── LETTER-SPACING ────────────────────── */
  --ap-ls-display:  -0.03em;
  --ap-ls-heading:  -0.02em;
  --ap-ls-subhead:  -0.012em;
  --ap-ls-body:     -0.008em;
  --ap-ls-caps:      0.08em;

  /* ─── LINE-HEIGHTS ──────────────────────── */
  --ap-lh-display:   1.08;
  --ap-lh-heading:   1.2;
  --ap-lh-subhead:   1.35;
  --ap-lh-body:      1.7;
  --ap-lh-relaxed:   1.85;
  --ap-lh-tight:     1.15;

  /* ─── SPACING ───────────────────────────── */
  --ap-space-1:    0.25rem;
  --ap-space-2:    0.5rem;
  --ap-space-3:    0.75rem;
  --ap-space-4:    1rem;
  --ap-space-5:    1.25rem;
  --ap-space-6:    1.5rem;
  --ap-space-8:    2rem;
  --ap-space-10:   2.5rem;
  --ap-space-12:   3rem;
  --ap-space-16:   4rem;
  --ap-space-20:   5rem;
  --ap-space-24:   6rem;
  --ap-space-32:   8rem;

  /* Fluid Sections */
  --ap-section-sm:   clamp(3rem,    2rem + 5vw,   6rem);
  --ap-section-md:   clamp(4.5rem,  3rem + 7.5vw, 9rem);
  --ap-section-lg:   clamp(6rem,    4rem + 10vw, 12rem);

  /* ─── LAYOUT ────────────────────────────── */
  --ap-max-width:         1400px;
  --ap-max-width-narrow:  680px;
  --ap-gutter:            clamp(1.25rem, 0.75rem + 2.5vw, 3rem);

  /* ─── RADII ─────────────────────────────── */
  --ap-radius-xs:    3px;
  --ap-radius-sm:    6px;
  --ap-radius-md:    12px;
  --ap-radius-lg:    20px;
  --ap-radius-full:  9999px;

  /* ─── SCHATTEN (warm-getönt) ────────────── */
  --ap-shadow-xs:   0 1px 3px rgba(88, 57, 22, 0.04);
  --ap-shadow-sm:   0 2px 6px rgba(88, 57, 22, 0.06);
  --ap-shadow-md:   0 6px 20px rgba(88, 57, 22, 0.08);
  --ap-shadow-lg:   0 16px 40px rgba(88, 57, 22, 0.1);

  /* ─── TRANSITIONS ───────────────────────── */
  --ap-ease:         cubic-bezier(0.25, 0.1, 0.25, 1);
  --ap-ease-out:     cubic-bezier(0.22, 0.2, 0.03, 1);
  --ap-dur:          300ms;
  --ap-dur-slow:     600ms;
}


/* ============================================
   BASE RESETS
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--ap-font-body);
  font-size: var(--ap-text-base);
  font-weight: var(--ap-weight-regular);
  line-height: var(--ap-lh-body);
  letter-spacing: var(--ap-ls-body);
  color: var(--ap-text);
  background-color: var(--ap-bg);
  margin: 0;
  padding: 0;
}

::selection {
  background: var(--ap-red);
  color: var(--ap-white);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--ap-dur) var(--ap-ease);
}


/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ap-font-display);
  font-weight: var(--ap-weight-regular);
  color: var(--ap-brown);
  margin: 0 0 var(--ap-space-4) 0;
}

h1 {
  font-size: var(--ap-text-3xl);
  line-height: var(--ap-lh-heading);
  letter-spacing: var(--ap-ls-heading);
}

h2 {
  font-size: var(--ap-text-2xl);
  line-height: var(--ap-lh-heading);
  letter-spacing: var(--ap-ls-heading);
}

h3 {
  font-size: var(--ap-text-xl);
  line-height: var(--ap-lh-subhead);
  letter-spacing: var(--ap-ls-subhead);
}

h4 {
  font-family: var(--ap-font-body);
  font-size: var(--ap-text-xs);
  font-weight: var(--ap-weight-semibold);
  letter-spacing: var(--ap-ls-caps);
  text-transform: uppercase;
  color: var(--ap-red);
}

p {
  font-size: var(--ap-text-base);
  line-height: var(--ap-lh-body);
  color: var(--ap-text-soft);
  margin: 0 0 var(--ap-space-4) 0;
}

p:last-child {
  margin-bottom: 0;
}


/* ============================================
   UTILITY CLASSES
   ============================================ */
.ap-kicker {
  font-family: var(--ap-font-body);
  font-size: var(--ap-text-xs);
  font-weight: var(--ap-weight-semibold);
  letter-spacing: var(--ap-ls-caps);
  text-transform: uppercase;
  color: var(--ap-red);
  margin-bottom: var(--ap-space-5);
  display: block;
}

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

.ap-container--narrow {
  max-width: var(--ap-max-width-narrow);
}

.ap-section {
  padding: var(--ap-section-md) 0;
}

.ap-section-lg {
  padding: var(--ap-section-lg) 0;
}

.ap-bg-white  { background-color: var(--ap-bg); }
.ap-bg-cream  { background-color: var(--ap-bg-cream); }
.ap-bg-warm   { background-color: var(--ap-bg-warm); }
.ap-bg-blush  { background-color: var(--ap-bg-blush); }
.ap-bg-dark   { background-color: var(--ap-black); }


/* ============================================
   BUTTONS – paneri DS v2
   ============================================ */
.ap-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 1em 2.2em;
  font-family: var(--ap-font-body);
  font-size: var(--ap-text-sm);
  font-weight: var(--ap-weight-semibold);
  letter-spacing: var(--ap-ls-caps);
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--ap-radius-xs);
  cursor: pointer;
  transition: all var(--ap-dur) var(--ap-ease);
  line-height: var(--ap-lh-tight);
}

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

.ap-btn--primary {
  background: var(--ap-red);
  color: var(--ap-white);
  border-color: var(--ap-red);
}

.ap-btn--primary:hover,
.ap-btn--primary:focus {
  background: var(--ap-red-dark);
  border-color: var(--ap-red-dark);
  color: var(--ap-white);
  box-shadow: var(--ap-shadow-md);
}

.ap-btn--outline {
  background: transparent;
  color: var(--ap-red);
  border-color: var(--ap-red);
}

.ap-btn--outline:hover,
.ap-btn--outline:focus {
  background: var(--ap-red);
  color: var(--ap-white);
}

.ap-btn--warm {
  background: var(--ap-bg-cream);
  color: var(--ap-brown);
  border-color: var(--ap-bg-cream);
}

.ap-btn--warm:hover,
.ap-btn--warm:focus {
  background: var(--ap-bg-cream-dark);
  border-color: var(--ap-bg-cream-dark);
}

.ap-btn--ghost {
  background: transparent;
  color: var(--ap-red);
  padding: 0.5em 0;
  border: none;
  border-bottom: 2px solid var(--ap-border-red);
  border-radius: 0;
  text-transform: none;
  font-weight: var(--ap-weight-medium);
  letter-spacing: var(--ap-ls-body);
  font-size: var(--ap-text-base);
}

.ap-btn--ghost:hover {
  border-bottom-color: var(--ap-red);
}

.ap-btn--lg {
  padding: 1.2em 3em;
  font-size: var(--ap-text-base);
}

.ap-btn--sm {
  padding: 0.65em 1.5em;
  font-size: var(--ap-text-xs);
}


/* ============================================
   ACCESSIBILITY
   ============================================ */
.ap-skip-link {
  position: absolute;
  top: -100%;
  left: var(--ap-space-4);
  background: var(--ap-red);
  color: var(--ap-white);
  padding: var(--ap-space-3) var(--ap-space-6);
  z-index: 10000;
  font-size: var(--ap-text-sm);
  border-radius: var(--ap-radius-xs);
}

.ap-skip-link:focus {
  top: var(--ap-space-3);
}

:focus-visible {
  outline: 2px solid var(--ap-red);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}


/* ============================================
   ELEMENTOR OVERRIDES
   ============================================ */
.elementor-page body,
body.elementor-default {
  font-family: var(--ap-font-body);
  color: var(--ap-text);
}

.elementor h1,
.elementor h2,
.elementor h3 {
  font-family: var(--ap-font-display);
  color: var(--ap-brown);
}

.elementor h4,
.elementor h5,
.elementor h6 {
  font-family: var(--ap-font-body);
}

.elementor-widget-heading .elementor-heading-title {
  color: var(--ap-brown);
  letter-spacing: var(--ap-ls-heading);
}

.elementor-widget-text-editor p {
  margin-bottom: 1em;
  line-height: var(--ap-lh-body);
  letter-spacing: var(--ap-ls-body);
}

.elementor-widget-text-editor p:last-child {
  margin-bottom: 0;
}

.elementor-button {
  letter-spacing: var(--ap-ls-caps);
  font-weight: var(--ap-weight-semibold);
  transition: all var(--ap-dur) var(--ap-ease);
}

.elementor-section[id],
.e-con[id] {
  scroll-margin-top: 100px;
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .ap-section    { padding-top: var(--ap-section-sm); padding-bottom: var(--ap-section-sm); }
  .ap-section-lg { padding-top: var(--ap-section-md); padding-bottom: var(--ap-section-md); }
}

@media (max-width: 767px) {
  .ap-btn--lg {
    padding: 0.9em 2em;
  }
}
