/* Matchday poster: the text remains live and editable in the admin. */
.match-section{padding-top:65px;padding-bottom:75px}
.match-poster{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:clamp(32px,5vw,75px);overflow:hidden;min-height:530px;padding:clamp(30px,5vw,70px);color:#fff;background:#05281b}
.poster-background{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:center}
.match-poster::before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(2,28,19,.83),rgba(2,30,20,.7)),linear-gradient(0deg,rgba(1,22,15,.45),transparent 45%)}
.poster-intro,.poster-match{min-width:0}.poster-intro{display:flex;flex-direction:column;justify-content:center}.poster-eyebrow{margin:0 0 22px;color:#f7f7ed;font-size:clamp(11px,1.1vw,15px);font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.match-poster h2{font-family:Impact,'Arial Narrow',Arial,sans-serif;font-size:clamp(50px,6.1vw,96px);font-style:italic;font-weight:900;line-height:.94;letter-spacing:-.02em;text-transform:uppercase;margin:0;color:white}.match-poster h2 em{display:block;color:#d8f828;font-family:inherit;font-style:inherit;font-weight:inherit}
.match-poster h2 em::after{content:'';display:block;width:80%;height:5px;margin-top:12px;background:#d8f828;transform:rotate(-2deg)}
.match-countdown{margin-top:42px;max-width:510px}.match-countdown[hidden],.countdown-clock[hidden],.countdown-label[hidden],.countdown-today[hidden]{display:none!important}.countdown-label{color:#dce9d3;margin:0 0 10px;font-size:14px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.countdown-clock{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.countdown-clock>div{text-align:center;min-width:0}.countdown-clock strong{display:block;background:#f4f0df;color:#10271c;padding:8px 2px;line-height:1;font-family:Impact,'Arial Narrow',Arial,sans-serif;font-size:clamp(32px,4.2vw,64px);font-variant-numeric:tabular-nums}.countdown-clock span{display:block;margin-top:6px;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.countdown-today{font-size:25px;font-weight:800;color:#d8f828;margin:0}
.poster-match{display:flex;flex-direction:column;justify-content:center}.poster-meta{display:flex;align-items:center;flex-wrap:wrap;gap:10px 20px;color:#e4edd9;font-size:15px;font-weight:700}.poster-meta span{border:1px solid #a8c6a5;padding:5px 10px;text-transform:uppercase;font-size:11px;letter-spacing:.08em}.poster-teams{display:flex;align-items:center;gap:clamp(12px,2vw,24px);margin:20px 0 12px;min-width:0}.poster-teams h3{flex:1;font-size:clamp(29px,3.2vw,50px);line-height:1.05;letter-spacing:-.03em;margin:0;overflow-wrap:anywhere}.match-badge{flex:0 0 auto;display:block;width:clamp(48px,5.2vw,82px);height:clamp(48px,5.2vw,82px);object-fit:contain}.poster-kickoff{margin:0;color:#e8eedf;font-size:19px}.poster-kickoff strong{color:white}
.poster-hours{margin-top:26px;border-top:1px solid #a8bca588;padding-top:20px}.poster-hours-title{display:inline-block;background:#d8f828;color:#10271c;font-weight:900;font-size:14px;margin:0 0 8px;padding:7px 12px;transform:rotate(-1deg)}.poster-hours-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;align-items:baseline;border-bottom:1px solid #a8bca555;padding:12px 0}.poster-hours-row span{font-size:16px;color:#e2ebdb}.poster-hours-row strong{font-size:clamp(18px,1.65vw,24px);line-height:1.25;text-align:right}.poster-description,.poster-notice{font-size:15px;margin:14px 0 0;color:#f0f3eb}.poster-notice{border-left:3px solid #d8f828;padding-left:12px;font-weight:700}
.poster-link{display:inline-flex;align-items:center;justify-content:space-between;gap:20px;align-self:flex-start;margin-top:25px;padding:13px 20px;min-width:245px;background:#f4f0df;color:#10271c;text-decoration:none;font-weight:800;font-size:15px}.poster-link:hover{text-decoration:underline}.poster-link span{font-size:23px;line-height:1}
.more-events{margin-top:35px}.more-events h3{font-size:22px;margin:0 0 16px}
@media(max-width:850px){.match-poster{grid-template-columns:1fr;gap:36px;padding:38px 30px;min-height:0}.match-poster h2{font-size:clamp(56px,10vw,82px)}.match-countdown{margin-top:28px}.poster-teams h3{font-size:clamp(30px,6vw,46px)}}
@media(max-width:520px){.match-section{padding-top:42px;padding-bottom:50px}.match-poster{padding:28px 20px;gap:35px}.poster-eyebrow{font-size:11px}.match-poster h2{font-size:clamp(48px,12vw,64px)}.countdown-clock{gap:6px}.countdown-clock strong{font-size:clamp(31px,10vw,48px)}.poster-meta{font-size:14px}.poster-teams{gap:10px}.poster-teams h3{font-size:clamp(25px,8vw,36px)}.match-badge{width:48px;height:48px}.poster-hours-row{grid-template-columns:1fr;gap:2px}.poster-hours-row strong{text-align:left}.poster-link{width:100%}}

.card-badges{display:flex;gap:12px;margin-top:16px}.card-badges:empty{display:none}.card-badges .match-badge{width:48px;height:48px}

/* The supplied home and away posters are split into proportional halves on small screens. */
.match-template{display:grid;grid-template-columns:minmax(0,11fr) minmax(0,13fr);background:#00301e;color:#fff}
.match-template-summary{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.template-half{position:relative;container-type:inline-size;overflow:hidden;min-width:0}.template-left{aspect-ratio:44/45}.template-right{aspect-ratio:52/45}
.template-image{position:absolute;top:0;height:100%;max-width:none;object-fit:fill}.template-left .template-image{left:0;width:218.1818%}.template-right .template-image{left:-84.6154%;width:184.6154%}
.template-countdown{position:absolute;left:8.4%;top:68.6%;width:88.8%;height:18.7%}.template-countdown .countdown-clock{height:100%;gap:3.15%}.template-countdown .countdown-clock>div{display:grid;place-items:center;min-width:0}.template-countdown .countdown-clock strong{background:transparent;color:#071d12;padding:0;font-size:10cqw;line-height:1}.template-countdown .countdown-today{height:100%;margin:0;color:#10271c;font-size:5cqw;line-height:1.05;font-weight:900;display:flex;align-items:center;justify-content:center;text-align:center}.template-countdown .countdown-today[hidden]{display:none!important}
.template-opponent,.template-date,.template-kickoff,.template-away-travel,.template-hours{position:absolute;display:flex;align-items:center;color:#fff;font-weight:800;line-height:1.05;text-shadow:0 2px 2px #001b10;min-width:0}
.template-opponent{gap:1cqw;font-size:4.9cqw;overflow-wrap:normal;word-break:normal}.template-opponent span{min-width:0}.template-opponent .match-badge{width:8cqw;height:8cqw;flex:0 0 8cqw;object-fit:contain}
.match-template-home .template-opponent{left:55%;top:26.8%;width:43%;min-height:10%}.match-template-away .template-opponent{left:2%;top:20.1%;width:36.8%;min-height:11%;font-size:4.5cqw;justify-content:flex-end}
.template-date{left:12.3%;top:43.2%;width:34%;height:6%;font-size:3.1cqw;white-space:nowrap}.template-kickoff{left:67.5%;top:43.2%;width:25%;height:6%;font-size:3.4cqw;white-space:nowrap}
.match-template-away .template-date{top:35.1%}.match-template-away .template-kickoff{top:34.8%}.match-template-home .template-kickoff{top:42.8%}
.template-hours{left:49%;top:56%;width:48%;height:16%;font-size:4.6cqw;justify-content:center;flex-wrap:wrap;text-align:center}.match-template-away .template-away-travel{left:59.2%;top:49%;width:40%;height:7%;font-size:3.8cqw;justify-content:flex-start;text-align:left;white-space:nowrap}.match-template-away .template-hours{left:59.2%;top:62%;width:40%;height:7%;font-size:3.8cqw;justify-content:flex-start;text-align:left;white-space:nowrap}
.template-link{position:absolute;left:13.5%;top:77%;width:67%;height:12%;border-radius:6cqw}.template-link:focus-visible{outline:4px solid #cffe1b;outline-offset:4px}
.template-extra{grid-column:1/-1;background:#173523;color:#fff;padding:18px 28px}.template-extra p{margin:0}.template-extra p+p{margin-top:10px}.template-extra-notice{font-weight:700}
@media(max-width:700px){.match-template{grid-template-columns:1fr}.template-extra{grid-column:auto}}

@media(max-width:700px){
 .template-left{aspect-ratio:16/15}.template-left .template-image{width:200%}
 .template-left .template-countdown{left:7.7%;width:81.4%}
 .template-left::after{content:'';position:absolute;right:0;top:28%;width:8.4%;height:47%;background:linear-gradient(90deg,transparent,#00301e 35%);pointer-events:none}
 .template-right::after{content:'';position:absolute;left:0;top:0;width:7.6%;height:20%;background:linear-gradient(90deg,#002718,#002b1b);pointer-events:none}
 .template-date{font-size:3.7cqw}.template-kickoff{font-size:3.8cqw}
}

.match-template .template-opponent.is-long{font-size:4cqw}

/* Heimspiel: Öffnungszeit wie die schräge Überschrift im Plakat. */
.match-template-home .template-hours{left:50.5%;top:55.2%;font-family:'Arial Black',Arial,sans-serif;font-style:italic;font-weight:900;font-size:8.1cqw;line-height:1;text-transform:uppercase;justify-content:flex-start}
.match-template-home .template-hours.template-hours-long{font-size:3.4cqw;line-height:1.1}

.match-template-home .template-hours-stack{display:flex;flex-direction:column;align-items:flex-start;line-height:.9;transform:rotate(-3deg)}
.match-template-home .template-hours-stack span{padding-right:.22em;margin-right:-.22em}

/* Dezente Kreidespuren bleiben auch bei dynamischen Uhrzeiten erhalten. */
@supports ((background-clip:text) or (-webkit-background-clip:text)){
 .match-template-home .template-hours-stack span,.match-template .template-opponent>span{background-image:url('/assets/images/kreide-textur.svg?v=2');background-size:128px 128px;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;color:transparent;text-shadow:none}
}

.match-template .template-opponent{font-family:'Arial Black',Arial,sans-serif;font-style:italic;font-weight:900}.match-template .template-opponent>span{padding-right:.16em;margin-right:-.16em}

.match-template .template-opponent.is-very-long{font-size:3cqw}
