/*
Theme Name: TC Geiselhöring
Theme URI: https://www.tc-geiselhoering.de/
Author: TC Geiselhöring e.V.
Author URI: https://www.tc-geiselhoering.de/
Description: Offizielles Theme des TC Geiselhöring e.V. – Tennisclub seit 1974. Modernes, responsives Design für den Tennisclub.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tcg
Tags: custom-menu, custom-logo, custom-header, featured-images, responsive-layout, one-column, translation-ready
*/

/* ===== CSS Custom Properties ===== */
:root {
  --cyan:         #0284C7;
  --cyan-dark:    #0369A1;
  --navy:         #0F172A;
  --navy-soft:    #1E293B;
  --accent:       #CCFF00;
  --accent-dark:  #7c9711;
  --accent-bg:    #FFFBEB;
  --white:        #ffffff;
  --gray-50:      #F8FAFC;
  --gray-100:     #F1F5F9;
  --gray-200:     #E2E8F0;
  --gray-400:     #94A3B8;
  --gray-600:     #475569;
  --gray-800:     #1E293B;
  --text:         #0F172A;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
  --shadow:       0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:    0 10px 25px rgba(0,0,0,.10), 0 4px 10px rgba(0,0,0,.05);
  --radius:       10px;
  --radius-lg:    16px;
  --font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --max-w:        1140px;
  --nav-h:        68px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}
body.admin-bar { padding-top: 32px; }
@media (max-width: 782px) { body.admin-bar { padding-top: 46px; } }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ===== Utility ===== */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--gray { background: var(--gray-100); }
.section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 8px;
}
.section__subtitle {
  color: var(--gray-600);
  font-size: 1.05rem;
  margin-bottom: 40px;
}
.badge {
  display: inline-block;
  background: rgba(2,132,199,.12);
  color: var(--cyan);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s, transform .15s;
  border: none;
}
.btn:hover { opacity: .9; transform: translateY(-1px); text-decoration: none; }
.btn--primary { background: var(--cyan); color: var(--white); }
.btn--outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn--yellow { background: var(--accent); color: var(--navy); font-weight: 700; }

/* Screen reader text */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: var(--white);
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0,0,0,.6);
  clip: auto !important;
  clip-path: none;
  color: var(--cyan);
  display: block;
  font-size: .875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ===== Navigation ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 1px 0 var(--gray-200);
  height: var(--nav-h);
}
.navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy);
  white-space: nowrap;
  flex-shrink: 0;
}
.navbar__logo-icon {
  width: 40px;
  height: 40px;
  background: var(--cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  overflow: hidden;
}
.navbar__logo-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.navbar__logo:hover { text-decoration: none; }

/* Desktop nav */
.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list > li,
.nav__item { position: relative; height: 100%; display: flex; align-items: center; }
.nav__list > li > a,
.nav__link {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-800);
  white-space: nowrap;
  transition: background .15s, color .15s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__list > li > a:hover,
.nav__link:hover { background: rgba(2,132,199,.08); color: var(--cyan); text-decoration: none; }
.nav__list > .current-menu-item > a,
.nav__list > .current-menu-ancestor > a,
.nav__list > .current-menu-parent > a,
.nav__link--active { color: var(--cyan); font-weight: 700; border-bottom: 2px solid var(--cyan); }
.nav__arrow {
  font-size: .6rem;
  opacity: .6;
  transition: transform .2s;
}
.nav__list > li:hover .nav__arrow { transform: rotate(180deg); }
.nav__list > .menu-item-has-children > a::after {
  content: ' ▼';
  font-size: .6rem;
  opacity: .6;
  display: inline-block;
  transition: transform .2s;
}
.nav__list > .menu-item-has-children:hover > a::after { transform: rotate(180deg); }

/* Dropdown - custom .nav__dropdown class AND WP default .sub-menu */
.nav__dropdown,
.nav__list .sub-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s, visibility .18s, transform .18s;
  z-index: 999;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown,
.nav__list > li:hover .sub-menu,
.nav__list > li:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__dropdown-link,
.nav__list .sub-menu a {
  display: block;
  padding: 9px 16px;
  font-size: .88rem;
  color: var(--gray-800);
  transition: background .12s;
}
.nav__dropdown-link:hover,
.nav__list .sub-menu a:hover { background: rgba(2,132,199,.08); color: var(--cyan); text-decoration: none; }
.nav__dropdown li:first-child a,
.nav__list .sub-menu li:first-child a { border-radius: var(--radius) var(--radius) 0 0; }
.nav__dropdown li:last-child a,
.nav__list .sub-menu li:last-child a { border-radius: 0 0 var(--radius) var(--radius); }

/* Hamburger */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  flex-direction: column;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 3px solid var(--cyan);
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  z-index: 999;
}
.nav__mobile.open { display: block; }
.nav__mobile-link,
.nav__mobile ul li a {
  display: block;
  padding: 12px 24px;
  font-size: .95rem;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-100);
  font-weight: 500;
}
.nav__mobile-link:hover,
.nav__mobile ul li a:hover { background: rgba(2,132,199,.08); color: var(--cyan); text-decoration: none; }
.nav__mobile-sub,
.nav__mobile .sub-menu { padding-left: 16px; background: var(--gray-50); list-style: none; margin: 0; }
.nav__mobile-sub .nav__mobile-link,
.nav__mobile .sub-menu a {
  font-size: .88rem;
  font-weight: 400;
  color: var(--gray-600);
  border-color: var(--gray-200);
}
.nav__mobile-group-label {
  padding: 10px 24px 4px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-400);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15,23,42,.95) 0%, rgba(15,23,42,.80) 55%, rgba(15,23,42,.92) 100%),
    url('https://www.tc-geiselhoering.de/wp-content/uploads/2011/11/cropped-Unbenannt1.jpg') center/cover no-repeat;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero__badge::before { content: '🎾 '; }
