/* --- YELL-RF25 Main Stylesheet (MERGED fra legacy main.css 2025-06-25) --- */

/* Global Transitions and Animations */
* {
  transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
  background: linear-gradient(135deg, #f7f7f7 0%, #e8e8e8 100%);
  font-size: 17px;
}

html, body {
    width: 375px !important;
    min-width: 375px !important;
    max-width: 375px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

body, html, header, .uk-container, .switch-list, .uk-switcher, .uk-margin, #my-yell-form-switcher, main, form, .yell-form {
  width: 375px !important;
  max-width: 375px !important;
  min-width: 375px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

body {
  font-size: 1rem;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-weight: 400;
  background: #f7f7f7;
  color: #222;
  margin: 0;
  box-sizing: border-box;
  padding: 0;
  width: 375px;
  max-width: 375px;
  min-width: 375px;
  margin-left: auto;
  margin-right: auto;
}

/* --- HEADER (GENSKABT: Synlig, responsiv, orange topbar) --- */
header {
  background: #ff6600;
  color: #fff;
  text-align: center;
  position: relative;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  width: 375px !important;
  max-width: 375px !important;
  min-width: 375px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
  border-radius: 0 0 16px 16px;
  padding: 10px 0 6px 0 !important;
  overflow: visible;
  z-index: 10;
}
/* BRUGES: header (orange bar med afrundede hjørner i bund) */

/* --- Header YELL Button, Search Field & Search Button (custom, no UIKit interference) --- */
#open-yell-form.uk-button-yell {
  background: #e65100;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.5rem;
  font-size: 0.5rem;
  font-weight: bold;
  transition: transform 0.18s cubic-bezier(.4,1.4,.6,1), background 0.2s, color 0.2s;
  box-shadow: 0 2px 8px #0001;
  cursor: pointer;
}
#open-yell-form.uk-button-yell:hover,
#open-yell-form.uk-button-yell:focus {
  background: #ff6600;
  color: #fff;
  transform: scale(1.09);
  box-shadow: 0 6px 24px #e6510033;
}

#search-button.uk-button-search {
  background: #e65100;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.5rem;
  font-size: 0.5rem;
  font-weight: bold;
  transition: transform 0.18s cubic-bezier(.4,1.4,.6,1), background 0.2s, color 0.2s;
  box-shadow: 0 2px 8px #0001;
  cursor: pointer;
}
#search-button.uk-button-search:hover,
#search-button.uk-button-search:focus {
  background: #ff6600;
  color: #fff;
  transform: scale(1.09);
  box-shadow: 0 6px 24px #e6510033;
}

#yell-form .btn-yell {
  background: #e65100;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  transition: transform 0.18s cubic-bezier(.4,1.4,.6,1), background 0.2s, color 0.2s;
  box-shadow: 0 2px 8px #0001;
  cursor: pointer;
  width: 96% !important;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
#yell-form .btn-yell:hover,
#yell-form .btn-yell:focus {
  background: #ff6600;
  color: #fff;
  transform: scale(1.09);
  box-shadow: 0 6px 24px #e6510033;
}
/* HEADER KNAPPER SLUT */

