/* =========================================================================
   pipe · individualmarketing
   Visual design layer. Loaded via Astra Child theme stylesheet.
   Hook classes documented in /1_Orga/Claude_Code/07-css-workflow.md
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------------------- */
:root {
  /* Brand palette — confirm exact hex from /3_Grafik/ai/webdesign_06.ai */
  --c-teal-dark: #2E7F73;
  --c-green:     #1F8A6A;
  --c-mint:      #3FBF8F;
  --c-yellow:    #F5C94B;
  --c-peach:     #F5C0A8;
  --c-coral:     #E8826A;

  --c-bg:        #F2EFE6;
  --c-bg-soft:   #EAE6D9;
  --c-ink:       #2C2C2C;
  --c-ink-soft: #6E6E6E;
  --c-white:     #FFFFFF;

  /* Typography */
  --ff-base: 'Cabin', system-ui, -apple-system, sans-serif;

  --fw-regular: 400;
  --fw-medium:  500;
  --fw-bold:    700;

  /* Type scale (clamp for responsive without media queries) */
  --fs-h1: clamp(2.5rem, 5vw, 4rem);     /* 40 → 64 */
  --fs-h2: clamp(2rem, 4vw, 3rem);       /* 32 → 48 */
  --fs-h3: clamp(1.375rem, 2vw, 1.5rem); /* 22 → 24 */
  --fs-h4: 1.125rem;                      /* 18 */
  --fs-body: 1rem;                        /* 16 */
  --fs-small: 0.875rem;                   /* 14 */

  --lh-tight: 1.1;
  --lh-snug: 1.2;
  --lh-normal: 1.6;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --space-3xl: 6rem;

  /* Layout */
  --max-content: 1200px;
  --max-prose: 720px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, .06);

  /* Motion */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --dur: 200ms;
}

/* -------------------------------------------------------------------------
   2. Base typography
   ------------------------------------------------------------------------- */
body {
  font-family: var(--ff-base);
  font-weight: var(--fw-bold);     /* Body is Bold per design board — confirm with Martin */
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--c-ink);
  background: var(--c-bg);
}

h1, h2, h3, h4, h5, h6,
.pipe-hero__claim {
  font-family: var(--ff-base);
  font-weight: var(--fw-regular);  /* Headlines are Regular weight (light, airy) */
  line-height: var(--lh-tight);
  color: var(--c-ink);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-snug); }
h3 { font-size: var(--fs-h3); font-weight: var(--fw-bold); }
h4 { font-size: var(--fs-h4); font-weight: var(--fw-bold); }

a { color: var(--c-coral); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--c-teal-dark); }

/* -------------------------------------------------------------------------
   3. Reusable components
   ------------------------------------------------------------------------- */

/* Buttons --------------------------------------------- */
.pipe-btn,
.pipe-btn .elementor-button {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--ff-base);
  font-weight: var(--fw-bold);
  font-size: var(--fs-body);
  line-height: 1;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--dur) var(--ease),
              background var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.pipe-btn:hover { transform: translateY(-1px); }

.pipe-btn--primary,
.pipe-btn--primary .elementor-button {
  background: var(--c-coral);
  color: var(--c-white);
}
.pipe-btn--primary:hover,
.pipe-btn--primary .elementor-button:hover {
  background: var(--c-teal-dark);
}

.pipe-btn--secondary,
.pipe-btn--secondary .elementor-button {
  background: transparent;
  color: var(--c-teal-dark);
  border-color: var(--c-teal-dark);
}
.pipe-btn--secondary:hover,
.pipe-btn--secondary .elementor-button:hover {
  background: var(--c-teal-dark);
  color: var(--c-white);
}

.pipe-btn--text,
.pipe-btn--text .elementor-button {
  background: transparent;
  color: var(--c-coral);
  padding-left: 0;
  padding-right: 0;
  border: none;
  border-bottom: 2px solid var(--c-coral);
  border-radius: 0;
}

