/*
Theme Name: Tvillingegården & Nandrupsvej
Theme URI: https://tvillingegården-frb.dk
Author: Tvillingegården
Description: Varmt, lyst WordPress-tema til Tvillingegården & Nandrupsvej med underkategorier, dokumentarkiv og stort forsidebillede.
Version: 65.10.0
Text Domain: tvillingegaarden
*/
:root{
 --gold:#c69b36;--gold-soft:#e5cf8a;--sand:#efe7d7;--cream:#fbf8f1;
 --paper:#ffffff;--ink:#24231f;--muted:#706b61;--line:#e7dfd1;
 --charcoal:#292722;--shadow:0 12px 36px rgba(73,57,25,.08)
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:#fff;font-family:Arial,Helvetica,sans-serif;line-height:1.6}a{color:inherit;text-decoration:none}a:hover{color:#8b6a21}img{max-width:100%;height:auto}.wrap{width:min(1220px,calc(100% - 48px));margin:auto}
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.97);border-bottom:1px solid var(--line);backdrop-filter:blur(9px)}
.header-inner{height:88px;display:flex;align-items:center;justify-content:space-between;gap:30px}
.street-brand img{display:block;width:245px;max-width:34vw;height:56px;object-fit:cover;object-position:center;border:5px solid #d7d2c7;box-shadow:0 2px 9px rgba(0,0,0,.12)}
.main-nav>ul{display:flex;align-items:center;gap:25px;list-style:none;padding:0;margin:0}.main-nav li{position:relative}.main-nav a{display:block;font-size:13px;letter-spacing:.02em;padding:34px 0}.main-nav>ul>li>a{border-bottom:2px solid transparent}.main-nav>ul>li:hover>a{border-color:var(--gold)}
.main-nav .menu-item-has-children>a:after{content:"⌄";color:var(--gold);font-size:12px;margin-left:7px}
.main-nav .sub-menu{position:absolute;top:100%;left:-20px;display:none;list-style:none;margin:0;padding:12px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);min-width:270px}
.main-nav li:hover>.sub-menu,.main-nav li:focus-within>.sub-menu{display:block}.main-nav .sub-menu li+li{border-top:1px solid #f0ece4}.main-nav .sub-menu a{padding:11px 12px;font-size:13px;line-height:1.35}
.nav-toggle{display:none;border:0;background:var(--sand);font-size:24px;width:44px;height:44px;cursor:pointer}
.hero{height:min(82vh,790px);min-height:610px;position:relative;background:#b8b09f;overflow:hidden;display:flex;align-items:flex-end}
.hero-media{position:absolute;inset:0}.hero-media img{width:100%;height:100%;object-fit:cover;object-position:center 41%}.hero-media:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.00) 30%,rgba(0,0,0,.40))}
.hero-content{position:relative;z-index:2;width:100%;color:#fff;text-align:center;padding-bottom:76px;text-shadow:0 2px 14px rgba(0,0,0,.26)}
.hero-kicker{font-family:Georgia,"Times New Roman",serif;font-style:italic;font-size:clamp(32px,4vw,58px);line-height:1;margin-bottom:8px}
.hero h1{font-family:Georgia,"Times New Roman",serif;font-style:italic;font-size:clamp(56px,7vw,102px);font-weight:400;line-height:.96;margin:0 0 18px}
.hero p{font-size:18px;letter-spacing:.10em;text-transform:uppercase;margin:0}
.section{padding:74px 0}.section.soft{background:var(--cream)}.kicker{color:#9a721d;letter-spacing:.15em;text-transform:uppercase;font-size:12px;font-weight:700}.section h2,.page-hero h1{font-family:Georgia,"Times New Roman",serif;font-weight:400}.section h2{font-size:42px;margin:7px 0 13px}.lead{max-width:760px;color:var(--muted);font-size:17px}
.home-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:38px;align-items:stretch}.feature-image{min-height:420px}.feature-image img{width:100%;height:100%;object-fit:cover}
.home-links{display:grid;grid-template-columns:1fr 1fr;gap:16px}.home-link{border:1px solid var(--line);background:#fff;display:flex;flex-direction:column;min-height:195px}.home-link img{width:100%;height:115px;object-fit:cover}.home-link .inner{padding:15px 16px}.home-link h3{font-family:Georgia,serif;font-weight:400;font-size:19px;margin:0 0 5px}.home-link span{font-size:12px;color:#9a721d}
.news-band{display:grid;grid-template-columns:1.1fr .9fr;gap:30px}.news-card{background:white;border:1px solid var(--line);display:grid;grid-template-columns:205px 1fr;min-height:220px}.news-card img{width:100%;height:100%;object-fit:cover}.news-copy{padding:28px}.news-copy h3{font-family:Georgia,serif;font-size:27px;font-weight:400;margin:7px 0}.button-link{display:inline-block;border:1px solid var(--gold);padding:10px 15px;margin-top:10px;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.quick-panel{background:var(--sand);padding:28px}.quick-panel h3{font-family:Georgia,serif;font-size:27px;font-weight:400;margin:0 0 14px}.quick-row{padding:13px 0;border-bottom:1px solid rgba(0,0,0,.09)}.quick-row:last-child{border-bottom:0}
.page-hero{background:var(--cream);border-bottom:1px solid var(--line);padding:62px 0}.page-hero .crumb{font-size:12px;color:#9a721d;text-transform:uppercase;letter-spacing:.12em}.page-hero h1{font-size:52px;margin:7px 0 0}.content{padding:58px 0}.content-narrow{max-width:900px}
.portal-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:30px}.portal-card{border:1px solid var(--line);background:#fff;min-height:220px;padding:24px;box-shadow:0 7px 24px rgba(50,40,20,.04)}.portal-card .num{font-family:Georgia,serif;color:#9a721d;font-size:30px}.portal-card h2,.portal-card h3{font-family:Georgia,serif;font-weight:400;margin:8px 0}.portal-card h3{font-size:24px}.portal-card p{color:var(--muted);font-size:14px}.portal-card a{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.07em}
.doc-list{border-top:1px solid var(--line);margin-top:30px}.doc-row{display:grid;grid-template-columns:155px 1fr auto;gap:24px;align-items:start;padding:24px 0;border-bottom:1px solid var(--line)}.doc-type{color:#9a721d;font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.doc-row h3{font-family:Georgia,serif;font-size:24px;font-weight:400;margin:0 0 6px}.doc-row p{margin:0;color:var(--muted);font-size:14px}.doc-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.doc-actions a{border:1px solid var(--gold);padding:9px 12px;font-size:11px;text-transform:uppercase;letter-spacing:.06em}
.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-top:28px}.gallery-grid img{width:100%;height:275px;object-fit:cover}
.history-feature{display:grid;grid-template-columns:1fr 1fr;gap:35px;align-items:center}.history-feature img{width:100%;max-height:620px;object-fit:cover}
.notice{background:#fff8e6;border:1px solid #e4c66f;padding:18px}.muted{color:var(--muted)}
.site-footer{border-top:6px solid var(--gold-soft);background:var(--charcoal);color:#f2eee5;padding:45px 0}.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:35px}.site-footer a{color:#fff}
@media(max-width:1000px){.nav-toggle{display:block}.main-nav{display:none;position:absolute;top:88px;left:0;right:0;background:white;border-top:1px solid var(--line);padding:10px 24px 24px;max-height:calc(100vh - 88px);overflow:auto}.main-nav.open{display:block}.main-nav>ul{display:block}.main-nav a{padding:11px 0}.main-nav .sub-menu{display:block;position:static;border:0;box-shadow:none;padding:0 0 4px 18px;min-width:0}.main-nav .sub-menu a{padding:7px 0}.home-grid,.news-band,.history-feature{grid-template-columns:1fr}.portal-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.wrap{width:min(100% - 28px,1220px)}.header-inner{height:76px}.street-brand img{width:190px;max-width:65vw;height:48px}.main-nav{top:76px}.hero{height:80vh;min-height:650px}.hero-media img{object-position:center top}.hero-content{padding-bottom:50px}.hero p{font-size:14px}.home-links,.portal-grid,.gallery-grid{grid-template-columns:1fr}.news-card{grid-template-columns:1fr}.news-card img{height:220px}.doc-row{grid-template-columns:1fr}.doc-actions{justify-content:flex-start}.page-hero h1{font-size:42px}.section{padding:52px 0}.section h2{font-size:34px}.footer-grid{grid-template-columns:1fr}}


/* --- Responsiv billedvisning: computer, tablet og mobil --- */
.hero-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 42%;
}
.history-feature img,
.gallery-grid img,
.news-card img,
.home-link img{
  display:block;
  width:100%;
}
@media (max-width: 1000px){
  .hero{
    min-height:560px;
    height:72vh;
  }
  .hero-media img{
    object-position:center 38%;
  }
  .history-feature img{
    max-height:520px;
    object-fit:cover;
    object-position:center center;
  }
  .gallery-grid img{
    height:240px;
    object-fit:cover;
    object-position:center center;
  }
  .news-card img{
    min-height:240px;
    object-fit:cover;
    object-position:center center;
  }
}
@media (max-width: 650px){
  .hero{
    min-height:590px;
    height:78vh;
  }
  .hero-media img{
    object-position:center 34%;
  }
  .hero-content{
    padding-left:18px;
    padding-right:18px;
  }
  .history-feature img{
    max-height:none;
    aspect-ratio:4/5;
    object-fit:cover;
    object-position:center center;
  }
  .gallery-grid img,
  .news-card img{
    height:auto;
    aspect-ratio:4/3;
    object-fit:cover;
  }
  .home-link img{
    height:auto;
    aspect-ratio:16/9;
    object-fit:cover;
  }
}


/* ===== Godkendt Tvillingegården-stil ===== */
:root{--forest:#173a25;--softcard:#f3f4ef;--warm:#faf9f5}
.site-header{position:sticky;top:0;background:#fff;border-bottom:1px solid #e9e9e5;box-shadow:none}
.header-inner{height:78px;gap:34px}
.street-brand img{width:220px;max-width:30vw;height:55px;object-fit:contain;border:0;box-shadow:none;background:#fff}
.main-nav{margin-left:auto}
.main-nav>ul{gap:32px}
.main-nav a{font-size:15px;font-weight:600;padding:27px 0;color:#161616}
.main-nav>ul>li:hover>a,.main-nav>ul>li.current-menu-item>a{color:var(--forest);border-color:var(--forest)}
.main-nav .menu-item-has-children>a:after{color:#111}
.main-nav .sub-menu{left:-18px;border-radius:8px;border:1px solid #e5e5df;min-width:285px;padding:9px 14px}
.main-nav .sub-menu a{font-weight:500;padding:10px 7px}
.hero{height:420px;min-height:0;align-items:center}
.hero-media img{object-position:center center}
.hero-media:after{background:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.18))}
.hero-content{padding:0;text-shadow:0 2px 9px rgba(0,0,0,.42)}
.hero-kicker{font-style:normal;font-size:clamp(34px,3.5vw,54px);margin-bottom:0}
.hero h1{font-style:normal;font-size:clamp(52px,5.5vw,82px);font-weight:600;line-height:1;margin:0 0 18px}
.hero p{font-size:16px;font-weight:600;letter-spacing:.18em}
.portal-strip{background:#fff;padding:14px 0 18px;border-bottom:1px solid #ededeb}
.portal-home-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}
.portal-home-card{background:var(--softcard);border-radius:8px;min-height:150px;text-align:center;padding:20px 10px 16px;display:flex;flex-direction:column;align-items:center;justify-content:center;transition:.18s ease}
.portal-home-card:hover{transform:translateY(-2px);color:var(--forest);box-shadow:0 8px 24px rgba(0,0,0,.06)}
.portal-home-card strong{font-size:16px;margin:5px 0 4px}
.portal-home-card small{font-size:13px;line-height:1.4;color:#333}
.portal-icon{color:var(--forest);font-size:35px;line-height:1;font-weight:800;min-height:38px}
.portal-icon.people{font-size:20px;letter-spacing:-4px;padding-top:7px}
.intro-section{padding:55px 0;text-align:center}
.intro-copy .lead{margin:0 auto;max-width:760px}
.intro-copy h2{margin-bottom:8px}
.bytte-teaser{background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.bytte-teaser img{width:100%;height:250px;object-fit:cover;object-position:center 45%}
.bytte-copy{padding:24px}
.bytte-copy h3{font-family:Georgia,serif;font-size:28px;font-weight:400;margin:6px 0}
.nav-toggle{background:#fff;border-radius:0;font-size:28px}
@media(max-width:1100px){
 .main-nav>ul{gap:18px}.main-nav a{font-size:13px}.street-brand img{width:190px}
}
@media(max-width:1000px){
 .header-inner{height:76px}
 .main-nav{top:76px;padding:8px 24px 24px}
 .main-nav .sub-menu{border-left:2px solid #e3e8e3;border-radius:0}
 .portal-home-grid{grid-template-columns:repeat(3,1fr)}
 .hero{height:440px}
}
@media(max-width:650px){
 .street-brand img{width:150px;height:46px;max-width:62vw}
 .hero{height:360px;min-height:0}
 .hero-media img{object-position:center center}
 .hero-kicker{font-size:30px}
 .hero h1{font-size:44px}
 .hero p{font-size:12px;letter-spacing:.15em}
 .portal-strip{padding:0;border:0}
 .portal-home-grid{display:block;width:100%}
 .portal-home-card{min-height:0;border-radius:0;background:#fff;border-bottom:1px solid #e6e6e2;padding:15px 18px;display:grid;grid-template-columns:42px 1fr 18px;text-align:left;justify-items:start}
 .portal-home-card:after{content:"›";font-size:27px;line-height:1;color:#222}
 .portal-home-card .portal-icon{font-size:28px;min-height:0}
 .portal-home-card .portal-icon.people{font-size:16px;padding-top:5px}
 .portal-home-card strong{font-size:15px;margin:0}
 .portal-home-card small{display:none}
 .intro-section{padding:42px 0}
}


/* ===== Menu-fix v4: én menu, altid inden for skærmen ===== */
.site-header{overflow:visible!important;z-index:9999!important}
.site-header .wrap.header-inner{
  width:min(94%,1380px)!important;
  max-width:1380px!important;
  height:78px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:28px!important;
  overflow:visible!important
}
.site-header .street-brand{flex:0 0 auto!important}
.site-header .street-brand img{width:210px!important;max-width:none!important;height:52px!important}
.site-header .main-nav{
  display:block!important;
  position:static!important;
  margin-left:auto!important;
  flex:0 1 auto!important;
  min-width:0!important;
  overflow:visible!important;
  background:transparent!important;
  border:0!important;
  padding:0!important
}
.site-header .main-nav .tvg-menu{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:24px!important;
  list-style:none!important;
  margin:0!important;
  padding:0!important;
  white-space:nowrap!important
}
.site-header .main-nav .tvg-menu>li{display:block!important;position:relative!important;margin:0!important;padding:0!important}
.site-header .main-nav .tvg-menu>li>a{
  display:block!important;
  padding:28px 0 25px!important;
  font-size:14px!important;
  line-height:1!important;
  color:#171717!important;
  font-weight:600!important;
  text-decoration:none!important
}
.site-header .main-nav .tvg-menu .sub-menu{
  display:none!important;
  position:absolute!important;
  top:100%!important;
  left:-18px!important;
  right:auto!important;
  z-index:10000!important;
  min-width:270px!important;
  max-width:340px!important;
  margin:0!important;
  padding:8px 14px!important;
  background:#fff!important;
  border:1px solid #e6e6e2!important;
  border-radius:8px!important;
  box-shadow:0 12px 28px rgba(0,0,0,.10)!important;
  list-style:none!important;
  white-space:normal!important
}
.site-header .main-nav .tvg-menu>li:nth-last-child(-n+2) .sub-menu{
  left:auto!important;
  right:0!important
}
.site-header .main-nav .tvg-menu li:hover>.sub-menu,
.site-header .main-nav .tvg-menu li:focus-within>.sub-menu{display:block!important}
.site-header .main-nav .tvg-menu .sub-menu a{
  display:block!important;
  padding:10px 6px!important;
  font-size:13px!important;
  line-height:1.35!important;
  color:#222!important
}
.site-header .nav-toggle{display:none!important}

@media(max-width:1180px){
  .site-header .wrap.header-inner{width:min(100% - 36px,1100px)!important}
  .site-header .street-brand img{width:180px!important}
  .site-header .main-nav .tvg-menu{gap:16px!important}
  .site-header .main-nav .tvg-menu>li>a{font-size:13px!important}
}
@media(max-width:980px){
  .site-header .nav-toggle{
    display:block!important;
    margin-left:auto!important;
    flex:0 0 44px!important;
    width:44px!important;height:44px!important
  }
  .site-header .main-nav{
    display:none!important;
    position:absolute!important;
    top:76px!important;
    left:0!important;right:0!important;
    width:100%!important;
    max-height:calc(100vh - 76px)!important;
    overflow:auto!important;
    background:#fff!important;
    border-top:1px solid #e5e5e2!important;
    padding:8px 24px 24px!important
  }
  .site-header .main-nav.open{display:block!important}
  .site-header .main-nav .tvg-menu{display:block!important;white-space:normal!important}
  .site-header .main-nav .tvg-menu>li{border-bottom:1px solid #ecece8!important}
  .site-header .main-nav .tvg-menu>li>a{padding:14px 0!important;font-size:15px!important}
  .site-header .main-nav .tvg-menu .sub-menu{
    display:block!important;
    position:static!important;
    min-width:0!important;max-width:none!important;
    border:0!important;box-shadow:none!important;border-radius:0!important;
    padding:0 0 8px 18px!important
  }
}


/* Dokument-navigation v4.1 */
.doc-actions a[target="_blank"]::after{
  content:" ↗";
  font-size:.85em;
}
@media(max-width:650px){
  .doc-actions{
    display:flex!important;
    gap:8px!important;
    flex-wrap:wrap!important;
  }
  .doc-actions a{
    min-height:44px!important;
    display:inline-flex!important;
    align-items:center!important;
  }
}


/* ===== Vigtig begivenhed + endelig oprydning v5 ===== */
.important-event{background:#f6efe0;border-top:1px solid #e4d6b8;border-bottom:1px solid #e4d6b8;padding:28px 0}
.important-event-inner{display:grid;grid-template-columns:210px 1fr 190px;gap:34px;align-items:center}
.event-date{border-right:1px solid #d8c7a5;padding-right:28px}
.event-date span{display:block;text-transform:uppercase;letter-spacing:.14em;font-size:12px;font-weight:800;color:#8a5b20;margin-bottom:10px}
.event-date strong{display:block;font-family:Georgia,serif;font-size:25px;line-height:1.12;font-weight:500}
.event-date small{display:block;margin-top:8px;font-size:14px}
.event-content h2{font-family:Georgia,serif;font-size:30px;font-weight:500;margin:5px 0 10px}
.event-content p{margin:6px 0;line-height:1.5}
.event-deadline{margin-top:12px!important}
.event-notice{display:block;text-align:center;font-size:12px;font-weight:700}
.event-notice img{display:block;width:150px;height:190px;object-fit:cover;object-position:top center;margin:0 auto 8px;border:1px solid #ddd;box-shadow:0 4px 14px rgba(0,0,0,.08)}

/* Undermenuer må kun eksistere visuelt inde i den rigtige header-menu */
body ul.sub-menu:not(.site-header .main-nav ul.sub-menu),
body .menu-item > ul:not(.site-header .main-nav ul){display:none!important}

/* Ekstra beskyttelse mod gamle/duplikerede menu-widgets i sideindholdet */
main > .menu,
main .widget_nav_menu,
main .wp-block-navigation__responsive-container:not(.site-header *){display:none!important}

@media(max-width:850px){
 .important-event-inner{grid-template-columns:1fr;gap:18px}
 .event-date{border-right:0;border-bottom:1px solid #d8c7a5;padding:0 0 16px}
 .event-notice{display:grid;grid-template-columns:90px 1fr;align-items:center;text-align:left;gap:14px}
 .event-notice img{width:90px;height:115px;margin:0}
}

/* Indholdsrige undersider v7 */
.page-content h2{font-family:Georgia,serif;font-size:clamp(32px,4vw,48px);font-weight:500;margin:0 0 18px}
.page-content h3{font-family:Georgia,serif;font-size:26px;font-weight:500;margin:34px 0 10px}
.page-content p{max-width:820px;line-height:1.72;margin:0 0 16px}
.resident-board{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 24px;max-width:820px;margin:20px 0 34px}
.resident-board p{background:#f5f4ef;border-radius:8px;padding:18px;margin:0}
.facebook-residents{max-width:820px;margin-top:34px;padding:26px;background:#f5f4ef;border-left:4px solid #9a7136;border-radius:8px}
.facebook-residents h3{margin-top:0}
@media(max-width:650px){.resident-board{grid-template-columns:1fr}.facebook-residents{padding:20px}}

/* Godkendt forside-reference v8 */
.site-header{background:#fff!important;border-bottom:1px solid #e7e3da!important}
.hero{min-height:440px!important;background-position:center 48%!important}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.16),rgba(0,0,0,.03) 45%,rgba(0,0,0,.10));pointer-events:none}
.hero .wrap{position:relative;z-index:2}
.hero-copy{max-width:570px!important}
.hero h1{font-family:Georgia,serif!important;font-weight:400!important;font-size:clamp(48px,6vw,78px)!important;line-height:.98!important}
.quick-links{margin-top:0!important;padding-top:18px!important}
.quick-grid{grid-template-columns:repeat(5,1fr)!important}
.quick-card{border-radius:0!important;box-shadow:none!important;border:1px solid #e8e5de!important;background:#f6f5f0!important}
.quick-card img{height:118px!important;object-fit:cover!important}
@media(max-width:850px){
 .hero{min-height:430px!important}
 .hero h1{font-size:46px!important}
 .quick-grid{grid-template-columns:1fr!important;gap:0!important}
 .quick-card{display:grid!important;grid-template-columns:72px 1fr 28px!important;align-items:center!important;text-align:left!important;min-height:68px!important;border-width:0 0 1px!important}
 .quick-card img{width:72px!important;height:68px!important}
}

/* V10 – den godkendte forside er facit */
.tvg-header{background:#fff;position:relative;z-index:1000;border-bottom:1px solid #e8e5de}
.tvg-header-inner{min-height:76px;display:flex;align-items:center;gap:28px}
.tvg-logo{margin-right:auto;text-decoration:none}
.tvg-logo span{display:inline-block;background:#273128;color:#f5efe1;border:3px double #c7bca3;padding:6px 13px;font:25px/1 Georgia,serif;box-shadow:0 0 0 2px #273128}
.tvg-nav{display:flex;align-items:center;gap:25px}
.tvg-nav>a,.tvg-nav-group>a{color:#1f211f;text-decoration:none;font-size:14px;white-space:nowrap}
.tvg-nav-group{position:relative}
.tvg-dropdown{display:none;position:absolute;top:100%;left:-14px;min-width:230px;background:#fff;border:1px solid #e3dfd5;box-shadow:0 12px 28px rgba(0,0,0,.12);padding:8px 0}
.tvg-nav-group:hover .tvg-dropdown,.tvg-nav-group:focus-within .tvg-dropdown{display:block}
.tvg-dropdown a{display:block;padding:11px 15px;color:#222;text-decoration:none}
.tvg-dropdown a:hover{background:#f4f3ee}
.tvg-menu-toggle{display:none;background:none;border:0;font-size:28px}

.tvg-home{background:#fff}
.tvg-hero{position:relative;min-height:480px;background-image:url('assets/images/forside-original.jpg');background-size:cover;background-position:center;display:flex;align-items:center}
.tvg-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.22),rgba(0,0,0,.03) 70%)}
.tvg-hero-copy{position:relative;z-index:1;color:#fff;margin-left:max(8vw,60px);text-shadow:0 2px 12px rgba(0,0,0,.35)}
.tvg-welcome{font:42px/1.05 Georgia,serif}
.tvg-hero h1{font:400 clamp(58px,7vw,88px)/.95 Georgia,serif;margin:3px 0 18px;color:#fff}
.tvg-address{font-size:13px;letter-spacing:.27em}
.tvg-quick{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;padding-top:20px}
.tvg-quick-card{min-height:148px;background:#f2f1ec;border:1px solid #e4e0d7;text-decoration:none;color:#222;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:14px 8px}
.tvg-quick-card:hover{transform:translateY(-2px)}
.tvg-icon{font-size:34px;line-height:1;margin-bottom:8px}
.tvg-quick-card strong{font-size:16px}
.tvg-quick-card small{font-size:12px;line-height:1.35;margin-top:5px;color:#565954}
.tvg-news-strip{margin-top:14px;margin-bottom:26px;background:#f2f1ec;min-height:74px;display:flex;align-items:center;justify-content:space-between;padding:12px 22px}
.tvg-news-strip div{display:flex;flex-direction:column;gap:4px}
.tvg-news-strip a{background:#344f38;color:#fff;text-decoration:none;border-radius:24px;padding:11px 22px}
.tvg-important{background:#f4efe5;padding:34px;margin-top:26px;margin-bottom:34px}
.tvg-important h2,.tvg-home-about h2{font-family:Georgia,serif;font-weight:400;font-size:36px;margin:4px 0 14px}
.tvg-kicker{font-size:12px;letter-spacing:.16em;font-weight:700}
.tvg-home-about{text-align:center;padding-top:25px;padding-bottom:55px}
.tvg-home-about p{font-size:18px}

body.home main .menu,body.home main .sub-menu,body.home main .menu-item,body.home main .wp-block-navigation,body.home main .widget_nav_menu{display:none!important}

@media(max-width:900px){
 .tvg-header-inner{min-height:62px;padding:0 14px}
 .tvg-logo span{font-size:19px}
 .tvg-menu-toggle{display:block;margin-left:auto}
 .tvg-nav{display:none;position:absolute;top:62px;left:0;right:0;background:#fff;flex-direction:column;align-items:stretch;gap:0;border-top:1px solid #ddd;box-shadow:0 12px 20px rgba(0,0,0,.12)}
 .tvg-nav.is-open{display:flex}
 .tvg-nav>a,.tvg-nav-group>a{display:block;padding:14px 20px;border-bottom:1px solid #e6e4df;font-size:15px}
 .tvg-dropdown{display:block!important;position:static;box-shadow:none;border:0;background:#f6f5f1;padding:0}
 .tvg-dropdown a{padding:12px 34px;border-bottom:1px solid #e8e5df}
 .tvg-hero{min-height:410px;background-position:center}
 .tvg-hero-copy{margin:0 auto;text-align:center;padding:20px}
 .tvg-welcome{font-size:28px}
 .tvg-hero h1{font-size:48px}
 .tvg-address{font-size:10px}
 .tvg-quick{display:block;padding:0}
 .tvg-quick-card{min-height:62px;display:grid;grid-template-columns:54px 1fr 24px;grid-template-rows:auto auto;text-align:left;padding:8px 14px;border-width:0 0 1px}
 .tvg-icon{grid-row:1/3;font-size:25px;margin:0}
 .tvg-quick-card strong{grid-column:2}
 .tvg-quick-card small{grid-column:2;margin:0}
 .tvg-quick-card:after{content:"›";grid-column:3;grid-row:1/3;align-self:center;font-size:24px}
 .tvg-news-strip{margin-top:0}
 .tvg-important{margin-top:18px;padding:24px 18px}
 .tvg-important h2,.tvg-home-about h2{font-size:30px}
}

/* V11: læsevenlige, udførlige undersider */
.content-narrow{max-width:980px}
.content-narrow>p,.content-narrow>h2,.content-narrow>h3,.content-narrow>ul{max-width:820px}
.content-narrow h2{font-family:Georgia,"Times New Roman",serif;font-size:34px;font-weight:400;line-height:1.2;margin:42px 0 12px}
.content-narrow h3{font-family:Georgia,"Times New Roman",serif;font-size:24px;font-weight:400;line-height:1.25;margin:30px 0 8px}
.content-narrow p{font-size:16px;line-height:1.78;margin:0 0 16px}
.content-narrow .lead{font-size:19px;line-height:1.65;margin-bottom:30px}
.resident-board{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:820px;margin:22px 0 36px}
.resident-board p{background:#f4f2eb;border:1px solid #e6e0d3;border-radius:10px;padding:19px 20px;margin:0;min-height:88px}
.facebook-residents{max-width:820px;background:#f4f2eb;border-left:4px solid #527052;padding:24px 26px;margin-top:38px;border-radius:8px}
.facebook-residents h2{margin-top:0}
.notice{max-width:820px;margin:24px 0}
@media(max-width:650px){.content-narrow h2{font-size:29px}.content-narrow h3{font-size:22px}.content-narrow .lead{font-size:18px}.resident-board{grid-template-columns:1fr}}

/* ===== V12 GODKENDT FORSIDE ===== */
.approved-home{background:#fff}
.approved-hero{
  height:490px;
  background:url('assets/images/hero-godkendt.jpg') center center/cover no-repeat;
}
.approved-cards{
  display:grid;grid-template-columns:repeat(5,1fr);gap:16px;
  padding-top:20px;
}
.approved-card{
  position:relative;overflow:hidden;text-decoration:none;color:#171717;
  background:#f3f3ef;border-radius:8px;text-align:center;border:1px solid #e7e7e2;
  min-height:175px;
}
.approved-card img{width:100%;height:82px;object-fit:cover;display:block;filter:saturate(.85)}
.approved-card-icon{
  position:absolute;top:49px;left:50%;transform:translateX(-50%);
  color:#fff;font-size:32px;font-weight:800;text-shadow:0 1px 5px rgba(0,0,0,.45);
}
.approved-card strong{display:block;font-size:16px;margin:12px 6px 5px}
.approved-card small{display:block;font-size:12px;line-height:1.4;color:#4e4e49;padding-bottom:14px}
.approved-news{
  margin-top:16px;background:#eff1ec;min-height:78px;border-radius:8px;
  display:flex;align-items:center;justify-content:space-between;padding:14px 26px;
}
.approved-news div{display:flex;flex-direction:column;gap:4px}
.approved-news a{background:#36543a;color:#fff;text-decoration:none;padding:12px 22px;border-radius:26px}
.approved-events{padding-top:28px;padding-bottom:45px}
.approved-events h2{font-family:Georgia,serif;font-size:32px;font-weight:400;margin:0 0 15px}
.approved-event-grid{display:grid;grid-template-columns:100px 1fr;gap:22px;align-items:center}
.datebox{background:#eef2eb;border-radius:8px;min-height:96px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#31533a}
.datebox strong{font:42px/1 Georgia,serif}.datebox span{font-size:13px;letter-spacing:.08em;margin-top:5px}
.approved-event-grid h3{font-size:18px;margin:0 0 7px}
.approved-event-grid p{margin:0 0 7px;max-width:760px}

/* Undersider: mere læsbare og tydelige */
.content-narrow{max-width:980px!important}
.content-narrow .lead{font-size:20px;line-height:1.65;color:#343630;margin-bottom:34px}
.content-narrow h2{font-family:Georgia,serif;font-weight:400;font-size:34px;margin:38px 0 12px}
.content-narrow h3{font-size:22px;margin:28px 0 9px}
.content-narrow p{font-size:17px;line-height:1.72;margin:0 0 17px}
.content-narrow ul{font-size:17px;line-height:1.65}
.resident-board{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0 34px}
.resident-board p{background:#f4f4ef;border:1px solid #e9e7df;border-radius:8px;padding:18px;margin:0}
.facebook-residents{background:#f4f4ef;border-left:4px solid #31533a;border-radius:8px;padding:22px 25px;margin-top:32px}

/* Fjern eventuelle gamle løse menu-rester */
main .widget_nav_menu,main .wp-block-navigation:not(.approved-home *){display:none!important}

@media(max-width:900px){
  .approved-hero{height:430px;background-position:center center}
  .approved-cards{display:block;padding:0}
  .approved-card{
    min-height:66px;border-radius:0;border-width:0 0 1px;
    display:grid;grid-template-columns:54px 1fr 22px;grid-template-rows:auto auto;
    text-align:left;padding:9px 16px;
  }
  .approved-card img{display:none}
  .approved-card-icon{position:static;transform:none;color:#243a29;text-shadow:none;grid-row:1/3;align-self:center;font-size:25px}
  .approved-card strong{grid-column:2;margin:0}
  .approved-card small{grid-column:2;padding:0}
  .approved-card:after{content:"›";grid-column:3;grid-row:1/3;align-self:center;font-size:25px}
  .approved-news{margin-top:0;border-radius:0}
}
@media(max-width:650px){
  .approved-hero{height:360px;background-size:auto 100%;background-position:36% center}
  .approved-events{padding-left:14px;padding-right:14px}
  .approved-event-grid{grid-template-columns:78px 1fr}
  .content-narrow h2{font-size:29px}.content-narrow p{font-size:16px}
  .resident-board{grid-template-columns:1fr}
}

/* V13 – udførlige undersider og galleri */
.content-narrow{max-width:1050px!important;padding-top:12px;padding-bottom:55px}
.content-narrow .lead{font-size:21px;line-height:1.65;max-width:850px;margin-bottom:32px}
.content-narrow h2{font-family:Georgia,serif;font-size:34px;font-weight:400;margin:38px 0 12px}
.content-narrow h3{font-size:21px;margin:25px 0 8px}
.content-narrow p{font-size:17px;line-height:1.72;max-width:880px;margin-bottom:16px}
.portal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:36px 0}
.portal-card{background:#f4f3ee;border:1px solid #e5e2d9;border-radius:8px;padding:23px}
.portal-card h3{margin:0 0 8px}.portal-card p{font-size:15px;margin-bottom:13px}.portal-card a{font-weight:700;text-decoration:none}
.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:32px 0}
.gallery-grid figure{margin:0;background:#f4f3ee;border-radius:8px;overflow:hidden}
.gallery-grid img{display:block;width:100%;height:245px;object-fit:cover}
.gallery-grid figcaption{padding:10px 13px;font-size:14px}
.gallery-feature{margin-top:28px}
.gallery-feature img{max-width:650px;width:100%;height:auto;border-radius:8px}
.notice{background:#f4f3ee;border-left:4px solid #35543a;border-radius:6px;padding:18px 20px;margin:25px 0}
@media(max-width:760px){.portal-grid{grid-template-columns:1fr}.gallery-grid{grid-template-columns:1fr 1fr}.gallery-grid img{height:190px}}
@media(max-width:520px){.gallery-grid{grid-template-columns:1fr}.gallery-grid img{height:auto}}

/* V15 – endelig samlet: fyldige sider, historie og udvidet galleri */
.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:34px 0}
.gallery-grid figure{margin:0;background:#f4f3ee;border-radius:9px;overflow:hidden}
.gallery-grid img{display:block;width:100%;height:250px;object-fit:cover}
.gallery-grid figcaption{padding:10px 13px;font-size:14px}
.gallery-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:32px 0}
.gallery-strip img{width:100%;height:230px;object-fit:cover;border-radius:8px}
.history-timeline{margin:34px 0;display:grid;gap:10px}
.history-timeline>div{display:grid;grid-template-columns:95px 1fr;gap:18px;padding:17px 18px;background:#f4f3ee;border-radius:8px;align-items:start}
.history-timeline strong{font-family:Georgia,serif;font-size:24px;color:#35543a}
.history-timeline span{font-size:16px;line-height:1.55}
.source-box,.notice{background:#f4f3ee;border-left:4px solid #35543a;padding:19px 21px;border-radius:7px;margin:28px 0}
.history-feature{margin:30px 0}.history-feature img{display:block;max-width:760px;width:100%;height:auto;border-radius:9px}
@media(max-width:760px){
  .gallery-grid{grid-template-columns:1fr 1fr}
  .gallery-grid img{height:190px}
  .gallery-strip{grid-template-columns:1fr}
  .gallery-strip img{height:auto}
}
@media(max-width:520px){
  .gallery-grid{grid-template-columns:1fr}
  .gallery-grid img{height:auto}
  .history-timeline>div{grid-template-columns:1fr;gap:4px}
}

.doc-highlight{margin:26px 0;padding:24px;background:#f4f3ee;border-radius:8px;border-left:4px solid #35543a}
.doc-highlight strong{font-family:Georgia,serif;font-size:22px}
.doc-highlight p{margin:5px 0 14px}

/* V18 - mobilrettelser */

/* Tilbage-navigation på undersider */
.mobile-page-back{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  max-width:880px;
  margin:6px 0 24px;
  padding:10px 0 13px;
  border-bottom:1px solid #e7e4dc;
}
.mobile-page-back button,
.mobile-page-back a{
  appearance:none;
  border:0;
  background:none;
  padding:7px 0;
  color:#31533a;
  font:700 14px/1.2 Arial,Helvetica,sans-serif;
  text-decoration:none;
  cursor:pointer;
}
.mobile-page-back-bottom{
  margin-top:38px;
  margin-bottom:0;
  border-top:1px solid #e7e4dc;
  border-bottom:0;
  padding-top:15px;
}

/* Mobile first-page layout */
@media(max-width:900px){
  .tvg-header{position:sticky;top:0}
  .tvg-header-inner{min-height:58px}
  .tvg-nav{top:58px;max-height:calc(100vh - 58px);overflow-y:auto;-webkit-overflow-scrolling:touch}

  /* The approved hero is an image with text built into it.
     On mobile the entire image must be visible - no cropping. */
  .approved-hero{
    width:100%;
    height:auto !important;
    aspect-ratio:900 / 365;
    min-height:0 !important;
    background-size:100% 100% !important;
    background-position:center center !important;
    background-repeat:no-repeat !important;
  }

  .approved-cards{display:block;padding:0 14px}
  .approved-card{
    min-height:70px;
    border:1px solid #e7e7e2 !important;
    border-radius:8px !important;
    margin:9px 0;
    background:#f7f7f3;
  }

  .approved-news{
    margin:14px;
    border-radius:8px;
    padding:18px;
    gap:14px;
    align-items:flex-start;
  }
  .approved-news a{white-space:nowrap}
  .approved-events{padding:22px 14px 34px}
}

@media(max-width:600px){
  .tvg-logo span{font-size:18px}
  .tvg-menu-toggle{font-size:24px;padding:7px}

  .approved-news{
    display:grid;
    grid-template-columns:1fr;
  }
  .approved-news a{
    display:inline-block;
    justify-self:start;
    padding:10px 18px;
  }

  .approved-event-grid{
    grid-template-columns:64px 1fr !important;
    gap:14px !important;
    align-items:start !important;
  }
  .datebox{min-height:72px}
  .datebox strong{font-size:34px}
  .approved-events h2{font-size:28px}
  .approved-event-grid p{font-size:15px;line-height:1.55}

  .page-hero{padding:42px 0 30px}
  .page-hero h1{font-size:34px;line-height:1.08}
  .content-narrow{padding-left:15px;padding-right:15px}
  .content-narrow .lead{font-size:18px}
  .mobile-page-back{position:relative;margin-top:0}
}

/* PDF/document buttons should be easy to tap */
.doc-actions a,.button-link,.doc-highlight a{
  display:inline-block;
  min-height:44px;
  line-height:22px;
}

/* V19 - redigerbart galleri fra WordPress Mediebibliotek */
.tvg-resident-gallery-title{margin-top:46px}
.gallery-grid-user{margin-top:18px}
.gallery-grid-user figure{margin:0}
.gallery-grid-user img{
  display:block;
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:5px;
}
.gallery-grid-user figcaption{
  padding-top:7px;
  font-size:13px;
  color:#666;
}
@media(max-width:700px){
  .gallery-grid-user{grid-template-columns:1fr 1fr}
}
@media(max-width:460px){
  .gallery-grid-user{grid-template-columns:1fr}
}

/* V22: rene billedsider uden ekstra brødtekst */
.portal-grid-simple .portal-card p{display:none}
.history-feature img{display:block;width:100%;height:auto}

.tvg-dropdown .tvg-subitem{padding-left:28px;font-size:.94em;opacity:.9}

/* V25 – rolig baggrund i samme farvefamilie som forsiden */
body{
  background:#f3f1e8;
}
.page-hero{
  background:linear-gradient(180deg,#e6eadf 0%,#f3f1e8 100%);
}
.content{
  background:transparent;
}
.content-narrow{
  background:rgba(255,255,255,.48);
  border-radius:10px;
  padding-top:28px;
  padding-bottom:32px;
}
.portal-card,.doc-row{
  background:#fbfaf5;
}
@media(max-width:700px){
  .content-narrow{
    background:rgba(255,255,255,.38);
    border-radius:0;
  }
}

/* V28 – Beboerinfo er kun dropdown, ikke en side */
.menu-parent-button{
  appearance:none;-webkit-appearance:none;
  border:0;background:transparent;color:inherit;
  font:inherit;padding:0;margin:0;cursor:pointer;
}
.main-nav .menu-parent-button{display:flex;align-items:center;gap:3px}

.menu-parent-button{appearance:none;-webkit-appearance:none;border:0;background:transparent;color:inherit;font:inherit;padding:0;margin:0;cursor:pointer;display:flex;align-items:center;gap:3px}

.approved-event-links{margin-top:10px}.approved-event-links a{text-decoration:underline;text-underline-offset:3px}

/* V37: interactive, visual front-page cards */
.approved-cards-area{padding-top:18px;padding-bottom:8px}
.approved-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.approved-card{appearance:none;-webkit-appearance:none;width:100%;border:1px solid rgba(70,63,50,.12);border-radius:14px;overflow:hidden;padding:0 0 17px;background:#fbf6ea;color:#2d2b26;text-align:center;cursor:pointer;box-shadow:0 5px 18px rgba(47,43,35,.08);transition:transform .18s ease,box-shadow .18s ease,background .18s ease}
.approved-card:nth-child(2){background:#eef1e7}.approved-card:nth-child(3){background:#f1e5d3}.approved-card:nth-child(4){background:#e7ede2}.approved-card:nth-child(5){background:#eee5df}
.approved-card:hover,.approved-card.is-open{transform:translateY(-3px);box-shadow:0 9px 24px rgba(47,43,35,.15)}
.approved-card.is-open{outline:2px solid #9b7a45;outline-offset:2px}
.approved-card img{display:block;width:100%;height:94px;object-fit:cover;margin:0 0 8px}
.approved-card strong{display:block;font-size:17px;margin:2px 10px 5px}
.approved-card small{display:block;min-height:34px;padding:0 10px;line-height:1.35;color:#625d54}
.approved-card-icon{display:block;margin:-23px auto 5px;position:relative;width:38px;height:38px;line-height:38px;border-radius:50%;background:#fbfaf5;box-shadow:0 2px 8px rgba(0,0,0,.12);font-size:16px}
.home-card-panels{margin-top:16px}
.home-card-panel{display:grid;grid-template-columns:230px 1fr;overflow:hidden;border-radius:16px;background:#e7eadf;box-shadow:0 8px 24px rgba(50,45,35,.10);border:1px solid rgba(70,63,50,.10)}
.home-card-panel[hidden]{display:none!important}
.home-card-panel:nth-child(2){background:#efe5d5}.home-card-panel:nth-child(3){background:#e7ece2}.home-card-panel:nth-child(4){background:#eee5d9}.home-card-panel:nth-child(5){background:#e8e4df}
.panel-photo img{width:100%;height:100%;min-height:210px;object-fit:cover;display:block}
.panel-content{padding:25px 28px 28px}.panel-content h2{margin:0 0 16px;font-family:Georgia,serif;font-size:29px}
.panel-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.panel-links a{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 15px;border-radius:9px;background:rgba(255,255,255,.72);color:#302d28;text-decoration:none;font-weight:650;border:1px solid rgba(70,63,50,.10)}
.panel-links a:hover{background:#fff}.panel-links a span{font-size:19px;color:#826438}

/* Make document-related pages warmer and more visual instead of a plain archive */
body.page .content-narrow{background:linear-gradient(145deg,rgba(255,255,255,.56),rgba(236,232,216,.72));box-shadow:0 8px 30px rgba(55,48,38,.06)}
.portal-grid{gap:16px}.portal-card{border-radius:13px;border:1px solid rgba(70,63,50,.12);box-shadow:0 5px 16px rgba(55,48,38,.07);background:#fbf6ea}
.portal-card:nth-child(even){background:#e9ede3}
.doc-row{border-radius:13px;background:#fbf6ea!important;border:1px solid rgba(70,63,50,.12);box-shadow:0 4px 14px rgba(55,48,38,.06)}
.doc-row:nth-child(even){background:#e9ede3!important}

@media(max-width:900px){.approved-cards{grid-template-columns:repeat(3,1fr)}.home-card-panel{grid-template-columns:180px 1fr}}
@media(max-width:700px){
 .approved-cards{grid-template-columns:1fr 1fr;gap:10px}
 .approved-card img{height:82px}.approved-card strong{font-size:15px}.approved-card small{font-size:12px}
 .home-card-panel{grid-template-columns:1fr}.panel-photo img{height:135px;min-height:0}
 .panel-content{padding:19px 16px 21px}.panel-content h2{font-size:25px}
 .panel-links{grid-template-columns:1fr}
}

.history-visuals{margin:24px 0 34px}.history-main-photo{margin:0 0 12px;position:relative}
.history-main-photo img{width:100%;max-height:430px;object-fit:cover;border-radius:14px;display:block}
.history-main-photo figcaption{position:absolute;left:14px;bottom:12px;background:rgba(251,250,245,.9);padding:7px 10px;border-radius:7px;font-size:13px}
.history-photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.history-photo-grid img{width:100%;height:180px;object-fit:cover;border-radius:11px}
.history-film-button{display:inline-block;background:#17385e;color:#fff!important;text-decoration:none!important;padding:13px 17px;border-radius:9px;font-weight:700;box-shadow:0 4px 12px rgba(23,56,94,.18)}
.history-film-button:hover{transform:translateY(-1px)}
@media(max-width:700px){.history-photo-grid{grid-template-columns:1fr 1fr}.history-photo-grid img{height:125px}.history-photo-grid img:last-child{grid-column:1/-1;height:155px}.history-main-photo img{max-height:300px}}

/* V40 – Beboerrepræsentationen */
.rep-intro,.rep-contact{display:grid;grid-template-columns:1.25fr .75fr;overflow:hidden;border-radius:18px;margin:4px 0 28px;background:#e6eadf;box-shadow:0 8px 24px rgba(52,47,38,.09)}
.rep-intro>div,.rep-contact-text{padding:34px 36px}.rep-intro h2,.rep-contact h2{margin:5px 0 12px;font-size:32px;line-height:1.12}
.rep-intro img,.rep-contact img{width:100%;height:100%;min-height:255px;object-fit:cover;display:block}
.eyebrow{text-transform:uppercase;letter-spacing:.13em;font-size:12px;font-weight:800;color:#7a613b;margin:0 0 7px}
.board-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin:0 0 30px}
.board-card{min-height:112px;border-radius:14px;padding:20px;background:#f4eadb;border:1px solid rgba(76,65,47,.10);box-shadow:0 4px 14px rgba(52,47,38,.06);display:flex;flex-direction:column;justify-content:center}
.board-card:nth-child(2),.board-card:nth-child(4){background:#e8ede3}.board-card:nth-child(3),.board-card:nth-child(5){background:#eee5df}
.board-card span{font-size:12px;text-transform:uppercase;letter-spacing:.09em;color:#75664f;font-weight:750;margin-bottom:7px}
.board-card strong{font-family:Georgia,serif;font-size:21px;font-weight:500}.board-card small{margin-top:6px;color:#655d52}
.board-chair{border-top:4px solid #9a7a45}.board-web{border-top:4px solid #536c55}
.rep-contact{grid-template-columns:1.35fr .65fr;background:#efe6d7;margin-bottom:10px}
.rep-mail{display:inline-block;margin:8px 0 16px;padding:12px 15px;background:#fff;color:#2f312d!important;border-radius:9px;text-decoration:none!important;font-weight:750;box-shadow:0 3px 10px rgba(52,47,38,.07)}
@media(max-width:760px){
 .rep-intro,.rep-contact{grid-template-columns:1fr}.rep-intro>div,.rep-contact-text{padding:24px 20px}.rep-intro h2,.rep-contact h2{font-size:27px}
 .rep-intro img,.rep-contact img{height:175px;min-height:0}.board-grid{grid-template-columns:1fr 1fr;gap:10px}.board-card{min-height:100px;padding:16px}.board-card strong{font-size:18px}
}
@media(max-width:440px){.board-grid{grid-template-columns:1fr}}

/* V41 – Kontakt */
.contact-intro{display:grid;grid-template-columns:1.2fr .8fr;overflow:hidden;border-radius:18px;background:#e6eadf;margin:4px 0 24px;box-shadow:0 8px 24px rgba(52,47,38,.09)}
.contact-intro>div{padding:34px 36px}.contact-intro h2{margin:5px 0 12px;font-size:34px}.contact-intro img{width:100%;height:100%;min-height:260px;object-fit:cover}
.contact-card-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-bottom:24px}
.contact-card{position:relative;border-radius:15px;padding:25px;background:#f2e6d5;border:1px solid rgba(70,63,50,.1);box-shadow:0 5px 17px rgba(52,47,38,.07)}
.contact-card:nth-child(2){background:#e8ede3}.contact-card:nth-child(3){background:#eee5df}.contact-card:nth-child(4){background:#e4eadf}
.contact-card h3{font-family:Georgia,serif;font-size:25px;margin:4px 0 11px}.contact-card p{margin:7px 0}.contact-card a{word-break:break-word}
.contact-icon{position:absolute;right:18px;top:17px;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.72);font-weight:800;color:#6f5939}
.contact-more{display:inline-block;margin-top:12px;padding:10px 13px;border-radius:8px;background:rgba(255,255,255,.72);color:#302d28!important;text-decoration:none!important;font-weight:700}
.contact-note{font-size:14px;color:#655e54}.contact-bottom-photo{border-radius:17px;overflow:hidden;margin:0 0 8px}
.contact-bottom-photo img{display:block;width:100%;height:260px;object-fit:cover}
@media(max-width:700px){.contact-intro{grid-template-columns:1fr}.contact-intro>div{padding:24px 20px}.contact-intro h2{font-size:28px}.contact-intro img{height:170px;min-height:0}.contact-card-grid{grid-template-columns:1fr}.contact-card{padding:22px 18px}.contact-bottom-photo img{height:190px}}

/* V42 – Husorden */
.house-intro{display:grid;grid-template-columns:1.15fr .85fr;overflow:hidden;border-radius:18px;background:#e7eadf;margin:4px 0 22px;box-shadow:0 8px 24px rgba(52,47,38,.09)}
.house-intro>div{padding:36px}.house-intro h2{font-size:34px;line-height:1.12;margin:5px 0 12px}.house-intro img{width:100%;height:100%;min-height:280px;object-fit:cover;display:block}
.house-read-button{display:inline-block;margin-top:13px;padding:12px 16px;border-radius:9px;background:#17385e;color:#fff!important;text-decoration:none!important;font-weight:750}
.house-document-card{display:grid;grid-template-columns:70px 1fr auto;align-items:center;gap:20px;background:#f1e5d4;border:1px solid rgba(70,63,50,.1);border-radius:15px;padding:22px 24px;margin-bottom:18px;box-shadow:0 5px 17px rgba(52,47,38,.07)}
.house-document-card h3{font-family:Georgia,serif;font-size:25px;margin:2px 0 4px}.house-document-card p{margin:4px 0}
.house-document-card>a{padding:11px 14px;border-radius:8px;background:rgba(255,255,255,.75);color:#302d28!important;text-decoration:none!important;font-weight:700}
.house-pdf-icon{width:58px;height:68px;border-radius:8px;background:#17385e;color:white;display:grid;place-items:center;font-size:12px;font-weight:800;letter-spacing:.08em;box-shadow:0 4px 10px rgba(23,56,94,.16)}
.house-photo-strip{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-bottom:8px}.house-photo-strip img{width:100%;height:220px;object-fit:cover;border-radius:14px;display:block}
@media(max-width:700px){.house-intro{grid-template-columns:1fr}.house-intro>div{padding:25px 20px}.house-intro h2{font-size:28px}.house-intro img{height:175px;min-height:0}.house-document-card{grid-template-columns:55px 1fr;padding:18px 16px}.house-document-card>a{grid-column:1/-1;text-align:center}.house-pdf-icon{width:50px;height:60px}.house-photo-strip img{height:145px}}

/* V43 – ensartet visuelt udtryk på alle aktive undersider */
.page-visual-banner{height:245px;overflow:hidden;border-radius:17px;margin:0 0 24px;box-shadow:0 7px 22px rgba(52,47,38,.08)}
.page-visual-banner img{width:100%;height:100%;object-fit:cover;display:block}
.content-narrow>h2{margin-top:26px;padding:18px 20px;background:#e7eadf;border-radius:12px;font-size:27px}
.content-narrow>h2:nth-of-type(even){background:#f1e5d4}
.content-narrow>h2+p{padding:0 8px 8px}
.portal-grid .portal-card{border-top:4px solid #9a7a45}
.portal-grid .portal-card:nth-child(even){border-top-color:#536c55}
.doc-row{border-left:4px solid #9a7a45}
.history-feature img{border-radius:15px;box-shadow:0 7px 22px rgba(52,47,38,.08)}
@media(max-width:700px){.page-visual-banner{height:165px;border-radius:12px}.content-narrow>h2{font-size:23px;padding:15px 16px}}

/* V44 – Nyheder */
.news-feature{display:grid;grid-template-columns:.82fr 1.18fr;overflow:hidden;border-radius:18px;background:#e7eadf;margin:4px 0 20px;box-shadow:0 8px 24px rgba(52,47,38,.09)}
.news-feature>img{width:100%;height:100%;min-height:330px;object-fit:cover;display:block}.news-feature-text{padding:34px}
.news-feature h2{font-size:31px;line-height:1.13;margin:5px 0 13px}.news-button{display:inline-block;margin-top:12px;padding:12px 16px;border-radius:9px;background:#17385e;color:#fff!important;text-decoration:none!important;font-weight:750}
.news-small-card{display:grid;grid-template-columns:85px 1fr;gap:20px;align-items:center;background:#f1e5d4;border-radius:15px;padding:21px 24px;margin-bottom:10px}
.news-date{width:68px;height:76px;border-radius:10px;background:#fbfaf5;display:flex;flex-direction:column;align-items:center;justify-content:center}.news-date strong{font-size:27px}.news-date span{font-size:11px;letter-spacing:.08em}
.news-small-card h3{font-family:Georgia,serif;font-size:24px;margin:0 0 5px}.news-small-card p{margin:4px 0}.news-small-card a{font-weight:700}
@media(max-width:700px){.news-feature{grid-template-columns:1fr}.news-feature>img{height:210px;min-height:0}.news-feature-text{padding:23px 20px}.news-feature h2{font-size:26px}.news-small-card{grid-template-columns:65px 1fr;padding:17px 15px;gap:13px}.news-date{width:58px;height:67px}}

/* V45 – mobilforsiden */
@media(max-width:700px){
  .home-cards{display:flex!important;flex-direction:column!important;gap:15px!important;padding:0 18px!important}
  .home-card{width:100%!important;min-height:155px!important;display:grid!important;grid-template-columns:44% 56%!important;grid-template-rows:1fr!important;overflow:hidden!important;border-radius:17px!important;margin:0!important;text-align:left!important;box-shadow:0 8px 22px rgba(48,44,37,.11)!important}
  .home-card:nth-child(even){grid-template-columns:56% 44%!important}
  .home-card:nth-child(even) .home-card-image{order:2!important}
  .home-card-image{height:100%!important;min-height:155px!important}
  .home-card-image img{width:100%!important;height:100%!important;min-height:155px!important;object-fit:cover!important}
  .home-card-body{padding:23px 17px!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:flex-start!important}
  .home-card h3{font-size:22px!important;line-height:1.08!important;margin:0 0 8px!important}
  .home-card p{font-size:15px!important;line-height:1.3!important;margin:0!important}
  .home-card-icon{width:46px!important;height:46px!important;top:12px!important;right:12px!important;left:auto!important;transform:none!important}
}

/* V46 – opdateret Nyt på hjemmesiden + mobilforside */
.home-latest{background:linear-gradient(110deg,#efe3cf,#e4eadf)!important;border-radius:14px!important;padding:18px 22px!important;gap:18px}
.home-latest-text small{max-width:760px;line-height:1.45}
.home-latest-links{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.home-latest-links a{display:inline-block;padding:9px 12px;border-radius:8px;background:rgba(255,255,255,.75);text-decoration:none;font-weight:700;white-space:nowrap}
@media(max-width:700px){
  .approved-cards-area{padding-left:16px!important;padding-right:16px!important}
  .approved-cards{display:flex!important;flex-direction:column!important;gap:14px!important}
  .approved-card{display:grid!important;grid-template-columns:42% 58%!important;grid-template-rows:1fr!important;min-height:150px!important;text-align:left!important;padding:0!important;border-radius:17px!important}
  .approved-card:nth-child(even){grid-template-columns:58% 42%!important}
  .approved-card:nth-child(even) img{order:2!important}
  .approved-card img{width:100%!important;height:100%!important;min-height:150px!important;margin:0!important;object-fit:cover!important}
  .approved-card-icon{position:absolute!important;margin:12px!important;right:0!important;top:0!important}
  .approved-card strong,.approved-card small{grid-column:2!important;padding-left:18px!important;padding-right:14px!important}
  .approved-card strong{align-self:end!important;margin:0 0 5px!important;font-size:21px!important}
  .approved-card small{align-self:start!important;min-height:0!important;padding-bottom:18px!important;font-size:14px!important}
  .approved-card:nth-child(even) strong,.approved-card:nth-child(even) small{grid-column:1!important}
  .approved-card{position:relative!important}
  .home-latest{margin:22px 16px!important;padding:18px!important;display:block!important}
  .home-latest-text b{display:block;font-size:17px;margin-bottom:8px}
  .home-latest-text small{display:block;font-size:14px}
  .home-latest-links{justify-content:flex-start;margin-top:13px}
}

/* V47 – færdig mobilforside med eksisterende billeder */
@media(max-width:700px){
  .approved-home .approved-cards-area{padding:18px 16px 0!important}
  .approved-home .approved-cards{display:flex!important;flex-direction:column!important;gap:13px!important}
  .approved-home .approved-card{
    position:relative!important;width:100%!important;height:142px!important;min-height:142px!important;
    display:grid!important;grid-template-columns:38% 62%!important;grid-template-rows:1fr 1fr!important;
    padding:0!important;overflow:hidden!important;border-radius:16px!important;text-align:left!important;
    box-shadow:0 7px 20px rgba(48,44,37,.10)!important
  }
  .approved-home .approved-card img{
    grid-column:1!important;grid-row:1/3!important;width:100%!important;height:142px!important;
    object-fit:cover!important;margin:0!important;border-radius:0!important
  }
  .approved-home .approved-card strong{
    grid-column:2!important;grid-row:1!important;align-self:end!important;
    padding:0 58px 5px 20px!important;margin:0!important;font-size:22px!important;line-height:1.05!important
  }
  .approved-home .approved-card small{
    grid-column:2!important;grid-row:2!important;align-self:start!important;
    padding:3px 55px 0 20px!important;margin:0!important;min-height:0!important;font-size:15px!important;line-height:1.28!important
  }
  .approved-home .approved-card-icon{
    position:absolute!important;right:12px!important;left:auto!important;top:47px!important;
    width:47px!important;height:47px!important;margin:0!important;transform:none!important;font-size:18px!important
  }
  .approved-home .home-latest{
    margin:22px 16px 28px!important;padding:20px!important;border-radius:17px!important;
    background:linear-gradient(135deg,#f1e5d4 0%,#e7eadf 100%)!important
  }
  .approved-home .home-latest-text b{font-family:Georgia,serif;font-size:23px!important;display:block;margin-bottom:9px}
  .approved-home .home-latest-text small{font-size:15px!important;line-height:1.45!important}
  .approved-home .home-latest-links{display:flex!important;flex-direction:column!important;align-items:stretch!important;margin-top:14px!important}
  .approved-home .home-latest-links a{text-align:center!important;padding:11px 13px!important}
}

/* V48 – enkel forside uden billeder i genvejskasser + to nyheder */
.approved-home .approved-cards{align-items:stretch}
.approved-home .approved-card{
  min-height:190px!important;padding:27px 18px 22px!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  text-align:center!important;border-radius:14px!important;overflow:visible!important
}
.approved-home .approved-card>img{display:none!important}
.approved-home .approved-card-icon{
  position:static!important;display:grid!important;place-items:center!important;
  width:54px!important;height:54px!important;line-height:1!important;margin:0 auto 15px!important;
  transform:none!important;background:#fbfaf5!important;color:#294b35!important;font-size:20px!important
}
.approved-home .approved-card strong{font-family:Georgia,serif;font-size:22px!important;line-height:1.15!important;margin:0 0 8px!important;padding:0!important}
.approved-home .approved-card small{font-size:15px!important;line-height:1.35!important;min-height:0!important;padding:0!important;margin:0!important}

.home-latest{display:block!important;padding:25px 28px!important;background:linear-gradient(110deg,#f3eee3,#e8ede4)!important;border-radius:16px!important}
.home-latest-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:17px;padding-bottom:13px;border-bottom:1px solid rgba(80,80,70,.15)}
.home-latest-title b{font-family:Georgia,serif;font-size:28px}.home-latest-title>a{font-weight:700;font-size:14px}
.home-news-list{display:grid;grid-template-columns:1.45fr .75fr;gap:14px}
.home-news-item{display:grid;grid-template-columns:72px 1fr;gap:17px;background:rgba(255,255,255,.78);border:1px solid rgba(120,110,90,.14);border-radius:13px;padding:20px}
.home-news-item h3{font-family:Georgia,serif;font-size:22px;line-height:1.15;margin:1px 0 8px}.home-news-item p{margin:0 0 10px;line-height:1.45}
.home-news-date{width:62px;height:69px;border-radius:10px;background:#e7eadf;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#294b35}
.home-news-date strong{font-size:24px;line-height:1}.home-news-date span{font-size:10px;font-weight:700;letter-spacing:.08em;margin-top:5px}
.home-news-button{display:inline-block;padding:9px 13px;border-radius:8px;background:#294b35;color:#fff!important;font-weight:700}
.home-news-laundry .home-news-date{background:#f1e5d4;color:#6b5130}.home-news-laundry a{font-weight:700}

@media(max-width:700px){
 .approved-home .approved-cards-area{padding:18px 16px 0!important}
 .approved-home .approved-cards{display:flex!important;flex-direction:column!important;gap:10px!important}
 .approved-home .approved-card{
   width:100%!important;min-height:112px!important;height:auto!important;padding:18px 18px 18px 20px!important;
   display:grid!important;grid-template-columns:1fr 58px!important;grid-template-rows:auto auto!important;
   text-align:left!important;align-items:center!important
 }
 .approved-home .approved-card-icon{grid-column:2!important;grid-row:1/3!important;width:50px!important;height:50px!important;margin:0!important;justify-self:end!important}
 .approved-home .approved-card strong{grid-column:1!important;grid-row:1!important;align-self:end!important;font-size:22px!important;margin:0 0 4px!important}
 .approved-home .approved-card small{grid-column:1!important;grid-row:2!important;align-self:start!important;font-size:15px!important}
 .home-latest{margin:22px 16px 28px!important;padding:19px 17px!important}
 .home-latest-title{align-items:flex-end}.home-latest-title b{font-size:24px}.home-latest-title>a{font-size:12px}
 .home-news-list{grid-template-columns:1fr!important}
 .home-news-item{grid-template-columns:62px 1fr!important;padding:16px!important;gap:13px!important}
 .home-news-item h3{font-size:20px!important}.home-news-item p{font-size:14px!important}
 .home-news-date{width:56px;height:63px}.home-news-date strong{font-size:22px}
}

/* V49 – nyhedsikon ved Nyt på hjemmesiden */
.news-heading-icon{
  display:inline-grid;place-items:center;vertical-align:middle;
  width:42px;height:42px;margin-right:11px;border-radius:50%;
  background:#fbfaf5;color:#294b35;border:1px solid rgba(41,75,53,.13);
  font-family:Arial,sans-serif;font-size:20px;line-height:1;
  box-shadow:0 3px 10px rgba(48,44,37,.06)
}
@media(max-width:700px){
  .news-heading-icon{width:38px;height:38px;margin-right:8px;font-size:18px}
}

/* V51 */
.approved-card{min-width:0!important}.approved-card strong{max-width:100%!important;overflow-wrap:anywhere!important}.approved-card:nth-child(4) strong{font-size:18px!important;line-height:1.12!important}.news-heading-photo{display:inline-block;width:58px;height:58px;margin-right:12px;border-radius:50%;overflow:hidden;vertical-align:middle;border:3px solid #fbfaf5;box-shadow:0 3px 12px rgba(48,44,37,.12)}.news-heading-photo img{width:100%;height:100%;object-fit:cover;display:block}.project-feature{display:grid;grid-template-columns:1fr 1.05fr;overflow:hidden;background:#e7eadf;border-radius:18px;margin:4px 0 18px;box-shadow:0 8px 24px rgba(52,47,38,.08)}.project-feature-copy{padding:34px}.project-feature h2{background:none!important;padding:0!important;margin:5px 0 12px!important;font-size:34px!important}.project-feature img{width:100%;height:100%;min-height:330px;object-fit:cover;display:block}.project-image-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:0 0 20px}.project-image-grid img{width:100%;height:260px;object-fit:cover;border-radius:14px}.project-doc-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:0 0 28px}.project-doc-card{display:grid;grid-template-columns:68px 1fr;gap:18px;padding:24px;background:#f1e5d4;border-radius:15px}.project-doc-card-green{background:#e7eadf}.project-doc-icon{width:58px;height:66px;border-radius:9px;background:#fbfaf5;display:grid;place-items:center;font-size:12px;font-weight:800}.project-doc-card h3{font-family:Georgia,serif;font-size:23px;line-height:1.15;margin:3px 0 8px}.project-secondary{display:flex;justify-content:space-between;align-items:center;gap:25px;padding:27px 30px;background:#efe1d4;border-radius:16px}.project-secondary h2{background:none!important;padding:0!important;margin:4px 0 7px!important;font-size:28px!important}@media(max-width:700px){.approved-card:nth-child(4) strong{font-size:19px!important}.news-heading-photo{width:48px;height:48px}.project-feature{grid-template-columns:1fr}.project-feature-copy{padding:23px 20px}.project-feature h2{font-size:28px!important}.project-feature img{height:230px;min-height:0}.project-image-grid,.project-doc-grid{grid-template-columns:1fr}.project-image-grid img{height:220px}.project-doc-card{grid-template-columns:55px 1fr;padding:18px;gap:13px}.project-secondary{display:block;padding:22px 19px}.project-secondary .button-link{display:inline-block;margin-top:13px}}

/* V52 – roligere Aktuelle projekter */
.project-clean{margin-top:4px}
.project-clean-hero{width:100%;height:360px;object-fit:cover;display:block;border-radius:18px;box-shadow:0 8px 24px rgba(52,47,38,.08)}
.project-clean-intro{max-width:780px;padding:28px 8px 22px}
.project-clean-intro h2{background:none!important;padding:0!important;margin:5px 0 10px!important;font-size:36px!important}
.project-clean-intro p:last-child{font-size:17px;line-height:1.65;margin-bottom:0}
.project-clean-gallery{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:5px 0 34px}
.project-clean-gallery img{width:100%;height:275px;object-fit:cover;display:block;border-radius:14px;box-shadow:0 6px 18px rgba(52,47,38,.07)}
@media(max-width:700px){
 .project-clean-hero{height:225px;border-radius:13px}
 .project-clean-intro{padding:22px 3px 18px}
 .project-clean-intro h2{font-size:29px!important}
 .project-clean-intro p:last-child{font-size:16px}
 .project-clean-gallery{grid-template-columns:1fr;gap:12px;margin-bottom:26px}
 .project-clean-gallery img{height:215px}
}

/* V53 – samlet mobiltilpasning på hele hjemmesiden */
@media(max-width:700px){
  html,body{max-width:100%;overflow-x:hidden!important}
  *,*::before,*::after{box-sizing:border-box}
  img,video,iframe,embed,object{max-width:100%!important;height:auto}
  .wrap,.content,.content-narrow,.page-hero-inner,.approved-home,
  main,section,article{max-width:100%}
  .content-narrow{padding-left:16px!important;padding-right:16px!important}
  h1,h2,h3,h4,p,a,strong,span{overflow-wrap:break-word;word-break:normal}
  h1{font-size:34px!important;line-height:1.08!important}
  .content-narrow>h2{font-size:23px!important;line-height:1.18!important}
  .button-link,.news-button,.home-news-button,.doc-row a,
  .portal-card a,.project-secondary a{
    max-width:100%!important;width:auto!important;
    white-space:normal!important;overflow-wrap:break-word!important;
  }

  /* Forsidens fem genvejskasser */
  .approved-home .approved-card{min-width:0!important;overflow:hidden!important}
  .approved-home .approved-card strong{
    max-width:100%!important;font-size:21px!important;
    line-height:1.12!important;overflow-wrap:break-word!important
  }
  .approved-home .approved-card:nth-child(4) strong{font-size:18px!important}

  /* Nyt på hjemmesiden */
  .home-latest{overflow:hidden!important}
  .home-latest-title{display:flex!important;flex-wrap:wrap!important;align-items:center!important}
  .home-latest-title b{font-size:22px!important;line-height:1.15!important;min-width:0}
  .news-heading-photo{width:44px!important;height:44px!important;flex:0 0 44px!important}
  .home-news-list{display:block!important}
  .home-news-item{
    display:grid!important;
    grid-template-columns:48px minmax(0,1fr)!important;
    gap:11px!important;padding:15px 13px!important;margin-bottom:11px!important;
    width:100%!important;min-width:0!important
  }
  .home-news-date{
    width:48px!important;height:58px!important;min-width:48px!important;
    align-self:start!important
  }
  .home-news-date strong{font-size:20px!important}
  .home-news-item>div:last-child{min-width:0!important;width:100%!important}
  .home-news-item h3{
    font-size:18px!important;line-height:1.16!important;
    margin:1px 0 7px!important;overflow-wrap:break-word!important
  }
  .home-news-item p{
    font-size:14px!important;line-height:1.42!important;
    margin:0 0 10px!important;overflow-wrap:break-word!important
  }
  .home-news-button{
    display:inline-block!important;width:auto!important;
    padding:9px 12px!important;font-size:14px!important;line-height:1.2!important
  }

  /* Dokumenter, kort og projektområder */
  .portal-grid,.project-doc-grid,.project-clean-gallery{grid-template-columns:1fr!important}
  .portal-card,.doc-row,.project-doc-card,.project-secondary{
    width:100%!important;max-width:100%!important;min-width:0!important
  }
  .doc-row{display:block!important;padding:17px!important}
  .doc-row a{display:inline-block!important;margin-top:10px!important}
  .project-doc-card{
    grid-template-columns:46px minmax(0,1fr)!important;
    gap:11px!important;padding:16px!important
  }
  .project-doc-icon{width:44px!important;height:52px!important}
  .project-doc-card h3{font-size:20px!important;overflow-wrap:break-word!important}
  .project-clean-hero{height:auto!important;max-height:280px;object-fit:cover}
  .project-clean-gallery img{height:auto!important;max-height:260px;object-fit:cover}
  .project-secondary h2{font-size:23px!important;line-height:1.16!important}

  /* Visuelle sider og kontakt/beboerrepræsentation */
  .page-visual-banner{height:auto!important;max-height:220px}
  .page-visual-banner img{height:auto!important;max-height:220px;object-fit:cover}
  .member-grid,.contact-grid{grid-template-columns:1fr!important}
}

/* V55: entire project document cards are real direct PDF links */
.project-doc-link{color:inherit!important;text-decoration:none!important;cursor:pointer;position:relative;z-index:2}
.project-doc-link:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(52,47,38,.10)}
.project-doc-link .button-link{pointer-events:none}

/* V56 */
.project-documents-open{background:#f7f3e9;border-radius:18px;padding:26px;margin:22px 0 24px;border:1px solid rgba(72,68,57,.10)}
.project-documents-heading{display:flex;gap:16px;align-items:center;margin-bottom:16px}.project-documents-heading h3{margin:2px 0 0;font-size:28px}.project-document-links{display:grid;gap:10px}.project-document-links a{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 18px;border-radius:12px;background:#fff;color:#25261f;text-decoration:none;border:1px solid rgba(72,68,57,.12)}.project-document-links a:hover{transform:translateY(-1px);box-shadow:0 5px 15px rgba(52,47,38,.08)}.project-document-links span{font-weight:750;color:#38523a;white-space:nowrap}.project-clean-gallery-tidy{margin-top:12px}.project-clean-gallery-tidy img{max-height:300px;object-fit:cover}@media(max-width:700px){.project-documents-open{padding:18px 15px;border-radius:14px}.project-documents-heading h3{font-size:23px}.project-document-links a{align-items:flex-start;flex-direction:column;gap:7px;padding:15px}.project-clean-gallery-tidy{grid-template-columns:1fr}.project-clean-gallery-tidy img{max-height:230px;width:100%}}

/* V57: direkte, preview-sikre dokumentlinks */
.history-film-direct{margin:22px 0 18px}
.history-film-direct .button-link{display:inline-block}

/* V61 – ensartet og kronologisk referatoversigt */
.referat-list .referat-row{grid-template-columns:150px minmax(0,1fr) 190px;align-items:center;min-height:118px}
.referat-list .doc-type{font-weight:700;text-align:center}
.referat-list .doc-actions{text-align:right}
@media(max-width:700px){.referat-list .referat-row{grid-template-columns:1fr!important;min-height:0}.referat-list .doc-type{text-align:left}.referat-list .doc-actions{text-align:left}}


/* V64: Projektkort skal være læselige på både desktop, tablet og mobil. */
.project-doc-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch}
.project-doc-card{grid-template-columns:68px minmax(0,1fr)!important;min-width:0!important;width:100%!important}
.project-doc-card>div{min-width:0!important}
.project-doc-card .eyebrow,.project-doc-card h3,.project-doc-card p{
  word-break:normal!important;overflow-wrap:normal!important;hyphens:auto!important;white-space:normal!important
}
.project-doc-card h3{max-width:none!important}
@media(max-width:1050px){
  .project-doc-grid{grid-template-columns:1fr!important}
  .project-doc-card{grid-template-columns:58px minmax(0,1fr)!important}
}
@media(max-width:700px){
  .project-doc-grid{grid-template-columns:1fr!important;gap:12px!important}
  .project-doc-card{grid-template-columns:48px minmax(0,1fr)!important;padding:16px 14px!important;gap:12px!important}
  .project-doc-card .eyebrow,.project-doc-card h3,.project-doc-card p{overflow-wrap:break-word!important}
  .project-doc-card h3{font-size:20px!important;line-height:1.18!important}
  .project-doc-card .button-link{display:inline-block!important;max-width:100%!important}
}

/* V65 – robust desktop/mobile layout for front-page cards, expanded panels and project PDFs */
.approved-home .approved-cards{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:14px!important;
}
.approved-home .approved-card{
  min-width:0!important;
  width:100%!important;
  min-height:170px!important;
  padding:24px 18px 20px!important;
  overflow:hidden!important;
}
.approved-home .approved-card strong{
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:none!important;
  font-size:21px!important;
  line-height:1.12!important;
}
.approved-home .approved-card:nth-child(4) strong{font-size:20px!important}
.approved-home .approved-card small{
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:none!important;
}
.home-card-panels,.home-card-panel{width:100%!important;max-width:100%!important;min-width:0!important}
.home-card-panel{grid-template-columns:minmax(180px,230px) minmax(0,1fr)!important}
.panel-content,.panel-links,.panel-links a{min-width:0!important;max-width:100%!important}
.panel-links a{overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important;white-space:normal!important}

/* Project document cards: flex is more robust than nested grid inside editors/previews */
.project-doc-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:16px!important;
  width:100%!important;
}
.project-doc-card{
  display:flex!important;
  align-items:flex-start!important;
  gap:18px!important;
  width:100%!important;
  min-width:0!important;
  padding:24px!important;
  box-sizing:border-box!important;
}
.project-doc-card .project-doc-icon{
  flex:0 0 58px!important;
  width:58px!important;
  min-width:58px!important;
}
.project-doc-card>div{
  flex:1 1 auto!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
}
.project-doc-card .eyebrow,.project-doc-card h3,.project-doc-card p,.project-doc-card a{
  max-width:none!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  hyphens:none!important;
  white-space:normal!important;
}
.project-doc-card h3{font-size:23px!important;line-height:1.18!important}

@media(max-width:980px){
  .approved-home .approved-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .project-doc-grid{grid-template-columns:1fr!important}
}
@media(max-width:700px){
  .approved-home .approved-cards{
    display:flex!important;
    flex-direction:column!important;
    gap:10px!important;
  }
  .approved-home .approved-card{
    min-height:108px!important;
    padding:17px 16px 17px 18px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 54px!important;
    grid-template-rows:auto auto!important;
    text-align:left!important;
  }
  .approved-home .approved-card strong,
  .approved-home .approved-card:nth-child(4) strong{
    font-size:21px!important;
    line-height:1.12!important;
  }
  .home-card-panel{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    overflow:hidden!important;
  }
  .panel-photo img{width:100%!important;height:150px!important;min-height:0!important;object-fit:cover!important}
  .panel-content{padding:18px 15px 20px!important;width:100%!important;box-sizing:border-box!important}
  .panel-content h2{font-size:24px!important;line-height:1.15!important;overflow-wrap:normal!important;word-break:normal!important}
  .panel-links{display:grid!important;grid-template-columns:1fr!important;gap:9px!important;width:100%!important}
  .panel-links a{
    width:100%!important;
    box-sizing:border-box!important;
    padding:13px 14px!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    hyphens:none!important;
  }
  .project-doc-grid{grid-template-columns:1fr!important;gap:12px!important}
  .project-doc-card{
    display:flex!important;
    width:100%!important;
    padding:17px 14px!important;
    gap:12px!important;
  }
  .project-doc-card .project-doc-icon{flex:0 0 46px!important;width:46px!important;min-width:46px!important;height:54px!important}
  .project-doc-card h3{font-size:20px!important;line-height:1.18!important}
  .project-doc-card .eyebrow,.project-doc-card h3,.project-doc-card p,.project-doc-card a{
    overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important
  }
}
@media(max-width:420px){
  .approved-home .approved-card strong,
  .approved-home .approved-card:nth-child(4) strong{font-size:19px!important}
  .approved-home .approved-card small{font-size:14px!important}
}

/* V65.1.1 – ekstra referatkort */
.tvg-added-referat{margin-top:2rem;padding-top:1rem;border-top:1px solid rgba(0,0,0,.08)}
/* V65.4: Hvis et forsidebillede fjernes, bruger tekstpanelet hele bredden. */
.home-card-panel .panel-content:only-child{grid-column:1/-1}

/* V65.6 ekstra sidebilleder */
.tvg-extra-page-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:34px 0}.tvg-extra-page-gallery figure{margin:0}.tvg-extra-page-gallery img{display:block;width:100%;height:260px;object-fit:cover;border-radius:10px}@media(max-width:760px){.tvg-extra-page-gallery{grid-template-columns:1fr}.tvg-extra-page-gallery img{height:auto}}


/* V65.7 – vis hele billeder på undersider uden beskæring */
.content-narrow .history-main-photo img,
.content-narrow .history-photo-grid img,
.content-narrow .history-feature img,
.content-narrow .gallery-grid img,
.content-narrow .gallery-strip img,
.content-narrow .gallery-grid-user img,
.content-narrow .tvg-extra-page-gallery img,
.content-narrow .page-visual-banner img,
.content-narrow .project-image-grid img,
.content-narrow .project-clean-gallery img,
.content-narrow .project-clean-hero,
.content-narrow .contact-intro img,
.content-narrow .contact-bottom-photo img,
.content-narrow .house-intro img,
.content-narrow .house-photo-strip img,
.content-narrow .rep-intro img,
.content-narrow .rep-contact img,
.content-narrow .panel-photo img,
.content-narrow .news-feature > img {
  width:100% !important;
  height:auto !important;
  max-height:none !important;
  min-height:0 !important;
  object-fit:contain !important;
  object-position:center !important;
  display:block !important;
}

/* Bevar hele motivet i gallerikort. Tom plads er bedre end beskæring. */
.content-narrow .gallery-grid figure,
.content-narrow .tvg-extra-page-gallery figure {
  overflow:visible !important;
}

@media(max-width:760px){
  .content-narrow img{
    max-width:100% !important;
    height:auto !important;
  }
}
