/* Felles lys profil fra DESIGN.md og src/app/globals.css. */
:root {
  --bg-base: #F5F6F8;
  --bg-surface: #FFFFFF;
  --bg-raised: #F0F2F5;
  --text-primary: #101828;
  --text-secondary: #475467;
  --text-tertiary: #626C81;
  --border-subtle: #E9ECF1;
  --border-default: #D7DCE4;
  --primary: #2563EB;
  --primary-bg: rgba(37, 99, 235, .08);
  --on-primary: #FFFFFF;
  --green: #166534;
  --green-bg: rgba(22, 101, 52, .1);
  --purple: #6D28D9;
  --purple-bg: rgba(109, 40, 217, .1);
  --blue: #0369A1;
  --blue-bg: rgba(3, 105, 161, .1);
  --amber: #92400E;
  --amber-bg: rgba(146, 64, 14, .12);
  --kamp: #1E3A8A;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg-surface); color: var(--text-primary); font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }
figure, p, h1, h2, h3, h4 { margin: 0; }
h1, h2, h3, h4 { line-height: 1.12; overflow-wrap: anywhere; }
p { color: var(--text-secondary); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 5px; }
.wrap { max-width: 1280px; margin-inline: auto; padding-inline: 48px; }
.skip-link { position: fixed; top: 12px; left: 16px; padding: 12px 20px; background: var(--bg-surface); z-index: 50; transform: translateY(-160%); border: 2px solid var(--primary); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg-surface); border-bottom: 1px solid var(--border-subtle); }
.header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; gap: 10px; align-items: center; font-size: 1.625rem; font-weight: 720; letter-spacing: -1px; }
.brand img { flex: 0 0 auto; }
#hovedmeny { display: flex; align-items: center; gap: 30px; font-size: 0.875rem; font-weight: 550; }
#hovedmeny > a:not(.button):hover { color: var(--primary); }
.login-link { margin-left: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; background: var(--primary); color: var(--on-primary); padding: 16px 23px; border: 1px solid transparent; border-radius: 12px; font-size: 0.9375rem; line-height: 1.5; font-weight: 600; text-align: center; transition: background .15s; }
.button:hover { background: color-mix(in srgb, var(--primary), var(--text-primary) 14%); }
.button-small { font-size: 0.875rem; padding: 11px 18px; }
.button-white { background: var(--bg-surface); color: var(--primary); }
.button-white:hover { background: var(--bg-raised); }
.menu-toggle { display: none; }
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 58px; padding-top: 70px; padding-bottom: 68px; }
.context-label { display: flex; align-items: center; gap: 12px; font-size: 0.875rem; font-weight: 600; margin-bottom: 28px; }
.label-line { width: 24px; height: 2px; background: var(--primary); }
h1 { font-size: clamp(2.75rem, 4.7vw, 4rem); font-weight: 680; letter-spacing: -.055em; line-height: 1.04; }
.lead { font-size: 1.125rem; line-height: 1.65; max-width: 460px; margin-top: 26px; }
.actions { display: flex; align-items: flex-start; flex-direction: column; gap: 20px; margin-top: 30px; }
.text-link { display: inline-flex; align-items: center; gap: 15px; font-size: 0.9375rem; font-weight: 600; text-underline-offset: 5px; }
.text-link:hover { text-decoration: underline; color: var(--primary); }
.hero-note { margin-top: 36px; font-size: 0.8125rem; }
.hero-photo { align-self: stretch; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.hero-photo > img { width: 100%; height: 480px; object-fit: cover; object-position: 48% 68%; border-radius: 24px; }
.hero-photo figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; column-gap: 14px; font-size: 0.75rem; color: var(--text-secondary); padding-top: 13px; }
.hero-photo figcaption span { color: var(--text-tertiary); }
.entry-links { display: grid; grid-template-columns: repeat(3, 1fr); padding-bottom: 38px; }
.entry-links a { display: flex; flex-direction: column; gap: 7px; border-top: 1px solid var(--border-default); padding: 24px 24px 12px 0; }
.entry-links a + a { padding-left: 30px; }
.entry-links a span { font-size: 0.8125rem; color: var(--text-secondary); }
.entry-links strong { font-size: 1rem; font-weight: 550; display: flex; justify-content: space-between; gap: 10px; }
.entry-links strong span { color: var(--primary); font-size: 1.25rem; }
.entry-links a:hover strong { color: var(--primary); }
.section { padding-block: 100px; }
.section-label { font-size: 0.875rem; color: var(--primary); font-weight: 600; margin-bottom: 20px; }
h2 { font-size: clamp(2.125rem, 3.7vw, 3rem); font-weight: 650; letter-spacing: -.045em; }
.section-heading > p:last-child { font-size: 1.125rem; max-width: 690px; margin-top: 24px; }
.school-section { padding-top: 74px; }
.school-grid { display: grid; grid-template-columns: .9fr 1.15fr; gap: 70px; align-items: center; margin-top: 52px; }
.feature-stories article { display: flex; gap: 20px; margin-bottom: 30px; }
.feature-stories h3 { font-size: 1.125rem; font-weight: 620; margin-bottom: 10px; }
.feature-stories p { font-size: 0.9375rem; line-height: 1.65; }
.feature-symbol { flex: 0 0 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; background: var(--primary-bg); color: var(--primary); font-size: 1.4375rem; }
.feature-stories > .text-link { margin: 10px 0 0 55px; color: var(--primary); }
.product-example { background: var(--bg-base); border: 1px solid var(--border-default); border-radius: 18px; overflow: hidden; min-width: 0; }
.example-header { flex-wrap: wrap; display: flex; align-items: center; gap: 10px; padding: 17px 22px; font-size: 0.8125rem; background: var(--bg-surface); border-bottom: 1px solid var(--border-subtle); }
.example-brand { display: grid; place-items: center; width: 27px; height: 27px; background: var(--primary); color: var(--on-primary); border-radius: 8px; font-size: 1.3125rem; font-weight: 700; line-height: 1; padding-bottom: 3px; }
.example-tag { margin-left: auto; color: var(--text-tertiary); font-size: 0.75rem; }
.example-body { padding: 28px 24px 0; }
.example-context { font-size: 0.8125rem; margin-bottom: 8px; }
.example-body > h3 { font-size: 1.5625rem; letter-spacing: -.7px; }
.preview-tabs { overflow-x: auto; display: flex; gap: 24px; margin-top: 20px; border-bottom: 1px solid var(--border-default); }
.preview-tabs button { background: none; padding: 13px 0; border: 0; color: var(--text-secondary); font-size: 0.8125rem; white-space: nowrap; border-bottom: 3px solid transparent; }
.preview-tabs button[aria-selected="true"] { border-bottom-color: var(--primary); color: var(--primary); font-weight: 600; }
.preview-panel { min-height: 255px; padding-top: 12px; }
.preview-panel > h4 { margin-top: 15px; font-size: 1.0625rem; }
.example-table > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 0; border-bottom: 1px solid var(--border-subtle); }
.example-table .table-head { padding: 10px 0; font-size: 0.75rem; color: var(--text-tertiary); }
.example-table > div > span:first-child { display: flex; gap: 10px; align-items: center; font-size: 0.875rem; }
.example-table strong { font-weight: 550; }
.team-icon { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 10px; font-size: 0.875rem; font-style: normal; }
.blue { background: var(--primary-bg); color: var(--primary); }
.green { background: var(--green-bg); color: var(--green); }
.purple { background: var(--purple-bg); color: var(--purple); }
.status { font-size: 0.75rem; color: var(--green); }
.status.pending { color: var(--amber); }
.example-hint { font-size: 0.8125rem; margin-top: 20px; line-height: 1.5; }
.example-caption { font-size: 0.75rem; color: var(--text-tertiary); padding: 18px 24px; }
.admission-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 26px 0; }
.admission-summary > div { display: flex; flex-direction: column; gap: 5px; }
.admission-summary strong { font-size: 2rem; font-weight: 600; }
.admission-summary span { font-size: 0.8125rem; color: var(--text-secondary); }
.example-message { display: flex; gap: 12px; padding: 20px 0 5px; }
.example-message strong { font-size: 0.875rem; }
.example-message p { font-size: 0.875rem; margin-top: 7px; }
.audience-section { background: var(--bg-base); }
.audience-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 125px; }
.audience-grid > div > p:last-child { font-size: 1.0625rem; margin-top: 26px; max-width: 380px; }
.audience-list article { padding: 25px 0; border-bottom: 1px solid var(--border-default); }
.audience-list article:first-child { padding-top: 0; }
.audience-list article:last-child { border: 0; padding-bottom: 0; }
.audience-list h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 12px; }
.audience-list p { font-size: 1rem; }
.student-section { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.student-example { background: var(--bg-base); border-radius: 22px; padding: 30px; }
.student-example-top { flex-wrap: wrap; display: flex; align-items: center; gap: 9px; font-size: 0.8125rem; }
.student-example > h3 { font-size: 1.625rem; letter-spacing: -.8px; margin: 28px 0 24px; }
.activity { display: flex; align-items: center; gap: 14px; padding: 18px 14px; margin-bottom: 12px; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-left: 3px solid var(--blue); border-radius: 14px; }
.activity.social { border-left-color: var(--green); }
.activity.match { border-left-color: var(--kamp); }
.date-box { display: flex; align-items: center; flex-direction: column; padding: 8px 12px; background: var(--blue-bg); color: var(--blue); border-radius: 9px; }
.date-box span { font-size: 0.75rem; }
.date-box strong { font-size: 1.3125rem; }
.activity-kind { color: var(--text-tertiary); font-size: 0.75rem; }
.activity h4 { font-size: 0.9375rem; font-weight: 600; margin: 5px 0; }
.activity p { font-size: 0.75rem; }
.activity-answer { color: var(--green); font-size: 0.75rem; margin-left: auto; }
.student-example .example-caption { padding: 10px 0 0; }
.student-copy > p:not(.section-label) { margin-top: 26px; font-size: 1.0625rem; }
.plain-checks { list-style: none; padding: 0; margin: 25px 0; }
.plain-checks li { font-size: 0.9375rem; padding: 8px 0 8px 26px; position: relative; }
.plain-checks li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); }
.clubshop-section { background: var(--bg-base); }
.shop-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 100px; margin-bottom: 45px; }
.shop-heading > p { font-size: 1.1875rem; max-width: 435px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.garment-photo { background: var(--bg-surface); border-radius: 16px; padding: 24px; aspect-ratio: 1 / 1.04; display: grid; place-items: center; }
.garment-photo img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.product-grid figcaption { padding: 20px 0 0; display: flex; flex-direction: column; gap: 5px; }
.product-grid figcaption strong { font-size: 1.1875rem; font-weight: 600; }
.product-grid figcaption span { font-size: 0.875rem; color: var(--text-secondary); }
.catalog-note { font-size: 0.8125rem; margin-top: 23px; }
.shop-steps { list-style: none; padding: 34px 0; border-top: 1px solid var(--border-default); border-bottom: 1px solid var(--border-default); display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 36px 0; }
.shop-steps li { display: flex; align-items: flex-start; gap: 16px; }
.shop-steps li > span { display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 29px; border: 1px solid var(--border-default); border-radius: 50%; font-size: 0.8125rem; }
.shop-steps h3 { font-size: 1.0625rem; font-weight: 600; margin: 5px 0 10px; }
.shop-steps p { font-size: 0.875rem; }
.shop-actions { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.shop-actions p { font-size: 0.8125rem; margin-top: 12px; }
.faq-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; }
.faq-section > div > p:not(.section-label) { margin: 24px 0; max-width: 320px; }
.faq-list details { border-bottom: 1px solid var(--border-default); }
.faq-list details:first-child { border-top: 1px solid var(--border-default); }
.faq-list summary { padding: 23px 34px 23px 0; position: relative; list-style: none; font-size: 1.0625rem; font-weight: 550; line-height: 1.5; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 3px; top: 21px; color: var(--primary); font-size: 1.5rem; font-weight: 400; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { padding: 0 30px 25px 0; font-size: 1rem; }
.faq-list details a { text-decoration: underline; text-underline-offset: 3px; color: var(--primary); }
.contact-section { margin-top: 10px; margin-bottom: 70px; padding: 58px 64px; max-width: 1184px; border-radius: 24px; background: var(--primary); color: var(--on-primary); display: grid; grid-template-columns: 1fr 1fr; gap: 95px; align-items: center; }
.contact-section p { color: var(--on-primary); font-size: 1.0625rem; margin-bottom: 22px; }
.contact-section > div:first-child p { font-size: 0.875rem; }
.contact-section h2 { font-size: 2.75rem; }
.contact-note { display: block; font-size: 0.75rem; margin-top: 15px; }
.site-footer { padding-bottom: 28px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; padding-bottom: 45px; }
.footer-top p { font-size: 0.875rem; margin-top: 14px; }
.footer-top nav { display: grid; grid-template-columns: auto auto; gap: 15px 40px; font-size: 0.875rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; padding-top: 25px; border-top: 1px solid var(--border-default); font-size: 0.75rem; color: var(--text-secondary); }
.footer-bottom > div { display: flex; gap: 25px; flex-wrap: wrap; }
.site-footer a:hover { color: var(--primary); }
@media (max-width: 1100px) {
  .wrap { padding-inline: 32px; }
  #hovedmeny { gap: 21px; }
  .login-link { margin-left: 0; }
  .hero { gap: 34px; }
  h1 { font-size: 3.1875rem; }
  .hero-photo > img { height: 455px; }
  .school-grid { gap: 36px; }
  .audience-grid, .student-section, .shop-heading, .faq-section { gap: 60px; }
  .contact-section { margin-inline: 32px; padding: 48px; gap: 65px; }
}
@media (max-width: 960px) {
  .header-inner { min-height: 75px; flex-wrap: wrap; }
  .menu-toggle { display: flex; gap: 12px; align-items: center; padding: 10px 12px; background: var(--bg-base); border: 1px solid var(--border-default); border-radius: 10px; font-size: 0.875rem; }
  #hovedmeny { flex-basis: 100%; flex-wrap: wrap; gap: 12px 25px; padding-bottom: 20px; }
  #hovedmeny.enhanced { display: none; }
  #hovedmeny.enhanced.is-open { display: flex; }
  .hero { padding-top: 48px; gap: 30px; }
  h1 { font-size: 2.75rem; }
  .lead { font-size: 1.0625rem; }
  .hero-photo > img { height: 420px; }
  .context-label { font-size: 0.8125rem; }
  .entry-links strong { font-size: 0.875rem; }
  .entry-links a + a { padding-left: 20px; }
  .section { padding-block: 75px; }
  .school-grid { grid-template-columns: 1fr; }
  .feature-stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .feature-stories article { display: block; }
  .feature-stories .feature-symbol { margin-bottom: 14px; width: 35px; }
  .feature-stories > .text-link { grid-column: 1 / -1; margin: 0; }
  .product-example { width: 100%; }
  .preview-panel { min-height: 245px; }
  .audience-grid { gap: 42px; }
  .student-section { grid-template-columns: 1fr; }
  .student-copy { grid-row: 1; }
  .student-copy .actions { flex-direction: row; align-items: center; }
  .student-example { max-width: 600px; width: 100%; }
  .shop-heading { gap: 30px; }
  .shop-steps { gap: 22px; }
  .shop-steps li { display: block; }
  .shop-steps li > span { margin-bottom: 16px; }
  .faq-section { gap: 42px; }
  .contact-section { gap: 38px; }
  .contact-section h2 { font-size: 2.375rem; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 95px; }
  .wrap { padding-inline: 24px; }
  .brand { font-size: 1.5rem; }
  #hovedmeny.is-open { align-items: stretch; gap: 0; flex-direction: column; }
  #hovedmeny a { padding: 12px 0; }
  #hovedmeny .button { margin-top: 10px; }
  .hero { grid-template-columns: 1fr; padding-top: 38px; padding-bottom: 36px; gap: 32px; }
  .context-label { margin-bottom: 22px; font-size: 0.75rem; }
  h1 { font-size: clamp(2.5rem, 10.5vw, 3.625rem); }
  .lead { margin-top: 22px; }
  .actions { gap: 20px; margin-top: 25px; }
  .button { font-size: 0.875rem; padding: 15px 18px; }
  .hero-note { margin-top: 25px; font-size: 0.75rem; }
  .hero-photo > img { height: 320px; border-radius: 18px; object-position: 50% 70%; }
  .hero-photo figcaption { font-size: 0.6875rem; }
  .entry-links { grid-template-columns: 1fr; padding-bottom: 0; }
  .entry-links a, .entry-links a + a { padding: 19px 0; }
  .entry-links strong { font-size: 1rem; }
  .section { padding-block: 62px; }
  .section-label { margin-bottom: 16px; }
  h2 { font-size: 2.1875rem; }
  .section-heading > p:last-child { font-size: 1.0625rem; margin-top: 20px; }
  .school-grid { margin-top: 32px; gap: 30px; }
  .feature-stories { display: block; }
  .feature-stories article { display: flex; margin-bottom: 25px; }
  .feature-stories > .text-link { font-size: 0.875rem; }
  .example-header { padding: 15px; font-size: 0.75rem; }
  .example-body { padding: 23px 16px 0; }
  .preview-tabs { gap: 15px; }
  .preview-tabs button { font-size: 0.75rem; }
  .example-table > div > span:first-child { font-size: 0.8125rem; gap: 8px; }
  .status { font-size: 0.6875rem; max-width: 115px; text-align: right; }
  .example-caption { padding-inline: 16px; }
  .audience-grid, .shop-heading, .faq-section { grid-template-columns: 1fr; gap: 35px; }
  .audience-grid h2 br { display: none; }
  .audience-grid > div > p:last-child { margin-top: 20px; }
  .student-section { gap: 35px; }
  .student-copy .actions { flex-direction: column; align-items: flex-start; }
  .student-example { padding: 22px 16px; }
  .student-example-top { font-size: 0.75rem; }
  .activity { gap: 10px; padding-inline: 10px; }
  .activity h4 { font-size: 0.875rem; }
  .date-box { padding: 7px 10px; }
  .activity-answer { display: none; }
  .shop-heading { margin-bottom: 32px; }
  .shop-heading > p { font-size: 1.0625rem; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 24px 14px; }
  .product-grid figure:first-child { grid-column: 1 / -1; }
  .product-grid figure:first-child .garment-photo { aspect-ratio: 1.2 / 1; }
  .garment-photo { padding: 15px; }
  .product-grid figcaption { padding-top: 13px; }
  .product-grid figcaption strong { font-size: 1.0625rem; }
  .product-grid figcaption span { font-size: 0.8125rem; }
  .shop-steps { grid-template-columns: 1fr; gap: 24px; padding-block: 28px; }
  .shop-steps li { display: flex; }
  .shop-steps li > span { margin: 0; }
  .shop-actions { align-items: flex-start; flex-direction: column; gap: 25px; }
  .faq-section > div > p:not(.section-label) { margin-block: 20px; }
  .contact-section { margin: 0 24px 50px; padding: 34px 26px; grid-template-columns: 1fr; gap: 26px; border-radius: 18px; }
  .contact-section h2 { font-size: 2.25rem; }
  .contact-section p { font-size: 1rem; }
  .footer-top, .footer-bottom { flex-direction: column; }
  .footer-top { gap: 32px; }
  .footer-top nav { gap: 18px 26px; font-size: 0.8125rem; }
  .footer-bottom > div { gap: 15px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
/* Tekstforstørrelse skal bryte linjer, ikke presse rutenettet ut av siden. */
:where(.hero, .school-grid, .feature-stories, .audience-grid, .student-section, .shop-heading, .faq-section, .contact-section, .feature-stories article) > * { min-width: 0; }
p, a { overflow-wrap: anywhere; }
.footer-top nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
