/* Visitenkarten-Vorlage - Aufsatz auf css/site.css (Shop-Muster) */

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

.vk-seite { padding: 1.5rem 0 3rem; }
.vk-kopf { margin: 1.5rem 0 1rem; }
.vk-kopf h1 { margin: 0 0 0.35rem; font-size: 1.5rem; }

/* Shop-.card ist ein Grid fuer Produktkacheln (Bild + Text) - fuer ganze Seitenkarten
   auf Blocklayout zurueckstellen, sonst schrumpft der Inhalt auf Inhaltsbreite. */
.vk-layout > section.card, .dz-layout > section.card { display: block; }
.vk-layout > section.card > .card-body,
.dz-layout > section.card > .card-body {
  display: block; padding: 1rem 1.1rem 1.15rem; min-height: 0;
}

.vk-layout { display: grid; gap: 1.35rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1020px) { .vk-layout { grid-template-columns: 420px 1fr; } }

.vk-abschnitt { margin: 1.25rem 0 0.5rem; font-size: 1rem; }
.vk-abschnitt:first-of-type { margin-top: 0; }

.field input[type="text"], .field input[type="file"] { width: 100%; }
.field input[type="text"] {
  background: var(--paper-2); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.45rem 0.55rem; font: inherit; font-size: 0.9rem;
}
.field input[type="text"]:focus { outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); }
.field input[type="file"] { font-size: 0.82rem; color: var(--text-body); }

.vk-haken {
  display: grid; grid-template-columns: 1.05rem minmax(0, 1fr); align-items: center;
  gap: 0.6rem; font-size: 0.88rem; margin: 0.4rem 0; cursor: pointer;
}
.vk-haken input {
  width: 1.05rem; height: 1.05rem; margin: 0; padding: 0;
  display: inline-block; accent-color: var(--accent); cursor: pointer;
}

.vk-buehne {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem;
  background:
    linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 100% 24px,
    linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 24px 100%,
    var(--paper-2);
  display: flex; align-items: center; justify-content: center; overflow: auto; min-height: 300px;
}
#blatt { box-shadow: var(--shadow); display: block; }

.vk-fuss { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.9rem;
  font-size: 0.85rem; color: var(--text-body); flex-wrap: wrap; }
.vk-hinweis { font-size: 0.78rem; color: var(--text-body); line-height: 1.45; margin: 0.75rem 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }

/* Schmales Fenster: Vorschau zuerst und beim Tippen sichtbar */
@media (max-width: 1019px) {
  .vk-layout > section:first-child { order: 2; }
  .vk-layout > section:nth-child(2) {
    order: 1; position: sticky; top: 0.35rem; z-index: 5; background: var(--paper);
  }
  .vk-buehne { min-height: 0; padding: 0.7rem; }
}
