/*
Theme Name: Gullandsgården
Theme URI: https://dab-lejerbo.dk
Author: Afdelingsbestyrelsen i Gullandsgården
Description: Enkelt og tilgængeligt beboertema til boligafdeling Gullandsgården (DAB-Lejerbo). Nyheder, referater, bestyrelse og ejendomskontor – alt redigeres fra WordPress.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: gullandsgaarden
*/

/* ---------- Skrifttype (lokalt hostet Roboto – ingen data sendes til Google) ---------- */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/roboto-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/roboto-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("assets/fonts/roboto-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("assets/fonts/roboto-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("assets/fonts/roboto-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("assets/fonts/roboto-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Farver (kan ændres under Udseende → Tilpas → Farver) ---------- */
:root {
  --gg-navy: #002855;
  --gg-magenta: #c8006e;
  --gg-lightblue: #e6f0f8;
  --gg-text: #1a1a1a;
  --gg-muted: #555b63;
  --gg-bg: #ffffff;
  --gg-line: #d5dde6;
  --gg-alert: #fff4d6;
  --gg-alert-line: #e0a800;
  --gg-radius: 6px;
  --gg-max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; } /* 18 px – lettere at læse */
body {
  margin: 0; background: var(--gg-bg); color: var(--gg-text);
  font-family: "Roboto", Arial, "Helvetica Neue", sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--gg-navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gg-magenta); }
:focus-visible { outline: 3px solid var(--gg-magenta); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { color: var(--gg-navy); line-height: 1.25; font-weight: 700; margin: 0 0 .6em; }
h1 { font-size: 2rem; } h2 { font-size: 1.5rem; } h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 999; background: var(--gg-magenta); color: #fff; padding: .7rem 1rem; border-radius: var(--gg-radius); font-weight: 700; }
.skip-link:focus { top: 1rem; color: #fff; }

.wrap { max-width: var(--gg-max); margin: 0 auto; padding: 0 1rem; }

/* ---------- Driftsbesked (bjælke øverst) ---------- */
.breaking { color: #fff; background: #b3001b; font-size: 1rem; }
.breaking--info { background: #ffc629; color: #1a1a1a; }
.breaking-inner { display: flex; align-items: center; gap: .8rem 1rem; padding-top: .7rem; padding-bottom: .7rem; }
.breaking-label { flex: none; display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .8rem; background: rgba(0,0,0,.22); padding: .3rem .6rem; border-radius: 3px; }
.breaking--info .breaking-label { background: rgba(0,0,0,.1); }
.breaking-label svg { width: 1.1em; height: 1.1em; }
.breaking-text { margin: 0; flex: 1; font-weight: 500; }
.breaking a { color: inherit; font-weight: 700; margin-left: .3rem; white-space: nowrap; }
.breaking a:hover { color: inherit; text-decoration-thickness: 2px; }
.breaking-close { flex: none; background: transparent; border: 2px solid currentColor; color: inherit; border-radius: 50%; width: 2rem; height: 2rem; font-size: 1.2rem; line-height: 1; cursor: pointer; opacity: .85; }
.breaking-close:hover { opacity: 1; }
.breaking:focus-visible, .breaking :focus-visible { outline-color: #fff; }
.breaking--info :focus-visible { outline-color: var(--gg-navy); }
@media (max-width: 760px) {
  .breaking-inner { flex-wrap: wrap; }
  .breaking-text { flex-basis: calc(100% - 3rem); order: 3; }
  .breaking-label { order: 1; } .breaking-close { order: 2; margin-left: auto; }
}

/* ---------- Header ---------- */
.site-header { background: var(--gg-navy); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: .9rem; padding-bottom: .9rem; }
.site-brand { color: #fff; text-decoration: none; display: flex; flex-direction: column; line-height: 1.2; }
.site-brand:hover { color: #fff; }
.site-brand strong { font-size: 1.35rem; }
.site-brand span { font-size: .85rem; opacity: .85; }
.custom-logo { max-height: 56px; width: auto; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.main-nav a { display: block; color: #fff; text-decoration: none; padding: .5rem .8rem; border-radius: var(--gg-radius); font-weight: 500; }
.main-nav a:hover, .main-nav .current-menu-item > a { background: rgba(255,255,255,.14); color: #fff; }
.nav-toggle { display: none; background: transparent; color: #fff; border: 2px solid #fff; border-radius: var(--gg-radius); padding: .45rem .8rem; font: inherit; font-weight: 500; cursor: pointer; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .main-nav { width: 100%; display: none; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: .8rem; border-top: 1px solid rgba(255,255,255,.15); border-radius: 0; }
}

/* ---------- Hero / intro ---------- */
.hero { background: var(--gg-lightblue); padding: 2.2rem 0; border-bottom: 4px solid var(--gg-magenta); }
.hero h1 { margin-bottom: .3em; }
.hero p { font-size: 1.1rem; max-width: 46rem; margin: 0; }

/* ---------- Vigtige beskeder ---------- */
.alerts { padding-top: 1.5rem; }
.alert { background: var(--gg-alert); border-left: 6px solid var(--gg-alert-line); border-radius: var(--gg-radius); padding: 1rem 1.2rem; margin-bottom: .8rem; }
.alert strong.label { display: inline-block; text-transform: uppercase; font-size: .75rem; letter-spacing: .06em; color: #6b4f00; margin-bottom: .2rem; }
.alert h2 { font-size: 1.15rem; margin: 0 0 .25em; }
.alert h2 a { color: var(--gg-text); }
.alert p { margin: 0; }

/* ---------- Layout ---------- */
.section { padding: 2.5rem 0; }
.section + .section { border-top: 1px solid var(--gg-line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.section-head h2 { margin: 0; }
.grid-main { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 900px) { .grid-main { grid-template-columns: 1.7fr 1fr; } }

/* ---------- Kort ---------- */
.card { background: #fff; border: 1px solid var(--gg-line); border-radius: var(--gg-radius); padding: 1.3rem; }
.card--blue { background: var(--gg-lightblue); border-color: transparent; }
.card h2, .card h3 { margin-top: 0; }

/* Nyhedsliste */
.news-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.news-item { border-bottom: 1px solid var(--gg-line); padding-bottom: 1rem; }
.news-item:last-child { border-bottom: 0; }
.news-item h3 { margin: 0 0 .2em; font-size: 1.2rem; }
.news-item h3 a { text-decoration: none; }
.news-item h3 a:hover { text-decoration: underline; }
.meta { color: var(--gg-muted); font-size: .88rem; margin-bottom: .35rem; }
.tag-important { display: inline-block; background: var(--gg-alert-line); color: #1a1a1a; font-size: .72rem; font-weight: 700; padding: .1rem .45rem; border-radius: 3px; margin-right: .4rem; text-transform: uppercase; letter-spacing: .04em; }

/* Åbningstider */
.hours { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.hours th, .hours td { text-align: left; padding: .35rem 0; border-bottom: 1px solid rgba(0,40,85,.12); vertical-align: top; }
.hours th { font-weight: 500; padding-right: 1rem; }
.contact-lines { list-style: none; padding: 0; margin: 0 0 1rem; }
.contact-lines li { margin-bottom: .3rem; }

/* Knapper */
.btn { display: inline-flex; align-items: center; gap: .5rem; background: var(--gg-magenta); color: #fff; text-decoration: none; font-weight: 700; padding: .7rem 1.15rem; border-radius: var(--gg-radius); border: 2px solid var(--gg-magenta); line-height: 1.2; }
.btn:hover { background: #fff; color: var(--gg-magenta); }
.btn--outline { background: transparent; color: var(--gg-navy); border-color: var(--gg-navy); }
.btn--outline:hover { background: var(--gg-navy); color: #fff; }
.btn--light { background: #fff; color: var(--gg-navy); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.link-more { font-weight: 500; }

/* Referater */
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.doc { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border: 1px solid var(--gg-line); border-radius: var(--gg-radius); padding: .8rem 1rem; background: #fff; }
.doc-title { font-weight: 500; }
.doc-title small { display: block; color: var(--gg-muted); font-weight: 400; font-size: .85rem; }
.doc .btn { padding: .5rem .9rem; font-size: .92rem; }
.year-heading { margin-top: 2rem; }

/* Bestyrelse */
.board { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.member { text-align: center; }
.member img, .member .avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto .6rem; display: block; }
.member .avatar { background: var(--gg-navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 700; }
.member .name { font-weight: 700; color: var(--gg-navy); }
.member .role { color: var(--gg-magenta); font-weight: 500; font-size: .92rem; }

/* DAB-Lejerbo-boks */
.dab { background: var(--gg-navy); color: #fff; border-radius: var(--gg-radius); padding: 1.6rem; display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.dab h2 { color: #fff; margin-bottom: .2em; }
.dab p { margin: 0; opacity: .92; }
.dab .actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* Indhold på enkeltsider */
.entry { max-width: 46rem; }
.entry-content > * { max-width: 100%; }
.entry-content ul, .entry-content ol { padding-left: 1.3rem; }
.entry-content .wp-block-file { background: var(--gg-lightblue); padding: .8rem 1rem; border-radius: var(--gg-radius); }
.entry-content .wp-block-file__button { background: var(--gg-magenta) !important; border-radius: var(--gg-radius) !important; }
.back { display: inline-block; margin-top: 1.5rem; }
.pagination { margin-top: 2rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.pagination .page-numbers { padding: .4rem .8rem; border: 1px solid var(--gg-line); border-radius: var(--gg-radius); text-decoration: none; }
.pagination .current { background: var(--gg-navy); color: #fff; border-color: var(--gg-navy); }

/* ---------- Footer ---------- */
.site-footer { background: var(--gg-navy); color: #fff; margin-top: 3rem; padding: 2rem 0; font-size: .92rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ffd1ea; }
.footer-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer h2 { color: #fff; font-size: 1rem; margin-bottom: .5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.2); margin-top: 1.5rem; padding-top: 1rem; opacity: .85; }

.empty { color: var(--gg-muted); font-style: italic; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .site-header, .site-footer, .nav-toggle, .skip-link { display: none; } }
