/*
 Theme Name:   LivDK Child
 Theme URI:    https://livdk.de
 Description:  Kadence Child Theme — LivDK Brand Identity
 Author:       LivDK
 Template:     kadence
 Version:      1.0.0
*/

/* ═══════════════════════════════════════════════════════════════
   1. BRAND TOKENS
   ═══════════════════════════════════════════════════════════════ */
:root {
  --livdk-red:        oklch(43% 0.175 22);   /* #8B1F1F – Hauptakzent  */
  --livdk-red-deep:   oklch(36% 0.16 22);    /* #701818 – Hover/Active */
  --livdk-white:      oklch(97.5% 0.010 72); /* #FAF8F3 – Seitenbg     */
  --livdk-sand:       oklch(88% 0.038 80);   /* #E5D9C3 – Sand hell    */
  --livdk-sand-mid:   oklch(78% 0.040 76);   /* #CEBD9E – Sand mittel  */
  --livdk-sand-dark:  oklch(68% 0.038 75);   /* #B5A07F – Sand dunkel  */
  --livdk-ink:        oklch(18% 0.018 258);  /* #1A1924 – Fließtext    */
  --livdk-ink-mid:    oklch(48% 0.018 258);  /* #6D6B7A – Sekundärtext */
  --livdk-ink-light:  oklch(62% 0.015 258);  /* #928FA0 – Meta/Labels  */
  --livdk-border:     oklch(91% 0.016 75);   /* Trennlinien            */

  /* Typografie */
  --livdk-font-serif: 'Cormorant Garamond', Georgia, serif;
  --livdk-font-sans:  'DM Sans', system-ui, sans-serif;
}

/* ═══════════════════════════════════════════════════════════════
   2. BASE
   ═══════════════════════════════════════════════════════════════ */
body {
  font-family: var(--livdk-font-sans);
  font-weight: 300;
  color: var(--livdk-ink-mid);
  background: var(--livdk-white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--livdk-red);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

::selection {
  background: var(--livdk-sand);
  color: var(--livdk-ink);
}

/* ═══════════════════════════════════════════════════════════════
   3. TYPOGRAFIE
   ═══════════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6,
.entry-title,
.page-title,
.archive-title {
  font-family: var(--livdk-font-serif);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--livdk-ink);
  text-wrap: pretty;
}

h1, .entry-title   { font-size: clamp(28px, 4.5vw, 48px); line-height: 1.1; }
h2                  { font-size: clamp(22px, 3vw,  34px); }
h3                  { font-size: clamp(18px, 2.5vw, 27px); font-weight: 500; }
h4                  { font-size: 21px; }
h5, h6              { font-size: 16px; font-weight: 400; }

p, li {
  font-family: var(--livdk-font-sans);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.78;
  color: var(--livdk-ink-mid);
  text-wrap: pretty;
}

/* ═══════════════════════════════════════════════════════════════
   4. HEADER & NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.site-header,
#masthead,
.kadence-sticky-header {
  background: var(--livdk-white) !important;
  border-bottom: 1px solid var(--livdk-border);
}

/* Nav links */
.main-navigation a,
.kadence-navigation .menu-item a,
header .menu-item a {
  font-family: var(--livdk-font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--livdk-ink-mid) !important;
  text-decoration: none;
}

.main-navigation a:hover,
.kadence-navigation .menu-item a:hover {
  color: var(--livdk-red) !important;
}

/* Active menu item */
.main-navigation .current-menu-item > a,
.kadence-navigation .current-menu-item > a {
  color: var(--livdk-ink) !important;
}

/* ═══════════════════════════════════════════════════════════════
   5. BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.wp-block-button__link,
.wp-block-kadence-button .kt-button,
.button,
input[type="submit"],
button[type="submit"] {
  background: var(--livdk-red) !important;
  color: var(--livdk-white) !important;
  font-family: var(--livdk-font-sans) !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  border-radius: 0 !important;
  padding: 13px 32px !important;
  border: none !important;
  box-shadow: none !important;
  transition: background 0.18s ease;
}

.wp-block-button__link:hover,
.wp-block-kadence-button .kt-button:hover,
.button:hover,
input[type="submit"]:hover {
  background: var(--livdk-red-deep) !important;
}

/* Outline button variant */
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--livdk-red) !important;
  border: 1.5px solid var(--livdk-red) !important;
}

/* ═══════════════════════════════════════════════════════════════
   6. POST CARDS (Loop / Archive)
   ═══════════════════════════════════════════════════════════════ */
