/* Spontan theme base styles */
:root {
  --spontan-text: #1a1a1a;
  --spontan-bg: #ffffff;
  --spontan-accent: #009BC9;
}

html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

body {
  margin: 0;
  color: var(--spontan-text);
  background: var(--spontan-bg);
  line-height: 1.6;
  font-family: "Roboto", Arial, sans-serif !important;
}
a.visually-hidden.focusable{
display : none !important
}

a.toolbox-column-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

a:hover{
  text-decoration: none !important;
}
.news-papper-icon {
  width: 81px;
  height: 70px;
}

a#edit-help-link{
display : none !important
}

.news-papper-container {
  display: flex;
  justify-content: center;
  align-items: center;
}
a { color: var(--spontan-accent); text-decoration: none; }
a:hover, a:focus { text-decoration: none; }

/* Animated underline on hover/focus (left → right) — menu only */
.toolbox-nav__link,
.toolbox-nav__submenu-link,
.toolbox-nav__lang-link {
  position: relative;
}
.toolbox-nav__link::after,
.toolbox-nav__submenu-link::after,
.toolbox-nav__lang-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.toolbox-nav__link:hover::after,
.toolbox-nav__link:focus::after,
.toolbox-nav__submenu-link:hover::after,
.toolbox-nav__submenu-link:focus::after,
.toolbox-nav__lang-link:hover::after,
.toolbox-nav__lang-link:focus::after {
  transform: scaleX(1);
}

.layout { display: block; }
.layout__content {  margin: 0 auto; padding: 1rem; }
.layout__sidebar { max-width: 24rem; padding: 1rem; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.visually-hidden.focusable:active, .visually-hidden.focusable:focus { position: static !important; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; }


/* Cookie consent banner */
.cookie-consent { 
  position: fixed; 
  left: 0; 
  right: 0; 
  bottom: 0; 
  z-index: 9999; 
  background: #ffffff; 
  color: #2D0C59; 
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15); 
  border-top: 1px solid #e5e7eb;
  transform: translateY(100%); 
  transition: transform 0.3s ease; 
}
.cookie-consent.is-visible { 
  transform: translateY(0); 
}
.cookie-consent__inner { 
  max-width: 1500px; 
  margin: 0 auto; 
  padding: 1.5rem 2rem; 
  display: flex; 
  gap: 2rem; 
  align-items: center; 
  justify-content: space-between; 
}
.cookie-consent__content {
  flex: 1;
}
.cookie-consent__text { 
  margin: 0; 
  font-size: 16px; 
  line-height: 1.6; 
  color: #2D0C59; 
}
.cookie-consent__text strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 18px;
  font-weight: 600;
  color: #2D0C59;
}
.cookie-consent__text a { 
  color: #009BC9; 
  text-decoration: underline; 
  transition: color 0.2s ease;
}
.cookie-consent__text a:hover,
.cookie-consent__text a:focus {
  color: #006280;
  text-decoration: underline;
}
.cookie-consent__actions { 
  display: flex; 
  gap: 1rem; 
  flex-shrink: 0; 
}
.cookie-consent__btn { 
  appearance: none; 
  border: 0; 
  padding: 12px 24px; 
  border-radius: 8px; 
  cursor: pointer; 
  font-size: 16px; 
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
}
.cookie-consent__btn:hover {
  transform: translateY(-1px);
}
.cookie-consent__btn:active {
  transform: translateY(0);
}
.cookie-consent__btn:focus {
  outline: 3px solid #0b5fff;
  outline-offset: 2px;
}
.cookie-consent__btn--accept { 
  background: #009BC9; 
  color: #ffffff; 
}
.cookie-consent__btn--accept:hover {
  background: #006280;
}
.cookie-consent__btn--decline { 
  background: #6b7280; 
  color: #ffffff; 
  border: 2px solid transparent;
}
.cookie-consent__btn--decline:hover {
  background: #4b5563;
}
@media (max-width: 900px) { 
	.toolbox-nav__link:hover::after, .toolbox-nav__link:focus::after, .toolbox-nav__submenu-link:hover::after, .toolbox-nav__submenu-link:focus::after, .toolbox-nav__lang-link:hover::after, .toolbox-nav__lang-link:focus::after{
	transform: scale(0);
	}
  .cookie-consent__inner { 
    flex-direction: column; 
    align-items: stretch; 
    gap: 1.5rem; 
    padding: 1.5rem 1rem;
  } 
  .cookie-consent__text {
    font-size: 15px;
  }
  .cookie-consent__text strong {
    font-size: 17px;
  }
  .cookie-consent__actions { 
    justify-content: stretch; 
    flex-direction: column;
    width: 100%;
  }
  .cookie-consent__btn {
    width: 100%;
    padding: 14px 24px;
  }
}