/* Pull quote ------------------------------------------ */
.pipe-pullquote {
  font-style: italic;
  font-weight: var(--fw-regular);
  font-size: var(--fs-h3);
  color: var(--c-ink-soft);
  text-align: center;
  max-width: var(--max-prose);
  margin: var(--space-xl) auto;
  position: relative;
}
.pipe-pullquote::before {
  content: '\201C';
  display: block;
  font-size: 3em;
  color: var(--c-coral);
  line-height: 0.6;
  margin-bottom: var(--space-sm);
}

/* Generic card ---------------------------------------- */
.pipe-card {
  background: var(--c-bg-soft);
  border-radius: var(--radius);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: transform var(--dur) var(--ease);
}
.pipe-card:hover { transform: translateY(-2px); }
.pipe-card--cream    { background: var(--c-bg-soft); }
.pipe-card--featured { background: var(--c-peach); }
.pipe-card--dark     { background: var(--c-teal-dark); color: var(--c-white); }
.pipe-card--dark h1,
.pipe-card--dark h2,
.pipe-card--dark h3,
.pipe-card--dark h4 { color: var(--c-white); }

.pipe-card__price {
  font-weight: var(--fw-bold);
  margin-top: auto;
  padding-top: var(--space-md);
  border-top: 1px solid currentColor;
  opacity: .8;
}

/* -------------------------------------------------------------------------
   4. Section: 01 Header
   ------------------------------------------------------------------------- */
.pipe-header {
  background: var(--c-bg);
  padding: var(--space-md) 0;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease),
              background var(--dur) var(--ease);
}
.pipe-header.elementor-sticky--effects {
  border-bottom-color: rgba(0, 0, 0, .06);
  background: rgba(242, 239, 230, .92);
  backdrop-filter: blur(8px);
}
.pipe-nav .elementor-nav-menu a {
  color: var(--c-ink);
  font-weight: var(--fw-bold);
}
.pipe-nav .elementor-nav-menu a:hover { color: var(--c-coral); }

/* -------------------------------------------------------------------------
   5. Section: 02 Hero
   ------------------------------------------------------------------------- */
.pipe-hero { padding: var(--space-3xl) 0 var(--space-2xl); }
.pipe-hero__claim {
  font-size: var(--fs-h1);
  font-weight: var(--fw-regular);
  color: var(--c-ink-soft);
}
.pipe-hero__intro { max-width: 36ch; }
.pipe-hero__ctas { display: flex; gap: var(--space-md); margin-top: var(--space-lg); flex-wrap: wrap; }

.pipe-pillars { margin-top: var(--space-2xl); }
.pipe-pillar  {
  font-weight: var(--fw-bold);
  color: var(--c-ink-soft);
}
.pipe-pillar strong { color: var(--c-ink); display: block; }

/* -------------------------------------------------------------------------
   6. Section: 03 Testimonials
   ------------------------------------------------------------------------- */
.pipe-testimonials { padding: var(--space-3xl) 0; background: var(--c-bg-soft); }

.pipe-tcard {
  background: var(--c-white);
  border-radius: var(--radius);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-height: 280px;
}
.pipe-tcard__portrait img {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
}
.pipe-tcard__quote {
  font-style: italic;
  line-height: var(--lh-normal);
}
.pipe-tcard__name  { font-weight: var(--fw-bold); }
.pipe-tcard__brand { color: var(--c-ink-soft); font-size: var(--fs-small); }

/* Make the carousel auto-scroll left → right (Elementor default is RTL=off).
   Loop Carousel widget supports direction; this is a safety net. */
.pipe-tcarousel .swiper { direction: ltr; }

/* -------------------------------------------------------------------------
   7. Section: 04 Was macht pipe?
   ------------------------------------------------------------------------- */
.pipe-positioning { padding: var(--space-3xl) 0; }
.pipe-positioning__text { max-width: var(--max-prose); }
.pipe-sankey img { width: 100%; height: auto; border-radius: var(--radius); }

/* -------------------------------------------------------------------------
   8. Section: 05 Für wen
   ------------------------------------------------------------------------- */
