/* Velviqo-Anwendung – ergänzt style.css der Webseite */

.kopf-konto { display: flex; align-items: center; gap: 12px; }
.kopf-konto form { margin: 0; }
.link-knopf { background: none; border: 0; padding: 0; font: inherit; color: var(--nacht); cursor: pointer; text-decoration: none; font-size: .96rem; }
.link-knopf:hover { color: var(--samt); }
.inhalt { padding: 48px 0 96px; min-height: 60vh; }
.inhalt h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 24px; }
.leiste .rechts { margin-left: auto; }
.krume { font-size: .88rem; color: var(--leise); margin-bottom: 14px; }
.krume a { color: var(--leise); }

.hinweis, .warnung, .erfolg { border-radius: 14px; padding: 14px 18px; margin: 0 0 20px; font-size: .95rem; }
.hinweis { background: #EEF5FB; border: 1px solid #CFE3F3; }
.warnung { background: #FFF4D6; border: 1px solid #E9D18A; }
.erfolg { background: #EAF6EC; border: 1px solid #BFE3C6; }
.fehler { background: #FDECEA; border: 1px solid #F3C2BC; border-radius: 14px; padding: 14px 18px; margin: 0 0 20px; }

.karte-flach { background: #fff; border-radius: var(--radius); padding: 24px 26px; box-shadow: 0 1px 0 var(--linie), 0 14px 30px -26px rgba(27, 27, 47, .45); margin-bottom: 24px; }
.karte-flach h2 { font-size: 1.4rem; max-width: none; }
.zweispaltig { display: flex; gap: 32px; align-items: flex-start; }
.zweispaltig > .haupt { flex: 1 1 62%; min-width: 0; }
.zweispaltig > .seite-rand { flex: 0 0 340px; position: sticky; top: 90px; }

/* Formular */
.formular textarea { font: inherit; font-weight: 400; font-size: 1rem; padding: .7em .85em; border: 1px solid #D6CCBD; border-radius: 12px; background: #fff; color: var(--text); width: 100%; min-height: 110px; resize: vertical; }
.formular .feld-hilfe { font-weight: 400; color: var(--leise); font-size: .84rem; }
.formular .pflicht::after { content: " *"; color: var(--samt); }
.varianten { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.varianten label { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 8px; background: #fff; border: 1px solid #D6CCBD; border-radius: 999px; padding: .5em 1em; font-weight: 500; }
.varianten input { width: auto; }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
button.knopf { font-family: inherit; }
.knopf-gefahr { background: transparent; color: var(--samt); box-shadow: inset 0 0 0 2px var(--samt); }
.knopf-gefahr:hover { background: var(--samt); color: #fff; }

/* Buchvorschau */
.vorschau-buch { display: flex; flex-direction: column; gap: 34px; }
.doppelseite { display: flex; background: #fff; border-radius: 6px 10px 10px 6px; box-shadow: 0 24px 50px -24px rgba(27, 27, 47, .35); position: relative; overflow: hidden; min-height: 380px; }
.doppelseite::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 30px; margin-left: -15px; background: linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,.08) 45%, rgba(0,0,0,.12) 50%, rgba(0,0,0,.05) 56%, rgba(0,0,0,0)); pointer-events: none; }
.doppelseite .links { flex: 1 1 50%; position: relative; overflow: hidden; }
.doppelseite .links svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.doppelseite .links .foto { position: absolute; left: 14%; right: 14%; top: 16%; bottom: 20%; background: #fff; padding: 8px 8px 26px; box-shadow: 0 8px 20px rgba(0,0,0,.25); transform: rotate(-2.5deg); }
.doppelseite .links .foto img { width: 100%; height: 100%; object-fit: cover; }
.doppelseite .rechts { flex: 1 1 50%; padding: 32px 34px 40px; background: #FFFDF9; font-family: var(--serif); font-size: 1.02rem; line-height: 1.6; color: #2E2B3A; }
.doppelseite .rechts h3 { font-size: 1.4rem; color: var(--nacht); }
.doppelseite.einzeln .links { display: none; }
.doppelseite.einzeln::after { display: none; }
.doppelseite.einzeln .rechts { flex-basis: 100%; }
.wasserzeichen { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 2; }
.wasserzeichen span { font: 700 3.4rem var(--sans); color: rgba(192, 57, 43, .09); transform: rotate(-22deg); letter-spacing: .2em; }
.seite-kopf { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font: 600 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--samt); }
.seite-kopf .geaendert { color: var(--leise); letter-spacing: 0; text-transform: none; font-weight: 400; }
.bearbeiten summary { cursor: pointer; font: 500 .88rem var(--sans); color: var(--samt); margin-top: 10px; list-style: none; }
.bearbeiten summary::-webkit-details-marker { display: none; }
.bearbeiten[open] summary { margin-bottom: 10px; }
.bearbeiten textarea { min-height: 220px; font-family: var(--serif); font-size: 1rem; }
.umschlag { min-height: 300px; }
.umschlag .rechts { display: flex; flex-direction: column; justify-content: center; text-align: center; }
.umschlag h2 { margin: 0 auto 8px; font-size: 2rem; }
.liste-seite ul { padding-left: 1.1em; margin: 0; }
.liste-seite li { margin-bottom: 6px; }
.rezept-spalten { display: flex; gap: 24px; flex-wrap: wrap; }
.rezept-spalten > div { flex: 1 1 200px; }
.stammbaum { display: flex; flex-wrap: wrap; gap: 12px; }
.stammbaum .person { flex: 1 1 160px; border: 1.5px solid var(--gold); border-radius: 14px; padding: 12px 14px; text-align: center; background: #fff; }
.stammbaum .person b { display: block; font-family: var(--serif); }
.zeitung-kopf { text-align: center; border-bottom: 3px double var(--nacht); padding-bottom: 8px; margin-bottom: 16px; }
.zeitung-kopf h2 { margin: 0 auto; font-size: 2.4rem; max-width: none; }
.zeitung-spalten { display: flex; gap: 24px; flex-wrap: wrap; }
.zeitung-spalten > .haupt { flex: 2 1 320px; }
.zeitung-spalten > .neben { flex: 1 1 200px; border-left: 1px solid var(--linie); padding-left: 18px; }
.brief-seite { background: #FBF6EC; font-style: italic; }
.spielkarten { display: flex; flex-wrap: wrap; gap: 10px; }
.spielkarten div { flex: 1 1 220px; border: 1.5px dashed #CFC6B6; border-radius: 10px; padding: 10px 12px; font-size: .95rem; }
.suchsel { font: 600 1rem/1 var(--sans); letter-spacing: .35em; }
.dias { display: flex; flex-wrap: wrap; gap: 14px; }
.dia { flex: 1 1 220px; aspect-ratio: 16/9; position: relative; overflow: hidden; border-radius: 10px; background: var(--nacht); }
.dia img, .dia svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.dia span { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; background: rgba(27,27,47,.6); color: #fff; font-family: var(--serif); }

/* Seitenrand: Preis & Kasse */
.preisliste { list-style: none; padding: 0; margin: 0 0 14px; }
.preisliste li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--linie); font-size: .95rem; }
.preisliste li.summe { font-weight: 700; border-bottom: 0; font-size: 1.1rem; }
.wahl-zeile { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: .95rem; }
.wahl-zeile input { margin-top: .3em; }
.wahl-zeile .betrag { margin-left: auto; white-space: nowrap; font-weight: 600; }
.fotoleiste { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.fotoleiste figure { margin: 0; width: 96px; text-align: center; font-size: .75rem; }
.fotoleiste img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; display: block; margin-bottom: 4px; }
.fotoleiste form { display: inline; }
.fotoleiste button { background: none; border: 0; color: var(--leise); cursor: pointer; font-size: .75rem; padding: 2px; }
.schritte-status { list-style: none; padding: 0; margin: 0; }
.schritte-status li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--linie); }
.marke-status { display: inline-block; padding: .2em .7em; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--creme2); color: var(--nacht); }
.marke-status.fertig, .marke-status.bezahlt, .marke-status.aktiv, .marke-status.versendet { background: #EAF6EC; color: #23683A; }
.marke-status.fehler, .marke-status.problem, .marke-status.fehlgeschlagen { background: #FDECEA; color: #A02F23; }
.marke-status.laeuft, .marke-status.in_erzeugung, .marke-status.wartet { background: #FFF4D6; color: #7A5A00; }
.downloads { display: flex; flex-direction: column; gap: 10px; }
.downloads a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--creme2); text-decoration: none; color: var(--nacht); font-weight: 600; }
.downloads a:hover { background: #E6DCCD; }
.downloads small { font-weight: 400; color: var(--leise); margin-left: auto; }

/* Tabellen */
.tabelle { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; font-size: .9rem; }
.tabelle th, .tabelle td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle th { background: #FBF8F4; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--leise); }
.tabelle-huelle { overflow-x: auto; }
.reiter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.reiter a { padding: .45em 1em; border-radius: 999px; text-decoration: none; color: var(--nacht); background: #fff; font-size: .9rem; box-shadow: inset 0 0 0 1px var(--linie); }
.reiter a.aktiv { background: var(--nacht); color: #fff; }
.kennzahlen { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
.kennzahl { flex: 1 1 160px; background: #fff; border-radius: 14px; padding: 16px 18px; }
.kennzahl b { display: block; font: 600 1.6rem var(--serif); color: var(--nacht); }
.kennzahl span { font-size: .84rem; color: var(--leise); }

/* Konto */
.projektliste { display: flex; flex-wrap: wrap; gap: 16px; }
.projektkarte { flex: 1 1 260px; max-width: 360px; background: #fff; border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--nacht); box-shadow: 0 1px 0 var(--linie), 0 14px 30px -26px rgba(27,27,47,.45); }
.projektkarte .bild { height: 120px; position: relative; overflow: hidden; }
.projektkarte .bild svg { width: 100%; height: 100%; }
.projektkarte .text { padding: 14px 16px; }
.projektkarte h3 { font-size: 1.05rem; margin-bottom: 4px; }
.termine li { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--linie); }
.termine { list-style: none; padding: 0; margin: 0 0 14px; }
.termine form { margin-left: auto; }

/* Film */
.film { position: relative; aspect-ratio: 16/9; background: var(--nacht); border-radius: 16px; overflow: hidden; }
.film .bild { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s; }
.film .bild.an { opacity: 1; }
.film .bild.an > * { animation: zoom 6s linear forwards; }
.film .bild img, .film .bild svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.film .unter { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 24px; background: linear-gradient(transparent, rgba(27,27,47,.8)); color: #fff; font: 1.5rem var(--serif); text-align: center; }
@keyframes zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .film .bild.an > * { animation: none; } }

@media (max-width: 900px) {
  .zweispaltig { flex-direction: column; }
  .zweispaltig > .seite-rand { position: static; flex-basis: auto; width: 100%; }
  .doppelseite { flex-direction: column; }
  .doppelseite .links { min-height: 260px; }
  .doppelseite::after { display: none; }
  .kopf-konto .link-knopf { display: none; }
}

/* Momente, die bleiben */
.momente h2 { max-width: 28ch; }
.momente-karten { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 40px; }
.moment { flex: 1 1 280px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 var(--linie), 0 18px 40px -28px rgba(27, 27, 47, .4); display: flex; flex-direction: column; }
.moment-bild { height: 230px; overflow: hidden; }
.moment-bild svg { width: 100%; height: 100%; display: block; }
.moment h3 { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.2rem; margin: 20px 24px 8px; color: var(--samt); }
.moment p { margin: 0 24px 14px; color: #3D3A4B; }
.moment a { margin: auto 24px 22px; font-weight: 600; text-decoration: none; }
/* Lieblingsbücher: Szenen füllen die Karte, statt als Streifen zu stehen */
.karte-bild svg { width: 100%; height: 100%; display: block; }
.karte-bild { padding: 0; }
