/*
Theme Name:   Kadence Child (GerneReise)
Theme URI:    https://www.gernereise.de/
Description:  Child Theme für Kadence (Relaunch gernereise.de) – Farbwelt, Startseiten-Grid & Typografie (Sail & Oxygen)
Author:       GerneReise
Author URI:   https://www.gernereise.de/
Template:     kadence
Version:      1.4.0
Text Domain:  kadence-child
*/

/* ==========================================================================
   1. Farbvariablen & Kadence Global Palette Override
   ========================================================================== */
:root {
  --gr-antikweiss: #FAF0E6;   /* Hintergrund */
  --gr-kupfer:     #486360;   /* Überschriften & Rahmen */
  --gr-leinen:     #D2B48C;   /* Button-Inneres, ungerahmte Frames, Overlays */
  --gr-aschgrau:   #555555;   /* Fließtext */
  --gr-rot:        #CD5C5C;   /* Seltene Akzentfarbe */

  /* Kadence CSS-Variablen direkt überschreiben */
  --global-palette1: #CD5C5C; /* Accent / Hover */
  --global-palette2: #486360; /* Accent Alt / Patina Green */
  --global-palette3: #486360; /* Strongest Text (Überschriften) */
  --global-palette4: #555555; /* Strong Text (Fließtext) */
  --global-palette5: #555555; /* Medium Text */
  --global-palette6: #486360; /* Subtle Text / Rahmen */
  --global-palette7: #D2B48C; /* Subtle Background (Frames / Overlays) */
  --global-palette8: #FAF0E6; /* Lighter Background (Seitenhintergrund) */
  --global-palette9: #FAF0E6; /* Base Background */

  --global-body-font-family: 'Oxygen', -apple-system, BlinkMacSystemFont, sans-serif;
  --global-heading-font-family: 'Sail', cursive;
}

/* ==========================================================================
   2. Grundlayout & Typografie (Oxygen & Sail)
   ========================================================================== */
html,
body {
  background-color: var(--gr-antikweiss) !important;
  color: var(--gr-aschgrau);
  font-family: 'Oxygen', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.site,
.content-bg,
#inner-wrap {
  background-color: var(--gr-antikweiss);
}

p,
li,
td,
th,
blockquote,
input,
textarea,
select,
label,
.entry-content,
.widget-area {
  font-family: 'Oxygen', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gr-aschgrau);
}

h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6,
.entry-title,
.site-title {
  font-family: 'Sail', cursive !important;
  color: var(--gr-kupfer) !important;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

/* ==========================================================================
   3. Links & Seltene Akzentfarbe (#CD5C5C)
   ========================================================================== */
a {
  color: var(--gr-kupfer);
  text-decoration-color: var(--gr-leinen);
  text-underline-offset: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--gr-rot);
  text-decoration-color: var(--gr-rot);
}