.hero__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero__title em {
  font-style: normal;
  color: var(--cyan);
}
.hero__text {
  font-size: 1.1rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 32px;
  max-width: 520px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Stats bar */
.hero__stats {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}
.hero__stat { color: var(--white); }
.hero__stat-number {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--cyan);
}
.hero__stat-label { font-size: .82rem; color: rgba(255,255,255,.7); margin-top: 2px; }

/* ===== Alert / Notice banner ===== */
.alert-bar {
  background: var(--cyan);
  padding: 14px 0;
}
.alert-bar__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.alert-bar__icon { font-size: 1.2rem; flex-shrink: 0; }
.alert-bar__text { flex: 1; font-size: .93rem; font-weight: 500; color: var(--white); }
.alert-bar__text strong { font-weight: 700; }
.alert-bar__link {
  font-size: .88rem;
  font-weight: 700;
  color: var(--navy);
  background: rgba(255,255,255,.2);
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}
.alert-bar__link:hover { text-decoration: none; background: rgba(255,255,255,.3); }

/* ===== Quick links ===== */
.quicklinks {
  padding: 40px 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.quicklinks__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.quicklinks__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 20px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-200);
  transition: border-color .15s, box-shadow .15s, transform .15s;
  color: var(--gray-800);
}
.quicklinks__card:hover {
  border-color: var(--cyan);
  background: rgba(2,132,199,.06);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: var(--cyan);
  text-decoration: none;
}
.quicklinks__icon { font-size: 1.8rem; line-height: 1; }
.quicklinks__label { font-size: .88rem; font-weight: 600; }

/* ===== News ===== */
.news__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-top: 3px solid var(--cyan); }
.news-card--featured { border-color: var(--accent-dark); border-width: 2px; }
.news-card__img { width: 100%; height: 200px; object-fit: cover; }
.news-card__img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,.4);
}
.news-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.news-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
  color: var(--gray-600);
  margin-bottom: 10px;
}
.news-card__date::before { content: '📅 '; }
.news-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 10px;
  line-height: 1.4;
}
.news-card__title a { color: inherit; }
.news-card__title a:hover { color: var(--cyan); text-decoration: none; }
.news-card__excerpt {
  font-size: .9rem;
  color: var(--gray-600);
  line-height: 1.6;
  flex: 1;
}
.news-card__footer { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--gray-100); }
.news-card__readmore {
  font-size: .85rem;
  font-weight: 600;
  color: var(--cyan);
}
.news-card__readmore::after { content: ' →'; }

