/*
Theme Name: KundenserviceHilfe Redaktion
Description: Deutsches Kundenservice-Verzeichnis mit dynamischen WordPress-Kategorien und Ratgebern.
Version: 1.8.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: kundenservicehilfe-redaktion
*/

:root {
  --ink: #24332e;
  --pine: #163e32;
  --soft: #53645d;
  --paper: #fbfaf6;
  --white: #fff;
  --line: #dadfd4;
  --sage: #eaf0df;
  --lime: #e5f2ac;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.65 var(--sans); }
a { color: var(--pine); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 3px solid #8c611a; outline-offset: 4px; }
img { max-width: 100%; height: auto; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.035em; }
h1 { margin: 0 0 1rem; font-size: clamp(2.55rem, 6vw, 5rem); }
h2 { margin: 0 0 1.4rem; font-size: clamp(1.85rem, 3.3vw, 2.65rem); }
p { margin: 0 0 1.2rem; }
.shell { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { clip-path: none; width: auto; height: auto; margin: 8px; padding: 8px; z-index: 99999; background: white; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: .85rem; }
.header-inner nav { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.header-inner nav a { padding: .5rem .85rem; border-radius: .45rem; font-size: .92rem; font-weight: 650; text-decoration: none; }
.header-inner nav a:hover, .header-inner nav a[aria-current="page"] { background: var(--sage); }
.brand { display: inline-flex; align-items: center; white-space: nowrap; letter-spacing: -.04em; font-size: 1.28rem; font-weight: 750; text-decoration: none; }
.brand > span:first-child { display: grid; place-items: center; margin-right: .5rem; width: 2rem; height: 2rem; border-radius: 50%; color: var(--lime); background: var(--pine); }
.brand-accent { color: #506849; }
.custom-logo { display: block; max-height: 54px; width: auto; }
.hero { background: var(--pine); color: var(--white); text-align: center; }
.hero-inner { padding-block: clamp(4rem, 9vw, 7.4rem); }
.hero h1 { font-size: clamp(3.1rem, 8vw, 7rem); }
.hero em { color: var(--lime); font-weight: 400; }
.hero p { color: #e0e9e0; max-width: 34rem; margin: 1.65rem auto 2rem; }
.search { display: flex; gap: .5rem; width: min(100%, 40rem); padding: .4rem; margin: 1.25rem 0; border: 1px solid var(--line); border-radius: .7rem; background: var(--white); }
.hero .search { margin-inline: auto; }
.search input { flex: 1; min-width: 0; border: 0; color: var(--ink); background: transparent; padding: .72rem; font: inherit; }
.search button { border: 0; border-radius: .44rem; padding: .7rem 1.12rem; background: var(--lime); color: var(--pine); font: 700 .96rem var(--sans); cursor: pointer; }
.search button:hover { background: #d6e68e; }
.discovery { display: grid; grid-template-columns: minmax(0, 1fr) minmax(215px, 29%); gap: clamp(1.5rem, 5vw, 4rem); padding-block: clamp(3rem, 7vw, 5.7rem); }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1rem; }
.guide-grid.listing { margin-top: 2rem; }
.guide { display: flex; flex-direction: column; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: .75rem; padding: 1.25rem; overflow-wrap: anywhere; }
.guide h3 { font: 400 1.35rem/1.25 var(--serif); margin: .8rem 0 1.25rem; }
.guide h3 a { text-decoration: none; }
.guide h3 a:hover { text-decoration: underline; }
.tag { display: inline-block; padding: .22rem .6rem; border-radius: 1rem; background: var(--sage); color: var(--pine); font-size: .78rem; font-weight: 650; text-decoration: none; }
.guide-link { margin-top: auto; font-size: .86rem; font-weight: 650; }
.topics { align-self: start; padding: 1.4rem; background: var(--sage); border-radius: .75rem; }
.topics h2 { font-size: 1.8rem; margin-bottom: .8rem; }
.topics > a:last-child { display: inline-block; margin-top: 1rem; font-size: .88rem; font-weight: 700; }
.topic { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid #cdd7bf; text-decoration: none; }
.topic:hover { text-decoration: underline; }
.topic span:last-child { white-space: nowrap; color: var(--soft); }
.section-space { padding-block: clamp(3rem, 8vw, 6rem); min-height: 50vh; }
.category-filter label { display: block; font-weight: 650; margin-bottom: .4rem; }
.category-filter input { width: min(100%, 25rem); font: inherit; padding: .65rem .8rem; color: var(--ink); border: 1px solid var(--line); background: white; border-radius: .4rem; }
.alphabet { display: flex; flex-wrap: wrap; gap: .4rem; margin-block: 1.6rem 2.5rem; }
.alphabet a { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .3rem; background: var(--sage); text-decoration: none; font-weight: 650; }
.category-group { padding-block: 1.4rem; border-top: 1px solid var(--line); scroll-margin-top: 3rem; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); gap: 0 1.5rem; }
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 25%); gap: clamp(1.5rem, 5vw, 5rem); padding-block: clamp(2.5rem, 7vw, 5rem); }
.article { min-width: 0; overflow-wrap: anywhere; }
.page .article-wrap { display: block; }
.page .article { max-width: 900px; }
.article h1 { font-size: clamp(2.35rem, 5vw, 4.35rem); }
.article > .tag { margin-bottom: 1.15rem; }
.entry-content h2 { margin-block: 2.4rem 1rem; }
.entry-content h3 { line-height: 1.3; }
.entry-content h2[id] { scroll-margin-top: 3rem; }
.entry-content a { overflow-wrap: anywhere; }
.table-scroll { max-width: 100%; overflow-x: auto; margin: 1rem 0 1.5rem; }
.entry-content table { width: 100%; border-collapse: collapse; background: white; }
.entry-content th, .entry-content td { padding: .65rem .75rem; border: 1px solid var(--line); text-align: start; vertical-align: top; }
.entry-content th { background: var(--sage); }
.site-footer { background: #192d26; color: #e1e9df; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem 3rem; padding-block: 2.6rem; }
.footer-inner a { color: white; }
.footer-inner p { margin: .6rem 0 0; font-size: .9rem; }
.footer-brand { font-size: 1.35rem; font-weight: 750; text-decoration: none; }
.footer-brand span { color: var(--lime); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem clamp(1.5rem, 6vw, 5rem); }
.footer-links > div { display: grid; align-content: start; gap: .55rem; }
.footer-links a { font-size: .92rem; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { padding-block: 1rem; border-top: 1px solid #496054; }
.pagination { margin-top: 2rem; }
.pagination .page-numbers { display: inline-block; padding: .4rem .65rem; }

@media (max-width: 760px) {
  .shell { width: calc(100% - 36px); }
  .header-inner, .footer-inner { flex-direction: column; align-items: flex-start; }
  .discovery, .article-wrap { grid-template-columns: minmax(0, 1fr); }
  .table-scroll table { min-width: 460px; }
}
@media (max-width: 390px) {
  .hero h1 { font-size: 2.65rem; }
  .search button { padding-inline: .55rem; }
  .header-inner nav { gap: .35rem .85rem; }
}

/* Company guides and category archives */
.profile-hero {
  background: var(--sage);
  border-bottom: 1px solid #d5dfc9;
}
.profile-hero .shell { padding-block: clamp(2rem, 5vw, 3.75rem); }
.profile-hero h1 {
  max-width: 900px;
  margin: 0;
  color: var(--pine);
  font: 720 clamp(1.9rem, 4.1vw, 3.35rem)/1.15 var(--sans);
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}
.profile-hero p { margin: 1rem 0 0; color: var(--soft); }
.trail { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .9rem; font-size: .86rem; color: var(--soft); }
.profile-layout, .archive-layout {
  padding-block: clamp(1.6rem, 4vw, 3.25rem) 4rem;
}
.archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 26%);
  gap: clamp(1.25rem, 4vw, 3rem);
}
.profile-content {
  min-width: 0;
  padding: clamp(1rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--white);
  overflow-wrap: anywhere;
  line-height: 1.72;
}
.profile-content .entry-content h2,
.profile-content .entry-content h3 {
  font-family: var(--sans);
  font-weight: 720;
  color: var(--pine);
  letter-spacing: -.025em;
}
.profile-content .entry-content h2 {
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.32rem, 2.6vw, 1.8rem);
  line-height: 1.25;
}
.profile-content .entry-content h3 { font-size: 1.1rem; }
.profile-content .entry-content th { background: var(--sage) !important; }
.profile-content .entry-content tr:nth-child(even) td { background: #f8faf5; }
.archive-layout .topics h2 {
  font: 720 1rem/1.3 var(--sans);
  letter-spacing: -.015em;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: .65rem;
  margin: .65rem 0;
  background: #fafbf7;
  scroll-margin-top: 1.5rem;
}
.faq-item summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem 1rem;
  color: var(--pine);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.15rem; flex: none; }
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] { background: var(--sage); }
.faq-answer { padding: 0 1rem 1rem; }
.faq-answer > :last-child { margin-bottom: 0; }
.archive-list-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1rem; }
.archive-list-heading h2 { margin: 0; font: 720 clamp(1.25rem, 3vw, 1.8rem)/1.2 var(--sans); letter-spacing: -.025em; }
.archive-list-heading span { color: var(--soft); font-size: .88rem; }
.archive-list { display: grid; gap: .75rem; }
.archive-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.6rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: .85rem;
}
.archive-item h3 { margin: 0; font-size: 1.05rem; line-height: 1.35; }
.archive-item h3 a { text-decoration: none; }
.archive-item h3 a:hover { text-decoration: underline; }
.archive-action { flex-shrink: 0; border-radius: .4rem; background: var(--lime); padding: .55rem .75rem; font-size: .84rem; font-weight: 700; text-decoration: none; }
.archive-action:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .archive-layout { grid-template-columns: minmax(0, 1fr); }
  .archive-item { align-items: flex-start; flex-direction: column; }
}

