/* Ergänzungen zum Mockup-CSS (fb.css / fp.css): echte Links statt Buttons, Seitenrahmen, zusätzliche Zustände. */
html,body{margin:0;min-height:100%;}
body{background:light-dark(#f4f2eb,#1a201c);color-scheme:light dark;}
#friedbuch-prototyp,#friedbuch-angebote{min-height:100vh;display:flex;flex-direction:column;}
#friedbuch-prototyp>main,#friedbuch-angebote>main{flex:1;width:100%;max-width:1180px;margin:0 auto;}
#friedbuch-prototyp>.fb-footer,#friedbuch-angebote>.fp-footer{margin-top:24px;}

/* ---------- Familienbereich ---------- */
#friedbuch-prototyp .fb-header{padding-right:38px;flex-wrap:wrap;row-gap:10px;}
#friedbuch-prototyp a{color:inherit;}
#friedbuch-prototyp a.fb-wordmark,#friedbuch-prototyp a.fb-quiet,#friedbuch-prototyp a.fb-primary,#friedbuch-prototyp a.fb-secondary,#friedbuch-prototyp a.fb-text-button,#friedbuch-prototyp a.fb-back,#friedbuch-prototyp a.fb-arrow,#friedbuch-prototyp a.fb-list-arrow{display:inline-flex;align-items:center;gap:8px;text-decoration:none;}
#friedbuch-prototyp a.fb-primary{color:var(--fb-green-ink);justify-content:center;}
#friedbuch-prototyp a.fb-text-button{color:var(--fb-green);}
#friedbuch-prototyp a.fb-text-button:hover,#friedbuch-prototyp a.fb-back:hover,#friedbuch-prototyp a.fb-quiet:hover{text-decoration:underline;text-underline-offset:4px;}
#friedbuch-prototyp a.fb-back{color:var(--fb-muted);}
#friedbuch-prototyp a.fb-quiet{white-space:nowrap;}
#friedbuch-prototyp a.fb-quiet.is-active{color:var(--fb-green);}
#friedbuch-prototyp .fb-header>.fb-quiet+.fb-quiet{margin-left:0;}
#friedbuch-prototyp a.fb-arrow{justify-content:center;}
#friedbuch-prototyp .fb-arrow.is-disabled{display:inline-flex;align-items:center;justify-content:center;opacity:.35;}
#friedbuch-prototyp button.fb-primary,#friedbuch-prototyp button.fb-secondary,#friedbuch-prototyp button.fb-text-button,#friedbuch-prototyp button.fb-quiet{cursor:pointer;}
#friedbuch-prototyp a.fb-primary:hover,#friedbuch-prototyp button.fb-primary:hover:not(:disabled){filter:brightness(1.08);}
#friedbuch-prototyp .fb-prototype-note a{color:var(--fb-green);}
#friedbuch-prototyp .fb-inline{display:inline;}
#friedbuch-prototyp .fb-footer .fb-text-button{font-size:11px;}

#friedbuch-prototyp .fb-book-tabs a{background:transparent;color:var(--fb-muted);font-size:12px;padding:0 0 12px;position:relative;text-decoration:none;white-space:nowrap;display:inline-flex;align-items:center;gap:7px;}
#friedbuch-prototyp .fb-book-tabs a[aria-current="page"]{color:var(--fb-green);}
#friedbuch-prototyp .fb-book-tabs a[aria-current="page"]::after{position:absolute;bottom:-1px;left:0;right:0;border-bottom:2px solid var(--fb-green);content:'';}
#friedbuch-prototyp .fb-count{display:inline-flex;justify-content:center;align-items:center;background:var(--fb-tint);color:var(--fb-green);border-radius:50%;min-width:21px;height:21px;font-size:11px;padding:0 4px;}
#friedbuch-prototyp #fb-read-view .fb-write-invite{margin-top:24px;}
#friedbuch-prototyp .fb-entry-photo{display:block;width:auto;max-width:100%;max-height:220px;border-radius:3px;margin-top:14px;object-fit:contain;height:auto;}
#friedbuch-prototyp figure img{height:160px;}
#friedbuch-prototyp .fb-book-topline{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;}
#friedbuch-prototyp .fb-quote{white-space:pre-line;}
#friedbuch-prototyp .fb-left .fb-dates+.fb-dates{margin-top:2px;}
#friedbuch-prototyp .fb-directory-pages{margin-top:18px;}
#friedbuch-prototyp .fb-directory-form noscript button{margin-top:10px;}

#friedbuch-prototyp .fb-notice{display:flex;align-items:flex-start;gap:10px;background:var(--fb-tint);color:var(--fb-green);padding:13px 16px;border-radius:4px;font-size:13px;margin-bottom:22px;}
#friedbuch-prototyp .fb-notice svg{margin-top:3px;}
#friedbuch-prototyp .fb-badge{display:inline-flex;align-items:center;background:var(--fb-tint);color:var(--fb-green);font-size:11px;padding:4px 10px;border-radius:20px;white-space:nowrap;}
#friedbuch-prototyp .fb-card-title{font-size:24px;line-height:1.25;margin-bottom:4px;}
#friedbuch-prototyp .fb-share{font-size:12px!important;overflow-wrap:anywhere;}
#friedbuch-prototyp .fb-share a{color:var(--fb-green);}
#friedbuch-prototyp .fb-owner-grid-bottom{margin-top:34px;}
#friedbuch-prototyp .fb-row-actions{display:flex;gap:20px;flex-wrap:wrap;align-items:center;margin-top:4px;}
#friedbuch-prototyp .fb-close-actions summary{list-style:none;display:inline-flex;cursor:pointer;align-items:center;}
#friedbuch-prototyp .fb-close-actions summary::-webkit-details-marker{display:none;}
#friedbuch-prototyp .fb-download-block a.fb-primary{width:100%;}
#friedbuch-prototyp .fb-edition-teaser a.fb-secondary{width:100%;justify-content:center;}
#friedbuch-prototyp .fb-settings-form{display:flex;flex-direction:column;gap:14px;margin-top:16px;}
#friedbuch-prototyp .fb-settings-form .fb-visibility{margin:6px 0;}
#friedbuch-prototyp .fb-settings-form .fb-secondary{align-self:flex-start;}
#friedbuch-prototyp .fb-check-inline{display:flex;flex-direction:row;align-items:flex-start;gap:9px;font-size:12px;}
#friedbuch-prototyp .fb-check-inline input{accent-color:var(--fb-green);margin-top:3px;}
#friedbuch-prototyp .fb-member-list{list-style:none;padding:0;margin:14px 0 4px;}
#friedbuch-prototyp .fb-member-list li{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline;padding:9px 0;border-top:1px solid var(--fb-rule);font-size:13px;}
#friedbuch-prototyp .fb-member-list small{color:var(--fb-muted);font-size:11px;}
#friedbuch-prototyp .fb-member-list form{margin-left:auto;}
#friedbuch-prototyp .fb-moderation-actions button{cursor:pointer;}
#friedbuch-prototyp .fb-reject{color:var(--fb-muted);}
#friedbuch-prototyp .fb-login-form{display:flex;flex-direction:column;gap:12px;width:100%;max-width:420px;text-align:left;}
#friedbuch-prototyp .fb-inline-label{margin-bottom:14px;text-align:left;}
#friedbuch-prototyp .fb-verification form{display:flex;flex-direction:column;align-items:center;gap:12px;}
#friedbuch-prototyp .fb-verification .fb-login-form{align-items:stretch;}

/* Vorschau-Postfach */
#friedbuch-prototyp .fb-mailbox{gap:0;margin-top:26px;}
#friedbuch-prototyp .fb-mail-row{display:flex;flex-direction:column;gap:3px;padding:15px 18px;background:var(--fb-paper);border:1px solid var(--fb-rule);border-top-width:0;text-decoration:none;}
#friedbuch-prototyp .fb-mail-row:first-child{border-top-width:1px;border-radius:5px 5px 0 0;}
#friedbuch-prototyp .fb-mail-row:last-child{border-radius:0 0 5px 5px;}
#friedbuch-prototyp .fb-mail-row:hover .fb-mail-subject{color:var(--fb-green);}
#friedbuch-prototyp .fb-mail-subject{font:400 17px/1.4 Georgia,serif;}
#friedbuch-prototyp .fb-mail-row small{font-size:11px;color:var(--fb-muted);}
#friedbuch-prototyp .fb-mail-view{max-width:640px;margin-top:0;}
#friedbuch-prototyp .fb-mail-para{white-space:pre-line;}

/* Zugangsseite */
#friedbuch-prototyp.fb-gate-page{justify-content:center;}
#friedbuch-prototyp .fb-gate{display:flex;align-items:center;justify-content:center;padding:40px 18px;flex:1;}
#friedbuch-prototyp .fb-gate-card{width:100%;max-width:440px;background:var(--fb-paper);border:1px solid var(--fb-rule);border-radius:4px 11px 11px 4px;box-shadow:0 14px 28px var(--fb-shadow);padding:38px 34px 30px;border-left:10px solid var(--fb-tint);}
#friedbuch-prototyp .fb-gate-mark{margin-bottom:30px;}
#friedbuch-prototyp .fb-gate-card h1{font-size:34px;line-height:1.15;}
#friedbuch-prototyp .fb-gate-form{display:flex;flex-direction:column;gap:12px;margin-top:24px;}
#friedbuch-prototyp .fb-gate-form input{width:100%;border:1px solid var(--fb-rule);border-radius:3px;padding:10px 11px;background:var(--fb-paper);min-height:43px;font-size:16px;letter-spacing:1px;}
#friedbuch-prototyp .fb-gate-form .fb-primary{cursor:pointer;}
#friedbuch-prototyp .fb-gate-foot{display:flex;gap:8px;align-items:flex-start;font-size:11px;color:var(--fb-muted);margin-top:22px;}
#friedbuch-prototyp .fb-gate-foot svg{width:13px;height:13px;margin-top:3px;}

@media(max-width:620px){
  #friedbuch-prototyp .fb-header{padding:18px 16px 15px;}
  #friedbuch-prototyp .fb-gate-card{padding:30px 22px 24px;}
  #friedbuch-prototyp .fb-gate-card h1{font-size:30px;}
}

/* ---------- Angebote / Buchausgabe ---------- */
#friedbuch-angebote .fp-header{padding:23px 34px;flex-wrap:wrap;row-gap:10px;}
#friedbuch-angebote a.fp-brand{color:var(--fp-ink);text-decoration:none;}
#friedbuch-angebote .fp-nav{text-decoration:none;}
#friedbuch-angebote .fp-nav[aria-current="page"]{color:var(--fp-green);box-shadow:0 1px 0 var(--fp-green);}
#friedbuch-angebote a.fp-primary,#friedbuch-angebote a.fp-secondary,#friedbuch-angebote a.fp-text-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;}
#friedbuch-angebote a.fp-primary{color:var(--fp-on-green);}
#friedbuch-angebote a.fp-text-button{justify-content:flex-start;}
#friedbuch-angebote button{cursor:pointer;}
#friedbuch-angebote .fp-plan>.fp-text-button{display:flex;margin-bottom:4px;}
#friedbuch-angebote .fp-breadcrumb a{color:var(--fp-muted);}
#friedbuch-angebote .fp-demo a{color:var(--fp-green);}
#friedbuch-angebote .fp-checkout>a.fp-text-button,#friedbuch-angebote #fp-setup>a.fp-text-button,#friedbuch-angebote .fp-done>a.fp-text-button{display:inline-flex;}
#friedbuch-angebote #fp-setup>a.fp-text-button{margin-bottom:23px;}
#friedbuch-angebote .fp-center{text-align:center;margin-top:8px;}
#friedbuch-angebote .fp-warnings:not(:empty){margin-top:14px;padding:12px 14px;background:var(--fp-paper);border-left:3px solid var(--fp-error);font-size:12px;color:var(--fp-error);}
#friedbuch-angebote .fp-history{margin-top:40px;}
#friedbuch-angebote .fp-status.fp-notice-ok{margin:16px 0 0;padding:12px 15px;background:var(--fp-soft);border-radius:4px;min-height:0;}
#friedbuch-angebote .fp-inline-name{margin-bottom:14px;text-align:left;width:100%;max-width:360px;}
#friedbuch-angebote .fp-done form{display:flex;flex-direction:column;align-items:center;width:100%;}
#friedbuch-angebote .fp-honeypot{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden;}
#friedbuch-angebote .fp-team-head{margin-top:34px;}
#friedbuch-angebote .fp-book-actions form{display:inline;}
#friedbuch-angebote .fp-book-actions a{font-size:11px;}
#friedbuch-angebote .fp-book-actions span{display:inline-flex;gap:6px;align-items:center;color:var(--fp-green);}
#friedbuch-angebote .fp-inline-form{scroll-margin-top:20px;}
#friedbuch-angebote .fp-public-book>span small{color:var(--fp-muted);}
#friedbuch-angebote .fp-print-details dl[hidden]{display:none;}
#friedbuch-angebote .fp-content-picker{max-height:none;}
#friedbuch-angebote #fp-entry-options{max-height:260px;overflow:auto;padding-right:6px;}

/* Buchseiten der Vorschau */
#friedbuch-angebote .fp-page{position:relative;}
#friedbuch-angebote .fp-page.fp-dedication-page{justify-content:center;}
#friedbuch-angebote .fp-page .fp-page-photo{display:block;max-width:80%;max-height:42%;object-fit:contain;margin-top:14px;}
#friedbuch-angebote .fp-page.fp-photo-page{justify-content:center;align-items:center;}
#friedbuch-angebote .fp-page.fp-photo-page img{max-width:100%;max-height:85%;object-fit:contain;}
#friedbuch-angebote .fp-page .fp-page-text.fp-fit{font-size:13px;line-height:1.7;}
#friedbuch-angebote .fp-page.fp-closing-page{text-align:center;justify-content:center;align-items:center;}
#friedbuch-angebote .fp-page .fp-page-number{position:absolute;bottom:4%;left:0;right:0;text-align:center;font-size:10px;color:var(--fp-muted);}
#friedbuch-angebote .fp-page.fp-classic.fp-cover-page{background:light-dark(#f1eee3,#2c332b);}

@media(max-width:650px){
  #friedbuch-angebote .fp-header{padding:18px 17px;}
}

/* ---------- Überarbeitung: zusätzliche Bausteine ---------- */
#friedbuch-prototyp .fb-about-title{white-space:pre-line;}
#friedbuch-prototyp .fb-settings-form textarea[rows="2"]{min-height:66px;}
#friedbuch-prototyp .fb-upload{display:flex;flex-direction:column;gap:8px;margin:17px 0 6px;font-size:12px;}
#friedbuch-prototyp .fb-upload small{font-size:11px;color:var(--fb-muted);}
#friedbuch-prototyp .fb-upload-button{position:relative;display:inline-flex!important;flex-direction:row!important;align-items:center;gap:9px!important;align-self:flex-start;padding:10px 15px;min-height:43px;background:var(--fb-soft);color:var(--fb-green);border:1px dashed var(--fb-green);border-radius:4px;cursor:pointer;font-size:12px;}
#friedbuch-prototyp .fb-upload-button:hover{background:var(--fb-tint);}
#friedbuch-prototyp .fb-upload-button:focus-within{outline:2px solid var(--fb-green);outline-offset:4px;}
#friedbuch-prototyp .fb-file-input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;}
#friedbuch-prototyp .fb-share-button{font-size:11px;gap:6px;}
#friedbuch-prototyp .fb-share-button svg{width:14px;height:14px;}
#friedbuch-prototyp .fb-book-bottom{align-items:center;}
#friedbuch-prototyp .fb-small{min-height:36px;padding:7px 12px;font-size:11px;display:inline-flex;align-items:center;gap:7px;text-decoration:none;cursor:pointer;}
#friedbuch-prototyp .fb-small svg{width:14px;height:14px;}
#friedbuch-prototyp .fb-owner-stack{display:flex;flex-direction:column;gap:22px;min-width:0;}
#friedbuch-prototyp .fb-share-row{display:grid;grid-template-columns:96px 1fr;gap:18px;align-items:center;margin-top:16px;}
#friedbuch-prototyp .fb-qr-thumb{display:block;border:1px solid var(--fb-rule);border-radius:4px;padding:6px;background:#fffdf7;}
#friedbuch-prototyp .fb-qr-thumb svg{width:100%;height:auto;display:block;}
#friedbuch-prototyp .fb-share-url{display:block;font:12px/1.5 ui-monospace,Menlo,monospace;color:var(--fb-muted);overflow-wrap:anywhere;margin-bottom:10px;}
#friedbuch-prototyp .fb-mail-links{display:flex;gap:16px;flex-wrap:wrap;margin-top:2px;}
#friedbuch-prototyp .fb-mail-links .fb-text-button{font-size:11px;}

#friedbuch-prototyp .fb-how{padding:40px 0 20px;border-top:1px solid var(--fb-rule);margin-top:10px;}
#friedbuch-prototyp .fb-how>h2{font-size:29px;line-height:1.2;max-width:560px;}
#friedbuch-prototyp .fb-steps{list-style:none;padding:0;margin:28px 0 0;display:grid;grid-template-columns:repeat(4,1fr);gap:16px;counter-reset:step;}
#friedbuch-prototyp .fb-steps li{background:var(--fb-paper);border:1px solid var(--fb-rule);border-radius:5px;padding:22px 20px 24px;position:relative;counter-increment:step;}
#friedbuch-prototyp .fb-steps li::after{content:counter(step);position:absolute;top:16px;right:18px;font:400 30px/1 Georgia,serif;color:var(--fb-rule);}
#friedbuch-prototyp .fb-steps li>svg{width:22px;height:22px;color:var(--fb-green);}
#friedbuch-prototyp .fb-steps h3{font-size:21px;margin:14px 0 8px;}
#friedbuch-prototyp .fb-steps p{font-size:12px;color:var(--fb-muted);line-height:1.7;}
#friedbuch-prototyp .fb-promises{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:30px;padding:22px 0 10px;border-top:1px solid var(--fb-rule);}
#friedbuch-prototyp .fb-promises p{display:flex;gap:10px;font-size:12px;color:var(--fb-muted);line-height:1.7;}
#friedbuch-prototyp .fb-promises svg{color:var(--fb-green);margin-top:3px;}
#friedbuch-prototyp .fb-promises strong{color:var(--fb-ink);font-weight:600;}
#friedbuch-prototyp .fb-promises .fb-text-button{font-size:12px;display:inline;}
@media(max-width:900px){#friedbuch-prototyp .fb-steps{grid-template-columns:1fr 1fr;}#friedbuch-prototyp .fb-promises{grid-template-columns:1fr;gap:12px;}}
@media(max-width:620px){#friedbuch-prototyp .fb-steps{grid-template-columns:1fr;}#friedbuch-prototyp .fb-how>h2{font-size:26px;}#friedbuch-prototyp .fb-share-row{grid-template-columns:80px 1fr;}}

@media(max-width:620px){
  #friedbuch-prototyp .fb-header{flex-wrap:wrap;gap:10px 18px;}
  #friedbuch-prototyp .fb-header>.fb-wordmark{flex-basis:100%;}
  #friedbuch-prototyp .fb-header>a.fb-quiet{margin-left:0!important;font-size:12px;padding:4px 0;}
  #friedbuch-prototyp .fb-header>a.fb-quiet svg{display:none;}
  #friedbuch-angebote .fp-header{gap:10px;}
  #friedbuch-angebote .fp-header nav{gap:4px 18px;}
  #friedbuch-angebote .fp-nav{padding:4px 0;}
}
#friedbuch-angebote .fp-dashboard-toolbar{justify-content:space-between;}
#friedbuch-angebote .fp-toolbar-links{display:flex;gap:10px;flex-wrap:wrap;}
#friedbuch-angebote .fp-invite-toggle{margin-left:auto;display:flex;flex-direction:column;align-items:flex-end;}
#friedbuch-angebote .fp-invite-toggle[open]{flex-basis:100%;}
#friedbuch-angebote .fp-invite-toggle>.fp-inline-form{width:100%;margin-bottom:0;}
#friedbuch-angebote .fp-invite-toggle>summary{list-style:none;display:inline-flex;align-items:center;gap:8px;cursor:pointer;color:var(--fp-on-green);font-size:12px;}
#friedbuch-angebote .fp-invite-toggle>summary::-webkit-details-marker{display:none;}
#friedbuch-angebote .fp-invite-toggle[open]>summary{opacity:.75;}
#friedbuch-angebote .fp-dashboard-toolbar{align-items:center;}
#friedbuch-angebote .fp-dashboard-toolbar a svg,#friedbuch-angebote .fp-book-actions svg{width:14px;height:14px;}
#friedbuch-angebote .fp-book-actions a{display:inline-flex;gap:6px;align-items:center;}
#friedbuch-angebote input[readonly]{background:var(--fp-soft);color:var(--fp-muted);}