.pipe-target { padding: var(--space-3xl) 0; text-align: center; }
.pipe-target__list {
  max-width: var(--max-prose);
  margin-inline: auto;
  text-align: left;
}
.pipe-target__audience {
  margin-top: var(--space-xl);
  color: var(--c-ink-soft);
  font-style: italic;
}

/* -------------------------------------------------------------------------
   9. Section: 06 Schritte
   ------------------------------------------------------------------------- */
.pipe-steps { padding: var(--space-3xl) 0; }
.pipe-step  {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.pipe-step__num {
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--c-coral);
}
.pipe-step__icon img { width: 96px; height: 96px; object-fit: contain; }
.pipe-step__title { font-size: var(--fs-h3); }

/* -------------------------------------------------------------------------
   10. Section: 07 Pakete
   ------------------------------------------------------------------------- */
.pipe-pakete { padding: var(--space-3xl) 0; background: var(--c-bg-soft); }
.pipe-pakete .pipe-card { height: 100%; }
.pipe-card__bullets li {
  padding-left: 1.25em;
  position: relative;
  margin-bottom: var(--space-xs);
}
.pipe-card__bullets li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--c-coral);
  font-weight: var(--fw-bold);
}
.pipe-card--dark .pipe-card__bullets li::before { color: var(--c-yellow); }

/* -------------------------------------------------------------------------
   11. Section: 08 Über mich
   ------------------------------------------------------------------------- */
.pipe-about { padding: var(--space-3xl) 0; background: var(--c-peach); }
.pipe-about__photo img { border-radius: var(--radius); width: 100%; height: auto; }

.pipe-credentials {
  background: rgba(255, 255, 255, .55);
  border-radius: var(--radius);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
}
.pipe-credentials li { padding: var(--space-xs) 0; }

.pipe-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.pipe-value strong {
  display: block;
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-xs);
}

/* -------------------------------------------------------------------------
   12. Section: 09 Kontakt
   ------------------------------------------------------------------------- */
.pipe-contact { padding: var(--space-3xl) 0; }

/* Contact Form 7 styling — keep inputs minimal */
.pipe-contact .wpcf7 input[type="text"],
.pipe-contact .wpcf7 input[type="email"],
.pipe-contact .wpcf7 textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--ff-base);
  font-size: var(--fs-body);
  border: 1px solid var(--c-bg-soft);
  border-radius: var(--radius-sm);
  background: var(--c-white);
  transition: border-color var(--dur) var(--ease);
}
.pipe-contact .wpcf7 input:focus,
.pipe-contact .wpcf7 textarea:focus {
  border-color: var(--c-coral);
  outline: none;
}
.pipe-contact .wpcf7 input[type="submit"] {
  background: var(--c-coral);
  color: var(--c-white);
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: var(--fw-bold);
  cursor: pointer;
}
.pipe-contact .wpcf7 input[type="submit"]:hover { background: var(--c-teal-dark); }

.pipe-calendly { border-radius: var(--radius); overflow: hidden; }

/* -------------------------------------------------------------------------
   13. Section: 10 Footer
   ------------------------------------------------------------------------- */
.pipe-footer {
  padding: var(--space-2xl) 0 var(--space-lg);
  background: var(--c-teal-dark);
  color: var(--c-white);
}
.pipe-footer a { color: var(--c-white); opacity: .8; }
.pipe-footer a:hover { opacity: 1; color: var(--c-yellow); }
.pipe-social { display: flex; gap: var(--space-md); }
.pipe-legal  { font-size: var(--fs-small); opacity: .7; }

.pipe-totop {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-coral);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
  z-index: 100;
}
.pipe-totop.is-visible { opacity: 1; pointer-events: auto; }

/* -------------------------------------------------------------------------
   14. Responsive adjustments
   ------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .pipe-hero        { padding: var(--space-2xl) 0; }
  .pipe-testimonials,
  .pipe-positioning,
  .pipe-target,
  .pipe-steps,
  .pipe-pakete,
  .pipe-about,
  .pipe-contact     { padding: var(--space-2xl) 0; }
  .pipe-values      { grid-template-columns: 1fr; }
}
