/*
Theme Name: Eike See – Bürgernah
Theme URI: https://eike-see.de/
Author: Eike See
Description: Ein modernes, seriöses und bürgernahes WordPress-Theme für eike-see.de.
Version: 1.4.1
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: eike-see-buergernah
*/

:root {
  --es-red: #c72b36;
  --es-red-dark: #9e1f29;
  --es-ink: #172231;
  --es-navy: #26384b;
  --es-muted: #66717e;
  --es-line: #e2e4e7;
  --es-cream: #f5f2ee;
  --es-soft: #f8f9fa;
  --es-white: #fff;
  --es-radius: 18px;
  --es-shadow: 0 16px 44px rgba(23, 34, 49, .10);
  --es-width: 1180px;
}

* { box-sizing: border-box; border-radius: 0 !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--es-ink);
  background: var(--es-white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--es-red-dark); text-decoration-thickness: .08em; text-underline-offset: .15em; }
a:hover { color: var(--es-red); }
img { max-width: 100%; height: auto; }
.site-wrap { overflow: hidden; }
.container { width: min(calc(100% - 40px), var(--es-width)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 820px); margin-inline: auto; }

.skip-link {
  position: fixed; left: 16px; top: -100px; z-index: 9999;
  padding: 10px 16px; background: var(--es-ink); color: #fff;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: relative; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(23,34,49,.08);
  backdrop-filter: blur(14px);
}
.header-inner {
  min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 30px;
}
.brand { display: inline-flex; align-items: center; color: var(--es-ink); text-decoration: none; }
.brand-name { display: block; font-size: 1.18rem; font-weight: 800; line-height: 1.1; }
.brand-claim { display: block; margin-top: 3px; color: var(--es-muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

.desktop-nav ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.desktop-nav a {
  display: block; padding: 12px 13px; border-radius: 9px; color: var(--es-ink);
  text-decoration: none; font-size: .9rem; font-weight: 650;
}
.desktop-nav a:hover, .desktop-nav .current-menu-item > a, .desktop-nav .current_page_item > a {
  color: var(--es-red-dark); background: rgba(199,43,54,.07);
}
.mobile-nav { display: none; }
.mobile-nav summary { cursor: pointer; font-weight: 750; color: var(--es-ink); }
.mobile-nav ul { list-style: none; margin: 15px 0 0; padding: 15px; background: #fff; border-radius: 14px; box-shadow: var(--es-shadow); }
.mobile-nav li + li { border-top: 1px solid var(--es-line); }
.mobile-nav a { display: block; padding: 9px; color: var(--es-ink); text-decoration: none; }

.eyebrow {
  margin: 0 0 16px; color: var(--es-red-dark); font-size: .76rem;
  font-weight: 850; letter-spacing: .13em; text-transform: uppercase;
}
h1, h2, h3, h4 { margin: 0 0 .55em; color: var(--es-ink); line-height: 1.13; letter-spacing: -.035em; }
h1 { font-size: clamp(2.6rem, 6vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.65rem); }
p { margin: 0 0 1.25em; }

.hero {
  position: relative; display: flex; min-height: clamp(610px, 76vh, 820px); align-items: center;
  padding: clamp(90px, 12vw, 155px) 0;
  background-image: linear-gradient(90deg, rgba(13,24,37,.88) 0%, rgba(13,24,37,.72) 38%, rgba(13,24,37,.20) 70%, rgba(13,24,37,.10) 100%), var(--es-hero-image, url('/media/seeklein.jpg'));
  background-size: cover; background-position: center 36%;
}
.hero::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 8px; background: var(--es-red);
}
.hero::after { display: none; }
.hero-grid { position: relative; display: block; }
.hero-grid > div:first-child { max-width: 760px; }
.hero .eyebrow { color: #fff; }
.hero h1 { color: #fff; text-shadow: 0 3px 24px rgba(0,0,0,.18); }
.hero h1 span { display: block; color: var(--es-red); }
.hero-lead { max-width: 680px; color: rgba(255,255,255,.90); font-size: clamp(1.08rem, 1.6vw, 1.3rem); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 11px 22px;
  border: 2px solid var(--es-red); border-radius: 999px; background: var(--es-red); color: #fff;
  text-decoration: none; font-weight: 750; box-shadow: 0 9px 24px rgba(199,43,54,.20);
  transition: transform .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); background: var(--es-red-dark); color: #fff; }
.button-secondary { background: transparent; color: var(--es-red-dark); box-shadow: none; }
.button-secondary:hover { background: rgba(199,43,54,.08); color: var(--es-red-dark); }
.hero-portrait { display: none; }
.hero-portrait::before {
  content: ""; position: absolute; inset: 20px -20px -20px 20px; border-radius: 32px;
  background: var(--es-red); opacity: .13;
}
.hero-portrait img {
  position: relative; display: block; width: 100%; max-height: 570px; object-fit: cover; object-position: center top;
  border-radius: 32px; box-shadow: var(--es-shadow);
}
.hero-badge {
  position: absolute; left: -38px; bottom: 34px; padding: 14px 18px; border-radius: 14px;
  background: #fff; color: var(--es-ink); box-shadow: var(--es-shadow); font-size: .83rem; font-weight: 750;
}
.hero-badge::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 9px; border-radius: 50%; background: var(--es-red); }

.section { padding: clamp(70px, 9vw, 118px) 0; }
.section-soft { background: var(--es-soft); }
.section-cream { background: var(--es-cream); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 38px; }
.section-heading p { max-width: 550px; margin: 0; color: var(--es-muted); }

.welcome-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(40px, 7vw, 90px); align-items: start; }
.welcome-card {
  position: sticky; top: 30px; padding: 32px; border-radius: var(--es-radius);
  background: var(--es-navy); color: #fff; box-shadow: var(--es-shadow);
}
.welcome-card h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.welcome-card p { color: rgba(255,255,255,.76); }
.welcome-card .red-line { width: 54px; height: 5px; margin-bottom: 24px; border-radius: 99px; background: var(--es-red); }
.prose { color: #354250; }
.prose > *:first-child { margin-top: 0; }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose img { border-radius: 14px; }
.prose blockquote { margin: 2em 0; padding: 5px 0 5px 24px; border-left: 5px solid var(--es-red); font-size: 1.18rem; }

/* Übernommene CMS-Spalten und WordPress-Galerien */
.page-id-7 .prose > .row { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.page-id-7 .prose > .row > .col-sm-8 { flex: 1 1 calc(66.666% - 11px); min-width: 0; }
.page-id-7 .prose > .row > .col-sm-4 { flex: 1 1 calc(33.333% - 15px); min-width: 0; }
.page-id-7 .prose > .row > .col-sm-4:has(> p:only-child) { display: none; }
.page-id-7 .prose > .row:has(> .col-sm-4:first-child) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-block: 18px; }
.page-id-7 .prose > .row:has(> .col-sm-4:first-child) > .col-sm-4 { aspect-ratio: 4 / 3; overflow: hidden; }
.page-id-7 .prose > .row:has(> .col-sm-4:first-child) img { width: 100% !important; height: 100%; object-fit: cover; transition: transform .35s ease; }
.page-id-7 .prose > .row:has(> .col-sm-4:first-child) > .col-sm-4:hover img { transform: scale(1.035); }
.prose .wp-block-gallery { gap: 18px; }
.prose .wp-block-gallery figure { overflow: hidden; aspect-ratio: 4 / 3; }
.prose .wp-block-gallery img { width: 100% !important; height: 100% !important; object-fit: cover; }

.contact-form-shell { margin-top: 42px; padding: clamp(24px, 5vw, 42px); border-top: 6px solid var(--es-red); background: var(--es-soft); }
.contact-form-shell h2 { margin-bottom: .3em; font-size: clamp(1.75rem, 3vw, 2.45rem); }
.contact-form-intro { color: var(--es-muted); }
.contact-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contact-field { display: flex; flex-direction: column; gap: 7px; margin: 0; }
.contact-field-full { grid-column: 1 / -1; }
.contact-field label, .contact-captcha-label { color: var(--es-ink); font-size: .9rem; font-weight: 750; }
.contact-field input, .contact-field textarea, .contact-captcha input {
  width: 100%; border: 1px solid #bbc1c8; background: #fff; color: var(--es-ink);
  font: inherit; font-size: 1rem; line-height: 1.4; padding: 12px 14px;
}
.contact-field textarea { min-height: 190px; resize: vertical; }
.contact-field input:focus, .contact-field textarea:focus, .contact-captcha input:focus { outline: 3px solid rgba(199,43,54,.2); border-color: var(--es-red); }
.contact-captcha { display: grid; grid-template-columns: 1fr 110px; gap: 14px; align-items: end; margin-top: 22px; }
.contact-captcha p { margin: 0; }
.contact-check { display: flex; gap: 10px; align-items: flex-start; margin: 22px 0; font-size: .88rem; line-height: 1.5; }
.contact-check input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--es-red); }
.contact-status { margin: 0 0 24px; padding: 16px 18px; border-left: 5px solid var(--es-red); background: #fff; }
.contact-status-success { border-color: #218653; background: #eef8f2; }
.contact-status ul { margin: 0; padding-left: 20px; }
.contact-submit { border: 0; cursor: pointer; }
.contact-note { margin: 14px 0 0; color: var(--es-muted); font-size: .78rem; }
.contact-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.topic-card {
  position: relative; min-height: 235px; padding: 30px; overflow: hidden; border: 1px solid var(--es-line);
  border-radius: var(--es-radius); background: #fff; transition: transform .2s ease, box-shadow .2s ease;
}
.topic-card:hover { transform: translateY(-5px); box-shadow: var(--es-shadow); }
.topic-number { color: rgba(199,43,54,.18); font-size: 3.8rem; font-weight: 900; line-height: .9; }
.topic-card h3 { margin-top: 18px; }
.topic-card p { color: var(--es-muted); font-size: .95rem; }
.topic-card a::after { content: ""; position: absolute; inset: 0; }
.topic-card a { font-weight: 760; text-decoration: none; }

.post-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.post-card {
  position: relative; min-height: 360px; overflow: hidden; background: var(--es-navy);
  transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--es-shadow); }
.post-card-media { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(135deg, var(--es-navy), var(--es-red-dark)); }
.post-card-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,22,34,.05) 18%, rgba(12,22,34,.52) 52%, rgba(12,22,34,.96) 100%);
}
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card-media img { transform: scale(1.045); }
.post-card-overlay {
  position: absolute; z-index: 2; inset: auto 0 0; padding: 24px;
}
.post-card h3 { margin-bottom: 10px; font-size: 1.12rem; line-height: 1.22; }
.post-card h3 a { color: #fff; text-decoration: none; text-shadow: 0 2px 14px rgba(0,0,0,.25); }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card p {
  display: -webkit-box; margin-bottom: 17px; overflow: hidden; color: rgba(255,255,255,.86);
  font-size: .82rem; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
.post-card .read-more {
  position: relative; z-index: 3; display: inline-flex; min-width: 72px; min-height: 38px;
  align-items: center; justify-content: center; padding: 7px 15px; background: var(--es-red);
  color: #fff; font-size: .8rem; font-weight: 800; text-decoration: none;
}
.post-card .read-more:hover { background: var(--es-red-dark); color: #fff; }

.cta-band { padding: 66px 0; color: #fff; background: var(--es-navy); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band p { max-width: 680px; margin: 0; color: rgba(255,255,255,.72); }

.page-hero { padding: 75px 0 55px; background: linear-gradient(115deg, var(--es-cream), #fff); border-bottom: 1px solid var(--es-line); }
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4.6rem); }
.content-area { padding: 70px 0 110px; }
.page-content-no-title { padding-top: clamp(55px, 8vw, 95px); }
.article-shell { width: min(calc(100% - 40px), 850px); margin-inline: auto; }
.article-header { margin-bottom: 42px; }
.article-header h1 { font-size: clamp(2.4rem, 5vw, 4.25rem); }
.article-image { margin: 0 0 42px; }
.article-image img { width: 100%; max-height: 580px; object-fit: cover; border-radius: 22px; }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 55px; padding-top: 30px; border-top: 1px solid var(--es-line); }
.article-nav a { font-weight: 700; text-decoration: none; }

.pagination { margin-top: 45px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination a, .pagination span { display: grid; min-width: 42px; height: 42px; place-items: center; border-radius: 50%; text-decoration: none; }
.pagination .current { background: var(--es-red); color: #fff; }

.site-footer { padding: 58px 0 26px; color: rgba(255,255,255,.76); background: #111a25; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 50px; }
.site-footer h2, .site-footer h3 { color: #fff; }
.site-footer h3 { font-size: .85rem; letter-spacing: .09em; text-transform: uppercase; }
.site-footer a { color: rgba(255,255,255,.82); }
.footer-menu { list-style: none; margin: 0; padding: 0; columns: 2; }
.footer-menu li { margin-bottom: 7px; }
.footer-menu a { text-decoration: none; }
.footer-bottom { margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; }

.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; }
.alignwide { width: min(100vw - 40px, 1050px); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }

@media (max-width: 950px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .welcome-grid { grid-template-columns: 1fr; }
  .welcome-card { position: relative; top: auto; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 650px) {
  body { font-size: 17px; }
  .container, .narrow, .article-shell { width: min(calc(100% - 28px), var(--es-width)); }
  .header-inner { min-height: 74px; }
  .brand-claim { display: none; }
  .hero { min-height: 680px; padding-block: 90px; background-position: 62% top; }
  .hero::before { width: 6px; }
  .section-heading, .cta-inner { align-items: flex-start; flex-direction: column; }
  .post-grid, .topic-grid, .footer-grid { grid-template-columns: 1fr; }
  .post-card { min-height: 390px; }
  .page-id-7 .prose > .row { display: block; }
  .page-id-7 .prose > .row:has(> .col-sm-4:first-child) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .contact-form-grid { grid-template-columns: 1fr; }
  .contact-captcha { grid-template-columns: 1fr 90px; }
  .footer-menu { columns: 1; }
  .article-nav { grid-template-columns: 1fr; }
}