/* Footer (Toolbox) */
.toolbox-footer { background: #006280; color: #d6d6ff; margin-top: 40px;}
.toolbox-footer a { color: #ffffff; text-decoration: none; font-size: 19px; }
.toolbox-footer a:hover, .toolbox-footer a:focus { text-decoration: underline; }
.toolbox-footer__info_p { font-size: 16px; }
.toolbox-footer__info_p a{ font-size: 16px; }
.toolbox-footer__inner { max-width: 1500px; margin: 0 auto; padding:1rem 1rem; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem;     align-items: center;}

.toolbox-footer__title { color: #ffffff; font-size: 35px; font-weight: 400; margin: 0 0 0.75rem; border-bottom: 1px solid #ffffff; padding-bottom: 0.5rem; }

.toolbox-footer__grid { display: flex; flex-direction: row; gap: 10px; }
.toolbox-footer__grid > ul,
.toolbox-footer__column { flex: 1; }
.toolbox-footer__column { display: flex; flex-direction: column; gap: 5px; }
.toolbox-footer__list { list-style: none; padding: 0; margin: 0; border-bottom: 1px solid #ffffff; padding-bottom: 1rem; margin-bottom: 1rem; line-height: 40px;  }
.toolbox-footer__list li { margin: 0.25rem 0; }
.toolbox-footer__list li strong { color: #ffffff; font-weight: 400; display: block; margin: 0.5rem 0; font-size: 20px; }
.toolbox-footer__list:last-child { border-bottom: none; margin-bottom: 0; }

.toolbox-footer__grid_list { padding-left: 15px; padding-top: 5px; list-style: none;}
.toolbox-footer__grid_list li a { line-height: 40px; }

.toolbox-footer__info p { margin: 0.5rem 0; }
.toolbox-footer__info a { word-break: break-word; text-decoration: underline;}
.toolbox-footer__info_p { color: #ffffff; }

.toolbox-footer__bar { background: #006280; color: #ffffff; }
.toolbox-footer__bar-inner { max-width: 1200px; margin: 0 auto; padding: 0.75rem 1rem; display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); align-items: center; }
.toolbox-footer__badge { background: rgba(255,255,255,0.15); padding: 0.15rem 0.4rem; border-radius: 999px; }

.toolbox-footer__legal {  background: white;color: #2D0C59; text-align: center; padding: 0.75rem 1rem; font-size: 0.875rem; }

@media (max-width: 900px) {
  .toolbox-footer__inner { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 1rem; }
  .toolbox-footer__grid { flex-direction: column; }
  .toolbox-footer__bar-inner { grid-template-columns: 1fr; text-align: center; }
  .toolbox-footer a { font-size: 16px; }
  .toolbox-footer__info_p { font-size: 16px; }
}

/* Main menu */
.toolbox-nav { background: #ffffff; }
.toolbox-nav__inner {padding:25px 0; width: 100%; max-width: 1500px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding-left: 16px; padding-right: 16px; }
.toolbox-nav__logo img { height: 90px; width: auto; display: block; }
.toolbox-nav__list { display: flex; gap: 1.5rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.toolbox-nav__item { margin: 0; }
.toolbox-nav__link { color: #006280; text-decoration: none; font-size: 18px; }
.toolbox-nav__link:hover, .toolbox-nav__link:focus { text-decoration: none; }
.toolbox-nav__link.is-active, .toolbox-nav__link[aria-current="page"] { text-decoration: none; color: #009BC9; font-weight: 500; }
.toolbox-nav__link.is-active:hover, .toolbox-nav__link[aria-current="page"]:hover { text-decoration: none; }
.toolbox-nav__submenu-link.is-active, .toolbox-nav__submenu-link[aria-current="page"] { text-decoration: none; color: #009BC9; font-weight: 700; }
.toolbox-nav__submenu-link.is-active:hover, .toolbox-nav__submenu-link[aria-current="page"]:hover { text-decoration: none; }
.toolbox-nav__lang { display: flex; align-items: center; gap: 5px; list-style: none; margin: 0; padding: 0; }
.toolbox-nav__lang-link { color: #2D0C59; text-decoration: none; font-size: 16px; }
.toolbox-nav__lang-link.is-active, .toolbox-nav__lang-link[aria-current="true"] { font-weight: 700; color: #009BC9; }
.toolbox-nav__lang-sep { color: #2D0C59; }

/* Search icon in header menu */
.toolbox-nav__search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #006280;
  text-decoration: none;
  padding: 8px;
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.toolbox-nav__search-icon:hover,
.toolbox-nav__search-icon:focus {
  color: #009BC9;
  background-color: rgba(0, 155, 201, 0.1);
  text-decoration: none;
}
.toolbox-nav__search-icon:focus-visible {
  outline: 3px solid #0b5fff;
  outline-offset: 2px;
}
.toolbox-nav__search-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

/* Disable link underline animation for the logo */
.toolbox-nav__logo a,
.toolbox-nav__logo { text-decoration: none !important; }
.toolbox-nav__logo a::after,
.toolbox-nav__logo::after { content: none !important; }
.toolbox-nav__list.is-expanded{
  z-index: 99999999999999;
}
/* Mobile nav toggle */
.toolbox-nav__toggle { display: none; background: none; border: 0; padding: 8px; margin: 0; cursor: pointer; z-index: 99999999999999;}
.toolbox-nav__toggle:focus-visible { outline: 3px solid #0b5fff; outline-offset: 2px; border-radius: 6px; }
.toolbox-nav__toggle-bar { display: block; width: 24px; height: 2px; background: #2D0C59; margin: 5px 0; transition: transform 0.2s ease, opacity 0.2s ease; }

/* Collapsible nav list for desktop */
@media (min-width: 901px) {
  .toolbox-nav__list.is-collapsed { display: none; }
  .toolbox-nav__list.is-expanded { display: flex; }
  /* Hide mobile logo on desktop */
  .toolbox-nav__item--logo-mobile {
    display: none;
  }
	ul#toolbox-nav-list{
		    align-items: flex-start !important;
	}
	.toolbox-nav__search-icon{
		padding:0px !important
	}
}

@media (max-width: 900px) {
  .toolbox-nav__toggle { display: inline-block; }
  .toolbox-nav__list { 
    position: fixed; 
    left: 0; 
    top: 0; 
    bottom: 0; 
    width: 280px; 
    max-width: 85vw;
    background: #ffffff !important; 
    flex-direction: column; 
    gap: 0; 
    padding: 0; 
    box-shadow: 4px 0 24px rgba(0,0,0,0.15); 
    z-index: 999999;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    display: flex;
  }
  .toolbox-nav__list.is-expanded {
    transform: translateX(0);
  }
  .toolbox-nav__list.is-collapsed {
    transform: translateX(-100%);
  }
  
  /* Mobile menu logo at top */
  .toolbox-nav__item--logo-mobile {
    display: block !important;
    padding: 20px 24px;
    border-bottom: 2px solid #e5e7eb;
    background: #ffffff !important;
    margin: 0;
  }
  .toolbox-nav__item--logo-mobile .toolbox-nav__logo-mobile {
    display: block;
    text-decoration: none;
  }
  .toolbox-nav__item--logo-mobile .toolbox-nav__logo-mobile::after {
    content: none !important;
  }
  .toolbox-nav__item--logo-mobile .toolbox-nav__logo-mobile img {
    height: 70px;
    width: auto;
    display: block;
  }
	.toolbox-nav__search-icon{
		    justify-content: flex-start;
		padding:0px
	}
  .toolbox-nav__item { 
    padding: 12px 24px; 
	width: 100%;
    background: #ffffff;
  }
  .toolbox-nav__item:last-child { border-bottom: none; }
  .toolbox-nav__link { font-size: 18px; display: block; padding: 8px 0; }
  .toolbox-nav__lang { padding-top: 8px; }
  
  /* Body overlay when menu is open */
  body.menu-open {
    overflow: hidden;
  }
  
  body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999998;
    animation: fadeIn 0.3s ease-in-out;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

/* Focus styles for accessibility */
:focus { outline: none; }
.toolbox-nav a:focus-visible { outline: 3px solid #0b5fff; outline-offset: 2px; border-radius: 4px; }

/* Home */
.home-hero { background: linear-gradient(135deg, #e6eeff, #fff); padding: 4rem 1rem; }
.home-hero__inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.home-hero__title { font-size: 2.25rem; margin: 0 0 0.5rem; }
.home-hero__subtitle { margin: 0 0 1rem; color: #374151; }
.home-cta { display: inline-block; margin: 0.25rem; padding: 0.6rem 1rem; border-radius: 20px; background: #3b34f5; color: #fff; padding: 10px 80px; background: #4C5AFA; color: white;}

.home-grid { padding: 2rem 1rem; }
.home-grid__inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.home-card { background: #fff; padding: 1rem; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,0.05); }

@media (max-width: 900px) {
  .home-grid__inner { grid-template-columns: 1fr; }
}

/* Home news region */
.home-news { padding: 1rem; }
.home-news__inner { max-width: 1500px; margin: 0 auto; }
.home-news__header { text-align: center; margin-bottom: 1rem; }
.home-news__title { font-size: 4.5rem; margin: 0.25rem 0; font-weight: 600;}
.home-news__lead { color: #011640; max-width: 60ch; margin: 0.25rem auto 1.25rem; font-size: 25px; text-align: center; font-weight: 400;}
.home-news .view, .home-news .block { margin-top: 0.5rem; }
.home-news__actions { text-align: center; margin-top: 1rem; }

/* News cards (teaser) */
.view-latest-news .view-content,
.home-news .view-content { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.home-news .view-content { justify-items: stretch; align-items: start; }
.news-card { background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.news-card__image img { width: 100%; height: 370px; object-fit: cover; display: block; border-radius: 20px;}
.news-card__body { padding: 0.75rem 1rem 1rem; }
.news-card__title { font-size: 25px; }
.news-card__title span { color: #011640; font-size:25px; font-weight: 600;}
.news-card__excerpt { color: #011640; font-size: 20px; margin-bottom: 0.5rem; font-weight: 100;}
.news-card__more { color: #011640; font-weight: 600; font-size: 20px;}
/* Hide field label for featured image in teaser cards */
.news-card .field--name-field-featuredimage .field__label { display: none; }
.news-card .field--name-field-featuredimage { margin: 0; }

@media (max-width: 900px) {
  .home-news .view-content { grid-template-columns: 1fr; gap: 1rem; }
}

/* Fallback spacing if grid not applied */
.home-news .views-row { margin-bottom: 1.5rem; display: flex; gap: 20px;justify-content: flex-start;}

/* Normalize Views grid markup inside home news (avoid centered last row) */
.home-news .view-content .views-row { display: contents !important; }
.home-news .view-content .views-col { float: none !important; width: auto !important; margin: 0; padding: 0; display: block !important; }
.home-news .view-content .clearfix::before,
.home-news .view-content .clearfix::after { content: none !important; display: none !important; }

.logo-footer-icon {
  height: 42px;
  width: 100px;
}

.footer-icon-container {
  display: flex;
  flex-direction: row;
  gap: 10px;
    justify-content: center;
    align-items: center;
}

.body-font {
  font-size : 20px
}

.body-font-footer{
font-size:14px
}


.body-font-footer a{
font-size:14px
}

.toolbox-icon {
  width: 70px;
  height: 70px;
}

#toolbox-cta{
  font-size : 30px;
}

.glosary-container{
  display: flex;
  align-items: center;
      gap: 20px;
}

.glosary-container img{
  width: 55px;
}
.glosary-text{
  line-height: 1;
}

/* Mobile-only adjustments */
@media (max-width: 900px) {
  /* Hero section: remove fixed width/height, stack content */
  .hero-section > div {
    width: 100% !important;
    height: auto !important;
    padding: 24px !important;
    display: flex;
    flex-direction: column !important;
    gap: 16px !important;
  }
  .text-hero,
  .image-hero {
    width: 100% !important;
  }
  .image-hero {
    height: auto !important;
  }
  .image-hero .image-frame img {
    max-height: 340px;
  }

  /* Callouts: stack */
  .callouts {
    flex-direction: column !important;
    gap: 16px;
    width: 100%;
    padding: 0 16px;
  }
  .callouts .callout {
    width: 100% !important;
  }

  /* Home news header sizes */
  .home-news__title { font-size: 2rem; }
  .home-news__lead { font-size: 1rem; padding: 0 12px; }

  /* Cards/images on small screens */
  .news-card__image img { height: 300px; }
  .news-card__body { padding: 0.5rem 0.75rem 0.75rem; }
  .news-card__title { font-size: 20px; }
  .news-card__title span { font-size: 20px; }
  .news-card__excerpt { font-size: 16px; }
  .news-card__more { font-size: 16px; }

  /* Misc small typography/icon tweaks */
  .glosary-container { gap: 12px; }
  .glosary-container img { width: 40px; }
  #toolbox-cta { font-size: 24px; }
  .home-cta { padding: 10px 24px; }
}

@media (max-width: 480px) {
  .news-card__image img { height: 240px; }
}

/* Fixed side bars (global) */
.sticky-tools,
.sticky-glossary{
  position: fixed;
  right: 0;
  transform: translateY(-50%) rotate(180deg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  color: #fff;
  text-decoration: none;
  padding: 40px 10px;
  border-radius: 0 12px 12px 0;
  font-weight: 700;
  letter-spacing: 0.08em;
  z-index: 1000;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.sticky-tools{
  top: 35%;
  background-color: #006280;
}

.sticky-glossary{
  top: 55%;
  background-color: #009bc9;
}

.sticky-tools:focus,
.sticky-tools:hover{
  background-color: #004757;
}

.sticky-glossary:focus,
.sticky-glossary:hover{
  background-color: #006280;
}

@media (max-width: 900px){
  .sticky-tools,
  .sticky-glossary{
    top: auto;
    bottom: 60px;
    right: 0;
    transform: translateY(0) rotate(180deg);
    border-radius: 0 12px 12px 0;
    padding: 30px 8px;
    font-size: 14px;
  }
  .sticky-tools{
    bottom: 200px;
  }
}

/* Tools slide-out panel */
.tools-panel-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
  z-index: 999;
}

.tools-panel-overlay--open{
  opacity: 1;
  pointer-events: auto;
}

/* Lower hamburger menu z-index when tools panel is open */
body.tools-panel-open .toolbox-nav__toggle {
  z-index: 998;
}

.tools-panel{
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 320px;
  max-width: 80%;
  background: #ffffff;
  box-shadow: -4px 0 16px rgba(0,0,0,0.16);
  transform: translateX(100%);
  transition: transform 0.25s ease-in-out;
  z-index: 1001;
  display: flex;
  flex-direction: column;
}

.tools-panel--open{
  transform: translateX(0);
}

.tools-panel__inner{
  padding: 20px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tools-panel__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.tools-panel__header h2{
  font-size: 20px;
  margin: 0;
  color: #006280;
}

.tools-panel__close{
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #011640;
}

.tools-panel__nav{
  overflow-y: auto;
  padding-right: 4px;
}

.tools-panel__section-title{
  font-size: 16px;
  margin: 16px 0 8px;
  color: #009BC9;
}

.tools-panel__list{
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}

.tools-panel__item{
  margin-bottom: 8px;
}

.tools-panel__link{
  display: flex;
  align-items: center;
  gap: 12px;
  color: #011640;
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.tools-panel__link:hover,
.tools-panel__link:focus{
  color: #009BC9;
  text-decoration: none;
}

.tools-panel__link-icon{
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tools-panel__link-icon img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tools-panel__link-text{
  flex: 1;
  line-height: 1.4;
}

@media (max-width: 640px){
  .tools-panel{
    width: 100%;
    max-width: 100%;
  }
}

.toolbox-footer__info_container{
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: center;
  align-items: center;
}