/* MAMOUR – warm, ruhig, natürlich. Farben vom Cover: Creme, Holz, Salbeigrau-Grün. */
:root {
  --cream: #f7f3ec;
  --cream-deep: #efe8dc;
  --paper: #fffdf9;
  --ink: #2f3530;
  --ink-soft: #5e665f;
  --sage: #5c6b5e;
  --sage-light: #8a9a8c;
  --sage-pale: #e3e8e1;
  --wood: #b08a60;
  --wood-light: #e8d9c3;
  --accent: #c47a5a;
  --line: #e4ddd1;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(60, 50, 35, 0.10);
  --font-head: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--font-head); font-weight: 300; font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--sage); }
h1, h2, h3 { font-weight: 300; letter-spacing: 0.01em; line-height: 1.15; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; font-weight: 400; }
p { margin: 0 0 1em; }
strong { font-weight: 500; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.9rem; }
.center { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.75rem; color: var(--sage); margin-bottom: 0.8em; font-weight: 400; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.inline { display: inline; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px clamp(16px, 4vw, 48px); min-height: 84px; background: var(--cream); position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--font-head); font-weight: 300; font-size: 1.7rem; letter-spacing: 0.12em; color: var(--sage); text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.brand span { font-size: 0.65rem; letter-spacing: 0.08em; color: var(--ink-soft); margin-top: 4px; }
.nav { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink); font-size: 0.95rem; padding: 4px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a.active { border-bottom-color: var(--sage); }
.nav .nav-mine { color: var(--sage); font-weight: 400; }
.nav a.btn { padding: 10px 26px; border: 1px solid var(--sage); line-height: 1.2; }
.nav a.btn:hover { background: var(--sage); color: #fff; }
.nav .nav-admin { background: var(--wood-light); color: #6b5035; padding: 3px 10px; border-radius: 999px; font-size: 0.85rem; }
button.link { background: none; border: 0; font: inherit; color: var(--ink-soft); cursor: pointer; padding: 0; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px; text-decoration: none; font-family: var(--font-head);
  font-weight: 400; font-size: 0.95rem; letter-spacing: 0.03em; border: 1px solid var(--sage); color: var(--sage); background: transparent;
  cursor: pointer; transition: background .15s, color .15s, transform .1s; text-align: center;
}
.btn:hover { background: var(--sage-pale); }
.btn-primary { background: var(--sage); color: #fff; }
.btn-primary:hover { background: #4b594d; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-small { padding: 8px 16px; font-size: 0.85rem; }
.btn-full { display: block; width: 100%; }
.btn-big { padding: 16px 24px; font-size: 1.05rem; }

/* Flash */
.flash { padding: 12px clamp(16px, 4vw, 48px); font-size: 0.95rem; }
.flash-success { background: var(--sage-pale); color: var(--sage); }
.flash-info { background: var(--wood-light); color: #6b5035; }
.flash-error { background: #f6dcd3; color: #8a3b24; }
.inline-flash { border-radius: var(--radius); margin-bottom: 16px; }
.inline-flash ul { margin: 0; padding-left: 18px; }
.inline-flash p { margin: 0; }

/* Zurück-Leiste */
.backbar { max-width: 1240px; margin: 0 auto; padding: clamp(24px, 4vw, 40px) clamp(16px, 4vw, 48px) 0; font-size: 0.85rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.backbar a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft); text-decoration: none; }
.backbar a:hover { color: var(--sage); border-color: var(--sage); }
.backbar .sep { display: none; }
.backbar + .section.page { padding-top: 18px; }
.backbar:has(+ .section.narrow) { max-width: 480px; }
.backbar:has(+ .section.narrow-wide) { max-width: 760px; }
.backbar:has(+ .section.admin) { max-width: 1100px; }

/* Layout */
.section { padding: clamp(40px, 7vw, 90px) clamp(16px, 4vw, 48px); max-width: 1240px; margin: 0 auto; }
.section-soft { background: var(--cream-deep); max-width: none; }
.section-soft > * { max-width: 1144px; margin-left: auto; margin-right: auto; }
.section-paper { background: var(--paper); max-width: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-paper > * { max-width: 1144px; margin-left: auto; margin-right: auto; }
.section-paper .about-card { background: var(--cream); }
.section-head { margin-bottom: 32px; }
.section-head.center { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }
.page { padding-top: clamp(28px, 5vw, 56px); }
.narrow { max-width: 480px; }
.narrow-wide { max-width: 760px; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 5vw, 72px); align-items: center;
  max-width: 1240px; margin: 0 auto; padding: clamp(32px, 6vw, 80px) clamp(16px, 4vw, 48px);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 16px; }
.hero-note { color: var(--ink-soft); font-size: 0.95rem; }
.hero-cover { position: relative; display: flex; justify-content: center; }
.hero-cover img { width: min(100%, 420px); border-radius: 6px; box-shadow: var(--shadow); transform: rotate(-1.5deg); }
.hero-badge {
  position: absolute; right: 6%; top: 24px; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 400; box-shadow: var(--shadow); line-height: 1.3;
}
.hero-badge strong { font-weight: 500; font-size: 1rem; }
.hero-badge s { opacity: 0.8; font-size: 0.8rem; margin-left: 4px; }

/* Kacheln */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 28px; }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile-cover { display: block; position: relative; aspect-ratio: 210 / 297; background: var(--cream-deep); }
.tile-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge { position: absolute; top: 12px; left: 12px; padding: 6px 12px; border-radius: 999px; font-size: 0.75rem; font-weight: 400; letter-spacing: 0.04em; }
.badge-owned { background: var(--sage); color: #fff; }
.badge-promo { background: var(--accent); color: #fff; }
.viewer-title .badge { position: static; margin-left: 8px; }
.tile-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tile-body h3 { margin: 0; font-size: 1.15rem; }
.tile-meta { color: var(--ink-soft); font-size: 0.85rem; margin: 0; }
.tile-price { display: flex; align-items: baseline; gap: 10px; margin-top: auto; font-size: 1.2rem; }
.tile-price s { color: var(--ink-soft); font-size: 0.95rem; }
.tile-actions { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.link-sub { font-size: 0.9rem; color: var(--sage); }
.tile-owned { border-color: var(--sage-light); }

/* Unterbereiche Meine / Verfügbare Ausgaben */
.subsection { margin-bottom: 48px; }
.subsection:last-child { margin-bottom: 0; }
.subsection-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 22px; }
.subsection-head h3 { margin: 0; font-size: 1.35rem; font-weight: 300; letter-spacing: 0.04em; text-transform: uppercase; color: var(--sage); }
.subsection-head p { margin: 0; }
.login-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; max-width: 640px; }
.login-box p:first-child { margin-bottom: 14px; }
.login-inline { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.login-inline input { font: inherit; padding: 11px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); flex: 1 1 180px; min-width: 0; }
.login-inline input:focus { outline: 2px solid var(--sage-light); border-color: var(--sage); }
.small-empty { padding: 28px 16px; }
.small-empty p { margin: 0; }

/* Preise */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; position: relative; display: flex; flex-direction: column; }
.plan-featured { border-color: var(--sage); box-shadow: var(--shadow); }
.plan-tag { position: absolute; top: -12px; left: 24px; background: var(--sage); color: #fff; font-size: 0.75rem; padding: 4px 12px; border-radius: 999px; letter-spacing: 0.06em; }
.plan h3 { margin-bottom: 8px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; }
.plan-price strong { font-size: 2.1rem; font-weight: 300; }
.plan-price span { color: var(--ink-soft); font-size: 0.9rem; }
.plan-total { color: var(--ink-soft); font-size: 0.9rem; }
.plan-promo { background: #fbe9e1; color: #8a3b24; padding: 8px 12px; border-radius: 8px; font-size: 0.9rem; }
.plan ul { padding-left: 18px; margin: 12px 0 24px; flex: 1; }
.plan li { margin-bottom: 6px; }

/* Über / FAQ */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.checklist li::before { content: ''; position: absolute; left: 0; top: 10px; width: 14px; height: 14px; border-radius: 50%; background: var(--sage-pale); border: 1px solid var(--sage-light); }
.about-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.steps { padding-left: 20px; }
.steps li { margin-bottom: 8px; }
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 400; }
.faq p { margin: 10px 0 0; color: var(--ink-soft); }

/* Ausgabe-Detail */
.issue-detail { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.issue-cover img { width: 100%; border-radius: 8px; box-shadow: var(--shadow); }
.buy-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 24px; }
.buy-price { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.buy-price strong { font-size: 1.9rem; font-weight: 300; }
.buy-price .badge { position: static; }
.buy-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sub-info { background: var(--sage-pale); border-radius: 10px; padding: 12px 18px; margin-top: 8px; }
.sub-info p { margin: 0; }
.empty { text-align: center; padding: 48px 16px; background: var(--paper); border-radius: var(--radius); border: 1px dashed var(--line); }

/* Formulare */
.form { display: flex; flex-direction: column; gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; color: var(--ink-soft); }
.form label small { color: var(--ink-soft); font-size: 0.8rem; }
.form input[type=text], .form input[type=email], .form input[type=password] {
  font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.form input:focus { outline: 2px solid var(--sage-light); border-color: var(--sage); }
.dev-box { background: #fff6d6; border: 1px dashed #d9b84a; padding: 12px 16px; border-radius: 10px; font-size: 0.9rem; color: #6a5410; margin-bottom: 16px; word-break: break-all; }
.dev-box p { margin: 0 0 6px; }
.pw-rules { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.8rem; color: var(--ink-soft); }
.pw-rules li::before { content: '○ '; color: var(--sage-light); }
.pw-rules li.ok { color: var(--sage); }
.pw-rules li.ok::before { content: '✓ '; }
.pw-match.ok { color: var(--sage); }
.pw-match.bad { color: #8a3b24; }
.form label.check { flex-direction: row; align-items: flex-start; gap: 10px; color: var(--ink); line-height: 1.45; }
.form label.check input { margin-top: 5px; flex-shrink: 0; }
.form label.check > span { flex: 1; }

/* Checkout */
.checkout-grid { display: grid; gap: 24px; }
.order-summary { display: grid; grid-template-columns: 110px 1fr; gap: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.order-summary.no-cover { grid-template-columns: 1fr; }
.renew-note { background: var(--sage-pale); border-radius: 10px; padding: 12px 18px; }
.renew-note p { margin: 0; }
.switch-plan { margin: 12px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 0.9rem; display: flex; flex-direction: column; gap: 4px; }
.switch-plan a { color: var(--sage); }
.order-cover { width: 110px; border-radius: 6px; box-shadow: var(--shadow); }
.order-line, .order-total { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.order-total { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; font-size: 1.15rem; }
.payment-box { background: var(--cream); border-radius: 10px; padding: 14px 18px; }
.payment-box p { margin: 0 0 4px; }
.pay-options { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 10px; }
.pay-option { display: flex !important; flex-direction: row !important; align-items: center !important; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; color: var(--ink) !important; font-size: 1rem !important; }
.pay-option:has(input:checked) { border-color: var(--sage); box-shadow: 0 0 0 2px var(--sage-pale); }
.pay-option input { margin: 0; accent-color: var(--sage); }
.pay-icon { width: 36px; height: 24px; border-radius: 5px; flex-shrink: 0; background: var(--sage) center / 24px no-repeat; }
.pay-stripe { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3C/svg%3E"); }
.pay-paypal { background: #0b4ea2 center / 22px no-repeat; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 3h7.5c3 0 4.8 1.6 4.4 4.4-.4 3.3-2.6 5-5.8 5h-2.2l-1 6.6H6.5L7 3zm2.9 2.6-.9 4.4h2.2c1.7 0 2.7-.8 2.9-2.2.2-1.4-.6-2.2-2.1-2.2H9.9z'/%3E%3C/svg%3E"); }
.badge-test { background: #fbe9e1; color: #8a3b24; padding: 2px 8px; border-radius: 999px; font-size: 0.75rem; }

/* Tabellen */
.table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; font-size: 0.95rem; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.table th { font-weight: 400; color: var(--ink-soft); background: var(--cream-deep); }

/* Rechtliche Seiten */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; }
.placeholder { background: #fff6d6; border: 1px dashed #d9b84a; padding: 12px 16px; border-radius: 10px; font-size: 0.9rem; color: #6a5410; }

/* Gutscheine */
.gift-options { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.gift-options legend { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 8px; }
.gift-option { display: flex !important; flex-direction: row !important; align-items: center !important; gap: 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; color: var(--ink) !important; font-size: 1rem !important; }
.gift-option:has(input:checked) { border-color: var(--sage); box-shadow: 0 0 0 2px var(--sage-pale); }
.gift-option input { margin: 0; accent-color: var(--sage); }
.gift-option-body { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.gift-price { font-size: 1.15rem; white-space: nowrap; }
.gift-form textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.voucher-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin: 20px 0 28px; box-shadow: var(--shadow); }
.voucher-card .eyebrow { margin-bottom: 6px; }
.voucher-code { font-size: clamp(1.4rem, 4vw, 2rem); letter-spacing: 0.08em; font-weight: 500; color: var(--sage); margin: 10px 0 6px; }
.serif-note { font-family: var(--font-serif); font-size: 1.3rem; margin: 0 0 6px; }
.serif-note.small { font-size: 1.05rem; font-style: italic; color: var(--ink-soft); }
.code-input { text-transform: uppercase; letter-spacing: 0.08em; }
.form select { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.voucher-table .pill { white-space: nowrap; }
.redeem-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 24px; }
.redeem-box .login-inline { margin-bottom: 8px; }
.redeem-box p { margin: 0; }
.gift-teaser { margin-top: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.gift-teaser p { margin: 0; }
.gift-teaser .actions-inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Admin */
.admin { max-width: 1100px; }
.admin-nav { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 28px; }
.admin-nav a { text-decoration: none; color: var(--ink); font-size: 0.95rem; }
.admin-nav a.active { color: var(--sage); border-bottom: 1px solid var(--sage); }
.admin-nav .btn { margin-left: auto; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-bottom: 28px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; }
.stat strong { font-size: 1.6rem; font-weight: 300; }
.stat span { color: var(--ink-soft); font-size: 0.85rem; }
.admin-table { font-size: 0.9rem; }
.admin-table td { vertical-align: middle; }
.mini-cover { width: 44px; border-radius: 3px; display: block; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.actions a { margin-right: 12px; white-space: nowrap; }
.actions form { display: inline; }
.row-muted td { color: var(--ink-soft); opacity: 0.7; }
.actions button.link.danger { color: #c0392b; font-size: 0.9rem; }
.actions button.link.danger:hover { text-decoration: underline; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; }
.pill-live, .pill-paid { background: var(--sage-pale); color: var(--sage); }
.pill-planned, .pill-pending { background: var(--wood-light); color: #6b5035; }
.pill-cancelled { background: #eee; color: #666; }
.pill-refunded { background: #f6dcd3; color: #8a3b24; }
.admin-hint { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-top: 32px; }
.admin-hint h3 { margin-bottom: 8px; }
.admin-form { gap: 14px; }
.admin-form h3 { margin: 0; }
.admin-form textarea, .admin-form select, .admin-form input[type=file], .admin-form input[type=month], .admin-form input[type=date] {
  font: inherit; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.admin-form input[readonly] { background: var(--cream); color: var(--ink-soft); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 18px; }
.form-grid label:first-child { grid-column: 1 / -1; }
.admin-grid { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 32px; align-items: start; }
.danger-zone { margin-top: 32px; padding-top: 20px; border-top: 1px dashed var(--line); }
.btn-danger { border-color: #c0392b; color: #c0392b; }
.btn-danger:hover { background: #f6dcd3; }
code { font-size: 0.85em; background: var(--cream-deep); padding: 2px 6px; border-radius: 4px; }
@media (max-width: 860px) { .admin-grid { grid-template-columns: 1fr; } .admin-table { display: block; overflow-x: auto; } }

/* Über mich */
.about-me { background: var(--paper); max-width: none; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
#preise, #journale, #faq { scroll-margin-top: 90px; }
.about-me-grid { max-width: 1144px; margin: 0 auto; display: grid; grid-template-columns: minmax(240px, 400px) 1fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.about-me-photo { position: sticky; top: 110px; }
.about-me-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50% 50% 50% 50% / 48% 48% 52% 52%; box-shadow: var(--shadow); display: block; }
.about-me-photo.no-photo { display: none; }
.about-me-text { max-width: 620px; }
.about-me-text h2.serif { font-family: var(--font-serif); font-weight: 500; font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-bottom: 0.4em; }
.about-me-text h3 { font-size: 1.15rem; margin: 1.6em 0 0.6em; color: var(--sage); }
.about-me-text p { line-height: 1.7; }
.signature { font-family: var(--font-serif); font-style: italic; font-size: 1.5rem; margin-top: 1.4em; color: var(--sage); }
@media (max-width: 860px) {
  .about-me-grid { grid-template-columns: 1fr; }
  .about-me-photo { position: static; max-width: 260px; margin: 0 auto 8px; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px clamp(16px, 4vw, 48px) 24px; background: var(--cream); }
.footer-inner { max-width: 1240px; margin: 0 auto; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.brand-footer { font-size: 1.4rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; align-content: flex-start; }
.footer-nav a { text-decoration: none; color: var(--ink-soft); font-size: 0.9rem; }
.footer-note { max-width: 1240px; margin: 24px auto 0; font-size: 0.8rem; }

/* Viewer */
.viewer-body { background: #e9e4db; height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--cream); border-bottom: 1px solid var(--line); }
.viewer-bar .brand { font-size: 1rem; letter-spacing: 0.05em; flex-direction: row; gap: 6px; }
.viewer-title { font-weight: 400; text-align: center; flex: 1; font-size: 0.95rem; }
.viewer-tools { display: flex; gap: 6px; align-items: center; font-size: 0.85rem; color: var(--ink-soft); }
.viewer-tools button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: 1.1rem; color: var(--ink); }
.viewer-tools button:hover { background: var(--sage-pale); }
#page-indicator { min-width: 90px; text-align: center; }
.viewer { flex: 1; overflow: auto; padding: 16px; -webkit-user-select: none; user-select: none; }
.viewer-loading { text-align: center; color: var(--ink-soft); padding: 48px; }
.viewer-pages { display: flex; flex-direction: column; align-items: center; gap: 16px; --page-w: 800px; }
.viewer-pages .page { width: var(--page-w); max-width: 100%; background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,0.12); position: relative; }
.viewer-pages .page canvas { display: block; width: 100% !important; height: auto !important; pointer-events: none; }
.viewer-cta { text-align: center; padding: 40px 16px 56px; }
.viewer-pages .page-blurred img { display: block; width: 100%; height: auto; pointer-events: none; }
.viewer-pages .page-blurred::after { content: 'Leseprobe'; position: absolute; top: 12px; right: 12px; background: rgba(196,122,90,0.92); color: #fff; font-size: 0.75rem; padding: 4px 10px; border-radius: 999px; letter-spacing: 0.04em; }
.preview-notice { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 10px 16px; background: #fbe9e1; color: #6a3a26; border-bottom: 1px solid #efcfc2; font-size: 0.9rem; line-height: 1.4; text-align: center; }
.preview-notice .btn { white-space: nowrap; }
.preview-banner { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 10px 16px; background: var(--cream); border-top: 1px solid var(--line); font-size: 0.9rem; }
.preview-banner[hidden] { display: none; }
@media print { .viewer-body, .viewer-pages { display: none !important; } }

/* Responsive */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-cover { order: -1; }
  .hero-cover img { width: min(70%, 320px); }
  .about-grid, .issue-detail { grid-template-columns: 1fr; }
  .issue-cover { max-width: 320px; margin: 0 auto; }
  .site-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .nav { gap: 14px; }
  .viewer-back { display: none; }
}
@media (max-width: 520px) {
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .tile-body { padding: 12px; }
  .tile-body h3 { font-size: 1rem; }
  .order-summary { grid-template-columns: 1fr; }
  .order-cover { width: 90px; }
}

/* Admin: Umsätze */
.revenue-filter { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 24px; }
.revenue-filter label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; color: var(--ink-soft); }
.revenue-filter select, .revenue-filter input { font: inherit; color: var(--ink); padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.revenue-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.revenue-head h2 { margin: 0; }
.revenue-step { text-decoration: none; color: var(--ink-soft); font-size: 0.9rem; white-space: nowrap; }
.revenue-step:hover { color: var(--sage); }
.chart-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 8px; margin-bottom: 32px; }
.revenue-chart { width: 100%; height: auto; display: block; }
.revenue-chart .grid { stroke: var(--line); stroke-width: 1; }
.revenue-chart .axis { fill: var(--ink-soft); font-size: 12px; font-family: inherit; }
.revenue-chart .axis.sub { font-size: 10.5px; }
.revenue-chart .bar { fill: var(--sage); }
.revenue-chart .bar.empty { fill: var(--cream-deep); }
.revenue-chart a .bar:hover { fill: #6f8a6b; }
.revenue-chart .value { fill: var(--ink); font-size: 11.5px; font-family: inherit; }
.revenue-table .num, .admin-table .num { text-align: right; white-space: nowrap; }
.revenue-table tfoot th { background: var(--cream-deep); font-weight: 500; color: var(--ink); }
.row-muted td { color: var(--ink-soft); }
.revenue-filter label[hidden] { display: none; }

/* Newsletter */
.newsletter-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 40px; max-width: 640px; margin: 0 auto; text-align: center; }
.newsletter-box h2 { margin: 6px 0 10px; }
.newsletter-box .login-inline { justify-content: center; margin: 18px 0 12px; }
.newsletter-box .small { margin: 0; }
@media (max-width: 640px) { .newsletter-box { padding: 26px 20px; } }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.newsletter-grid { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(320px, 1fr); gap: 32px; align-items: start; }
.mail-preview { width: 100%; height: 560px; border: 1px solid var(--line); border-radius: var(--radius); background: #f4efe6; }
.send-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.send-box h3 { margin: 0; }
.send-box .login-inline { margin: 0; }
.send-box p { margin: 0; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.failed-list { margin-bottom: 22px; }
.failed-list ul { margin: 8px 0 12px; padding-left: 18px; }
@media (max-width: 900px) { .newsletter-grid { grid-template-columns: 1fr; } }
.danger-zone { margin-top: 28px; border: 1px solid #e8cfc7; border-radius: var(--radius); padding: 14px 22px; background: #fdf7f5; }
.danger-zone summary { cursor: pointer; color: #8a3b24; font-weight: 500; }
.danger-zone .form { margin-top: 12px; max-width: 380px; }
.danger-btn { background: #c0392b; color: #fff; border-color: #c0392b; }
.danger-btn:hover { background: #a93226; }
.form-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 24px; }
.form-box p { margin: 6px 0; }

.field-row { display: flex; gap: 12px; }
.field-row label { flex: 1; }
.field-row .field-zip { flex: 0 0 110px; }
.address-form { max-width: 480px; margin-bottom: 28px; }

.stat strong.neg, .num.neg, .neg { color: #8a3b24; }
.stat-main { border-color: var(--sage); }
.revenue-chart .bar.refund { fill: #c9a08f; }
.legend { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; }
.legend.sales { background: var(--sage); } .legend.refund { background: #c9a08f; }
.faq-page { max-width: none; margin: 18px 0 0; }
.faq-page h2 { margin: 28px 0 10px; }

.reset-link-box { background: var(--sage-pale); border: 1px solid var(--sage-light); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px; }
.reset-link-box input { width: 100%; font: inherit; font-size: 0.85rem; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; margin: 6px 0; }
.reset-link-box p { margin: 4px 0; }
.actions form.inline + form.inline { margin-left: 10px; }

/* Aktionshinweis im Hero */
.hero-promo { margin-top: 26px; background: var(--paper); border: 1px solid var(--wood-light); border-left: 4px solid var(--wood); border-radius: 12px; padding: 16px 20px; max-width: 520px; }
.hero-promo .eyebrow { margin-bottom: 4px; color: #8a6a45; }
.hero-promo h2 { font-size: 1.25rem; margin: 0 0 6px; }
.hero-promo p { margin: 0 0 10px; color: var(--ink-soft); font-size: 0.95rem; }
.hero-promo .btn { margin-top: 2px; }
.btn-wood { background: var(--wood); color: #fff; border-color: var(--wood); }
.btn-wood:hover { background: #9a7752; }
.hero-promo.preview { margin-top: 0; }

/* Löschkonzept */
.retention-rules td:first-child { width: 36%; }
.retention-rules .num { width: 90px; }
.retention-actions { display: flex; align-items: flex-start; gap: 20px; margin: -16px 0 36px; }
.retention-actions .inline { flex-shrink: 0; }
.retention-actions p { margin: 0; }
.retention-log td { vertical-align: top; }
.retention-log td:last-child { word-break: break-word; }
.nowrap { white-space: nowrap; }
.admin-grid > * { min-width: 0; }
@media (max-width: 700px) { .retention-actions { flex-direction: column; } }

.faq-more { margin-top: 24px; }

/* Aktionshinweise (Admin) */
.promo-toolbar { margin: 0 0 20px; }
.promo-toolbar .hint-block { margin-top: 12px; }
.btn-disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.hint-block { background: var(--wood-light); color: #6b5035; border-radius: 8px; padding: 10px 14px; font-size: 0.92rem; }
.hint-block ul { margin: 6px 0 0 18px; padding: 0; }
.hint-block a { color: inherit; }
.promo-table td { vertical-align: top; }
