/* Sterbegeld-Wiki Styles */

:root {
  --bg-dark: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #eff6ff;
  --accent-gradient: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  --success: #059669;
  --success-light: #ecfdf5;
  --warning: #d97706;
  --danger: #dc2626;
  --max-width: 960px;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 600px) {
  .nav-container {
    flex-direction: row;
    justify-content: space-between;
    padding: 1.25rem 2rem;
  }
}

.logo-link {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.25rem;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

nav a:hover {
  color: var(--accent);
  background-color: var(--accent-light);
}

main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

@media (min-width: 768px) {
  main {
    padding: 3.5rem 2rem;
  }
}

footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 3rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-broker {
  max-width: 450px;
}

.footer-legal-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}

@media (min-width: 480px) {
  .footer-legal-links {
    flex-direction: row;
    gap: 1.5rem;
  }
}

.footer-legal-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

/* Standard Elements */
h1, h2, h3, h4 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.2rem;
  line-height: 1.15;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  h1 {
    font-size: 3rem;
  }
}

h2 {
  font-size: 1.6rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-top: 2.5rem;
}

h3 {
  font-size: 1.25rem;
  margin-top: 1.8rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  font-size: 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

ul, ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

li {
  margin-bottom: 0.5rem;
}

/* Responsive Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0 2.5rem 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 600px;
}

th, td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: #f8fafc;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background-color: #f8fafc;
}

/* Cards */
.home-card, .list-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-card:hover, .list-item:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.home-card-link {
  text-decoration: none;
  color: var(--text-primary);
  display: block;
}

.home-card-link h2 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem 0;
  border-bottom: none;
  padding-bottom: 0;
  font-weight: 700;
}

.home-card-link p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Alerts / Callouts */
blockquote {
  background-color: var(--accent-light);
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-secondary);
}

blockquote p {
  margin-bottom: 0;
  color: #1e3a8a;
  font-weight: 500;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85em;
  background-color: rgba(15, 23, 42, 0.05);
  padding: 0.25em 0.5em;
  border-radius: 4px;
}

/* Buttons & Custom UI Components */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-gradient);
  color: white !important;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  opacity: 0.95;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--border-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.tariff-metadata-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 480px) {
  .tariff-metadata-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .tariff-metadata-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.metadata-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.metadata-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.075em;
  font-weight: 700;
}

.metadata-value {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 600;
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 3rem 0;
}

@media (min-width: 768px) {
  .home-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Advisory Banner */
.advisory-banner {
  background: linear-gradient(135deg, #ecfdf5 0%, #eff6ff 100%);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  margin-bottom: 2.5rem;
  text-align: center;
}

.advisory-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.advisory-banner h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  border-bottom: none;
  padding-bottom: 0;
  color: var(--text-primary);
}

.advisory-banner p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 1.25rem;
  line-height: 1.5;
}

.advisory-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

@media (min-width: 480px) {
  .advisory-actions {
    flex-direction: row;
    justify-content: center;
  }
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: white !important;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-broker {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--accent) !important;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid var(--accent);
  transition: all 0.2s ease;
}

.btn-broker:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

/* Kompakte Tarif-Liste */
.tariff-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tariff-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border-color);
  border-bottom: none;
  background: var(--bg-card);
  text-decoration: none;
  color: var(--text-primary);
  transition: background 0.15s ease;
}

.tariff-list-item:first-child {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.tariff-list-item:last-child {
  border-bottom: 1px solid var(--border-color);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.tariff-list-item:only-child {
  border-radius: var(--radius-sm);
}

.tariff-list-item:hover {
  background: var(--accent-light);
}

.tariff-list-item strong {
  display: block;
  font-size: 0.95rem;
}

.tariff-list-name {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.tariff-list-arrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-left: 1rem;
}

/* Sticky WhatsApp Button */
.whatsapp-sticky {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.whatsapp-sticky:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-sticky svg {
  width: 28px;
  height: 28px;
  fill: white;
}

/* Beautiful styles for legal paragraphs */
.conditions-full-text {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.legal-paragraph-block {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md) !important;
  padding: 2.25rem !important;
  box-shadow: var(--shadow-sm) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.legal-paragraph-block:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md) !important;
}

.legal-paragraph-block h2 {
  font-size: 1.4rem !important;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 2px solid var(--accent-light);
  padding-bottom: 0.75rem !important;
  margin-bottom: 1.5rem !important;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.legal-paragraph-block .post-content {
  font-size: 0.975rem !important;
  line-height: 1.75 !important;
  color: var(--text-secondary);
}

.legal-paragraph-block .post-content p {
  margin-bottom: 1.25rem;
}

.legal-paragraph-block .post-content p:last-child {
  margin-bottom: 0;
}

.legal-paragraph-block .post-content strong,
.legal-paragraph-block .post-content b {
  color: var(--text-primary);
  font-weight: 700;
}

.legal-paragraph-block .post-content h3 {
  font-size: 1.15rem;
  margin-top: 1.75rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 700;
}

.legal-paragraph-block .post-content h4 {
  font-size: 1.05rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  border-left: 3px solid var(--accent);
  padding-left: 0.75rem;
}

/* AVB Paragraph List - einheitliche Darstellung für alle Versicherer */
.avb-paragraph-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 1rem;
}
.avb-paragraph-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
  color: var(--accent);
  font-size: 1.05rem;
  transition: background 0.15s ease, padding-left 0.15s ease;
  border-radius: 0;
}
.avb-paragraph-item:first-child {
  border-top: 1px solid var(--border-color);
}
.avb-paragraph-item:hover {
  background: var(--bg-card);
  padding-left: 1.75rem;
  text-decoration: underline;
}
.avb-paragraph-title {
  font-weight: 500;
  white-space: normal;
}
.avb-paragraph-description {
  flex: 1;
  margin: 0 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}
.avb-paragraph-arrow {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-left: 1rem;
}

/* Glossar-Links im Fließtext */
.glossar-link {
  color: var(--accent) !important;
  text-decoration: none;
  border-bottom: 1px dashed var(--accent);
  transition: all 0.2s ease;
  font-weight: 500;
}
.glossar-link:hover {
  border-bottom-style: solid;
  background-color: var(--bg-card);
  border-radius: var(--radius-xs);
  padding: 0 0.15rem;
}
