/* liebly Partner – im Designsystem von liebly (Farben, Schriften und Formen wie in der Verwaltung der Hochzeiten) */
@font-face { font-family: 'Cormorant Garamond'; font-weight: 400; font-display: swap; src: url('../fonts/cormorant-garamond-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 500; font-display: swap; src: url('../fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-weight: 400; font-display: swap; src: url('../fonts/jost-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-weight: 500; font-display: swap; src: url('../fonts/jost-latin-500-normal.woff2') format('woff2'); }
:root { --bg: #FCFAF7; --surface: #FFFFFF; --soft: #F5F0E8; --ink: #2E2A26; --muted: #6B6157; --line: #E8E0D4; --line-strong: #CFC4B4; --gold: #A88B5A; --gold-ink: #7A6238; --gold-soft: #F1E9DB;
  --ok: #2F7A52; --no: #A3423D; --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif; --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif; --r: 18px; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.pt { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--sans); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--gold-ink); text-underline-offset: .2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold-ink); outline-offset: 2px; border-radius: 4px; }
.pt-skip { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 10px; z-index: 10; }
.pt-skip:focus { left: .5rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .6rem; }
h1 { font-size: clamp(1.9rem, 3.5vw, 2.5rem); } h2 { font-size: 1.5rem; } h3 { font-size: 1.2rem; }
p { margin: 0 0 .9rem; }
.small { font-size: .88rem; }
.pt-muted { color: var(--muted); }
.pt-center { text-align: center; }
.pt-kicker { margin: 0 0 .4rem; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); font-weight: 500; }
/* Kopf */
.pt-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; padding: .7rem clamp(1rem, 4vw, 2rem); background: rgb(252 250 247 / .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.pt-brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.pt-brand img { display: block; width: 76px; height: auto; }
.pt-brand__tag { padding: .12rem .55rem; border-radius: 99px; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 500; letter-spacing: .06em; }
.pt-nav { display: flex; gap: .2rem; flex-wrap: wrap; }
.pt-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .9rem; border-radius: 99px; color: var(--muted); text-decoration: none; font-weight: 500; }
.pt-nav a:hover { color: var(--ink); background: var(--soft); }
.pt-nav a[aria-current="page"] { color: var(--ink); background: var(--gold-soft); }
.pt-logout { margin-left: auto; display: flex; align-items: center; gap: .7rem; }
.pt-who { font-size: .88rem; color: var(--muted); max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Inhalt */
.pt-main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: clamp(1.4rem, 4vw, 2.6rem) clamp(1rem, 4vw, 2rem) 3rem; }
.pt-main--narrow { max-width: 640px; }
.pt-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.pt-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.2rem, 3vw, 2rem); margin-bottom: 1.2rem; box-shadow: 0 18px 50px -40px rgb(46 42 38 / .4); }
.pt-intro { margin-bottom: 1.4rem; }
.pt-perks { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .55rem; }
.pt-perks li { position: relative; padding-left: 1.7rem; color: var(--muted); }
.pt-perks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--gold-soft); color: var(--gold-ink); font-size: .75rem; display: grid; place-items: center; font-weight: 700; }
.pt-perks b { color: var(--ink); font-weight: 500; }
/* Formulare */
.pt-form fieldset { border: 0; padding: 0; margin: 0 0 1.2rem; }
.pt-form legend { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; margin-bottom: .6rem; padding: 0; }
.pt-form label { display: grid; gap: .3rem; margin-bottom: .9rem; font-weight: 500; font-size: .94rem; }
.pt-opt { font-weight: 400; color: var(--muted); font-size: .85rem; }
.pt-form input:not([type=checkbox]), .pt-form select { width: 100%; min-height: 46px; padding: .6rem .85rem; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink); font: 400 1rem var(--sans); }
.pt-form input:focus-visible, .pt-form select:focus-visible { outline: 3px solid var(--gold-ink); outline-offset: 1px; border-color: transparent; }
.pt-form input[aria-invalid="true"], .pt-form select[aria-invalid="true"] { border-color: var(--no); background: #FDF6F5; }
.pt-err { margin: 0; color: var(--no); font-size: .86rem; font-weight: 400; }
.pt-err::before { content: "⚠ "; }
.pt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.pt-grid--zip { grid-template-columns: 8rem 1fr; }
@media (max-width: 560px) { .pt-grid { grid-template-columns: 1fr; } .pt-grid--zip { grid-template-columns: 7rem 1fr; } }
.pt-check { display: flex !important; grid-template-columns: none; gap: .65rem !important; align-items: flex-start; font-weight: 400 !important; cursor: pointer; }
.pt-check input { width: 22px; height: 22px; margin: .15rem 0 0; accent-color: var(--gold-ink); flex: none; }
.pt-check + .pt-err { margin: -.5rem 0 .9rem 2.2rem; }
.pt-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Knöpfe */
.pt-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 46px; padding: 0 1.4rem; border: 1px solid var(--ink); border-radius: 99px; background: var(--ink); color: #fff; font: 500 1rem var(--sans); text-decoration: none; cursor: pointer; }
.pt-btn:hover { background: #45403A; color: #fff; }
.pt-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.pt-btn--ghost:hover { background: var(--soft); color: var(--ink); }
.pt-btn--sm { min-height: 40px; padding: 0 1rem; font-size: .9rem; }
.pt-btn--block { width: 100%; margin-top: .4rem; }
.pt-links { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin: 1rem 0 0; font-size: .92rem; }
.pt-links a { display: inline-flex; align-items: center; min-height: 44px; }
/* Hinweise */
.pt-alert { padding: .8rem 1rem; border-radius: 12px; border: 1px solid; margin-bottom: 1rem; }
.pt-alert--success { background: #EAF4EE; border-color: #BFDCCB; color: #1E5136; }
.pt-alert--error { background: #FBEDEB; border-color: #EBC2BD; color: #7A2A25; }
.pt-alert--warn { background: #FFF6E5; border-color: #F0D9A8; color: #5C4500; }
.pt-auth h1 { margin-bottom: 1rem; }
.pt-notice { text-align: center; }
.pt-notice__ico, .pt-state__ico { font-size: 2.2rem; display: block; margin-bottom: .4rem; }
.pt-state { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; }
.pt-state--ok { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
@media (max-width: 560px) { .pt-state { grid-template-columns: 1fr; } }
.pt-steps { list-style: none; counter-reset: s; margin: 1rem 0; padding: 0; display: grid; gap: .5rem; }
.pt-steps li { counter-increment: s; display: flex; align-items: center; gap: .6rem; color: var(--muted); }
.pt-steps li::before { content: counter(s); display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 2px solid var(--line-strong); font-size: .8rem; font-weight: 600; flex: none; }
.pt-steps li.is-done { color: var(--ink); } .pt-steps li.is-done::before { content: "✓"; background: var(--gold-ink); border-color: var(--gold-ink); color: #fff; }
.pt-steps li.is-now { color: var(--ink); font-weight: 500; } .pt-steps li.is-now::before { border-color: var(--gold-ink); color: var(--gold-ink); box-shadow: 0 0 0 4px var(--gold-soft); }
/* Fuß */
.pt-foot { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; justify-content: center; padding: 1.4rem 1rem 2rem; border-top: 1px solid var(--line); font-size: .86rem; }
.pt-foot a { color: var(--muted); display: inline-flex; align-items: center; min-height: 32px; }
@media (max-width: 720px) { .pt-top { gap: .5rem; } .pt-nav { order: 3; width: 100%; } .pt-logout { margin-left: auto; } .pt-who { display: none; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
/* Etappe 2: Dashboard, Lizenzen, Hochzeit anlegen */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pt-actions-top { display: flex; gap: .6rem; flex-wrap: wrap; margin: -.4rem 0 1.2rem; }
.pt-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .9rem; margin-bottom: 1.2rem; }
.pt-kpi { display: grid; gap: .15rem; padding: 1rem 1.15rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none; }
a.pt-kpi:hover { border-color: var(--gold); }
.pt-kpi span { font-size: .85rem; color: var(--muted); }
.pt-kpi b { font: 500 2.1rem/1.1 var(--serif); }
.pt-kpi__date { font-size: 1.5rem !important; }
.pt-kpi small { color: var(--muted); font-size: .82rem; }
.pt-kpi--warn { border-color: #F0D9A8; background: #FFF8EA; }
.pt-card__head { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: .6rem; }
.pt-card__head h2 { margin: 0; }
.pt-search input { min-height: 44px; padding: .5rem .9rem; border: 1px solid var(--line-strong); border-radius: 99px; font: inherit; min-width: 14rem; }
.pt-wlist { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.pt-wed { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 1rem; align-items: center; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; }
.pt-wed:hover { border-color: var(--gold); background: #FFFDFa; }
.pt-wed__names { display: grid; min-width: 0; } .pt-wed__names b { font-weight: 500; } .pt-wed__names small, .pt-wed__st small { color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-wed__st { display: grid; justify-items: start; gap: .2rem; }
@media (max-width: 640px) { .pt-wed { grid-template-columns: 1fr; gap: .35rem; } }
.pt-pill { display: inline-block; padding: .15rem .6rem; border-radius: 99px; font-size: .78rem; font-weight: 500; border: 1px solid; white-space: nowrap; }
.pt-pill--ok { background: #EAF4EE; border-color: #BFDCCB; color: #1E5136; }
.pt-pill--wait { background: #FFF6E5; border-color: #F0D9A8; color: #5C4500; }
.pt-pill--no { background: #FBEDEB; border-color: #EBC2BD; color: #7A2A25; }
.pt-pill--info { background: var(--gold-soft); border-color: #DCCBAA; color: var(--gold-ink); }
.pt-empty { text-align: center; padding: 1.4rem .5rem; } .pt-empty > span { font-size: 2rem; display: block; }
.pt-tablewrap { overflow-x: auto; }
.pt-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.pt-table th, .pt-table td { text-align: left; padding: .65rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.pt-table th { font-weight: 500; color: var(--muted); font-size: .84rem; }
.pt-buy__row { display: flex; gap: 1.2rem; align-items: flex-end; flex-wrap: wrap; margin-bottom: .6rem; }
.pt-qty { margin: 0 !important; }
.pt-qty__box { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 99px; overflow: hidden; }
.pt-qty__box input { width: 4.5rem !important; min-height: 46px; border: 0 !important; border-radius: 0 !important; text-align: center; -moz-appearance: textfield; }
.pt-qty__b { width: 46px; height: 46px; border: 0; background: var(--soft); font-size: 1.3rem; cursor: pointer; color: var(--ink); }
.pt-qty__b:hover { background: var(--gold-soft); }
.pt-buy__sum { margin: 0 0 .5rem; font-size: 1.05rem; } .pt-buy__sum b { font: 500 1.6rem var(--serif); }
.pt-hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
.pt-hint.is-ok { color: var(--ok); } .pt-hint.is-no { color: var(--no); }
.pt-domain { display: flex; align-items: stretch; }
.pt-domain input { border-radius: 12px 0 0 12px !important; }
.pt-domain__suf { display: inline-flex; align-items: center; padding: 0 .8rem; border: 1px solid var(--line-strong); border-left: 0; border-radius: 0 12px 12px 0; background: var(--soft); color: var(--muted); font-weight: 400; white-space: nowrap; }
.pt-note { padding: .75rem 1rem; border-radius: 12px; background: var(--gold-soft); margin: .4rem 0 1rem; font-size: .94rem; }
.pt-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; margin: 1rem 0; }
.pt-dl div { padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 12px; }
.pt-dl dt { font-size: .82rem; color: var(--muted); } .pt-dl dd { margin: .15rem 0 0; overflow-wrap: anywhere; }
.pt-btn[disabled] { opacity: .55; cursor: not-allowed; }
/* Etappe 3 */
.pt-wrow { display: flex; gap: .6rem; align-items: center; }
.pt-wrow .pt-wed { flex: 1; min-width: 0; }
.pt-wrow__open { flex: none; }
@media (max-width: 640px) { .pt-wrow { flex-direction: column; align-items: stretch; } }
.pt-invite { display: flex; gap: 1rem; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: .85rem 1rem; border: 1px solid #F0D9A8; background: #FFF8EA; border-radius: 14px; }
.pt-invite__act { display: flex; gap: .5rem; }
.pt-danger { margin-top: 1.2rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.pt-danger summary { cursor: pointer; color: var(--no); font-weight: 500; min-height: 44px; display: flex; align-items: center; }
.pt-danger[open] summary { margin-bottom: .4rem; }
/* Etappe 4: Dashboard */
.pt-kpis--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .pt-kpis--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pt-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.pt-recent li { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.pt-recent li:last-child { border-bottom: 0; }
.pt-recent a { display: inline-flex; align-items: center; min-height: 32px; }
.pt-filter { display: grid; grid-template-columns: 2fr repeat(4, 1fr) auto; gap: .6rem; align-items: end; margin: .4rem 0 1rem; }
.pt-filter label { display: grid; gap: .25rem; font-size: .82rem; color: var(--muted); font-weight: 500; }
.pt-filter input, .pt-filter select { min-height: 44px; padding: .45rem .7rem; border: 1px solid var(--line-strong); border-radius: 12px; font: 400 .95rem var(--sans); background: var(--surface); color: var(--ink); width: 100%; }
.pt-filter input:focus-visible, .pt-filter select:focus-visible { outline: 3px solid var(--gold-ink); outline-offset: 1px; }
.pt-filter__act { display: flex; gap: .4rem; }
@media (max-width: 980px) { .pt-filter { grid-template-columns: 1fr 1fr; } .pt-filter label:first-child { grid-column: 1 / -1; } }
.pt-wed--full { grid-template-columns: minmax(0, 1.8fr) repeat(5, minmax(0, 1fr)); }
.pt-wed__cell { display: grid; gap: .15rem; justify-items: start; font-size: .92rem; min-width: 0; }
.pt-wed__lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; color: var(--muted); font-size: .74rem; }
.pt-whead { display: grid; grid-template-columns: minmax(0, 1.8fr) repeat(5, minmax(0, 1fr)); gap: 1rem; padding: 0 1rem .3rem; margin-right: calc(80px + .6rem); font-size: .78rem; color: var(--muted); }
@media (max-width: 980px) { .pt-whead { display: none; } }
@media (max-width: 980px) { .pt-wed--full { grid-template-columns: 1fr 1fr; } .pt-wed--full .pt-wed__names { grid-column: 1 / -1; } .pt-wed__lbl { position: static; width: auto; height: auto; overflow: visible; clip: auto; } }
.pt-field-static { display: grid; gap: .2rem; margin: 0 0 .9rem; font-size: .94rem; }
.pt-field-static span { font-weight: 500; }
.pt-field-static b { font-weight: 400; min-height: 46px; display: flex; align-items: center; padding: 0 .85rem; border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--soft); }
