/* ===========================================================================
   Kati Weiss Art — site styles
   Ported 1:1 from the WordPress/Elementor site (kit 1266 tokens + page CSS).
   =========================================================================== */

:root {
  --color-dark: #23262D;        /* header/footer & hero gradient panel */
  --color-light: #F9F9F9;
  --color-primary: #6EC1E4;     /* card title links */
  --color-secondary: #54595F;   /* headings/buttons */
  --color-text: #7A7A7A;        /* body text */
  --color-heading: #6D6D6D;     /* big script headings, h1 */
  --color-h2: #020101;
  --container: 1140px;
  --font-script: 'Beau Rivage', cursive;
  --font-narrow: 'PT Sans Narrow', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --font-lato: 'Lato', sans-serif;
  --font-slab: 'Roboto Slab', serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-light);
}

img { max-width: 100%; height: auto; }

a { color: var(--color-secondary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-heading); }

h1 { color: var(--color-heading); }
h2 { color: var(--color-h2); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 10px;
}

/* --- header / navigation ------------------------------------------------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 20px 10px 10px;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo img { display: block; width: 150px; }
.site-nav { display: flex; align-items: center; }
.site-nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-light);
  padding: 15px;
}
.site-nav a:hover,
.site-nav a:focus,
.site-nav a.current { color: #C9C9C9; }
.site-nav a.lang-item { padding: 15px 8px; display: inline-flex; align-items: center; }
.site-nav a.lang-item img { width: 16px; height: 11px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--color-light);
  font-size: 26px;
  line-height: 1;
  padding: 10px;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background-color: var(--color-text);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 15px; border-bottom: 1px solid #2C2C2C; }
  .site-nav a:hover { background-color: #262626; color: var(--color-light); }
}

/* --- hero banner (gradient: dark panel on the right) ---------------------- */
.hero {
  background-color: transparent;
  background-image: linear-gradient(270deg, var(--color-dark) 40%, var(--color-light) 2%);
  padding: 100px 10px 80px;
}
.hero .container {
  display: flex;
  align-items: center;
  gap: 20px;
}
.hero-text { flex: 1 1 50%; padding-top: 60px; }
.hero-media {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.hero-media img { max-width: 100%; height: auto; }
.hero-media img { box-shadow: -3px 3px 9px 0 rgba(0,0,0,.35); }
.hero-title {
  font-family: var(--font-script);
  font-size: clamp(56px, 9vw, 100px);
  font-weight: 600;
  line-height: .8;
  color: var(--color-heading);
  margin: 0 0 25px;
}
.hero-sub {
  font-family: var(--font-lato);
  font-size: 26px;
  font-weight: 600;
  color: var(--color-secondary);
  margin: 0;
}
.hero-sub--over { margin: 0 0 10px; }

/* thin banner variant (subpages & painting pages) */
.hero--banner { padding: 0 10px 80px; }

.btn-contact {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 30px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--color-light);
  background: var(--color-dark);
  border: 1px solid var(--color-light);
  transition: all .2s;
}
.btn-contact:hover { background: var(--color-light); color: var(--color-dark); border-color: var(--color-dark); }

@media (max-width: 767px) {
  .hero {
    background-image: linear-gradient(230deg, var(--color-dark) 15%, var(--color-light) 0%);
    padding: 100px 10px 40px;
  }
  .hero .container { flex-direction: column-reverse; }
  .hero-text, .hero-media { flex: 1 1 100%; }
  .hero-media { justify-content: center; flex-wrap: wrap; }
}

/* --- text/image feature rows --------------------------------------------- */
.feature {
  padding: 80px 10px;
}
.feature .container {
  display: flex;
  align-items: center;
  gap: 20px;
}
.feature-text { flex: 1 1 55%; }
.feature-media { flex: 1 1 45%; }
.feature-media img { display: block; margin: 0 auto; box-shadow: -3px 3px 9px 0 rgba(0,0,0,.25); }
.feature-title {
  font-family: var(--font-script);
  font-size: clamp(56px, 8vw, 100px);
  font-weight: 600;
  line-height: .9;
  color: var(--color-heading);
  margin: 0 0 20px;
}
.feature-title--secondary { color: var(--color-secondary); line-height: .8; }
.feature-sub {
  font-family: var(--font-narrow);
  font-size: 31px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-heading);
  margin: 0 0 20px;
}
.feature-sub--secondary { font-weight: 600; line-height: .9; color: var(--color-secondary); }
.feature-text p { margin: 0 0 20px; }

