/*
 Theme Name:   Poettelsdorf
 Theme URI:    https://https://xn--mhlepttelsdorf-zpb5g.at/
 Description:  Eigenständiges Theme für Poettelsdorf. Optimiert für Elementor & Unlimited Elements.
 Author:       lukasKaeferle
 Author URI:   https://lukaskaeferle.at
 Version:      1.0.0
 Text Domain:  poettelsdorf
 Requires at least: 6.0
 Requires PHP:      7.4
*/

/* ==========================================================================
   1. DESIGN TOKENS (CSS Custom Properties)
   ========================================================================== */

:root {
  /* --- Colors --- */
  --color-primary: #5a7329;
  --color-accent: #ccb212;
  --color-dark: #4e5d58;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-bg-superlight: #ffffff;
  --color-bg-lightgreen: #eff2ea;
  --color-bg-lightgreen-alpha: rgba(239, 242, 234, 0.9);
  --color-bg-lightyellow: #f9f6e3;
  --color-link: #5a7329;

  /* --- Elementor Variable Mapping --- */
  --button-bg-01: #5a7329;
  --button-bg-02: #ccb212;
  --botton-typo-01: #ffffff;
  --button-typo-02: #4e5d58;
  --typo-dark: #4e5d58;
  --typo-light: #ffffff;
  --bg-superlight: #ffffff;
  --bg-lightgreen: #eff2ea;
  --bg-lightyellow: #f9f6e3;

  /* --- Typography --- */
  --font-family: 'Poppins', sans-serif;

  /* Desktop */
  --h1-size: 36px;
  --h1-lh: 42px;
  --h1-weight: 500;

  --h2-size: 32px;
  --h2-lh: 40px;
  --h2-weight: 500;

  --h3-size: 22px;
  --h3-lh: 32px;
  --h3-weight: 500;
  --h3-ls: 2.2px;

  --p-size: 20px;
  --p-lh: 28px;
  --p-weight: 400;

  --quote-size: 24px;
  --quote-lh: 28px;

  --btn-size: 20px;
  --btn-lh: 28px;
  --btn-weight: 600;
  --btn-ls: 2px;

  --nav-size: 18px;
  --nav-lh: 25px;
  --nav-weight: 500;
  --nav-ls: 1.8px;

  /* --- Spacing --- */
  --section-padding-y: 80px;
  --section-padding-x: 40px;
  --content-max-width: 1440px;
  --wp--style--global--content-size: 1440px;
  --content-inner-width: 850px;
  --gap-sm: 15px;
  --gap-md: 20px;
  --gap-lg: 40px;
  --gap-xl: 50px;

  /* --- Shadows --- */
  --shadow-card: -4px 4px 7px 0px rgba(0, 0, 0, 0.12);
  --shadow-box: 4px 4px 7px 0px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   2. GLOBAL RESETS & BASE STYLES
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  font-size: var(--p-size);
  font-weight: var(--p-weight);
  line-height: var(--p-lh);
  color: var(--color-dark);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-link);
  text-decoration: underline;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-dark);
}

/* ==========================================================================
   3. TYPOGRAPHY (BEM)
   ========================================================================== */

.ck-heading {
  font-family: var(--font-family);
  font-weight: var(--h2-weight);
  color: var(--color-dark);
  margin: 0;
}

.ck-heading--h1 {
  font-size: var(--h1-size);
  line-height: var(--h1-lh);
}

.ck-heading--h2 {
  font-size: var(--h2-size);
  line-height: var(--h2-lh);
}

.ck-heading--h3 {
  font-size: var(--h3-size);
  line-height: var(--h3-lh);
  letter-spacing: var(--h3-ls);
  text-transform: uppercase;
}

.ck-text {
  font-family: var(--font-family);
  font-size: var(--p-size);
  font-weight: var(--p-weight);
  line-height: var(--p-lh);
  color: var(--color-dark);
  margin: 0;
}