.trail-current { color: var(--pine); font-weight: 650; overflow-wrap: anywhere; }
.profile-layout:has(.article-nav:not([hidden])) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 26%);
  gap: clamp(1.25rem, 4vw, 3rem);
}
.article-nav {
  position: sticky;
  top: 4rem;
  align-self: start;
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
  padding: 1.25rem;
  background: var(--sage);
  border: 1px solid var(--line);
  border-radius: .85rem;
}
.article-nav h2 { font: 720 1rem/1.3 var(--sans); letter-spacing: 0; margin-bottom: .65rem; }
.article-nav a { display: block; padding: .45rem 0; border-top: 1px solid var(--line); font-size: .875rem; }
@media (max-width: 760px) {
  .profile-layout:has(.article-nav:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
  .article-nav { grid-row: 1; position: static; max-height: none; }
}
.hero h1 { max-width: 1050px; margin-inline: auto; font-size: clamp(2.4rem, 6.5vw, 5.45rem); }

/* About, contact and privacy pages */
.information-page {
  padding-block: clamp(1.4rem, 4vw, 3rem) clamp(3rem, 7vw, 5.5rem);
  background: linear-gradient(to bottom, var(--sage) 0 12rem, var(--paper) 12rem);
}
.information-shell { max-width: 1120px; }
.information-shell > .trail { margin-bottom: 1.25rem; }
.information-card {
  padding: clamp(1rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--white);
  box-shadow: 0 12px 30px rgb(22 62 50 / 7%);
  overflow-wrap: anywhere;
}
.information-card :is(.information-title, .entry-content h1) {
  color: var(--pine);
  font: 720 clamp(1.9rem, 5vw, 3.4rem)/1.12 var(--sans);
  letter-spacing: -.04em;
  margin-block: 0 1rem;
}
.information-card .entry-content h2 {
  color: var(--pine);
  font: 700 clamp(1.25rem, 3vw, 1.8rem)/1.25 var(--sans);
  letter-spacing: -.025em;
}
.information-card .entry-content h3 { color: var(--pine); }
.information-page--kontakt .elementor-widget-form {
  padding: clamp(.8rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: #f6f8f1;
}
.information-page--kontakt .elementor-field-group :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), textarea, select) {
  border: 1px solid #b9c7b3;
  border-radius: .45rem;
  background: var(--white);
  color: var(--ink);
}
.information-page--kontakt .elementor-form button[type="submit"] {
  border-radius: .45rem;
  background: var(--pine);
  color: var(--white);
}
.information-page--datenschutzrichtlinie .information-shell { max-width: 920px; }
.information-page--datenschutzrichtlinie .entry-content { line-height: 1.8; }
.information-page--datenschutzrichtlinie .entry-content h2 {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.information-card .entry-content,
.information-card .entry-content :where(section, .elementor-element) {
  background-image: none !important;
}
.information-card .entry-content :is(
  img, picture, figure:has(img), .wp-block-image, .wp-block-gallery,
  .elementor-widget-image, .elementor-widget-image-box .elementor-image-box-img,
  .elementor-widget-image-carousel, .elementor-background-overlay, .elementor-motion-effects-layer
) {
  display: none !important;
}
.information-card .entry-content :is(.elementor-column, .e-con):has(img):not(:has(h1, h2, h3, h4, p, form, button, ul, ol, table, .elementor-widget-text-editor)) {
  display: none !important;
}
.information-page--uber-uns .information-shell,
.information-page--kontakt .information-shell { max-width: 980px; }


.ksh-logo-link { display: inline-block; width: min(100%, 264px); vertical-align: middle; }
.ksh-logo-frame { display: block; position: relative; overflow: hidden; aspect-ratio: 2172 / 350; }
.ksh-logo-frame img { display: block; position: absolute; top: -53%; left: 0; width: 100%; height: auto; }
.site-footer .ksh-logo-link { box-sizing: border-box; width: min(100%, 252px); padding: .5rem .65rem; border-radius: .45rem; background: var(--white); }
