/* OIKANIA Partner-Visitenkarte: Format 85 × 55 mm wie eine echte Karte, 4 Vorlagen */
.vk {
  --vk-farbe: #b9822c;
  container-type: inline-size;
  position: relative; display: block; width: 100%; max-width: 340px; aspect-ratio: 85 / 55;
  border-radius: 7px; overflow: hidden; isolation: isolate; text-decoration: none;
  font-family: "Figtree", "Segoe UI", system-ui, sans-serif; color: #171b34; background: #fbfaf6;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .10), 0 4px 8px rgba(0, 0, 0, .06), 0 18px 30px -10px rgba(26, 31, 65, .35);
  transform: perspective(900px) rotateX(0) rotateY(0); transition: transform .35s ease, box-shadow .35s ease;
}
.vk:hover { transform: perspective(900px) rotateX(4deg) rotateY(-6deg) translateY(-4px); box-shadow: 0 1px 1px rgba(0, 0, 0, .10), 0 10px 16px rgba(0, 0, 0, .08), 0 32px 44px -14px rgba(26, 31, 65, .45); }
@media (prefers-reduced-motion: reduce) { .vk, .vk:hover { transition: none; transform: none; } }
/* Papierstruktur und Lichtkante */
.vk::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.vk::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 38%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }

/* Logo im Stil des Profilbilds: rund, weißer Rand, leichter Schatten */
.vk-logo { position: absolute; z-index: 2; display: flex; align-items: center; justify-content: center; overflow: hidden;
  width: 19cqw; height: 19cqw; padding: 2.4cqw; border-radius: 50%; background: #fff;
  border: .9cqw solid #fff; box-shadow: 0 0 0 .35cqw rgba(26, 31, 65, .12), 0 1cqw 3cqw rgba(0, 0, 0, .18);
  font-weight: 700; font-size: 5.2cqw; letter-spacing: .04em; color: var(--vk-farbe); }