.entry-title a,
.wp-block-post-title a {
  font-family: var(--livdk-font-serif);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.22;
  color: var(--livdk-ink);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.entry-title a:hover,
.wp-block-post-title a:hover {
  color: var(--livdk-red);
  text-decoration: none;
}

.entry-meta,
.wp-block-post-date,
.post-meta {
  font-family: var(--livdk-font-sans);
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--livdk-ink-light);
}

/* Kategorie-Tags */
.cat-links a,
.wp-block-post-terms a,
.category-label {
  font-family: var(--livdk-font-sans);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--livdk-red);
  border-bottom: 1px solid var(--livdk-red);
  padding-bottom: 1.5px;
  text-decoration: none;
}

.cat-links a:hover,
.wp-block-post-terms a:hover {
  text-decoration: none;
  opacity: 0.75;
}

/* ═══════════════════════════════════════════════════════════════
   7. SINGLE POST
   ═══════════════════════════════════════════════════════════════ */
.single-post .entry-header,
.page .entry-header {
  text-align: center;
  padding: 52px 48px 40px;
  max-width: 900px;
  margin: 0 auto;
}

.single-post .entry-content,
.page .entry-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* Erster Absatz als Intro */
.single-post .entry-content > p:first-of-type,
.entry-content .intro-text {
  font-family: var(--livdk-font-serif);
  font-size: 20.5px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.7;
  color: var(--livdk-ink);
  margin-bottom: 32px;
}

/* Trennlinie nach Intro */
.single-post .entry-content > p:first-of-type::after {
  content: '';
  display: block;
  height: 1px;
  background: var(--livdk-border);
  margin-top: 32px;
}

/* Blockquote / Pull-Quote */
.entry-content blockquote,
.wp-block-quote {
  border-left: 3px solid var(--livdk-red);
  border-top: none;
  border-right: none;
  border-bottom: none;
  padding: 4px 0 4px 24px;
  margin: 0 0 32px;
  background: none;
}

.entry-content blockquote p,
.wp-block-quote p {
  font-family: var(--livdk-font-serif);
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  color: var(--livdk-ink);
}

/* Featured Image */
.single-post .post-thumbnail,
.wp-post-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

/* ═══════════════════════════════════════════════════════════════
   8. ARCHIVE / KATEGORIE
   ═══════════════════════════════════════════════════════════════ */
.archive-header,
.page-header {
  padding: 44px 48px 0;
  border-bottom: 1px solid var(--livdk-border);
  margin-bottom: 36px;
}

.archive-title,
.page-title {
  font-size: 36px;
  font-weight: 300;
  letter-spacing: -0.01em;
  padding-bottom: 20px;
}

/* ═══════════════════════════════════════════════════════════════
   9. FORMULARE
   ═══════════════════════════════════════════════════════════════ */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea,
select {
  border: 1px solid var(--livdk-sand-mid);
  border-radius: 0;
  font-family: var(--livdk-font-sans);
  font-size: 13.5px;
  font-weight: 300;
  color: var(--livdk-ink);
  background: var(--livdk-white);
  padding: 11px 14px;
  transition: border-color 0.15s ease;
  width: 100%;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--livdk-ink-mid);
  outline: none;
  box-shadow: none;
}

label {
  font-family: var(--livdk-font-sans);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--livdk-ink-mid);
  display: block;
  margin-bottom: 7px;
}

/* Contact Form 7 */
.wpcf7-form .wpcf7-text,
.wpcf7-form .wpcf7-email,
.wpcf7-form .wpcf7-textarea {
  border: 1px solid var(--livdk-sand-mid);
  border-radius: 0;
}

.wpcf7-submit {
  background: var(--livdk-red) !important;
  color: var(--livdk-white) !important;
  border-radius: 0 !important;
  font-size: 11px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  padding: 13px 32px !important;
}

/* ═══════════════════════════════════════════════════════════════
   10. FOOTER
   ═══════════════════════════════════════════════════════════════ */
.site-footer,
#colophon {
  background: var(--livdk-ink);
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--livdk-font-sans);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.04em;
}

.site-footer a,
#colophon a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.site-footer a:hover,
#colophon a:hover {
  color: var(--livdk-white);
}

.site-footer h3,
.site-footer h4,
#colophon h3,
#colophon h4 {
  font-family: var(--livdk-font-sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 12px;
}

/* ═══════════════════════════════════════════════════════════════
   11. UTILITY
   ═══════════════════════════════════════════════════════════════ */
/* Trennlinie */
hr, .wp-block-separator {
  border: none;
  border-top: 1px solid var(--livdk-border);
  margin: 32px 0;
}

