/*
Theme Name: Katholisch in Haunstetten – Licht
Theme URI: https://katholisch-in-haunstetten.de/
Author: Pfarreiengemeinschaft St. Albert – St. Georg
Description: Ein helles, großzügiges klassisches WordPress-Theme für die Pfarreiengemeinschaft Augsburg-Haunstetten.
Version: 2.2.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: kih-licht
*/

:root {
  --kih-white: #fff;
  --kih-paper: #faf9f6;
  --kih-sand: #f1ece3;
  --kih-ink: #18372f;
  --kih-green: #1d493d;
  --kih-green-soft: #e8f0ec;
  --kih-gold: #b58a3b;
  --kih-red: #9b160b;
  --kih-stone: #625f58;
  --kih-line: #dedbd4;
  --kih-shadow: 0 18px 50px rgba(24,55,47,.08);
  --kih-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --kih-sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --kih-content: 760px;
  --kih-wide: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--kih-white);
  color: var(--kih-ink);
  font-family: var(--kih-sans);
  font-size: 18px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--kih-green); text-underline-offset: .18em; }
a:hover { color: var(--kih-red); }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--kih-gold); outline-offset: 4px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 9999; top: 12px; left: 12px; width: auto; height: auto; padding: 10px 16px; margin: 0; clip: auto; background: #fff; color: #000; }