/* Seltene Akzent-Highlights (Badges, Kategorien, Trenn-Akzente) */
.gr-accent-badge,
.entry-taxonomies a,
.cat-links a {
  display: inline-block;
  color: var(--gr-rot) !important;
  font-family: 'Oxygen', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.gr-accent-divider {
  width: 64px;
  height: 2px;
  background-color: var(--gr-rot);
  border: none;
  margin: 1.25rem 0;
}

/* ==========================================================================
   4. Buttons (Inneres in Leinenbeige #D2B48C, Rahmen in Patina #486360)
   ========================================================================== */
.button,
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.wp-block-button__link,
.kb-button,
a.kadence-button {
  background-color: var(--gr-leinen) !important;
  color: var(--gr-kupfer) !important;
  border: 1.5px solid var(--gr-kupfer) !important;
  font-family: 'Oxygen', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.75rem 1.6rem;
  border-radius: 2px;
  text-decoration: none !important;
  transition: all 0.25s ease;
}

.button:hover,
button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover,
.kb-button:hover,
a.kadence-button:hover {
  background-color: var(--gr-kupfer) !important;
  color: var(--gr-antikweiss) !important;
  border-color: var(--gr-kupfer) !important;
}

/* Optionaler CTA-Button mit seltenem Indischrot-Akzent */
.gr-btn-accent .wp-block-button__link,
a.gr-btn-accent {
  background-color: var(--gr-leinen) !important;
  color: var(--gr-aschgrau) !important;
  border: 2px solid var(--gr-rot) !important;
}

.gr-btn-accent .wp-block-button__link:hover,
a.gr-btn-accent:hover {
  background-color: var(--gr-rot) !important;
  color: var(--gr-antikweiss) !important;
  border-color: var(--gr-rot) !important;
}

/* ==========================================================================
   5. Gerahmte Elemente vs. Ungerahmte Frames & Overlays
   ========================================================================== */
.gr-framed-box,
.wp-block-quote,
blockquote,
table {
  border: 1.5px solid var(--gr-kupfer);
  background-color: var(--gr-antikweiss);
}

blockquote,
.wp-block-quote {
  border-left: 4px solid var(--gr-rot);
  padding: 1.25rem 1.5rem;
  font-style: italic;
}

hr,
.wp-block-separator {
  border-color: var(--gr-kupfer);
  opacity: 0.45;
}

.gr-unframed-frame,
.gr-affiliate-box,
.entry-content .wp-block-group.has-background {
  background-color: var(--gr-leinen) !important;
  border: none !important;
  color: var(--gr-aschgrau);
  padding: 1.75rem;
  border-radius: 2px;
}

.gr-unframed-frame h2,
.gr-unframed-frame h3,
.gr-unframed-frame h4,
.gr-affiliate-box h3,
.gr-affiliate-box h4 {
  color: var(--gr-kupfer) !important;
}

.gr-overlay,
.wp-block-cover .wp-block-cover__background {
  background-color: var(--gr-leinen) !important;
  opacity: 0.82;
}

/* Header & Footer Integration */
.site-header,
.site-top-header-wrap,
.site-main-header-wrap {
  background-color: var(--gr-antikweiss);
  border-bottom: 1px solid var(--gr-kupfer);
}

.main-navigation a {
  font-family: 'Oxygen', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gr-kupfer);
  font-weight: 700;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--gr-rot);
}

.site-footer {
  background-color: var(--gr-antikweiss);
  border-top: 1.5px solid var(--gr-kupfer);
  color: var(--gr-aschgrau);
}

/* ==========================================================================
   6. Startseiten-Styling: Kategorie-Kacheln & 5 aktuellste Beiträge
   ========================================================================== */
.gr-hero-cover {
  border-bottom: 2px solid var(--gr-kupfer);
}

.gr-hero-cover h1 {
  color: var(--gr-kupfer) !important;
  background-color: rgba(250, 240, 230, 0.88);
  padding: 0.6rem 1.2rem;
  display: inline-block;
}

.gr-hero-cover p {
  color: var(--gr-aschgrau) !important;
  background-color: rgba(250, 240, 230, 0.88);
  padding: 0.6rem 1.2rem;
  max-width: 720px;
  margin: 0.75rem auto 1.25rem auto;
}

.gr-category-grid {
  gap: 1.75rem;
  margin-bottom: 1.75rem;
}

.gr-category-tile {
  background-color: var(--gr-leinen);
  padding: 1.25rem;
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.gr-category-tile:hover {
  transform: translateY(-3px);
}

.gr-category-tile .wp-block-image {
  margin-bottom: 1rem;
  border: 1.5px solid var(--gr-kupfer);
  overflow: hidden;
  min-height: 160px;
  background-color: var(--gr-antikweiss);
}

.gr-category-tile img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  height: auto;
  display: block;
}

.gr-category-tile h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.75rem;
}

.gr-category-tile h3 a {
  color: var(--gr-kupfer) !important;
  text-decoration: none;
}

.gr-category-tile h3 a:hover {
  color: var(--gr-rot) !important;
}

.gr-category-tile p {
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.gr-latest-posts-list {
  list-style: none !important;
  padding-left: 0 !important;
  margin-top: 1.5rem;
}

.gr-latest-posts-list li {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--gr-kupfer);
}

.gr-latest-posts-list li:last-child {
  border-bottom: none;
}

.gr-latest-posts-list .wp-block-latest-posts__featured-image {
  flex-shrink: 0;
  margin: 0 !important;
  border: 1px solid var(--gr-kupfer);
}

.gr-latest-posts-list .wp-block-latest-posts__featured-image img {
  width: 110px !important;
  height: 74px !important;
  object-fit: cover;
  display: block;
}

.gr-latest-posts-list .wp-block-latest-posts__post-title {
  font-family: 'Sail', cursive;
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--gr-kupfer);
  text-decoration: none;
}

.gr-latest-posts-list .wp-block-latest-posts__post-title:hover {
  color: var(--gr-rot);
}