/* Bild-Unterschrift */
figcaption,
.wp-caption-text {
  font-family: var(--livdk-font-sans);
  font-size: 11px;
  font-weight: 300;
  color: var(--livdk-ink-light);
  letter-spacing: 0.04em;
  text-align: center;
  margin-top: 8px;
}

/* Tag Cloud */
.tag-cloud-link {
  font-family: var(--livdk-font-sans);
  font-size: 10px !important;
  font-weight: 400;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--livdk-ink-mid) !important;
  border: 1px solid var(--livdk-border);
  padding: 5px 10px;
  text-decoration: none;
}

.tag-cloud-link:hover {
  border-color: var(--livdk-red);
  color: var(--livdk-red) !important;
}


/* ═══════════════════════════════════════════════════════════════
   HOME.PHP — HERO + POST GRID
   ═══════════════════════════════════════════════════════════════ */

/* ── Hero ────────────────────────────────────────────────────── */
.livdk-home {
  width: 100%;
}

.livdk-hero {
  position: relative;
  height: 520px;
  overflow: hidden;
}

.livdk-hero-bg {
  position: absolute;
  inset: 0;
}

.livdk-hero-img,
.livdk-hero-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.livdk-hero-fallback {
  background: oklch(78% 0.040 76);
}

.livdk-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(14, 11, 7, 0.88) 0%,
    rgba(14, 11, 7, 0.22) 55%,
    transparent 100%
  );
}

.livdk-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 80px 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 1400px;
  margin: 0 auto;
}

.livdk-hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: clamp(32px, 4.5vw, 54px) !important;
  font-weight: 300 !important;
  line-height: 1.1 !important;
  color: #fff !important;
  letter-spacing: -0.02em !important;
  max-width: 680px;
  text-wrap: pretty;
}

.livdk-hero-teaser {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.68);
  max-width: 500px;
}

.livdk-hero-cta {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 1.5px solid oklch(43% 0.175 22);
  padding-bottom: 2.5px;
  text-decoration: none;
  align-self: flex-start;
  margin-top: 4px;
}

/* ── Kategorie-Tag Dunkel (auf Bild) ─────────────────────────── */
.livdk-cat-tag--dark {
  color: rgba(255, 255, 255, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

/* ── Sektion-Heading ─────────────────────────────────────────── */
.livdk-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 36px 80px 22px;
}

.livdk-section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  font-weight: 300;
  color: oklch(18% 0.018 258);
  letter-spacing: -0.01em;
}

.livdk-section-link {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.10em;
  color: oklch(43% 0.175 22);
  border-bottom: 1px solid oklch(43% 0.175 22);
  padding-bottom: 1.5px;
  text-decoration: none;
}

/* ── Post Grid ───────────────────────────────────────────────── */
.livdk-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 0 80px 72px;
}

.livdk-card {
  display: flex;
  flex-direction: column;
}

.livdk-card-img-link {
  display: block;
  overflow: hidden;
}

.livdk-card-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.livdk-card-img-link:hover .livdk-card-img {
  transform: scale(1.03);
}

.livdk-card-body {
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.livdk-cat-tag {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: oklch(43% 0.175 22);
  border-bottom: 1px solid oklch(43% 0.175 22);
  padding-bottom: 1.5px;
  text-decoration: none;
  display: inline;
}

.livdk-card-title {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 21px !important;
  font-weight: 400 !important;
  line-height: 1.22 !important;
  color: oklch(18% 0.018 258) !important;
  letter-spacing: -0.01em !important;
  margin: 0 !important;
}

.livdk-card-title a {
  color: inherit;
  text-decoration: none;
}

.livdk-card-title a:hover {
  color: oklch(43% 0.175 22);
}

.livdk-card-meta {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 300;
  color: oklch(62% 0.015 258);
}

.livdk-card-excerpt {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.6;
  color: oklch(48% 0.018 258);
  margin: 0;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .livdk-post-grid    { padding: 0 40px 56px; }
  .livdk-section-header { padding: 28px 40px 18px; }
  .livdk-hero-content { padding: 0 40px 36px; }
}

@media (max-width: 768px) {
  .livdk-post-grid    { grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 0 24px 48px; }
  .livdk-section-header { padding: 24px 24px 16px; }
  .livdk-hero         { height: 420px; }
  .livdk-hero-content { padding: 0 24px 28px; }
}

@media (max-width: 480px) {
  .livdk-post-grid    { grid-template-columns: 1fr; padding: 0 20px 40px; }
  .livdk-hero         { height: 360px; }
}