@media (max-width: 767px) {
  .feature { padding: 40px 10px; }
  .feature .container { flex-direction: column; }
  .feature .container.reverse-mobile { flex-direction: column-reverse; }
}

/* --- section headings (Portfolio / Showcases / Donation / CTA) ----------- */
.section-script-title {
  text-align: center;
  font-family: var(--font-script);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 600;
  line-height: .8;
  color: var(--color-secondary);
  margin: 0 0 30px;
}

/* --- portfolio grid (ported from pd-pcf widget) --------------------------- */
.portfolio-section { padding: 50px 10px 10px; border-bottom: 1px solid #D0D0D0; }
.portfolio-filters { text-align: center; margin-bottom: 20px; }
.portfolio-filters a {
  display: inline-block;
  margin: 5px 2px;
  padding: 10px 15px;
  text-transform: capitalize;
  font-size: 16px;
  color: var(--color-dark);
  background: transparent;
  border-bottom: 2px solid rgba(202, 202, 202, .31);
  cursor: pointer;
}
.portfolio-filters a:hover { color: var(--color-secondary); border-bottom-color: var(--color-dark); }
.portfolio-filters a.active { border-bottom-color: #4E4E4E; }

.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
}
.portfolio-item {
  width: 33.333%;
  padding: 12px;
}
@media (max-width: 1024px) { .portfolio-item { width: 50%; } }
@media (max-width: 640px)  { .portfolio-item { width: 100%; } }

/* Cards on the live site are image-only, square "cubic" previews — the plugin's
   title/excerpt/read-more block is hidden (#blog-post .pd_pcf_content{display:none}).
   The full card markup stays in the DOM (SEO) but only the thumbnail shows. */
.portfolio-card {
  background: transparent;
  height: 100%;
  word-break: break-word;
}
.portfolio-card .card-thumb a { display: block; }
.portfolio-card .card-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  box-shadow: -3px 3px 9px 0 #949494;
}
.portfolio-card .card-body { display: none; }

.portfolio-loadmore { text-align: center; margin: 15px 0 40px; }
.portfolio-loadmore a {
  display: inline-block;
  padding: 10px 15px;
  color: var(--color-secondary);
  cursor: pointer;
}
.portfolio-loadmore a:hover { color: var(--color-primary); }

/* --- donation / CTA section ----------------------------------------------- */
.script-section { padding: 50px 10px; text-align: center; }
.script-section .container { max-width: 900px; }
.script-section p { margin: 0 0 15px; }

/* --- "Wie … funktioniert es?" section + accordion -------------------------- */
/* Full-width background image, fixed in place (parallax): the boxed content
   window slides over it. Curved (asymmetrical) top divider caps the section
   with the page-background colour, matching the live site. */
.how-section {
  position: relative;
  overflow: hidden;
  padding: 120px 10px 60px;
  background-color: #EAEAEA;
  background-image: url('/images/faq-bg.jpg');
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  background-attachment: fixed;
}
.how-section .shape-divider-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  pointer-events: none;
}
.how-section .shape-divider-top svg {
  display: block;
  width: 100%;
  height: 90px;
}
.how-section .shape-divider-top .shape-fill { fill: var(--color-light); }
.how-section .container { position: relative; }
.how-heading {
  text-align: left;
  margin-bottom: 15px;
}
.how-script {
  font-family: var(--font-script);
  font-size: clamp(48px, 6vw, 60px);
  font-weight: 700;
  line-height: .95;
  color: var(--color-heading);
  margin: 0;
}
.how-sub {
  font-family: var(--font-narrow);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-secondary);
  margin: 0;
}

.accordion {
  max-width: 70%;
  margin: 25px 0 0;
}
.accordion-item {
  background: rgba(255, 255, 255, .6);
  margin-bottom: 6px;
}
.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: 0;
  padding: 12px 15px 12px 60px;
  position: relative;
  font-family: var(--font-narrow);
  font-size: 18px;
  font-weight: 700;
  /* collapsed items show a light-blue title + icon; the open item is dark */
  color: var(--color-primary);
  cursor: pointer;
  text-align: left;
}
.accordion-item.open .accordion-header { color: var(--color-secondary); }
/* per-step icon (icon1..icon5.png) on the left, as on the live site.
   Icons are dark line art; collapsed items tint them light blue via filter,
   the open item shows them in their natural dark colour. */
