/* Gemensam stil. Färger och typsnitt kommer från inc/tema.php (CSS-variabler i <head>). */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bakgrund); color: var(--text); font-family: var(--brod); font-size: 17px; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--rubrik); font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; margin: 0; }

.hoppa { position: absolute; left: -9999px; top: 8px; background: var(--yta); padding: 8px 14px; z-index: 100; }
.hoppa:focus { left: 8px; }

.remsa { background: var(--mork); color: #fff; text-align: center; font-size: 14px; padding: 9px 16px; }
.remsa a { color: #fff; font-weight: 600; margin-left: 6px; }

/* Header */
.huvud { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bakgrund) 92%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--text) 10%, transparent); }
  .huvud-in { max-width: none; margin: 0; padding: 14px 24px; display: flex; align-items: center; gap: 32px; }   /* fullbredd: loggan längst till vänster, menyn längst till höger */
  .marke { font-family: var(--rubrik); font-size: 26px; text-decoration: none; white-space: nowrap; }
  .marke img { height: 30px; width: auto; }
  .meny { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
  .meny a { text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; }
  .meny a:hover, .meny a[aria-current="page"] { border-bottom-color: currentColor; }
  .menyknapp { display: none; background: none; border: none; padding: 6px; cursor: pointer; margin-left: 8px; }

  /* Knappar och länkar */
  .knapp { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: var(--accent-text);
    border: 1px solid var(--accent); padding: 14px 28px; font-size: 16px; font-weight: 500; text-decoration: none; cursor: pointer;
    border-radius: 999px; transition: background 0.2s, color 0.2s, transform 0.2s; }
    .knapp:hover { background: transparent; color: var(--accent); }
    .knapp.liten { padding: 9px 20px; font-size: 15px; }
    .knapp.kontur { background: transparent; color: var(--accent); }
    .knapp.kontur:hover { background: var(--accent); color: var(--accent-text); }
    .knapp.ljus { background: #fff; color: var(--mork); border-color: #fff; }
    .knapp.ljus:hover { background: transparent; color: #fff; }
    .lank { font-weight: 500; text-underline-offset: 4px; }
    .lank::after { content: ' →'; }
    .lank.ljus { color: #fff; }

    /* Det ritade gåvokortet */
    .gkort { position: relative; aspect-ratio: 85.6 / 54; width: 100%; border-radius: 14px; overflow: hidden; color: var(--kt);
      background: linear-gradient(135deg, var(--k1), var(--k2)); box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset, 0 18px 40px -18px rgba(0,0,0,0.45);
      padding: 7% 8%; display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: 1fr auto; container-type: inline-size; }
      .gkort::before { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.28) 50%, transparent 65%); pointer-events: none; }
      .gkort-marke { font-family: var(--rubrik); font-size: 8.5cqw; line-height: 1; grid-column: 1; }
      .gkort-niva { grid-column: 2; font-size: 4.6cqw; letter-spacing: 0.18em; text-transform: uppercase; align-self: start; opacity: 0.85; }
      .gkort-chip { grid-row: 2; grid-column: 1; align-self: center; width: 15%; aspect-ratio: 4 / 3; border-radius: 3px;
        background: linear-gradient(135deg, rgba(255,255,255,0.55), rgba(0,0,0,0.12)); border: 1px solid rgba(0,0,0,0.12); }
        .gkort-varde { grid-row: 3; grid-column: 1 / -1; font-family: var(--rubrik); font-size: 10cqw; line-height: 1; justify-self: end; }
        .gkort.bild { padding: 0; background: none; }
        .gkort.bild img { width: 100%; height: 100%; object-fit: cover; }

        /* Formulär (gemensamt) */
        label { display: block; font-size: 14px; font-weight: 500; }
        input:not([type=checkbox]):not([type=radio]), textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font-size: 16px; font-weight: 400;
          background: var(--yta); border: 1px solid color-mix(in srgb, var(--text) 22%, transparent); border-radius: 10px; }
          input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
          [aria-invalid="true"] { border-color: #b42318 !important; }
          .fel { color: #b42318; font-size: 14px; margin: 6px 0 0; font-weight: 400; }
          .fel.stort { background: #fef3f2; border: 1px solid #fecdca; padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; }
          .fel a { color: inherit; }
          .kryss { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; cursor: pointer; }
          .kryss input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); flex-shrink: 0; }
          .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
          .tva { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

          /* Sidfot */
          .fot { background: var(--mork); color: rgba(255,255,255,0.78); font-size: 15px; }
          .fot-in { max-width: 1240px; margin: 0 auto; padding: 64px 24px 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
          .fot-marke span { font-family: var(--rubrik); font-size: 28px; color: #fff; }
          .fot-marke img { height: 32px; width: auto; }
          .fot-marke p { max-width: 24em; margin: 14px 0 0; }
          .fot h2 { font-family: var(--brod); font-size: 13px; font-weight: 600; color: #fff; margin: 0 0 14px; letter-spacing: 0.04em; }
          .fot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
          .fot a { color: rgba(255,255,255,0.78); text-decoration: none; }
          .fot a:hover { color: #fff; text-decoration: underline; }
          .fot address { font-style: normal; line-height: 1.9; }
          .fot-sociala { display: flex; gap: 16px; }
          .fot-copy { max-width: 1240px; margin: 0 auto; padding: 20px 24px 32px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 13px; color: rgba(255,255,255,0.55); }

          @media (max-width: 900px) {
            .huvud-in { gap: 12px; padding: 12px 16px; }
            .meny { display: none; }
            .menyknapp { display: inline-flex; margin-left: auto; }
            .huvud.oppen .meny { display: flex; flex-direction: column; gap: 4px; position: absolute; top: 100%; left: 0; right: 0; background: var(--bakgrund);
              padding: 12px 16px 20px; border-bottom: 1px solid color-mix(in srgb, var(--text) 10%, transparent); font-size: 18px; }
              .huvud.oppen .meny a { padding: 10px 0; }
              .fot-in { grid-template-columns: 1fr 1fr; padding: 48px 16px 32px; }
              .fot-marke { grid-column: 1 / -1; }
              .fot-copy { padding: 20px 16px 28px; }
          }
          @media (max-width: 560px) {
            body { font-size: 16px; }
            .tva { grid-template-columns: 1fr; }
            .marke { font-size: 22px; }
          }
          @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