/* --- SWITCHER LINKS: HCI/Orange Style (flyttet op på linje 108) --- */
.uk-subnav.uk-subnav-pill.switch-list {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 0.1em !important;
  width: 100% !important;
  max-width: 375px !important;
  min-width: 0 !important;
  margin: 0.7em auto 0.7em auto !important;
  padding: 0 !important;
  background: none !important;
  box-sizing: border-box !important;
  overflow-x: auto !important;
  white-space: nowrap !important;
}
.uk-subnav.uk-subnav-pill.switch-list::-webkit-scrollbar {
  display: none;
}
.uk-subnav.uk-subnav-pill.switch-list > li {
  margin: 0 !important;
  padding: 0 1px !important;
  box-sizing: border-box !important;
}
.uk-subnav.uk-subnav-pill.switch-list li.uk-active #uk-switcher-1 .switch-link {
  background: #ff6600;
  color: #fff;
  border: 2px solid #fff7f0;
  box-shadow: 0 0 0 2px #ff660055;
}
.uk-subnav.uk-subnav-pill.switch-list .switch-link {
  background: #fff !important;
  color: #ff6600 !important;
  font-weight: bold;
  border-radius: 6px;
  padding: 0.5em 0.7em;
  margin: 0;
  box-shadow: 0 2px 8px #ff660033;
  border: 2px solid #ff6600 !important;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  display: inline-block;
  text-align: center;
  letter-spacing: 0.03em;
  font-size: 1em;
  min-width: 60px;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.uk-subnav.uk-subnav-pill.switch-list .switch-link:hover,
.uk-subnav.uk-subnav-pill.switch-list .switch-link:focus {
  background: #ff6600 !important;
  color: #fff !important;
  box-shadow: 0 4px 16px #ff660055;
  outline: none;
}
.uk-subnav.uk-subnav-pill > .uk-active > a.switch-link {
  color: #fff !important;
  background: #ff6600 !important;
  border: 2px solid #ff6600 !important;
}


main {
  font-family: 'Segoe UI', Arial, sans-serif;
  max-width: 560px;
  margin: 2rem auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px #0001;
  padding: 2rem;
  padding-top: 0.5em;
}

h1 {
  padding-left: 1em;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 2.1rem;
  font-weight: 700;
  max-width: 700px;
  letter-spacing: 0.01em;
  margin-left: auto;
  margin-right: auto;
}
/* BRUGES: h1 (YELL-RF25 tekst) */

h4, details > summary h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
}
/* BRUGES: h4 generelt */

.yell-headline {
  font-size: 1.05rem;
  font-weight: 600;
}
/* BRUGES: YELL overskrifter */

.header-bar {
  display: flex;
  padding-right: 1em;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  max-width: 100%;
  margin: 0 auto 0.4em auto;
  box-sizing: border-box;
  padding-left: 0;
  padding-right: 0;
}
/* BRUGES: header-bar (flex container for header-indhold) */

.header-bar h4 {
  max-width: 100%;
  overflow: hidden;
  margin: 0;
}
/* BRUGES: h4 i header-bar */

.header-search {
  float: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  /* max-width: 400px; */
  width: 100%;
  margin-left: 0;
  flex: 1 1 0;
  overflow: hidden;
  justify-content: flex-start;
}
/* BRUGES: header-search (container for søgefelt og knap) */

.header-search form {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  max-width: 100%;
  gap: 0;
}
/* BRUGES: søgeform i header */

.header-search input[type="text"] {
  line-height: 1.2;
  margin-right: 0.7rem;
  box-sizing: border-box;
  border-radius: 4px 0 0 4px;
  font-size: 1rem;
  padding: 0.7rem 1rem;
  flex: 1 1 0;
}
/* BRUGES: søgefelt i header */