.accordion-header::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 35px;
  height: 38px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: invert(64%) sepia(30%) saturate(760%) hue-rotate(165deg) brightness(94%) contrast(88%);
}
.accordion-item.open .accordion-header::before { filter: none; }
.accordion-item.icon-1 .accordion-header::before { background-image: url('/images/icon1.png'); }
.accordion-item.icon-2 .accordion-header::before { background-image: url('/images/icon2.png'); }
.accordion-item.icon-3 .accordion-header::before { background-image: url('/images/icon3.png'); }
.accordion-item.icon-4 .accordion-header::before { background-image: url('/images/icon4.png'); }
.accordion-item.icon-5 .accordion-header::before { background-image: url('/images/icon5.png'); }
/* chevron on the right */
.accordion-header::after {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 15px;
  transition: transform .2s;
  flex: 0 0 auto;
}
.accordion-item.open .accordion-header::after { transform: rotate(-135deg); }
.accordion-body {
  display: none;
  padding: 0 15px 18px 60px;
}
.accordion-item.open .accordion-body { display: block; }
.accordion-body p { margin: 0; }

@media (max-width: 767px) {
  .how-section { background-image: none; }
  .accordion { max-width: 100%; }
}

/* --- painting detail pages ------------------------------------------------- */
.detail-main { padding: 40px 10px 60px; }
.detail-main .container { max-width: 820px; }
.detail-title {
  font-size: clamp(32px, 5vw, 42px);
  font-weight: 600;
  color: var(--color-heading);
  margin: 0 0 25px;
}
.detail-row {
  display: flex;
  gap: 14px;
  margin: 25px 0 10px;
}
.detail-row .detail-media { flex: 1 1 0; min-width: 0; }
.detail-media img,
.detail-media video {
  display: block;
  width: 100%;
  height: auto;
}
.detail-row.cols-1 .detail-media video { max-width: 540px; margin: 0 auto; }
.detail-caption { font-size: 15px; margin: 8px 0 20px; }
.detail-text { margin: 0 0 18px; }
.detail-tags { display: none; } /* live site hides post tags (child theme) */
.detail-back { display: inline-block; margin-top: 25px; font-size: 15px; }

@media (max-width: 640px) {
  .detail-row { flex-wrap: wrap; }
  .detail-row .detail-media { flex: 1 1 100%; }
}

/* --- legal pages ----------------------------------------------------------- */
.legal-main { padding: 40px 10px 60px; }
.legal-main .container { max-width: 820px; }
.legal-main h1 { font-size: clamp(32px, 5vw, 42px); font-weight: 600; }
.legal-main h2 { font-size: 24px; color: var(--color-secondary); margin-top: 35px; }
.legal-main h3 { font-size: 19px; color: var(--color-secondary); }
.legal-main a { color: #0274be; word-break: break-word; }
.legal-main a:hover { color: #3a3a3a; }

/* --- footer ---------------------------------------------------------------- */
.site-footer {
  background: var(--color-dark);
  color: var(--color-light);
  padding: 50px 10px 25px;
  margin-top: 60px;
}
.site-footer .footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 30px;
}
.footer-brand img { width: 170px; display: block; margin-bottom: 15px; }
.footer-social a {
  display: inline-flex;
  padding: 6px;
  color: var(--color-light);
}
.footer-social svg { width: 22px; height: 22px; fill: currentColor; }
.footer-social a:hover { color: #C9C9C9; }
.footer-contact { text-align: right; }
.footer-contact h3 {
  font-family: var(--font-lato);
  font-size: 26px;
  font-weight: 600;
  color: var(--color-light);
  margin: 0 0 10px;
}
.footer-contact a { color: var(--color-light); }
.footer-contact a:hover { color: #C9C9C9; }
.site-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid #2C2C2C;
  padding-top: 20px;
  font-family: var(--font-lato);
  font-size: 14px;
  color: var(--color-light);
}
.footer-legal a { color: var(--color-light); font-family: var(--font-lato); font-size: 14px; }
.footer-legal a:hover { color: #C9C9C9; }

@media (max-width: 640px) {
  .site-footer .footer-top,
  .site-footer .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-contact { text-align: left; }
}

/* no top margin for footer directly after bordered portfolio section */
.portfolio-section + .site-footer,
.script-section + .site-footer { margin-top: 0; }
