/* Holyhaven: ruhiger Leserbereich und kompakte Verwaltung. */
.portal { min-height:100vh; }
.portal-header { border-bottom:1px solid var(--line); background:var(--paper); }
.portal-header .wrap { display:flex; align-items:center; justify-content:space-between; gap:1rem; min-height:92px; }
.portal-brand { display:flex; align-items:center; gap:.8rem; text-decoration:none; font-family:var(--font-display); font-size:1.4rem; white-space:nowrap; flex-shrink:0; }
.portal-brand img { width:53px; height:53px; flex-shrink:0; }
.portal-nav { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:1.2rem; font-size:.9rem; }
.portal-nav a { text-decoration:none; }
.portal-nav a[aria-current=page] { color:var(--rose-deep); text-decoration:underline; }
.portal-main { padding-block:clamp(2.5rem,6vw,5rem); min-height:calc(100vh - 210px); }
.portal-hero { display:grid; grid-template-columns:minmax(0,1fr) 250px; gap:3rem; align-items:center; margin-bottom:3rem; }
.portal-hero h1 { font-size:clamp(2.4rem,5.4vw,4.6rem); max-width:13ch; margin-bottom:1.2rem; }
.portal-hero p { max-width:56ch; color:var(--ink-soft); }
.portal-hero .portal-seal { width:180px; justify-self:center; }
.portal-breadcrumb { color:var(--ink-soft); font-size:.9rem; margin-bottom:1.5rem; }
.portal-breadcrumb a { text-decoration:none; }
.portal-filters { display:flex; align-items:end; flex-wrap:wrap; gap:1rem; padding:1.25rem 0; border-block:1px solid var(--line); margin-bottom:1.8rem; }
.portal-field { display:flex; flex-direction:column; gap:.35rem; min-width:0; }
.portal-field label { font-size:.88rem; font-weight:600; }
.portal-field input,.portal-field select,.portal-field textarea,.portal-search { width:100%; border:1px solid #b6a596; border-radius:8px; padding:.72rem .85rem; color:var(--ink); background:var(--paper); font:inherit; font-size:1rem; }
.portal-field textarea { min-height:100px; resize:vertical; }
.portal-field input[type=checkbox] { width:1.2rem; height:1.2rem; }
.portal-search-wrap { flex:1; min-width:180px; }
.portal-count { color:var(--ink-soft); font-size:.88rem; margin:0 0 1.25rem; }
.portal-group { margin-bottom:2.5rem; }
.portal-group h2 { font-size:1.6rem; margin-bottom:.8rem; }
.media-list { list-style:none; margin:0; padding:0; border-top:1px solid var(--line); }
.media-row { display:flex; gap:1rem; align-items:center; padding:1.1rem .2rem; border-bottom:1px solid var(--line); }
.media-symbol { display:grid; place-items:center; width:44px; height:44px; flex:0 0 44px; color:var(--forest); background:var(--rose-soft); border-radius:50%; }
.media-symbol svg { width:21px; height:21px; }
.media-info { min-width:0; flex:1; }
.media-info h3 { font-family:var(--font-body); font-size:1.05rem; line-height:1.45; margin:0 0 .2rem; font-weight:600; }
.media-info h3,.reader h1,#edit-filename { overflow-wrap:anywhere; }
.media-info h3 a { text-decoration:none; }
.media-info p { font-size:.85rem; color:var(--ink-soft); margin:0; }
.media-row-action { flex-shrink:0; text-decoration:none; font-size:.9rem; }
.status-pill { display:inline-block; border-radius:30px; padding:.2rem .65rem; font-size:.75rem; background:var(--cream-deep); color:var(--ink-soft); line-height:1.6; }
.status-pill.ready { background:#e3e9db; color:#33472b; }
.status-pill.alert { background:var(--rose-soft); color:#7c3843; }
.portal-empty { padding:2.5rem 1.5rem; border:1px solid var(--line); border-radius:var(--radius-card); background:var(--paper); text-align:center; }
.portal-empty h2 { font-size:1.8rem; }
.portal-empty p { max-width:52ch; margin-inline:auto; color:var(--ink-soft); }
.portal-note { border-left:3px solid var(--rose); padding:.8rem 1.1rem; background:var(--paper); color:var(--ink-soft); font-size:.9rem; }
.portal-message { padding:.9rem 1.1rem; border-radius:8px; background:var(--rose-soft); color:#713d45; margin-block:1rem; overflow-wrap:anywhere; }
.portal-message.success { background:#e3e9db; color:#33472b; }
.portal-message:empty { display:none; }
.portal-footer { border-top:1px solid var(--line); padding:1.6rem 0; color:var(--ink-soft); font-size:.85rem; }
.portal-footer .wrap { display:flex; flex-wrap:wrap; justify-content:space-between; gap:1rem; }
.portal-footer nav { display:flex; gap:1.3rem; }
.portal-disclaimer { font-size:.8rem; color:var(--ink-soft); max-width:77ch; margin-top:2.5rem; }
.portal-toolbar { display:flex; flex-wrap:wrap; justify-content:space-between; gap:1rem; align-items:center; margin-bottom:1.5rem; }
.portal-toolbar h1 { font-size:clamp(2.2rem,4vw,3.4rem); margin:0; }
.portal-actions { display:flex; align-items:center; gap:.7rem; flex-wrap:wrap; }
.portal-button { appearance:none; display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--forest); background:var(--forest); color:var(--paper); border-radius:40px; font:inherit; font-size:.9rem; font-weight:600; padding:.75rem 1.25rem; cursor:pointer; text-decoration:none; line-height:1.4; }
.portal-button:hover { background:var(--forest-2); color:var(--paper); }
.portal-button.secondary { background:transparent; color:var(--forest); border-color:var(--line); }
.portal-button.secondary:hover { border-color:var(--forest); }
.portal-button.rose { background:var(--rose-deep); border-color:var(--rose-deep); color:var(--paper); }
.portal-button.small { font-size:.82rem; padding:.5rem .85rem; }
.portal-button:disabled { opacity:.5; cursor:wait; }
.portal-text-button { border:0; background:none; color:var(--rose-deep); font:inherit; font-size:.9rem; cursor:pointer; padding:.4rem 0; text-decoration:underline; text-underline-offset:.2em; }
.portal-tabs { display:flex; flex-wrap:wrap; gap:1.8rem; border-bottom:1px solid var(--line); margin-block:2rem; }
.portal-tabs button { border:0; border-bottom:3px solid transparent; background:none; font:inherit; color:var(--ink-soft); padding:.7rem 0; cursor:pointer; }
.portal-tabs button[aria-selected=true] { color:var(--forest); border-bottom-color:var(--rose-deep); font-weight:600; }
.portal-login { width:min(100%,450px); margin:1.8rem auto 4rem; padding:clamp(1.5rem,5vw,2.5rem); background:var(--paper); border:1px solid var(--line); border-radius:var(--radius-soft); }
.portal-login h1 { font-size:2.5rem; }
.portal-login .portal-field { margin-bottom:1rem; }
.portal-dialog { width:min(94vw,740px); max-height:90vh; border:1px solid var(--line); border-radius:22px; padding:clamp(1.3rem,4vw,2.4rem); background:var(--paper); color:var(--ink); }
.portal-dialog::backdrop { background:rgba(27,33,25,.65); }
.portal-dialog h2 { font-size:2rem; margin:0; }
.portal-dialog form { margin-top:1.5rem; }
.portal-grid { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.portal-grid .wide { grid-column:1/-1; }
.portal-check { display:flex; gap:.75rem; align-items:start; font-size:.9rem; line-height:1.6; margin-block:1rem; }
.portal-check input { width:1.2rem; height:1.2rem; flex-shrink:0; margin-top:.2rem; accent-color:var(--forest); }
.portal-upload { border-top:1px solid var(--line); margin-top:1.5rem; padding-top:1.5rem; }
.portal-upload p { color:var(--ink-soft); font-size:.85rem; }
.portal-upload progress { width:100%; accent-color:var(--rose-deep); }
.reader { max-width:800px; margin-inline:auto; }
.reader h1 { font-size:clamp(2rem,5vw,3.6rem); max-width:22ch; }
.reader-meta { color:var(--rose-deep); font-size:.9rem; margin-bottom:1rem; }
.reader-description { color:var(--ink-soft); white-space:pre-line; }
.reader-player { padding:clamp(1.2rem,4vw,2.5rem); background:var(--paper); border:1px solid var(--line); border-radius:var(--radius-soft); margin-block:2rem; }
.reader-player audio { width:100%; }
.reader-player video { width:100%; background:var(--forest); border-radius:10px; max-height:70vh; }
.reader-player .media-symbol { width:90px; height:90px; margin:0 auto 1.5rem; }
.reader-player .media-symbol svg { width:34px; height:34px; }
.reader-related { display:flex; justify-content:space-between; gap:1rem; border-top:1px solid var(--line); padding-top:1.5rem; }
.checkout-layout { display:grid; grid-template-columns:minmax(0,1fr) 380px; gap:3rem; align-items:start; }
.checkout-layout h1 { font-size:clamp(2.3rem,4.6vw,3.8rem); }
.checkout-summary { background:var(--paper); padding:2rem; border:1px solid var(--line); border-radius:var(--radius-soft); position:sticky; top:2rem; }
.checkout-summary h2 { font-size:1.6rem; }
.checkout-summary .book-cover { width:90px; margin-bottom:1.5rem; border-radius:4px; }
.checkout-summary dl { margin:1.5rem 0 .5rem; }
.checkout-summary dl div { display:flex; justify-content:space-between; gap:1rem; margin-bottom:.5rem; font-size:.95rem; }
.checkout-summary dd { margin:0; }
.checkout-summary .checkout-total { border-top:1px solid var(--line); padding-top:1rem; margin-top:1rem; font-weight:600; font-size:1.1rem; }
.checkout-summary small { display:block; color:var(--ink-soft); font-size:.8rem; }
.checkout-section { margin-bottom:1.8rem; }
.checkout-section h2 { font-size:1.6rem; }
.checkout-success { max-width:700px; margin:2rem auto; background:var(--paper); padding:clamp(1.5rem,5vw,3rem); border:1px solid var(--line); border-radius:var(--radius-soft); }
.checkout-success h1 { font-size:clamp(2rem,5vw,3.4rem); }
.admin-order { border:1px solid var(--line); border-radius:14px; padding:1.3rem; background:var(--paper); margin-bottom:1rem; }
.admin-order h3 { font-size:1.3rem; margin:0; }
.admin-order .portal-grid { margin-block:1rem; font-size:.9rem; }
.admin-order address { font-style:normal; white-space:pre-line; }
.admin-order .portal-actions { border-top:1px solid var(--line); padding-top:1rem; }
.admin-order .portal-field { min-width:150px; }
.admin-order .portal-field input,.admin-order .portal-field select { font-size:.85rem; padding:.5rem .7rem; }
.admin-order .portal-actions > input,.admin-order .portal-actions > select { max-width:100%; border:1px solid #b6a596; border-radius:8px; background:var(--paper); color:var(--ink); padding:.5rem .7rem; font:inherit; font-size:.85rem; }
.admin-signups { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; margin-bottom:1.5rem; }
.admin-signups>.portal-empty { grid-column:1/-1; }
.admin-signup { min-width:0; padding:1.4rem; border:1px solid var(--line); border-radius:14px; background:var(--paper); }
.admin-signup-heading { display:flex; flex-wrap:wrap; gap:.7rem 1rem; justify-content:space-between; align-items:baseline; }
.admin-signup h3 { font-size:1.4rem; line-height:1.25; margin:0; overflow-wrap:anywhere; }
.admin-signup-email { display:block; margin-top:.65rem; font-size:.9375rem; color:var(--forest); overflow-wrap:anywhere; }
.admin-signup-freebie { margin:.9rem 0; color:var(--rose-deep); font-size:.9375rem; }
.admin-signup dl { margin:0; padding-top:.8rem; border-top:1px solid var(--line); color:var(--ink-soft); font-size:.8125rem; }
.admin-signup dl>div { display:flex; flex-wrap:wrap; gap:.2rem .75rem; justify-content:space-between; margin-top:.4rem; }
.admin-signup dd { margin:0; }
@media(max-width:700px) { .admin-signups { grid-template-columns:1fr; } }
.setup-list { list-style:none; padding:0; margin:0; }
.setup-list li { display:flex; justify-content:space-between; gap:1rem; border-bottom:1px solid var(--line); padding:.85rem 0; }
.setup-list .status-pill { align-self:center; }
@media(max-width:850px) { .checkout-layout { grid-template-columns:1fr; gap:2rem; } .checkout-summary { position:static; order:-1; } .portal-hero { grid-template-columns:1fr 130px; gap:1rem; } .portal-hero .portal-seal { width:120px; } }
@media(max-width:540px) { .portal-header .wrap { min-height:76px; } .portal-brand { font-size:1.1rem; gap:.5rem; } .portal-brand img { width:42px; height:42px; } .portal-nav { gap:.8rem; font-size:.8rem; } .portal-hero { grid-template-columns:1fr; } .portal-hero .portal-seal { display:none; } .portal-hero h1 { max-width:15ch; } .portal-grid { grid-template-columns:1fr; } .portal-grid .wide { grid-column:auto; } .media-row { gap:.7rem; align-items:start; } .media-row-action .status-pill { max-width:88px; text-align:center; } .media-symbol { width:36px; height:36px; flex-basis:36px; } .portal-toolbar { align-items:start; } .portal-filters .portal-field { flex:1 1 130px; } .portal-filters .portal-search-wrap { flex-basis:100%; } .checkout-summary { padding:1.5rem; } }
@media(prefers-reduced-motion:reduce) { .portal * { scroll-behavior:auto!important; transition:none!important; } }
@media(max-width:540px) { .portal-header .wrap { flex-wrap:wrap; padding-block:.75rem; } .portal-nav { margin-left:auto; } }