.kih-shell { width: min(var(--kih-wide), calc(100% - 48px)); margin-inline: auto; }
.kih-narrow { width: min(var(--kih-content), calc(100% - 48px)); margin-inline: auto; }
.kih-kicker { margin: 0 0 10px; color: var(--kih-red); font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, h4 { margin: 0 0 .55em; color: var(--kih-ink); font-family: var(--kih-serif); font-weight: 400; line-height: 1.08; text-wrap: balance; }
h1, h2, h3, h4,
h1 strong, h2 strong, h3 strong, h4 strong,
h1 b, h2 b, h3 b, h4 b,
.kih-brand-name, .kih-brand-name strong,
.kih-footer-brand strong,
.kih-entry blockquote, .kih-entry blockquote strong {
  font-weight: 400 !important;
}
h1 { font-size: clamp(2.7rem, 7vw, 5.5rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4.3vw, 3.7rem); letter-spacing: -.025em; }
h3 { font-size: clamp(1.45rem, 2.5vw, 2rem); }
p { margin: 0 0 1.25em; }

.kih-topbar { background: var(--kih-green); color: #fff; font-size: .82rem; }
.kih-topbar-inner { display: flex; justify-content: flex-end; gap: 24px; min-height: 42px; align-items: center; }
.kih-topbar a { color: #fff; text-decoration: none; }
.kih-topbar a:hover { color: #f3d79c; }
.kih-site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--kih-line); background: rgba(255,255,255,.97); }
.kih-header-main { display: flex; align-items: center; justify-content: space-between; gap: 42px; min-height: 124px; }
.kih-brand { display: flex; min-width: 0; align-items: center; gap: 20px; color: var(--kih-ink); text-decoration: none; }
.kih-brand > span { min-width: 0; }
.kih-brand img { width: 106px; max-height: 82px; object-fit: contain; }
.kih-brand-name { display: block; font-family: var(--kih-serif); font-size: clamp(1.5rem, 2.4vw, 2.15rem); font-weight: 400; line-height: 1; }
.kih-brand-sub { display: block; margin-top: 7px; color: var(--kih-stone); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.kih-menu-toggle { display: none; border: 1px solid var(--kih-line); border-radius: 999px; background: #fff; color: var(--kih-ink); padding: 9px 16px; font-weight: 700; }
.kih-nav-row { border-top: 1px solid var(--kih-line); }
.kih-nav { min-width: 0; }
.kih-nav ul { margin: 0; padding: 0; list-style: none; }
.kih-nav > ul { display: flex; flex-wrap: nowrap; align-items: stretch; justify-content: space-between; gap: 12px 28px; min-height: 58px; }
.kih-nav li { position: relative; }
.kih-nav > ul > li { display: flex; align-items: stretch; }
.kih-nav a { display: flex; align-items: center; padding: 11px 0 8px; border-bottom: 2px solid transparent; color: var(--kih-ink); font-size: .91rem; font-weight: 650; line-height: 1.2; text-decoration: none; }
.kih-nav a:hover, .kih-nav .current-menu-item > a, .kih-nav .current_page_item > a { border-color: var(--kih-red); color: var(--kih-red); }
.kih-nav .menu-item-has-children > a { padding-right: 18px; }
.kih-nav .menu-item-has-children > a::after { content: ""; position: absolute; top: 50%; right: 1px; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-70%) rotate(45deg); }
.kih-nav .sub-menu { position: absolute; z-index: 50; top: calc(100% + 8px); left: -22px; width: max-content; min-width: 270px; max-width: min(360px, calc(100vw - 48px)); padding: 12px 20px; border: 1px solid var(--kih-line); background: #fff; box-shadow: var(--kih-shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
.kih-nav .sub-menu::before { content: ""; position: absolute; right: 0; bottom: 100%; left: 0; height: 10px; }
.kih-nav .sub-menu a { display: block; padding: 11px 0; white-space: normal; }
.kih-nav li:hover > .sub-menu, .kih-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.kih-nav > ul > li:last-child > .sub-menu, .kih-nav > ul > li:nth-last-child(2) > .sub-menu { right: 0; left: auto; }
.kih-nav .sub-menu .sub-menu { top: -13px; left: calc(100% + 20px); }
.kih-nav .sub-menu .menu-item-has-children > a::after { transform: translateY(-50%) rotate(-45deg); }

.kih-hero { position: relative; overflow: hidden; padding: clamp(80px, 11vw, 150px) 0 clamp(86px, 12vw, 165px); background: #fff; }
.kih-hero::after { content: ""; position: absolute; right: max(2vw, calc((100vw - var(--kih-wide))/2)); bottom: -24px; width: min(42vw, 510px); aspect-ratio: 612/457; background: url("assets/logo-silhouette.svg") center/contain no-repeat; opacity: .055; pointer-events: none; }
.kih-hero-copy { position: relative; z-index: 1; max-width: 820px; }
.kih-hero h1 { max-width: 780px; }
.kih-lead { max-width: 720px; color: var(--kih-stone); font-size: clamp(1.15rem, 2vw, 1.38rem); line-height: 1.62; }
.kih-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.kih-button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 23px; border: 1px solid var(--kih-green); border-radius: 999px; background: var(--kih-green); color: #fff; font-weight: 700; text-decoration: none; transition: transform .18s ease, background .18s ease; }
.kih-button:hover { transform: translateY(-2px); background: var(--kih-red); border-color: var(--kih-red); color: #fff; }
.kih-button-secondary { background: #fff; color: var(--kih-green); }

.kih-quicklinks { border-block: 1px solid var(--kih-line); background: var(--kih-paper); }
.kih-quicklinks-inner { display: grid; grid-template-columns: repeat(5, 1fr); }
.kih-quicklinks a { padding: 22px 14px; border-right: 1px solid var(--kih-line); color: var(--kih-ink); font-size: .9rem; font-weight: 700; text-align: center; text-decoration: none; }
.kih-quicklinks a:first-child { border-left: 1px solid var(--kih-line); }
.kih-quicklinks a:hover { background: #fff; color: var(--kih-red); }

.kih-section { padding: clamp(80px, 10vw, 140px) 0; }
.kih-section-soft { background: var(--kih-paper); }
.kih-section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 52px; }
.kih-section-head > div { max-width: 760px; }
.kih-text-link { font-weight: 700; white-space: nowrap; }
.kih-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.kih-card { overflow: hidden; border: 1px solid var(--kih-line); border-radius: 4px; background: #fff; box-shadow: var(--kih-shadow); }
.kih-card-image { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--kih-green-soft); }
.kih-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.kih-card:hover .kih-card-image img { transform: scale(1.025); }
.kih-card-body { padding: 28px; }
.kih-meta { margin-bottom: 8px; color: var(--kih-red); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.kih-card h3 a { color: inherit; text-decoration: none; }
.kih-card p { color: var(--kih-stone); font-size: .96rem; }
.kih-empty { padding: 34px; border: 1px solid var(--kih-line); background: #fff; }

.kih-service-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: clamp(40px, 8vw, 100px); align-items: start; }
.kih-panel { padding: clamp(28px, 5vw, 54px); border-top: 4px solid var(--kih-gold); background: #fff; box-shadow: var(--kih-shadow); }
.kih-widget + .kih-widget { margin-top: 34px; }
.kih-widget ul { padding-left: 1.1em; }

.kih-page-head { padding: clamp(72px, 9vw, 120px) 0 54px; border-bottom: 1px solid var(--kih-line); background: linear-gradient(180deg,#fff,var(--kih-paper)); }
.kih-page-head h1 { font-size: clamp(2.7rem, 6vw, 4.8rem); }
.kih-breadcrumbs { margin-bottom: 18px; color: var(--kih-stone); font-size: .82rem; }
.kih-breadcrumbs a { color: inherit; }
.kih-content-wrap { padding: clamp(64px, 9vw, 120px) 0; }
.kih-entry { width: min(var(--kih-content), 100%); }
.kih-entry > *:first-child { margin-top: 0; }
.kih-entry h2, .kih-entry h3 { margin-top: 1.5em; }
.kih-entry ul, .kih-entry ol { margin-bottom: 1.5em; }
.kih-entry blockquote { margin: 2.2em 0; padding: 10px 0 10px 30px; border-left: 4px solid var(--kih-gold); color: var(--kih-stone); font-family: var(--kih-serif); font-size: 1.35rem; }
.kih-entry .alignwide { width: min(var(--kih-wide), calc(100vw - 48px)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.kih-entry .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.wp-block-button__link { border-radius: 999px; background: var(--kih-green); }
.wp-block-file { padding: 18px 20px; border: 1px solid var(--kih-line); background: var(--kih-paper); }
.kih-post-nav { display: flex; justify-content: space-between; gap: 30px; margin-top: 60px; padding-top: 30px; border-top: 1px solid var(--kih-line); }

.kih-archive-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.kih-pagination { margin-top: 48px; }
.kih-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.kih-pagination .page-numbers { min-width: 42px; padding: 8px 12px; border: 1px solid var(--kih-line); text-align: center; text-decoration: none; }
.kih-pagination .current { background: var(--kih-green); color: #fff; }
.kih-search-form { display: flex; max-width: 650px; gap: 10px; }
.kih-search-form input[type="search"] { flex: 1; min-width: 0; padding: 13px 16px; border: 1px solid var(--kih-line); }
.kih-search-form button { border: 0; background: var(--kih-green); color: #fff; padding: 12px 20px; font-weight: 700; }

.kih-footer { padding: 76px 0 24px; background: var(--kih-ink); color: #fff; }
.kih-footer-grid { display: grid; grid-template-columns: 1.5fr .8fr .8fr; gap: 60px; }
.kih-footer-brand { display: flex; min-width: 0; align-items: center; gap: 18px; margin-bottom: 24px; }
.kih-footer-brand img { width: 98px; max-height: 72px; object-fit: contain; }
.kih-footer-brand strong { min-width: 0; overflow-wrap: anywhere; font-family: var(--kih-serif); font-size: 1.35rem; font-weight: 400; line-height: 1.15; }
.kih-footer h2 { color: #fff; font-family: var(--kih-sans); font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; }
.kih-footer a { color: #fff; }
.kih-footer a:hover { color: #f3d79c; }
.kih-footer ul { margin: 0; padding: 0; list-style: none; }
.kih-footer li { margin: 9px 0; }
.kih-footer-address { color: #d9dfdc; font-size: .9rem; }
.kih-footer-bottom { margin-top: 60px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); color: #bfcac6; font-size: .78rem; }

@media (max-width: 1180px) {
  .kih-header-main { min-height: 108px; }
  .kih-brand img { width: 82px; }
  .kih-menu-toggle { display: inline-flex; }
  .kih-nav-row { border-top: 0; }
  .kih-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 20px 24px 28px; border-bottom: 1px solid var(--kih-line); background: #fff; box-shadow: var(--kih-shadow); }
  .kih-nav.is-open { display: block; }
  .kih-nav > ul { display: block; min-height: 0; }
  .kih-nav > ul > li { display: block; }
  .kih-nav a { padding: 13px 0; }
  .kih-nav .menu-item-has-children > a { padding-right: 24px; }
  .kih-nav .menu-item-has-children > a::after, .kih-nav .sub-menu .menu-item-has-children > a::after { transform: translateY(-70%) rotate(45deg); }
  .kih-nav .sub-menu { position: static; width: auto; min-width: 0; max-width: none; margin: 0 0 5px 16px; padding: 0 0 0 18px; border: 0; border-left: 1px solid var(--kih-line); background: transparent; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; }
  .kih-nav .sub-menu::before { display: none; }
  .kih-nav .sub-menu a { padding: 10px 0; font-size: .87rem; }
  .kih-card-grid, .kih-archive-grid { grid-template-columns: repeat(2,1fr); }
  .kih-quicklinks-inner { grid-template-columns: repeat(2,1fr); }
  .kih-quicklinks a { border-bottom: 1px solid var(--kih-line); }
  .kih-service-grid { grid-template-columns: 1fr; }
  .kih-footer-grid { grid-template-columns: 1fr 1fr; }
  .kih-footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .kih-shell, .kih-narrow { width: min(calc(100% - 32px), var(--kih-wide)); }
  .kih-topbar-inner { justify-content: center; min-height: 38px; }
  .kih-topbar .kih-topbar-mail { display: none; }
  .kih-header-main { gap: 14px; min-height: 96px; }
  .kih-brand { flex: 1 1 auto; gap: 10px; }
  .kih-brand img { flex: 0 0 auto; width: 56px; }
  .kih-brand-name { font-size: 1.06rem; }
  .kih-brand-sub { max-width: 170px; font-size: .52rem; }
  .kih-menu-toggle { flex: 0 0 auto; padding: 8px 11px; font-size: .8rem; }
  .kih-hero { padding-block: 70px 90px; }
  .kih-hero::after { width: 70vw; right: -15vw; }
  .kih-actions { align-items: stretch; flex-direction: column; }
  .kih-button { width: 100%; }
  .kih-quicklinks-inner { grid-template-columns: 1fr; }
  .kih-quicklinks a, .kih-quicklinks a:first-child { border-left: 0; border-right: 0; }
  .kih-section-head { align-items: start; flex-direction: column; }
  .kih-card-grid, .kih-archive-grid { grid-template-columns: 1fr; }
  .kih-footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .kih-footer-grid > :first-child { grid-column: auto; }
  .kih-post-nav { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media print {
  .kih-topbar, .kih-site-header, .kih-footer, .kih-actions, .kih-quicklinks { display: none !important; }
  body { color: #000; font-size: 12pt; }
  .kih-page-head, .kih-content-wrap, .kih-section { padding: 20px 0; }
}