.ck-text--quote {
  font-size: var(--quote-size);
  font-style: italic;
  line-height: var(--quote-lh);
  color: var(--color-black);
}

.ck-text--quote-author {
  font-size: var(--p-size);
  font-style: normal;
  text-align: right;
  color: var(--color-black);
}

.ck-text--center {
  text-align: center;
}

.ck-text--link {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ==========================================================================
   4. BUTTONS (BEM)
   ========================================================================== */

.ck-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 40px;
  font-family: var(--font-family);
  font-size: var(--btn-size);
  font-weight: var(--btn-weight);
  line-height: var(--btn-lh);
  letter-spacing: var(--btn-ls);
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.ck-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.ck-btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.ck-btn--secondary {
  background-color: var(--color-accent);
  color: var(--color-dark);
}

.ck-btn--full {
  width: 100%;
}

/* ==========================================================================
   5. LAYOUT UTILITIES (BEM)
   ========================================================================== */

.ck-section {
  position: relative;
  width: 100%;
  max-width: var(--content-max-width);
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

.ck-section__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--section-padding-y) var(--section-padding-x);
}

.ck-section__content {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
  width: 100%;
  max-width: var(--content-inner-width);
}

.ck-text-group {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

/* Background decorations */
.ck-section__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}

.ck-section__bg-overlay {
  position: relative;
  z-index: 1;
}

/* Backgrounds */
.ck-bg--lightgreen {
  background-color: var(--color-bg-lightgreen);
}

.ck-bg--lightyellow {
  background-color: var(--color-bg-lightyellow);
}

.ck-bg--lightgreen-alpha {
  background-color: var(--color-bg-lightgreen-alpha);
}

.ck-bg--dark {
  background-color: var(--color-dark);
}

.ck-bg--white {
  background-color: var(--color-white);
}

/* Navigation */
.ck-nav {
  font-family: var(--font-family);
  font-size: var(--nav-size);
  font-weight: var(--nav-weight);
  line-height: var(--nav-lh);
  letter-spacing: var(--nav-ls);
  text-transform: uppercase;
  color: var(--color-dark);
  text-decoration: none;
}

.ck-nav:hover {
  color: var(--color-primary);
}

/* ==========================================================================
   6. RESPONSIVE – TABLET (max-width: 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
  :root {
    --section-padding-y: 60px;
    --section-padding-x: 40px;
  }
}

/* ==========================================================================
   7. RESPONSIVE – MOBILE (max-width: 767px)
   ========================================================================== */

@media (max-width: 767px) {
  :root {
    --h1-size: 34px;
    --h1-lh: 40px;

    --h2-size: 30px;
    --h2-lh: 38px;

    --h3-size: 21px;
    --h3-lh: 30px;
    --h3-ls: 2.1px;

    --section-padding-y: 40px;
    --section-padding-x: 20px;
  }
}

/* ==========================================================================
   8. ELEMENTOR OVERRIDES
   ========================================================================== */

/* Remove default Elementor spacing if needed */
.elementor-section.elementor-section-boxed>.elementor-container {
  max-width: var(--content-max-width);
}

/* Ensure widgets respect our font */
.elementor-widget-container {
  font-family: var(--font-family);
}

/* ==========================================================================
   9. PRINT STYLES
   ========================================================================== */

@media print {
  body {
    color: #000;
    background: #fff;
  }

  .ck-btn {
    border: 1px solid #000;
  }
}


.home-page-six-grid {
  max-width: 1440px !important;
  margin: 0 auto;
}

.ck-btn-fit-content {
  width: fit-content;
}

.full-width-hero {
  padding: 0px !important;
}

.full-width-hero.no-bottom-padding .e-con-inner {
  padding-bottom: 0px !important;
}

@media (max-width: 767px) {
  .responsive-padding {
    padding-left: 32px !important;
    padding-right: 32px !important;
  }

}