/*
Theme Name: EPC Verein
Theme URI: https://elbepetanque.de/
Author: Elbe Pétanque Club
Description: Individuelles klassisches WordPress-Theme für den Elbe Pétanque Club. Verein, Blog, Teamfotos, Turnierberichte, Termine und Kategorien.
Version: 1.5.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: epc-verein
*/

:root{--navy:#12162f;--ink:#1b243c;--blue:#1e96d0;--red:#bd2a2c;--muted:#647188;--paper:#fff;--fog:#f5f7f9;--line:#dce3ea;--font:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:var(--font);color:var(--ink);background:var(--paper);-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button{font-family:inherit}img{max-width:100%}.container{max-width:1260px;margin:0 auto;padding-left:28px;padding-right:28px}.topline{height:5px;background:linear-gradient(90deg,var(--blue) 0 53%,var(--red) 53% 100%)}.header{background:#fff;position:sticky;top:0;z-index:60;border-bottom:1px solid rgba(18,22,47,.09);box-shadow:0 5px 20px rgba(12,19,37,.025)}.header-inner{display:flex;align-items:center;justify-content:space-between;min-height:90px;gap:26px}.brand{display:flex;align-items:center;gap:14px;min-width:0}.brand img{width:62px;height:62px;object-fit:contain}.brandtext strong{display:block;font-size:17px;letter-spacing:-.5px;font-weight:830;line-height:1.1}.brandtext small{display:block;font-size:10px;letter-spacing:2.5px;text-transform:uppercase;color:#7a8799;margin-top:7px;font-weight:750}.nav{display:flex;align-items:center;gap:36px;font-size:13px;font-weight:700}.nav a:hover,.nav a.active{color:var(--blue)}.nav .contactlink{border:1px solid var(--line);padding:11px 19px;border-radius:4px}.menu-toggle{display:none;border:0;background:none;font-size:25px;color:var(--navy)}
.hero{background:#11162d;color:white;position:relative;overflow:hidden}.hero .container{position:relative;display:grid;grid-template-columns:1fr 330px;gap:55px;align-items:center;padding-top:73px;padding-bottom:74px}.eyebrow{font-size:11px;font-weight:820;letter-spacing:2.6px;text-transform:uppercase;color:#42b7e5}.hero h1{font-size:clamp(48px,5.5vw,81px);line-height:1.05;letter-spacing:-4px;margin:22px 0 23px;font-weight:820;max-width:750px}.hero h1 span{color:#72c5e9}.hero p{font-size:17px;line-height:1.8;color:#c6d0e1;max-width:570px;margin:0}.hero-actions{margin-top:30px;display:flex;align-items:center;gap:27px;flex-wrap:wrap}.button-primary{background:#fff;color:var(--navy);padding:14px 23px;border-radius:4px;font-weight:760;font-size:13px;display:inline-block}.button-primary:hover{background:#e7f6ff}.hero-actions .smalllink{color:#e0e9f2;font-size:13px;font-weight:650}.hero-logo{width:294px;height:294px;border-radius:50%;background:#fff;display:grid;place-items:center;box-shadow:0 22px 70px rgba(0,0,0,.22);padding:13px;margin:auto}.hero-logo img{width:100%;height:100%;object-fit:contain}.hero-end{position:absolute;bottom:0;left:0;width:100%;height:7px;background:linear-gradient(90deg,var(--blue) 0 70%,var(--red) 70%)}
.main{background:#f8f9fa;padding:76px 0 88px}.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:28px}.section-heading h2{font-size:clamp(30px,3.1vw,43px);letter-spacing:-1.9px;line-height:1.16;margin:13px 0 0;font-weight:800}.section-heading .desc{color:var(--muted);font-size:14px;max-width:310px;line-height:1.6;margin-bottom:5px}.filters{display:flex;gap:9px;flex-wrap:wrap;border-bottom:1px solid #dde2e7;margin-bottom:28px;padding-bottom:22px}.filter{background:#fff;border:1px solid #e1e6eb;color:#506078;border-radius:4px;padding:11px 17px;cursor:pointer;font-size:12px;font-weight:760;transition:.15s}.filter[aria-pressed=true],.filter:hover{background:var(--navy);color:#fff;border-color:var(--navy)}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}.post{background:white;min-width:0;border:1px solid #e8ebef;box-shadow:0 6px 26px rgba(20,32,60,.035);transition:transform .15s,box-shadow .15s}.post:hover{transform:translateY(-3px);box-shadow:0 14px 36px rgba(20,32,60,.10)}.photo{display:block;aspect-ratio:1.55;overflow:hidden;position:relative;background:#bdd5de}.photo img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s}.post:hover .photo img{transform:scale(1.04)}.pic-note{position:absolute;bottom:12px;left:13px;background:rgba(12,19,39,.78);color:#fff;padding:5px 9px;font-size:10px;letter-spacing:.45px;border-radius:2px}.post-content{padding:24px 25px 27px;display:flex;flex-direction:column;min-height:236px}.meta{font-size:10px;color:#60728b;font-weight:800;letter-spacing:1.1px;text-transform:uppercase;display:flex;align-items:center;gap:10px}.dot{width:4px;height:4px;background:var(--red);border-radius:50%;display:inline-block}.post h3{font-size:22px;letter-spacing:-.7px;line-height:1.22;margin:15px 0 12px;font-weight:800}.post-content p{font-size:13px;line-height:1.75;color:#6a7588;margin:0 0 17px}.read{font-size:12px;font-weight:850;color:#1677a7;display:inline-flex;align-items:center;gap:8px;margin-top:auto}.read span{font-size:17px}.post.featured{grid-column:span 2;display:grid;grid-template-columns:1.18fr 1fr}.post.featured .photo{aspect-ratio:auto;min-height:332px}.post.featured .post-content{justify-content:center;padding:38px}.post.featured h3{font-size:30px}.post.featured .post-content p{font-size:14px}.more-wrap{text-align:center;margin-top:36px}.more-button{border:1px solid #b9c7d5;padding:14px 23px;background:transparent;color:var(--navy);font-size:13px;font-weight:760;cursor:pointer;border-radius:4px}.more-button:hover{background:var(--navy);color:white}.no-results{font-size:15px;color:var(--muted);padding:26px 0}
.about{padding:73px 0 80px;background:#fff}.about-layout{display:grid;grid-template-columns:1fr .9fr;gap:90px;align-items:center}.about h2{font-size:38px;line-height:1.12;letter-spacing:-1.4px;margin:14px 0 23px}.about p{font-size:15px;line-height:1.95;color:#637084;max-width:620px}.about-lines{border-top:1px solid #dce3ea;margin-top:24px}.about-line{display:flex;align-items:center;justify-content:space-between;padding:17px 0;border-bottom:1px solid #dce3ea;font-size:14px;gap:16px}.about-line strong{font-weight:800}.about-line span{color:#68768b;text-align:right}.about-panel{background:#ebf6fb;min-height:290px;display:grid;place-items:center;position:relative;overflow:hidden}.about-panel:before{content:'';width:280px;height:280px;position:absolute;border:2px solid #b1dae8;border-radius:50%;box-shadow:0 0 0 55px #dbeff7}.about-panel img{width:210px;position:relative;filter:drop-shadow(0 15px 16px rgba(15,27,53,.12))}.contactbar{background:#eef4f8;padding:38px 0}.contactbar .container{display:flex;justify-content:space-between;align-items:center;gap:25px}.contactbar strong{font-size:21px}.contactbar p{font-size:13px;color:#66758a;margin:8px 0 0}.contactbar a{background:#11162d;color:white;padding:14px 22px;font-size:13px;font-weight:750;border-radius:3px}.footer{background:#11162d;color:#aab8ce;padding:38px 0}.footer .container{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}.footer small{font-size:11px;line-height:1.8}.footer a{color:#d6e1ef;margin-left:20px;font-size:12px}.notice{background:#e6f3f9;border-left:3px solid #279acc;padding:11px 15px;color:#35667e;font-size:11px;line-height:1.6}.article-shell{background:#f8f9fa;min-height:70vh;padding:35px 0 90px}.article-wrap{max-width:920px;margin:auto;padding:0 28px}.back{display:inline-block;font-size:13px;font-weight:750;color:#54718b;margin:10px 0 36px}.article-title{font-size:clamp(34px,5vw,58px);letter-spacing:-2px;line-height:1.12;margin:22px 0;font-weight:820}.article-intro{color:#5b687c;font-size:18px;line-height:1.7}.article-photo{width:100%;height:auto;max-height:490px;object-fit:cover;margin:28px 0 6px}.article-body{max-width:720px;margin:38px auto 10px}.article-body p{font-size:17px;line-height:1.85;color:#374358}.article-note{padding:16px;background:#eaf2f7;font-size:13px;line-height:1.6;color:#4c697f;margin-top:35px}.article-cta{display:inline-block;margin-top:30px;color:#087baa;font-weight:760;font-size:14px}.credits{font-size:10px;color:#aab8ce;line-height:1.6;max-width:600px;margin-top:10px}
@media(max-width:1000px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.post.featured{grid-column:span 2}.hero .container{grid-template-columns:1fr 235px}.hero-logo{width:225px;height:225px}.hero h1{letter-spacing:-3px}.about-layout{gap:45px}}@media(max-width:720px){.container{padding-left:19px;padding-right:19px}.header-inner{min-height:76px}.brand img{width:49px;height:49px}.brandtext strong{font-size:14px}.brandtext small{font-size:9px;letter-spacing:1.6px}.menu-toggle{display:block}.nav{display:none;position:absolute;left:0;right:0;top:76px;flex-direction:column;align-items:stretch;background:white;border-bottom:1px solid #d9e4ea;padding:18px 24px 24px;gap:18px}.nav.open{display:flex}.nav .contactlink{text-align:center}.hero .container{padding-top:45px;padding-bottom:56px;grid-template-columns:1fr;gap:28px}.hero-logo{width:151px;height:151px;grid-row:1;margin:0}.hero h1{font-size:49px;letter-spacing:-2.5px;margin:15px 0 17px}.hero p{font-size:14px;line-height:1.8}.hero-actions{gap:18px}.main{padding-top:55px}.section-heading{align-items:flex-start;display:block}.section-heading h2{font-size:32px}.section-heading .desc{margin-top:12px}.filters{gap:8px;padding-bottom:18px}.filter{padding:9px 12px;font-size:11px}.cards{grid-template-columns:1fr;gap:17px}.post.featured{grid-column:auto;display:block}.post.featured .photo{min-height:0;aspect-ratio:1.42}.post.featured .post-content{padding:24px 25px 27px}.post.featured h3{font-size:22px}.post.featured .post-content p{font-size:13px}.post-content{min-height:0}.about{padding:54px 0}.about-layout{grid-template-columns:1fr;gap:30px}.about h2{font-size:31px}.about-panel{min-height:225px}.about-panel img{width:145px}.contactbar .container{display:block}.contactbar a{display:inline-block;margin-top:20px}.footer a{margin-left:0;margin-right:15px}.footer .container{display:block}.footer .links{margin-top:20px}.article-shell{padding-top:22px}.article-wrap{padding:0 19px}.article-title{letter-spacing:-1.5px}.article-intro{font-size:15px}.article-body p{font-size:15px}.article-photo{margin-top:22px}}


/* Rundes Vereinswappen und konzentrische, in beiden Achsen gleich große Kreise.
   Der Halo orientiert sich am Logo, nicht an der Höhe des Hero-Abschnitts. */
.hero-emblem{position:relative;width:330px;aspect-ratio:1/1;display:grid;place-items:center;margin:auto;isolation:isolate}
.hero-emblem::before,.hero-emblem::after{content:"";position:absolute;top:50%;left:50%;aspect-ratio:1/1;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none}
.hero-emblem::before{width:118%;border:1px solid rgba(115,197,233,.33);box-shadow:0 0 0 34px rgba(38,153,203,.043)}
.hero-emblem::after{width:146%;border:1px solid rgba(255,255,255,.09)}
.hero-emblem .hero-logo{position:relative;z-index:1;width:294px;aspect-ratio:1/1;height:auto;border-radius:50%;overflow:hidden;flex:0 0 auto}
@media(max-width:1000px){.hero-emblem{width:235px}.hero-emblem .hero-logo{width:225px}}
@media(max-width:720px){.hero-emblem{width:151px;grid-row:1;margin:0}.hero-emblem .hero-logo{width:151px}}


/* WordPress-Erweiterungen für die vorhandene EPC-Gestaltung */
.wp-site-blocks,.entry-content{overflow-wrap:break-word}
.photo-placeholder{background:linear-gradient(135deg,#d8edf7,#ecf4f8);display:grid;place-items:center;position:relative;}
.photo-placeholder .photo-placeholder-logo{width:96px;height:96px;object-fit:contain;opacity:.56;transition:transform .35s}
.post.featured .photo-placeholder .photo-placeholder-logo{width:130px;height:130px}
.pic-note.pic-note-plain{background:#11162dcc}
.article-no-photo{width:100%;height:300px;margin:28px 0 6px}
.archive-header{background:#11162d;color:#fff;padding:60px 0 55px}
.archive-header h1{font-size:clamp(35px,5vw,60px);letter-spacing:-2px;margin:12px 0 0}
.archive-shell{background:#f8f9fa;padding:55px 0 85px;min-height:50vh}
.archive-shell .filters{margin-bottom:30px}
.pager{margin:40px 0 0;display:flex;gap:16px;flex-wrap:wrap;align-items:center}
.pager .page-numbers{padding:9px 14px;border:1px solid #dce3ea;border-radius:3px;color:#33445b;font-weight:700;font-size:12px;background:white}
.pager .current{background:#12162f;color:#fff}
.post-meta-label{font-size:11px;color:#6f7e91;line-height:1.5;margin-top:9px}
.article-body img{height:auto;max-width:100%}
.article-body h2,.article-body h3{margin-top:1.5em;letter-spacing:-.025em;color:#1b243c}
.article-body a{color:#0a7cab;text-decoration:underline}
.article-body ul,.article-body ol{line-height:1.8;color:#374358}
.article-body .wp-block-image{margin:25px 0}
.article-body .wp-block-image img{height:auto}
.article-body blockquote{border-left:3px solid #1e96d0;margin:1.5em 0;padding-left:1em;color:#3a4960}
.article-body .wp-block-gallery{margin-top:24px}
.article-legal h1{font-size:clamp(30px,4vw,48px);letter-spacing:-1px}
.article-legal .article-body{margin:25px 0}
.empty-posts{padding:55px 35px;background:#fff;border:1px solid #e1e6eb;color:#55677e}
.empty-posts strong{display:block;color:#1b243c;font-size:20px;margin-bottom:8px}
.footer .links{display:flex;gap:16px;flex-wrap:wrap}
.footer .links a{margin-left:0}
.header .nav a:focus-visible,.filter:focus-visible,.post a:focus-visible{outline:3px solid #2198c9;outline-offset:4px}
body.admin-bar .header{top:32px}
@media(max-width:782px){body.admin-bar .header{top:46px}}
@media(max-width:720px){.archive-header{padding:42px 0}.archive-shell{padding:40px 0 60px}.article-no-photo{height:210px}.post.featured .photo-placeholder .photo-placeholder-logo{width:100px;height:100px}}

.filters .filter[aria-current="page"]{background:var(--navy);color:#fff;border-color:var(--navy)}

/* Version 1.1: Vorschaubilder nicht dauerhaft zuschneiden. Der Fokus wird pro Beitrag gesteuert. */
.photo:not(.photo-placeholder) img {object-position:center 10%;}

/* Version 1.2: Dezente Auslassungen zwischen weit entfernten Seiten. */
.pager .dots{border:0;background:transparent;color:#647188;pointer-events:none;padding-left:3px;padding-right:3px}

/* V1.4: Gut lesbare Rechtstexte und dauerhaft erkennbare Footer-Links. */
.article-legal .article-body h2{font-size:clamp(19px,2.7vw,25px);letter-spacing:-.02em;line-height:1.3;margin:28px 0 10px}
.article-legal .article-body p{font-size:15px;line-height:1.85;overflow-wrap:anywhere;margin:0 0 16px}
.article-legal .article-body a{color:#127eaa;text-decoration:underline;text-underline-offset:3px}
.footer .links a:focus-visible,.footer .links a:hover{text-decoration:underline;text-underline-offset:4px}


/* EPC 1.5 – Mannschaft und Termine: Gestaltung der bestehenden EPC-Website. */
.epc-home-events{background:#fff;border-bottom:1px solid var(--line);padding:51px 0 50px}
.epc-home-events-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:23px}
.epc-home-events .eyebrow,.epc-subpage .eyebrow{color:#187da9}
.epc-home-events-heading h2{font-size:clamp(29px,3vw,40px);letter-spacing:-1.4px;line-height:1.1;margin:9px 0 0}
.epc-all-events{border:1px solid #cedee9;border-radius:4px;padding:11px 15px;color:#1979a6;font-size:12px;font-weight:790;white-space:nowrap}
.epc-all-events:hover{background:#eaf6fb}
.epc-home-events-list,.epc-event-list{display:grid;gap:12px}
.epc-home-events-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.epc-event-card{display:flex;gap:18px;align-items:center;background:#fff;border:1px solid #e0e7ed;padding:18px;min-width:0;border-radius:5px;box-shadow:0 5px 22px rgba(20,32,60,.025)}
.epc-event-compact{display:grid;grid-template-columns:63px minmax(0,1fr);gap:14px;align-items:start;padding:17px}
.epc-event-date{width:72px;min-width:72px;border:1px solid #d6e3ea;border-radius:4px;text-align:center;overflow:hidden;color:#142440;background:#fff}
.epc-event-compact .epc-event-date{width:63px;min-width:63px}
.epc-event-date span{display:block;background:#b92b34;color:#fff;font-weight:830;font-size:11px;padding:5px 2px;text-transform:uppercase;letter-spacing:.75px}
.epc-event-date strong{font-size:30px;display:block;line-height:1.12;padding-top:7px}
.epc-event-date small{display:block;color:#718096;font-size:10px;padding:2px 0 7px}
.epc-event-copy{min-width:0;flex:1}
.epc-event-kind{font-size:10px;color:#1a83b3;font-weight:840;letter-spacing:1px;text-transform:uppercase;margin-bottom:6px}
.epc-event-copy h3{font-size:17px;line-height:1.32;letter-spacing:-.3px;margin:0 0 9px;color:#151e39}
.epc-event-detail,.epc-event-place{font-size:12px;color:#607186;line-height:1.5}
.epc-event-place{margin-top:4px}
.epc-event-link{color:#127ca8;font-size:12px;white-space:nowrap;font-weight:780;margin-left:auto}
.epc-event-link:hover{text-decoration:underline}
.epc-event-compact .epc-event-link{margin:0;grid-column:2}
.epc-no-events{font-size:14px;color:#63748a;padding:25px 24px;background:#f6f9fb;border:1px solid #e2e8ee}
.epc-subpage{background:#f8f9fa;min-height:65vh}
.epc-subpage-intro{background:#fff;border-bottom:1px solid #e2e7ec;padding:57px 0 46px}
.epc-subpage-intro h1{font-size:clamp(35px,4.7vw,59px);line-height:1.13;letter-spacing:-2px;margin:12px 0 14px;color:#12162f}
.epc-subpage-intro p{font-size:16px;line-height:1.7;color:#63748a;margin:0}
.epc-team-section,.epc-calendar-page{padding:51px 0 86px}
.epc-team-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
.epc-player-card{min-width:0;background:#fff;border:1px solid #e4e8ed;border-radius:4px;overflow:hidden;box-shadow:0 4px 20px rgba(20,32,60,.035)}
.epc-player-photo{aspect-ratio:3/4;background:#e8f2f7;overflow:hidden;position:relative}
.epc-player-photo>img{width:100%;height:100%;display:block;object-fit:cover;object-position:center 25%}
.epc-player-card h2{font-size:17px;font-weight:800;color:#151e39;letter-spacing:-.3px;line-height:1.3;margin:0;padding:19px 18px 20px;overflow-wrap:break-word}
.epc-player-placeholder{height:100%;display:grid;place-items:center;align-content:center;gap:14px;background:#e7f2f7;color:#64758a;font-size:13px}
.epc-player-placeholder img{width:100px;height:100px;opacity:.6;object-fit:contain}
.epc-calendar-page h2{font-size:26px;letter-spacing:-1px;margin:0 0 20px}
.epc-calendar-page .epc-event-card{padding:19px 23px}
.epc-past-title{margin-top:55px!important}
.epc-past-events{opacity:.8}
.epc-empty-section{padding:40px;background:#fff;border:1px solid #e1e7ee;font-size:15px;color:#62728b}
.epc-empty-section strong{font-size:19px;display:block;color:#1a2340}
.epc-empty-section p{margin:10px 0 0;line-height:1.6}
@media(max-width:1050px){.epc-home-events-list{grid-template-columns:1fr}.epc-event-compact{grid-template-columns:63px minmax(0,1fr);align-items:center}.epc-team-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px) and (min-width:721px){.menu-toggle{display:block}.nav{display:none;position:absolute;left:0;right:0;top:76px;flex-direction:column;align-items:stretch;background:white;border-bottom:1px solid #d9e4ea;padding:18px 24px 24px;gap:18px}.nav.open{display:flex}.nav .contactlink{text-align:center}}
@media(max-width:720px){.epc-home-events{padding:42px 0}.epc-home-events-heading{align-items:start;gap:15px}.epc-home-events-heading h2{font-size:28px}.epc-all-events{font-size:11px;padding:10px}.epc-subpage-intro{padding:39px 0 34px}.epc-subpage-intro h1{font-size:36px;letter-spacing:-1.2px}.epc-subpage-intro p{font-size:14px}.epc-team-section,.epc-calendar-page{padding:34px 0 65px}.epc-team-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.epc-player-card h2{font-size:14px;padding:13px}.epc-event-card{gap:12px;padding:13px}.epc-event-link{font-size:11px}.epc-calendar-page .epc-event-card{padding:14px}.epc-calendar-page .epc-event-card .epc-event-link{white-space:normal}}
@media(max-width:390px){.epc-home-events-heading{display:block}.epc-all-events{display:inline-block;margin-top:13px}.epc-event-card:not(.epc-event-compact){display:grid;grid-template-columns:72px minmax(0,1fr)}.epc-event-card:not(.epc-event-compact) .epc-event-link{grid-column:2;margin:0}}