/* ===== Info Feature Cards ===== */
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.feature-card__icon { font-size: 2rem; margin-bottom: 14px; line-height: 1; }
.feature-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 8px;
}
.feature-card__text { font-size: .9rem; color: var(--gray-600); line-height: 1.6; }
.feature-card__link { display: inline-block; margin-top: 12px; font-size: .85rem; font-weight: 600; color: var(--cyan); }
.feature-card:hover { border-color: var(--cyan); box-shadow: var(--shadow); }

/* ===== Hallensaison Banner ===== */
.halle-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 60%, #020617 100%);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--white);
}
.halle-banner__label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  color: rgba(255,255,255,.6);
  margin-bottom: 6px;
}
.halle-banner__title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 8px;
}
.halle-banner__text { font-size: .95rem; color: rgba(255,255,255,.8); max-width: 480px; }
.halle-banner__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

/* ===== Mannschaften ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.team-card:hover { box-shadow: var(--shadow); border-color: var(--cyan); }
.team-card__icon {
  width: 48px;
  height: 48px;
  background: var(--accent-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.team-card__title { font-size: 1rem; font-weight: 700; color: var(--gray-800); margin-bottom: 4px; }
.team-card__text  { font-size: .88rem; color: var(--gray-600); line-height: 1.5; }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.contact-box__title { font-size: 1.15rem; font-weight: 700; color: var(--gray-800); margin-bottom: 18px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.contact-item__icon {
  width: 36px; height: 36px;
  background: var(--accent-bg);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.contact-item__label { font-size: .8rem; color: var(--gray-400); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.contact-item__value { font-size: .95rem; color: var(--gray-800); margin-top: 2px; font-weight: 500; }

/* Map placeholder */
.map-placeholder {
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-50) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 600;
  text-align: center;
  padding: 24px;
}
.map-placeholder__icon { font-size: 2.5rem; }

/* ===== Footer ===== */
.footer {
  background: var(--navy);
  border-top: 3px solid var(--cyan);
  color: rgba(255,255,255,.7);
  padding: 56px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer__brand { color: var(--white); }
.footer__brand-name { font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.footer__brand-text { font-size: .88rem; line-height: 1.7; color: rgba(255,255,255,.6); }
.footer__col-title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--cyan);
  opacity: .85;
  margin-bottom: 14px;
}
.footer__links { list-style: none; padding: 0; margin: 0; }
.footer__links li { margin-bottom: 8px; }
.footer__links a {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  transition: color .15s;
}
.footer__links a:hover { color: var(--accent); text-decoration: none; }
.footer__bottom {
  border-top: 1px solid rgba(2,132,199,.2);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
}
.footer__bottom-links { display: flex; gap: 20px; }
.footer__bottom-links a { color: rgba(255,255,255,.4); }
.footer__bottom-links a:hover { color: rgba(255,255,255,.75); text-decoration: none; }