.header-search button.btn-yell {
  height: 2.9rem;
  border-radius: 0 4px 4px 0;
  font-size: 1rem;
  padding: 0.7rem 1.5rem;
  flex: 0 0 auto;
  max-width: 160px;
  width: auto;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* BRUGES: søgeknap i header (btn-yell) */

@media (max-width: 700px) {
  .header-search input[type="text"],
  .header-search button.btn-yell {
    height: 2.5rem;
    margin-right: 0;
    box-sizing: border-box;
    border-radius: 4px;
    padding: 0.7rem 1rem;
  }
  .header-search {
    max-width: 100%;
  }
  .header-search button.btn-yell {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 375px) {
  body, header, .uk-container, .switch-list, .uk-switcher, .uk-margin, #my-yell-form-switcher, main, form, .yell-form {
    width: 375px !important;
    min-width: 375px !important;
    max-width: 375px !important;
  }
  header h1.uk-margin-remove {
    margin: 0 0 2px 0 !important;
    font-size: 1.35rem !important;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
  }
  header .uk-text-small {
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 6px 0 !important;
    font-size: 0.98rem !important;
    line-height: 1.1;
  }
  .uk-grid.uk-grid-small.uk-flex-middle {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .uk-width-auto > #open-yell-form.uk-button-yell {
    white-space: nowrap !important;
    font-size: 0.85rem !important;
    padding: 0.4rem 0.4rem !important;
    min-width: 0 !important;
    max-width: 80px !important;
    height: 2rem !important;
    line-height: 1.1 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 8px 0 0 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .uk-width-expand.uk-flex.uk-flex-center {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: 9999px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: stretch !important;
    padding: 0 !important;
  }
  .uk-input-search {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 9999px !important;
    font-size: 0.95rem !important;
    padding: 0.4rem 0.6rem !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    height: 2rem !important;
    line-height: 1.1 !important;
    border-left: none !important;
    border-right: none !important;
    display: block !important;
  }
  #search-button.uk-button-search {
    white-space: nowrap !important;
    font-size: 0.85rem !important;
    padding: 0.4rem 0.4rem !important;
    min-width: 0 !important;
    max-width: 50px !important;
    height: 2rem !important;
    line-height: 1.1 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 0 8px 8px 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* Responsive breakpoints */
@media (max-width: 768px) {
  /* Tablet-tilpasninger her */
}
@media (max-width: 480px) {
  /* Mobil-tilpasninger her */
}
@media (max-width: 400px) {
  /* Ekstra lille mobil */
}
@media (max-width: 320px) {
  /* Ultra small devices (f.eks. gamle iPhones, små Androids) */
  html {
    font-size: 13px;
  }
  .switch-list > li > a {
    font-size: 0.92em;
    padding-left: 0.4em !important;
    padding-right: 0.4em !important;
  }
  .header-search input[type="text"] {
    font-size: 0.95em;
    padding: 0.5em 0.7em;
  }
}

@keyframes slideInParallax {}
.uk-container > h4, .uk-container > h5, .uk-container > h6, .uk-container > h3, .uk-container > h2, .uk-container > h1 {
  animation: none !important;
}
.uk-switcher, #content-switcher > li, #content-switcher > li:not(.uk-active) {
  transition: none !important;
  animation: none !important;
}

/* --- FORM STYLES --- */
.form-field {
  margin-bottom: 1rem;
}
.form-label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.8rem;
}
.form-input, .form-textarea {
  width: 96% !important;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
#yell-form .form-input:focus, #yell-form .form-textarea:focus {
  border: 2px solid #ff6600;
  outline: none;
  background: #fffbe6;
}
.form-separator {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 96%;
  height: 38px;
  background: #ff6600;
  border: none;
  margin: 18px auto 18px auto;
  padding: 0 16px;
  border-radius: 3px;
  box-shadow: none;
  position: relative;
}
.form-separator span {
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  text-align: left;
  width: auto;
  z-index: 1;
}
.btn-yell {
  background: #e65100 !important;
  color: #fff;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 0;
  max-width: 160px;
  width: auto;
  display: flex;
  align-items: center;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  padding-left: 0.6rem;
  padding-right: 0.9rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn-yell:hover, .btn-yell:focus {
  background: #111;
  color: #fff;
  box-shadow: 0 4px 16px #000a;
}
.form-warning {
  margin-top: 1.5rem;
  color: #b71c1c;
  background: #fff3e0;
  border-radius: 6px;
  padding: 1rem;
  font-size: 0.98em;
  text-align: center;
}
.form-note {
  display: inline-block;
  margin-left: 0.7em;
  color: #888;
  font-size: 0.97em;
  font-style: italic;
  font-weight: 400;
  vertical-align: middle;
}
.need-label {
  display: inline-block;
  color: #e53935 !important;
  font-size: inherit;
  font-weight: bold;
  border-radius: 0 !important;
  padding: 0 !important;
  margin-left: 0.6em !important;
  margin-right: 15px !important;
  vertical-align: middle !important;
}
.nice-label {
  display: inline-block;
  color: #43a047 !important;
  font-size: inherit;
  font-weight: bold;
  border-radius: 0 !important;
  padding: 0 !important;
  margin-left: 0.6em !important;
  margin-right: 15px !important;
  vertical-align: middle !important;
}
.char-counter {
  display: block;
  font-size: 0.85em;
  color: #888;
  margin-top: 0.2em;
  text-align: right;
  margin-right: 15px;
}
/* --- END FORM STYLES --- */

/* --- FIX: Switcher links orange and form-styles override (YELL-RF25) --- */
.uk-subnav-pill .switch-link,
.uk-subnav-pill .switch-link:visited {
  color: #ff6600 !important;
  font-weight: bold;
}
.uk-subnav-pill .switch-link:hover,
.uk-subnav-pill .switch-link:focus {
  color: #ff8800 !important;
  background: #fff7f0 !important;
  outline: 2px solid #ff6600 !important;
  box-shadow: 0 0 0 2px #ff660055 !important;
}
.uk-subnav-pill > .uk-active > a.switch-link {
  color: #fff !important;
  background: #ff6600 !important;
  border: 2px solid #ff6600 !important;
}

/* Ensure form classes are not overridden by UIKit */
.form-field, .form-label, .form-input, .form-textarea, .form-separator, .btn-yell, .form-warning, .form-note, .need-label, .nice-label, .char-counter {
  font-family: 'Segoe UI', Arial, sans-serif !important;
  box-sizing: border-box !important;
}
.form-field {
  margin-bottom: 1rem !important;
  display: block !important;
}
.form-label {
  display: block !important;
  margin-bottom: 0.3rem !important;
  font-size: 0.8rem !important;
}
.form-input, .form-textarea {
  width: 96% !important;
  padding: 0.5rem !important;
  border: 1px solid #ccc !important;
  border-radius: 4px !important;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s !important;
}
.btn-yell {
  background: #e65100 !important;
  color: #fff !important;
  border: none !important;
  padding: 0.7rem 1.5rem !important;
  border-radius: 4px !important;
  font-size: 1rem !important;
  cursor: pointer !important;
  font-weight: bold !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  min-width: 0 !important;
  max-width: 160px !important;
  width: auto !important;
  display: flex !important;
  align-items: center !important;
  text-align: center !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  padding-left: 0.6rem !important;
  padding-right: 0.9rem !important;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s !important;
}
.btn-yell:hover, .btn-yell:focus {
  background: #111 !important;
  color: #fff !important;
  box-shadow: 0 4px 16px #000a !important;
}

/* Extra: fix char-counter if needed */
.char-counter {
  display: block !important;
  font-size: 0.85em !important;
  color: #888 !important;
  margin-top: 0.2em !important;
  text-align: right !important;
}

/* --- ORANGE KNAPPER: YELL & SEARCH --- */
#open-yell-form.uk-button-yell,
#search-button.uk-button-search {
  background: #e65100;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  transition: transform 0.18s cubic-bezier(.4,1.4,.6,1), background 0.2s, color 0.2s;
  box-shadow: 0 2px 8px #0001;
  cursor: pointer;
  margin: 0.3em 0.2em;
  min-width: 80px;
  max-width: 160px;
  width: auto;
  display: inline-block;
  text-align: center;
}
#open-yell-form.uk-button-yell:hover,
#open-yell-form.uk-button-yell:focus,
#search-button.uk-button-search:hover,
#search-button.uk-button-search:focus {
  background: #ff6600;
  color: #fff;
  transform: scale(1.09);
  box-shadow: 0 6px 24px #e6510033;
}

nav .uk-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.uk-container > .uk-switcher,
.uk-container > ul.uk-switcher,
#my-yell-form-switcher {
    width: 375px !important;
    min-width: 375px !important;
    max-width: 375px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.uk-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.uk-container #my-yell-form-switcher {
    padding-left: 7px !important;
    padding-right: 7px !important;
    box-sizing: border-box !important;
}

.form-info {
  display: block;
  width: 90%;
  background: #fffbe6;
  color: #ff6600;
  font-size: 0.98rem;
  font-weight: 500;
  text-align: left;
  padding: 12px 16px;
  margin: 10px 0 18px 0;
  border-left: 4px solid #ff6600;
  border-radius: 3px;
  box-shadow: none;
}

form, .uk-form, form.uk-form {
  display: flex;
  flex-direction: column;
}
.btn-yell {
  order: 1;
  margin-bottom: 18px;
}
.form-warning {
  order: 2;
  margin-top: 0;
  margin-bottom: 0;
}