/* duoly — shared stylesheet */

:root {
  --primary: #2E1535;
  --accent: #C8637A;
  --peach: #F2C4CE;
  --cream: #FAF7F3;
  --text: #2E1535;
  --text-soft: #6b5468;
  --max-width: 860px;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site-header {
  padding: 20px 0;
  border-bottom: 1px solid rgba(46,21,53,0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1040px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--primary);
}

.brand svg { width: 30px; height: 30px; flex-shrink: 0; }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

nav.main-nav a {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}

nav.main-nav a.lang-switch {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

/* Hero */
.hero {
  text-align: center;
  padding: 72px 0 56px;
}

.hero .logo-mark {
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 44px;
  margin: 0 0 6px;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.hero .alt-name {
  font-size: 16px;
  color: var(--text-soft);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero p.tagline {
  font-size: 19px;
  color: var(--text-soft);
  max-width: 520px;
  margin: 0 auto 32px;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  padding: 12px 22px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.85;
  background: transparent;
}

.store-badge .soon {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.notify-link {
  display: inline-block;
  margin-top: 22px;
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
}

/* Sections */
section.block {
  padding: 56px 0;
}

section.block.tinted {
  background: var(--peach);
}

section.block h2 {
  font-size: 28px;
  color: var(--primary);
  text-align: center;
  margin: 0 0 8px;
}

section.block p.section-sub {
  text-align: center;
  color: var(--text-soft);
  max-width: 560px;
  margin: 0 auto 36px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: 0 2px 10px rgba(46,21,53,0.06);
}

.card h3 {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
}

.card .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--cream);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.mode-card {
  border-radius: var(--radius);
  padding: 30px 24px;
  background: var(--cream);
  border: 1.5px solid rgba(46,21,53,0.1);
}

.mode-card.active {
  background: var(--accent);
  color: var(--cream);
  border-color: var(--accent);
}

.mode-card.active h3,
.mode-card.active p { color: var(--cream); }

.mode-card .emoji { font-size: 34px; margin-bottom: 10px; display: block; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.price-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  border: 1.5px solid rgba(46,21,53,0.1);
}

.price-card.highlight {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(200,99,122,0.25);
}

.price-card h3 { color: var(--primary); margin: 0 0 6px; font-size: 17px; }
.price-card .price { font-size: 30px; font-weight: 800; color: var(--accent); margin: 8px 0; }
.price-card .price span { font-size: 14px; font-weight: 500; color: var(--text-soft); }
.price-card p.desc { color: var(--text-soft); font-size: 14px; }

.pricing-note {
  text-align: center;
  color: var(--text-soft);
  font-size: 13px;
  margin-top: 28px;
}

/* Footer */
footer.site-footer {
  padding: 40px 0;
  border-top: 1px solid rgba(46,21,53,0.08);
  text-align: center;
}

footer.site-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  font-size: 14px;
}

footer.site-footer .footer-links a { color: var(--text-soft); }

footer.site-footer .copyright {
  font-size: 13px;
  color: var(--text-soft);
}

/* Legal pages */
.legal-page {
  padding: 56px 0 80px;
}

.legal-page h1 {
  color: var(--primary);
  font-size: 32px;
  margin-bottom: 6px;
}

.legal-page .updated {
  color: var(--text-soft);
  font-size: 13px;
  margin-bottom: 36px;
}

.legal-page h2 {
  color: var(--primary);
  font-size: 20px;
  margin-top: 36px;
}

.legal-page h3 {
  color: var(--primary);
  font-size: 16px;
  margin-top: 22px;
}

.legal-page p, .legal-page li {
  color: var(--text-soft);
  font-size: 15px;
}

.legal-page a { color: var(--accent); }

.legal-page ul { padding-left: 20px; }

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 600;
}

/* Thread-View */
.thread-messages { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.msg { border-radius: 16px; padding: 14px 18px; max-width: 92%; }
.msg-user  { align-self: flex-end;  background: var(--peach); }
.msg-admin { align-self: flex-start; background: #fff; border: 1px solid rgba(46,21,53,0.1); }
.msg-head  { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.msg-who   { font-size: 12px; font-weight: 700; color: var(--primary); letter-spacing: 0.03em; }
.msg-time  { font-size: 11px; color: var(--text-soft); }
.msg-body  { font-size: 14px; line-height: 1.5; color: var(--text); word-wrap: break-word; }
.thread-reply { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(46,21,53,0.08); }
.thread-error { margin-top: 24px; padding: 16px 18px; background: #FDE7E7; border-radius: 12px; color: #B84B4B; font-size: 14px; }

/* Formulare (Support / Beta-Feedback) */
.feedback-form { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }
.feedback-form label { display: flex; flex-direction: column; gap: 6px; }
.feedback-form label > span {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.feedback-form input,
.feedback-form textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1.5px solid rgba(46,21,53,0.15);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  line-height: 1.5;
  resize: vertical;
}
.feedback-form input:focus,
.feedback-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,99,122,0.15);
}
.feedback-form button {
  align-self: flex-start;
  background: var(--accent);
  color: var(--cream);
  border: none;
  border-radius: 999px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}
.feedback-form button:hover:not(:disabled) { opacity: 0.9; }
.feedback-form button:disabled { opacity: 0.6; cursor: not-allowed; }
.form-status { font-size: 14px; padding: 4px 0; }
.form-status.success { color: #2E7D32; }
.form-status.error   { color: #C62828; }

@media (max-width: 600px) {
  .hero h1 { font-size: 34px; }
  section.block { padding: 40px 0; }
  .site-header .container { flex-direction: column; gap: 14px; }
}

/* Newsletter-Formular (Hero + Footer-CTA) */
.newsletter-form {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; align-items: center;
  margin: 24px auto 8px; max-width: 500px;
}
.newsletter-form input[type="email"] {
  flex: 1 1 220px; min-width: 200px;
  padding: 12px 16px; border-radius: 999px;
  border: 1.5px solid rgba(46,21,53,0.15);
  background: #fff; font-family: inherit; font-size: 15px; color: var(--text);
}
.newsletter-form input[type="email"]:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,99,122,0.15);
}
.newsletter-form button {
  background: var(--accent); color: var(--cream); border: none;
  border-radius: 999px; padding: 12px 22px;
  font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.newsletter-form button:hover:not(:disabled) { opacity: 0.9; }
.newsletter-form button:disabled { opacity: 0.6; cursor: not-allowed; }
.newsletter-status { flex-basis: 100%; text-align: center; font-size: 13px; min-height: 18px; margin: 4px 0 0; }
.newsletter-status.ok    { color: #2E7D32; }
.newsletter-status.error { color: #C62828; }
.newsletter-status.muted { color: var(--text-soft); }
.newsletter-privacy { text-align: center; font-size: 12px; color: var(--text-soft); margin: 6px 0 0; }

/* Feature-Listen in den Mode-Karten */
.mode-bullets { list-style: none; padding: 0; margin: 14px 0 0; font-size: 14px; color: var(--text); line-height: 1.9; text-align: left; }

/* Beispiel-Task-Chip */
.cat-tag {
  display: inline-block; background: rgba(200,99,122,0.12); color: var(--accent);
  border-radius: 999px; padding: 4px 12px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em; margin-bottom: 10px;
}
.price .amount { font-weight: 700; }

/* FAQ Accordion */
.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid rgba(46,21,53,0.08);
  border-radius: 14px; padding: 16px 20px; margin-bottom: 10px;
}
.faq details[open] { border-color: var(--accent); }
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--primary);
  font-size: 16px; list-style: none; position: relative; padding-right: 24px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 0;
  font-size: 22px; color: var(--accent);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--text); line-height: 1.7; }
.faq details p a { color: var(--accent); text-decoration: underline; }

.center { text-align: center; }

/* Screen-Reader-only Labels für Formulare */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Blog — Übersicht */
.blog-list { display: grid; gap: 20px; margin-top: 32px; }
.blog-card {
  background: #fff; border: 1px solid rgba(46,21,53,0.08);
  border-radius: 20px; padding: 24px;
  transition: border-color 0.15s, transform 0.15s;
}
.blog-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.blog-card a { color: inherit; text-decoration: none; display: block; }
.blog-card h2 {
  font-size: 22px; font-weight: 700; color: var(--primary);
  margin: 12px 0 10px; line-height: 1.3;
}
.blog-card p { color: var(--text); line-height: 1.6; margin: 0 0 12px; font-size: 15px; }
.blog-meta {
  display: block; font-size: 12px; color: var(--text-soft);
  letter-spacing: 0.03em; text-transform: uppercase; font-weight: 600;
}

/* Blog — Artikel */
.blog-article { max-width: 720px; }
.blog-article .container { max-width: 720px; }
.blog-crumb { margin: 0 0 8px; font-size: 14px; }
.blog-crumb a { color: var(--accent); }
.blog-article h1 {
  font-size: 34px; line-height: 1.2; color: var(--primary);
  margin: 12px 0 16px; font-weight: 700;
}
.blog-article .lead {
  font-size: 18px; line-height: 1.65; color: var(--text);
  margin: 20px 0 24px; font-weight: 500;
}
.blog-article h2 {
  font-size: 24px; color: var(--primary); font-weight: 700;
  margin: 40px 0 12px; line-height: 1.3;
}
.blog-article h3 {
  font-size: 19px; color: var(--primary); font-weight: 700;
  margin: 28px 0 8px;
}
.blog-article p { color: var(--text); line-height: 1.75; margin: 0 0 16px; }
.blog-article ul, .blog-article ol { color: var(--text); line-height: 1.75; padding-left: 22px; margin: 0 0 20px; }
.blog-article li { margin-bottom: 8px; }
.blog-article strong { color: var(--primary); }
.blog-article em { color: var(--text); font-style: italic; }

/* Blog — CTA Boxen am Artikel-Ende */
.blog-cta {
  background: rgba(200,99,122,0.08); border: 1px solid rgba(200,99,122,0.25);
  border-radius: 20px; padding: 24px; margin: 40px 0 24px;
}
.blog-cta h3 { color: var(--accent); margin: 0 0 10px; font-size: 18px; }
.blog-cta p { margin: 0 0 8px; font-size: 15px; }
.blog-cta a { color: var(--accent); font-weight: 700; }

.blog-newsletter {
  background: var(--peach); border-radius: 20px; padding: 28px;
  margin-top: 32px; text-align: center;
}
.blog-newsletter h3 { color: var(--primary); margin: 0 0 8px; }
.blog-newsletter p { color: var(--text); margin: 0 0 12px; }
