* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #fff7ec 0%, #fbeee0 40%, #f9e7d9 100%);
  color: #43302b;
}

@font-face {
  font-family: "DynaPuff";
  src: url("fonts/DynaPuff-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DynaPuff";
  src: url("fonts/DynaPuff-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DynaPuff";
  src: url("fonts/DynaPuff-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DynaPuff";
  src: url("fonts/DynaPuff-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body {
  display: flex;
  justify-content: center;
}

.app {
  width: 100%;
  max-width: 560px;
  padding: 2rem 1.5rem 1.5rem;
  position: relative;
  z-index: 1;
}

/* ---- Splash ---- */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f766e;
  transition: opacity 0.35s ease;
}

#splash.splash--hidden {
  opacity: 0;
  pointer-events: none;
}

.splash__logo {
  width: min(220px, 70vw);
}

/* ---- Header logo ---- */
.app__logo {
  display: block;
  width: min(200px, 65vw);
  height: auto;
  margin: 0 0 0.5rem;
  /* Recolor white paths to brand dark */
  filter: brightness(0) saturate(100%) invert(14%) sepia(18%) saturate(520%) hue-rotate(325deg) brightness(88%) contrast(97%);
  @media (max-width: 640px) {
    width: min(60px, 60vw);
  }
}



.app__header h1 {
  margin: 0 0 0.5rem;
  font-size: 2.4rem;
  font-weight: 700;
  color: #2f2720;
}

.app__header p {
  margin: 0;
  font-size: 1rem;
  color: #7a5c4a;
}

.app__header h1,
.landing h2,
.step h2,
.result-block h3 {
  font-family: "DynaPuff", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app__brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.app__header h1,
.app__header p {
  text-align: left;
}

.card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 1.6rem;
  box-shadow: 0 18px 40px rgba(148, 118, 96, 0.3);
  border: 1px solid rgba(244, 212, 189, 0.95);
  padding: 2rem 2rem 2.5rem;
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .card {
    padding: 2.5rem 2.5rem 3rem;
  }
}

.landing {
  margin-bottom: 1.25rem;
}

.landing h2 {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
  font-weight: 600;
  color: #2f2720;
}

.landing .step__hint {
  margin-bottom: 1rem;
}

.landing .nav-btn {
  display: block;
  margin: 1.5rem auto 0;
  width: min(260px, 100%);
}

.wizard {
  display: none;
}

.wizard--visible {
  display: block;
}

.wizard__steps {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0;
  margin: 0 0 1.5rem;
}

.wizard__step-indicator {
  flex: 1 1 0;
  min-width: 0;
  font-size: 0.72rem;
  padding: 0.45rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #7f6a5c;
  border: 1px solid rgba(244, 212, 189, 0.9);
  text-align: center;
  letter-spacing: 0.01em;
  line-height: 1.3;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.wizard__step-indicator--active {
  background: #0f766e;
  color: #fff7ec;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.35);
}

.step {
  /* Vue's v-show styrer display, så vi sætter ikke display her */
}

.step h2 {
  margin: 0 0 0.75rem;
  font-size: 1.6rem;
  font-weight: 600;
  color: #2f2720;
}

.step__hint {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: #8a6a55;
}

.field-group {
  margin-bottom: 1.25rem;
}

.field-group label,
.field-label {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.field-group input[type="number"],
.field-group input[type="datetime-local"],
.field-group select {
  width: 100%;
  padding: 0.75rem 0.8rem;
  font-size: 1rem;
  border-radius: 1rem;
  border: 1px solid #e5d2c2;
  background-color: #fffaf4;
  color: #43302b;
}

.field-group input:focus,
.field-group select:focus {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.35);
}

.field-group small {
  display: block;
  margin-top: 0.25rem;
  font-size: 1rem;
  color: #a17457;
}

.radio-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 1rem;
}

.radio-row input[type="radio"] {
  margin-right: 0.3rem;
}

.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}

.style-card {
  border-radius: 1rem;
  border: 1px solid #f0d8c3;
  padding: 1rem 1rem;
  background: rgba(255, 255, 255, 0.96);
  color: #43302b;
  text-align: left;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.style-card strong {
  display: block;
  margin-bottom: 0.25rem;
}

.style-card span {
  display: block;
  color: #a17457;
  line-height: 1.2rem;
  margin: 1rem 0;
}

.style-card--active {
  border-color: #0f766e;
  background: #0f766e;
  color: #fff7ec;
  box-shadow: 0 12px 32px rgba(15, 118, 110, 0.4);
  transform: translateY(-1px);
}

.style-card--active span {
  color: #fef9f4;
}

.step__calculated {
  margin: 1rem 0 1rem 0;
  font-size: 1rem;
  color: #363433;
}

.advanced {
  margin-top: 0.75rem;
  border-radius: 1rem;
  border: 1px dashed #f0d8c3;
  padding: 0.75rem 0.75rem;
  background: #fffaf4;
}

.advanced summary {
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
}

.advanced__grid {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.5rem 1rem;
}

.advanced__hint {
  margin-top: 0.5rem;
  margin-bottom: 0;
  font-size: 1rem;
  color: #a17457;
}

.wizard__nav {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.nav-btn {
  flex: 1 1 0;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-btn--primary {
  background: #0f766e;
  color: #fff7ec;
}

.nav-btn--secondary {
  background: #fff5eb;
  color: #4b3528;
  border: 1px dashed rgba(205, 170, 143, 0.95);
}

.nav-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.nav-btn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(148, 118, 96, 0.4);
}

.result-block {
  margin-bottom: 1.25rem;
  padding: 1rem 1rem;
  border-radius: 1.2rem;
  background: #fffaf4;
  border: 1px solid #f0d8c3;
}

.result-block h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.ingredients-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ingredients-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
  font-size: 1rem;
}

.ingredients-list span {
  color: #a17457;
}

.ingredients-list strong {
  font-variant-numeric: tabular-nums;
}

.ingredient--optional span {
  opacity: 0.9;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ghost-btn {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px dashed #d8b99b;
  background: transparent;
  color: #4b3528;
  font-size: 1rem;
  cursor: pointer;
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

.ghost-btn--header {
  margin-top: 1.25rem;
  padding-inline: 1.25rem;
  font-size: 1rem;
  opacity: 0.9;
}

.install-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.25rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  border: 1.5px solid #0f766e;
  background: transparent;
  color: #0f766e;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.install-btn:hover {
  background: #0f766e;
  color: #fff7ec;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1.25rem;
  padding: 0.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(230, 204, 182, 0.9);
}

.lang-toggle__btn {
  border: none;
  background: transparent;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  color: #7a5c4a;
}

.lang-toggle__btn--active {
  background: #0f766e;
  color: #fff7ec;
  box-shadow: 0 6px 14px rgba(15, 118, 110, 0.35);
}

@media (min-width: 960px) {
  .app {
    max-width: 640px;
  }
}

/* Legende baggrundsglød omkring kortet */
.app::before,
.app::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}

.app::before {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, #fed7aa, transparent 70%);
  top: 4%;
  left: 10%;
}

.app::after {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, #bbf7d0, transparent 70%);
  bottom: 2%;
  right: 8%;
}


#fremgang li{
    margin: 0 0 0.5rem 0;
}

/* ---- Install banner ---- */
.install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 0.75rem 1rem env(safe-area-inset-bottom, 0);
  background: rgba(255, 252, 247, 0.97);
  border-top: 1px solid rgba(244, 212, 189, 0.9);
  box-shadow: 0 -6px 24px rgba(148, 118, 96, 0.18);
  backdrop-filter: blur(8px);
}

.install-banner__body {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.install-banner__icon {
  flex-shrink: 0;
  border-radius: 10px;
  width: 44px;
  height: 44px;
}

.install-banner__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.install-banner__text strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: #2f2720;
}

.install-banner__text span {
  color: #7a5c4a;
  font-size: 0.82rem;
  line-height: 1.4;
}

.install-banner__btn {
  flex-shrink: 0;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: #0f766e;
  color: #fff7ec;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.install-banner__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.35);
}

.install-banner__close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #a17457;
  cursor: pointer;
  padding: 0.3rem;
  display: flex;
  align-items: center;
  border-radius: 50%;
}

.install-banner__close:hover {
  background: rgba(161, 116, 87, 0.1);
}