/* Hochgeladenes Logo füllt den Kreis ganz aus */
.vk-logo:not(.vk-logo--text) { padding: 0; }
.vk-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.vk-logo--text { background: #f3e6cf; color: #b9822c; }
.vk-txt { position: absolute; z-index: 2; display: grid; gap: .6cqw; min-width: 0; }
.vk-firma { font-family: "Instrument Serif", Georgia, serif; font-size: 7.6cqw; line-height: 1.05; }
.vk-name { font-size: 4.1cqw; font-weight: 700; letter-spacing: .02em; }
.vk-bietet { font-size: 3.7cqw; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vk-bild { position: absolute; z-index: 0; background-size: cover; background-position: center; }
.vk-badge { position: absolute; z-index: 5; top: 3cqw; right: 3cqw; font-size: 2.8cqw; letter-spacing: .1em; text-transform: uppercase; background: #fff1c2; color: #6b4d00; border-radius: 99px; padding: .5cqw 2cqw; }

/* Vorlage 1: Foto – Hintergrundbild mit Verlauf, Schrift hell */
.vk--foto { color: #fff; background: #1a1f41; }
.vk--foto .vk-bild { inset: 0; }
.vk--foto .vk-bild::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 28, .05), rgba(10, 12, 28, .35) 45%, rgba(10, 12, 28, .88)); }
.vk--foto .vk-logo { top: 5cqw; left: 5.5cqw; box-shadow: 0 1cqw 3cqw rgba(0, 0, 0, .2); }
.vk--foto .vk-txt { left: 5.5cqw; right: 5.5cqw; bottom: 5cqw; }
.vk--foto .vk-name { color: color-mix(in srgb, var(--vk-farbe) 55%, #fff); }
.vk--foto .vk-bietet { color: rgba(255, 255, 255, .88); }

/* Vorlage 2: Klassisch – helles Papier, Akzentlinie unten */
.vk--klassisch { background: #fbfaf6; }
.vk--klassisch .vk-logo { top: 6cqw; left: 6.5cqw; }
.vk--klassisch .vk-txt { left: 6.5cqw; right: 6.5cqw; bottom: 9cqw; }
.vk--klassisch .vk-name { color: var(--vk-farbe); }
.vk--klassisch .vk-bietet { color: #4f5470; }
.vk--klassisch .vk-linie { position: absolute; left: 0; right: 0; bottom: 0; height: 2.6cqw; background: var(--vk-farbe); }

/* Vorlage 3: Farbe – vollflächig in der Akzentfarbe */
.vk--farbe { background: var(--vk-farbe); color: #fff; }
.vk--farbe .vk-bild { inset: 0; background: radial-gradient(circle at 85% 10%, rgba(255, 255, 255, .22), transparent 55%), linear-gradient(160deg, transparent 40%, rgba(0, 0, 0, .35)); }
.vk--farbe .vk-logo { top: 5.5cqw; right: 5.5cqw; }
.vk--farbe .vk-txt { left: 6cqw; right: 6cqw; bottom: 6cqw; }
.vk--farbe .vk-name { color: rgba(255, 255, 255, .95); }
.vk--farbe .vk-bietet { color: rgba(255, 255, 255, .85); }
.vk--farbe .vk-badge { right: auto; left: 3cqw; }

/* Vorlage 4: Geteilt – Bild links, Text rechts */
.vk--geteilt { background: #fbfaf6; }
.vk--geteilt .vk-bild { top: 0; bottom: 0; left: 0; width: 40%; background-color: var(--vk-farbe); }
.vk--geteilt .vk-logo { top: 50%; left: 20%; transform: translate(-50%, -50%); width: 22cqw; height: 22cqw; }
.vk--geteilt .vk-txt { left: 46%; right: 5cqw; top: 50%; transform: translateY(-50%); }
.vk--geteilt .vk-firma { font-size: 6.4cqw; }
.vk--geteilt .vk-name { color: var(--vk-farbe); }
.vk--geteilt .vk-bietet { color: #4f5470; -webkit-line-clamp: 3; }
.vk--geteilt .vk-badge { right: 3cqw; }

/* Editor in „Mein Profil“ */
.vk-editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 28px; align-items: start; margin-top: 18px; }
@media (max-width: 900px) { .vk-editor-grid { grid-template-columns: 1fr; } }
.vk-vorlagen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 16px; }
.vk-wahl { position: relative; margin: 0 !important; }
.vk-wahl input { position: absolute; opacity: 0; }
.vk-wahl span { display: block; text-align: center; padding: 10px 6px; border: 1.5px solid #d9dcea; border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer; background: #fff; }
.vk-wahl input:checked + span { border-color: #b9822c; background: #f3e6cf; color: #1a1407; }
.vk-wahl input:focus-visible + span { outline: 3px solid #b9822c; outline-offset: 2px; }
.vk-farben { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 16px; }
.vk-farben button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px #d9dcea; cursor: pointer; padding: 0; }
.vk-farben button[aria-pressed="true"] { box-shadow: 0 0 0 2.5px #171b34; }
.vk-farben input[type="color"] { width: 44px; height: 32px; padding: 2px; border-radius: 8px; cursor: pointer; }
/* Die Vorschau liegt wie auf einem Holztisch */
.vk-tisch { display: grid; place-items: center; padding: 34px 18px 40px; border-radius: 14px;
  background: radial-gradient(circle at 30% 20%, #4a3a2c, #2b2119 75%); box-shadow: inset 0 2px 10px rgba(0, 0, 0, .35); }
.vk-tisch .vk { width: 100%; transform: perspective(900px) rotateX(6deg) rotateZ(-2deg); }
.vk-tisch .vk:hover { transform: perspective(900px) rotateX(2deg) rotateZ(0) translateY(-3px); }
.vk-status { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: #f7f0df; color: #4a3810; font-size: 14px; line-height: 1.45; }
.vk-status.aktiv { background: #e7f3ea; color: #1d4d2b; }
.vk-editor-aktionen { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
