/* Färgerna för hela sidan finns här. */
:root { --yellow: #f4cf45; --ink: #222820; --muted: #697063; --paper: #f8f9f3; --line: #e3e6dc; --red: #d23a2f; }
/* Färgerna för säsongsmålen i årsplanen. */
[data-area="teknik"] { --theme: #f4cf45; --theme-soft: #fdf3c8; }
[data-area="anfall"] { --theme: #f08a5d; --theme-soft: #fde6db; }
[data-area="forsvar"] { --theme: #6b9be0; --theme-soft: #e1ebfa; }
[data-area="omstallning"] { --theme: #a07bd6; --theme-soft: #eee5fa; }
[data-area="malvakt"] { --theme: #7fb069; --theme-soft: #e3f0db; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; line-height: 1.6; }
a { color: inherit; }
.wrapper { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding-block: 26px; gap: 16px 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 15px; font-weight: 800; letter-spacing: .7px; }
.brand small { display: block; font-size: 11px; font-weight: 400; letter-spacing: .3px; color: var(--muted); }
.badge { width: 42px; height: 49px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 5px 5px 17px 17px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 23px; line-height: 1; }
.badge span { font-size: 10px; margin-top: 3px; }
nav { display: flex; gap: 28px; font-size: 14px; font-weight: 700; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.hero { display: grid; grid-template-columns: 1.2fr 1fr; min-height: 480px; background: var(--yellow); border-radius: 24px; overflow: hidden; }
.hero-copy { padding: 48px; position: relative; z-index: 1; }
.eyebrow { margin: 0 0 18px; text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: 1.8px; }
.dot { display: inline-block; width: 7px; height: 7px; background: var(--ink); border-radius: 50%; margin-right: 6px; }
h1 { font-size: clamp(42px, 5.2vw, 66px); line-height: 1.04; letter-spacing: -2.7px; margin: 0; }
h1 span { color: #5a501d; }
.intro { max-width: 380px; font-size: 15px; margin-block: 22px 26px; }
.button { display: inline-flex; gap: 35px; align-items: center; border-radius: 9px; background: var(--ink); color: white; padding: 13px 20px; font-size: 13px; font-weight: 700; text-decoration: none; }
.button:hover { background: #394331; }
.pitch-art { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 36px; background: radial-gradient(ellipse, #ffe591 0%, transparent 68%); }
.pitch { width: 245px; height: 330px; border: 2px solid #ffffff90; border-radius: 5px; transform: rotate(12deg); position: relative; box-shadow: 0 0 0 16px #ffffff18; background: #ffffff0d; }
.halfway { position: absolute; top: 50%; width: 100%; border-top: 2px solid #ffffff90; }
.circle { position: absolute; width: 82px; height: 82px; border: 2px solid #ffffff90; border-radius: 50%; top: calc(50% - 41px); left: calc(50% - 41px); }
.goal { position: absolute; width: 120px; height: 49px; border: 2px solid #ffffff90; left: calc(50% - 60px); }
.goal-top { top: -2px; }.goal-bottom { bottom: -2px; }
.player { position: absolute; width: 25px; height: 25px; background: var(--ink); border: 5px solid #424b38; border-radius: 50%; box-shadow: 3px 6px 0 #00000015; }
.player-one { top: 65px; left: 45px; }.player-two { top: 130px; right: 30px; }.player-three { bottom: 50px; left: 63px; }
.ball { position: absolute; top: 170px; left: 95px; font-size: 47px; filter: drop-shadow(3px 7px 3px #00000020); }
.pitch-note { background: #fff9dc; padding: 8px 18px; border-radius: 5px; font-size: 12px; font-weight: 700; transform: rotate(-5deg); margin-top: 4px; }
.section { margin-top: 58px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 23px; }
.section .eyebrow { color: var(--muted); margin-bottom: 8px; }
h2 { font-size: clamp(25px, 3vw, 32px); line-height: 1.2; letter-spacing: -1px; margin: 0; }
.label { display: inline-block; font-size: 11px; color: #545d4d; background: #edf0e5; padding: 6px 12px; border-radius: 20px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { padding: 26px; background: white; border: 1px solid #e3e6dc; border-radius: 14px; display: flex; flex-direction: column; }
.number { font-size: 10px; font-weight: 800; letter-spacing: 1.3px; color: #687253; }
h3 { font-size: 20px; letter-spacing: -.5px; line-height: 1.3; margin: 22px 0 10px; }
.card p, .video-copy > p:not(.eyebrow) { font-size: 14px; color: var(--muted); margin: 0 0 24px; }
.card-footer { display: flex; justify-content: space-between; gap: 8px; padding-top: 16px; border-top: 1px solid #eceee7; font-size: 11px; color: var(--muted); margin-top: auto; }
.video-section { margin-top: 38px; background: #eaf0e3; padding: 24px; border-radius: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 38px; align-items: center; }
.video-placeholder { min-height: 250px; background: #29382d; border-radius: 10px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 11px; color: #edf1e8; font-size: 13px; }
.video-placeholder small { color: #b3c0b3; font-size: 11px; }
.play-icon { width: 53px; height: 53px; display: grid; place-items: center; padding-left: 3px; border: 1px solid #ffffff40; border-radius: 50%; color: var(--yellow); margin-bottom: 5px; }
.video-copy { padding: 12px 18px 12px 0; }.video-copy .eyebrow { margin-bottom: 12px; }.video-copy h2 { margin-bottom: 15px; }
video { width: 100%; border-radius: 10px; background: #29382d; }
.team-note { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 30px 12px; font-size: 13px; text-align: center; }.team-note > span { color: #8c761d; font-size: 24px; }
.footer { border-top: 1px solid #dfe3d6; padding-block: 24px; display: flex; justify-content: space-between; gap: 16px; font-size: 11px; color: var(--muted); }.footer strong { letter-spacing: 1px; color: var(--ink); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #325fbd; outline-offset: 5px; }

/* Sportväxlaren */
button { font: inherit; color: inherit; cursor: pointer; }
.sport-switch { display: flex; background: #edf0e5; border-radius: 30px; padding: 4px; margin-left: auto; }
.sport-switch button { border: 0; background: transparent; padding: 7px 16px; border-radius: 30px; font-size: 13px; font-weight: 700; color: var(--muted); }
.sport-switch button[aria-pressed="true"] { background: var(--ink); color: white; }
.header nav { margin-left: 8px; }

/* Bilden i toppen: fotbollsplan eller innebandyplan */
body[data-sport="innebandy"] .pitch, body[data-sport="fotboll"] .rink { display: none; }
.rink { width: 220px; height: 350px; border: 2px solid #ffffff90; border-radius: 48px; transform: rotate(12deg); position: relative; box-shadow: 0 0 0 16px #ffffff18; background: #ffffff0d; }
.center-dot { position: absolute; width: 10px; height: 10px; background: #ffffff90; border-radius: 50%; top: calc(50% - 5px); left: calc(50% - 5px); }
.crease { position: absolute; width: 104px; height: 56px; border: 2px solid #ffffff90; left: calc(50% - 52px); }
.crease-top { top: 22px; }.crease-bottom { bottom: 22px; }
.net { position: absolute; width: 40px; height: 12px; border: 2px solid var(--ink); background: #ffffff60; left: calc(50% - 20px); }
.net-top { top: 34px; }.net-bottom { bottom: 34px; }
.rink .player-one { top: 95px; left: 38px; }.rink .player-two { top: 150px; right: 26px; }.rink .player-three { bottom: 100px; left: 58px; }
.floorball { position: absolute; top: 185px; left: 100px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink); background: radial-gradient(circle, #9aa08f 0 2px, transparent 2.5px) 1px 1px / 8px 8px, white; box-shadow: 3px 6px 0 #00000015; }

/* Årsplan */
.sub, .year-group h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 1.3px; color: var(--muted); margin: 0 0 10px; }
.areas { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.area { background: var(--theme-soft); border-top: 5px solid var(--theme); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; }
.area strong { font-size: 16px; }
.area p { margin: 6px 0 10px; font-size: 13px; color: #4b5244; }
.area span { margin-top: auto; font-size: 11px; font-weight: 700; color: #4b5244; }
.year-group { margin-bottom: 22px; }
.year-line { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.year-line button { width: 100%; height: 100%; text-align: left; background: white; border: 1px solid var(--line); border-top: 5px solid var(--theme); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.year-line button:hover { border-color: #c9cebf; border-top-color: var(--theme); transform: translateY(-2px); }
.year-line li:not(.active) button { background: #fbfcf8; }
.year-sport { font-size: 10px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.year-sport b { background: var(--red); color: white; border-radius: 10px; padding: 1px 7px; margin-left: 4px; letter-spacing: .5px; }
.year-period { font-size: 12px; color: var(--muted); }
.year-line strong { font-size: 15px; line-height: 1.3; margin-block: 4px; }
.year-step { align-self: start; font-size: 11px; margin-top: auto; font-weight: 700; background: var(--theme-soft); border-radius: 10px; padding: 1px 8px; }
.pause { display: flex; flex-direction: column; justify-content: center; align-items: center; border: 1px dashed #cfd3c6; border-radius: 12px; padding: 12px; font-size: 13px; font-weight: 700; color: var(--muted); text-align: center; }
.pause small { font-weight: 400; font-size: 11px; }

/* Träningsblock */
.block-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 14px; }
.block-tabs button { text-align: left; background: white; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-weight: 800; font-size: 15px; border-left: 5px solid var(--theme); }
.block-tabs button small { display: block; font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.block-tabs button[aria-pressed="true"] { background: var(--ink); color: white; border-color: var(--ink); border-left-color: var(--theme); }
.block-tabs button[aria-pressed="true"] small { color: #c8cfbf; }
.block-panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: 18px; }
.block-info, .session { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.block-info h3 { margin-top: 0; font-size: 26px; }
.area-tag { background: var(--theme-soft); border-left: 4px solid var(--theme); border-radius: 0 8px 8px 0; padding: 10px 14px; font-size: 13px; }
.goalie-focus { margin: 0; font-size: 14px; background: #e3f0db; border-radius: 8px; padding: 8px 12px; }
.goalie-focus::before { content: "🧤 "; }
.weeks-note { font-size: 12px; color: var(--muted); margin: 0 0 6px; }
.stations { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.session .stations li { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #fbfcf8; font-size: 13px; }
.stations .goalie { margin: 2px 0 0; }
.goalie-plan { margin-top: 14px; background: #e3f0db; border-radius: 12px; padding: 14px 16px; }
.goalie-plan h4 { margin: 0 0 6px; color: #3f6a2a; }
.goalie-plan h4::before { content: "🧤 "; }
.goalie-plan ul { margin: 0; padding-left: 18px; font-size: 13px; }
.goalie-plan li { margin-bottom: 3px; }
.session .goalie-plan li strong { display: inline; }
.sources { font-size: 12px; color: var(--muted); margin-top: 16px; }
.block-goal { font-size: 15px; }
.word { display: inline-block; background: var(--yellow); border-radius: 8px; padding: 6px 12px; font-size: 13px; margin: 0 0 6px; }
h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 1.3px; margin: 20px 0 8px; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.checks li { padding-left: 24px; position: relative; margin-bottom: 5px; }
.checks li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; color: #6a8f3c; }
.session-head { display: flex; justify-content: space-between; align-items: baseline; }
.session-head h4 { margin-top: 0; }
.session-head span { font-weight: 800; font-size: 13px; }
.session ol { list-style: none; margin: 0; padding: 0; }
.session .pass > li { display: grid; grid-template-columns: 62px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid #eceee7; font-size: 14px; }
.minutes { font-weight: 800; font-size: 13px; }
.session li strong { display: block; }
.session li small { display: block; color: var(--muted); font-size: 12px; }
.session a { text-decoration-color: #c9b54a; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.kind { display: block; font-size: 10px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; color: #687253; }
.print-button { margin-top: 14px; background: transparent; border: 1px solid #cfd3c6; border-radius: 8px; padding: 8px 14px; font-size: 12px; font-weight: 700; }
.print-button:hover { background: #edf0e5; }
.empty { background: white; border: 1px dashed #cfd3c6; border-radius: 14px; padding: 22px; color: var(--muted); font-size: 14px; margin: 0; }
.session .empty { border: 0; padding: 0; }

/* Grundmall för ett pass */
.timeline { display: flex; gap: 4px; margin-bottom: 14px; }
.timeline span { background: var(--yellow); border-radius: 6px; padding: 8px 0; text-align: center; font-size: 12px; font-weight: 800; min-width: 30px; }
.timeline span:nth-child(even) { background: #e6dc9f; }
.template-parts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.template-parts li { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.template-parts strong { display: block; font-size: 14px; line-height: 1.3; }
.template-parts strong span { display: block; font-size: 11px; color: var(--muted); }
.template-parts p { margin: 6px 0 0; font-size: 12px; color: var(--muted); }

/* Övningsbank */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filters button { border: 1px solid #cfd3c6; background: white; border-radius: 20px; padding: 6px 14px; font-size: 13px; font-weight: 700; }
.filters button[aria-pressed="true"] { background: var(--ink); color: white; border-color: var(--ink); }
.exercise { scroll-margin-top: 20px; align-self: start; }
.exercise h3 { margin-top: 16px; }
.exercise > p { margin-bottom: 14px; }
.exercise details { margin-bottom: 18px; font-size: 14px; }
.exercise summary { cursor: pointer; font-weight: 700; font-size: 13px; padding: 8px 0; }
.exercise details ol { padding-left: 20px; margin: 6px 0 0; }
.exercise details li { margin-bottom: 5px; }
.variant { font-size: 13px !important; margin: 10px 0 0 !important; color: var(--ink) !important; }
.exercise video { margin-top: 12px; }
.exercise .card-footer span:last-child { text-align: right; }
.flash { animation: flash 1.6s ease-out; }
@keyframes flash { from { box-shadow: 0 0 0 4px var(--yellow); } to { box-shadow: 0 0 0 4px transparent; } }

/* Träna hemma */
.home-section { margin-top: 58px; background: #eaf0e3; padding: 30px; border-radius: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.home-section p:not(.eyebrow) { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.home-section ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.home-section li a { display: flex; justify-content: space-between; background: white; border-radius: 10px; padding: 12px 16px; font-weight: 700; text-decoration: none; font-size: 14px; }
.home-section li { position: relative; }
.home-section li span { position: absolute; right: 16px; top: 12px; font-size: 12px; color: var(--muted); pointer-events: none; }
.home-section li a:hover { background: #fffbe6; }

/* Tips */
.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tip { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.tip h3 { margin: 0 0 6px; font-size: 17px; }
.tip p { margin: 0; font-size: 14px; color: var(--muted); }
[hidden] { display: none !important; }

/* Animerade övningsskisser */
.drill { position: relative; margin: 14px 0 10px; border-radius: 10px; overflow: hidden; border: 1px solid #d5dde3; }
.drill svg { display: block; width: 100%; height: auto; font-family: Arial, Helvetica, sans-serif; }
.drill .d-floor { fill: #e9eff3; }
body[data-sport="fotboll"] .drill .d-floor { fill: #dcebd3; }
.drill .d-board { fill: none; stroke: #9fb0bf; stroke-width: .6; }
.drill .d-mark { stroke: #c9534a; stroke-width: .4; }
.drill .d-mark.dashed { stroke: #8d969c; stroke-dasharray: 1.4 1; }
.drill .d-dot { fill: #c9534a; }
.drill .d-crease { fill: #ffffff80; stroke: #c9534a; stroke-width: .4; }
.drill .d-goal { fill: white; stroke: var(--ink); stroke-width: .5; }
.drill .d-label-text { font-size: 2.6px; fill: #5c6670; text-anchor: middle; font-weight: 700; }
.drill .d-trail { fill: none; stroke-width: .5; stroke-dasharray: 1.2 1; opacity: .8; stroke-linejoin: round; }
.drill .d-ball-trail { stroke: #4d5560; stroke-dasharray: .3 .9; stroke-linecap: round; stroke-width: .5; }
.drill .d-cone { fill: #ff8a3d; stroke: #b9581b; stroke-width: .25; transition: transform .25s, fill .25s; }
.drill .d-cone.fallen { transform: rotate(90deg) translateY(-1px); fill: #c9b3a3; }
.drill .actor circle { stroke: var(--ink); stroke-width: .45; }
.drill .actor-text { font-size: 2.2px; font-weight: 800; text-anchor: middle; fill: var(--ink); }
.drill .actor-text.light { fill: white; }
.drill .d-tail { fill: #ff5a7a; }
.drill .d-ball { fill: white; stroke: var(--ink); stroke-width: .35; }
.drill .d-callout text { font-size: 3px; font-weight: 800; text-anchor: middle; fill: white; }
.drill .d-callout text.dark { fill: var(--ink); }
.drill-toggle { position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: #222820cc; color: white; font-size: 11px; display: grid; place-items: center; }
.drill-toggle:hover { background: var(--ink); }
.goalie { align-self: start; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; background: #edf0e5; color: #545d4d; margin-bottom: 10px; }
.goalie.yes { background: #e3f0db; color: #3f6a2a; }
.goalie.yes::before { content: "🧤 "; }
.filters { flex-direction: column; gap: 8px; }
.filters > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-label { font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); width: 46px; }
.block-exercises { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.block-exercises a { display: inline-block; background: #f3f5ee; border: 1px solid var(--line); border-radius: 20px; padding: 4px 12px; font-size: 13px; text-decoration: none; font-weight: 700; }
.block-exercises a:hover { background: #fffbe6; }

@media (max-width: 960px) { .areas { grid-template-columns: repeat(3, 1fr); }.template-parts { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .sport-switch { margin-left: 0; order: 3; }.header nav { order: 4; margin-left: 0; width: 100%; }
  .tips, .block-panel, .home-section, .areas { grid-template-columns: 1fr; }
  .year-line { grid-template-columns: 1fr 1fr; }
  .stations { grid-template-columns: 1fr; }
  .template-parts { grid-template-columns: 1fr 1fr; }.timeline span { font-size: 10px; min-width: 0; }
  .block-info, .session, .home-section { padding: 20px; }
}

/* Utskrift: bara blocket och övningarna */
@media print {
  body { background: white; }
  .header, .hero, #arsplan, #upplagg, .filters, .drill-toggle, .sources, .home-section, #tips, .team-note, .footer, .print-button, .block-tabs { display: none !important; }
  .block-panel { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }.card { break-inside: avoid; }
}

@media (max-width: 760px) { .hero { grid-template-columns: 1fr; min-height: 0; }.hero-copy { padding: 32px; }.pitch-art { display: none; }.cards { grid-template-columns: 1fr; }.section-heading { align-items: start; flex-direction: column; gap: 12px; }.video-section { grid-template-columns: 1fr; gap: 20px; }.video-copy { padding: 8px; }.section { margin-top: 36px; }.footer { flex-direction: column; gap: 4px; } }
@media (max-width: 420px) { .wrapper { width: calc(100% - 28px); }.brand { font-size: 12px; gap: 8px; }nav { gap: 15px; font-size: 12px; }.hero-copy { padding: 27px; }h1 { font-size: 43px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