/* ===== WordPress Content Styles ===== */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  color: var(--gray-800);
  line-height: 1.3;
  margin-top: 1.5em;
  margin-bottom: .5em;
}
.entry-content h1 { font-size: 2rem; }
.entry-content h2 { font-size: 1.6rem; }
.entry-content h3 { font-size: 1.3rem; }
.entry-content p { margin-bottom: 1em; color: var(--gray-600); }
.entry-content ul,
.entry-content ol { padding-left: 1.5em; margin-bottom: 1em; list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: .4em; color: var(--gray-600); }
.entry-content a { color: var(--cyan); }
.entry-content a:hover { color: var(--cyan-dark); }
.entry-content blockquote {
  border-left: 4px solid var(--cyan);
  padding: 12px 20px;
  margin: 1.5em 0;
  background: var(--gray-50);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--gray-600);
}
.entry-content img { border-radius: var(--radius); margin: 1em 0; }
.entry-content .alignleft { float: left; margin: .5em 1.5em 1em 0; }
.entry-content .alignright { float: right; margin: .5em 0 1em 1.5em; }
.entry-content .aligncenter { margin: 1em auto; display: block; }
.entry-content .wp-caption { max-width: 100%; }
.entry-content .wp-caption-text { font-size: .85rem; color: var(--gray-400); text-align: center; margin-top: 4px; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.entry-content th,
.entry-content td { padding: 10px 14px; border: 1px solid var(--gray-200); text-align: left; font-size: .9rem; }
.entry-content th { background: var(--gray-100); font-weight: 700; color: var(--gray-800); }

/* Post layout */
.post__thumbnail { margin-bottom: 32px; border-radius: var(--radius-lg); overflow: hidden; }
.post__thumbnail img { width: 100%; max-height: 480px; object-fit: cover; }
.post__header { margin-bottom: 32px; }
.post__title { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; color: var(--gray-800); line-height: 1.2; margin-bottom: 12px; }
.post__meta { display: flex; align-items: center; gap: 16px; font-size: .85rem; color: var(--gray-400); flex-wrap: wrap; }
.post__meta .post-categories a { color: var(--cyan); font-weight: 600; }
.post__footer { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--gray-200); }
.post__nav { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.post__tags { margin-bottom: 12px; font-size: .85rem; color: var(--gray-400); }
.post__tags a { color: var(--cyan); }

/* Post grid for archives */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.posts-grid article { transition: transform .2s; }
.posts-grid article:hover { transform: translateY(-3px); }

/* Pagination */
.pagination { margin-top: 48px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1.5px solid var(--gray-200);
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-800);
  transition: all .15s;
}
.pagination .page-numbers:hover { border-color: var(--cyan); color: var(--cyan); text-decoration: none; }
.pagination .page-numbers.current { background: var(--cyan); border-color: var(--cyan); color: var(--white); }

/* 404 */
.page-404 {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}
.page-404__number {
  font-size: 7rem;
  font-weight: 900;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 8px;
}
.page-404__title { font-size: 1.8rem; font-weight: 700; color: var(--gray-800); margin-bottom: 12px; }
.page-404__text { color: var(--gray-600); margin-bottom: 32px; max-width: 480px; }

/* WordPress search form */
.search-form { display: flex; gap: 8px; }
.search-form .search-field {
  flex: 1;
  padding: 10px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: .95rem;
  outline: none;
  transition: border-color .15s;
}
.search-form .search-field:focus { border-color: var(--cyan); }
.search-form .search-submit {
  padding: 10px 20px;
  background: var(--cyan);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
}
.search-form .search-submit:hover { background: var(--cyan-dark); }

/* WordPress comments */
.comments-area { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--gray-200); }
.comments-title { font-size: 1.3rem; font-weight: 700; color: var(--gray-800); margin-bottom: 24px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 20px; background: var(--gray-50); border-radius: var(--radius); margin-bottom: 16px; }
.comment-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.comment-author b { font-weight: 700; color: var(--gray-800); }
.comment-metadata { font-size: .8rem; color: var(--gray-400); }
.comment-content { font-size: .9rem; color: var(--gray-600); }
.comment-reply-link { font-size: .85rem; font-weight: 600; color: var(--cyan); display: inline-block; margin-top: 8px; }
.comment-form label { display: block; font-size: .85rem; font-weight: 600; color: var(--gray-800); margin-bottom: 4px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: .9rem;
  margin-bottom: 16px;
  font-family: var(--font);
}
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--cyan); }
.comment-form textarea { min-height: 120px; resize: vertical; }
.form-submit input[type="submit"] {
  background: var(--cyan);
  color: var(--white);
  border: none;
  padding: 11px 24px;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav__list    { display: none; }
  .nav__toggle  { display: flex; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 48px 0; }
  .hero { min-height: 300px; }
  .halle-banner { padding: 28px 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .hero__stats { gap: 20px; }
  .news__grid { grid-template-columns: 1fr; }
  .features__grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
}
