/* dismail.de — minimal static theme. No fonts, scripts or assets from third parties. */
:root {
  color-scheme: light dark;
  --page: #f7f9fc;
  --white: #ffffff;
  --ink: #142b45;
  --muted: #566b81;
  --faint: #77899a;
  --border: #e1e8ef;
  --border-strong: #cbd6e2;
  --blue: #235d9b;
  --blue-dark: #173f6b;
  --blue-subtle: #eaf2fa;
  --accent: #58cdbb;
  --footer: #122b45;
  --shadow: 0 18px 40px -30px rgba(20, 43, 69, 0.29);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, Helvetica, Arial, sans-serif;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7.5rem; }
body { margin: 0; min-width: 320px; background: var(--page); color: var(--ink); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 3px solid #55b9df; outline-offset: 4px; }
button, input { font: inherit; }
.container { width: min(1140px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 200; top: -100px; left: 16px; padding: 10px 15px; background: var(--ink); color: white; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--border); }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.brand-symbol { width: 34px; height: 34px; flex: none; border-radius: 9px; background: var(--blue-dark); display: grid; grid-template-columns: 8px 8px; grid-template-rows: 8px 8px; align-content: center; justify-content: center; gap: 4px; transform: rotate(-4deg); }
.brand-symbol span { display: block; width: 8px; height: 8px; background: #ffffff; border-radius: 2px; }
.brand-symbol span:nth-child(2) { background: var(--accent); }
.brand-symbol span:nth-child(3) { background: var(--accent); }
.brand-name { font-size: 1.45rem; letter-spacing: -.065em; font-weight: 780; line-height: 1; }
.brand-domain { font-weight: 540; color: var(--blue); }
.primary-nav { display: flex; align-items: center; gap: clamp(11px, 1.4vw, 22px); font-size: .88rem; font-weight: 570; }
.primary-nav > a { color: var(--muted); transition: color .15s; }
.primary-nav > a:hover, .primary-nav > a:focus-visible { color: var(--blue); }
.mobile-menu { display: none; }

.section-label { margin: 0; font-size: .72rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .12em; }
.label-line { display: inline-block; width: 18px; height: 1px; margin-left: 7px; background: var(--accent); vertical-align: middle; }

/* Compact homepage */
.home-intro {
    background: var(--page);
    border-bottom: 1px solid var(--border);
    padding: 40px 0;
}
.home-intro h1 { margin: 0 0 13px; font-weight: 740; font-size: clamp(2.2rem, 4vw, 3.9rem); letter-spacing: -.055em; line-height: 1.12; }
.home-focus { margin: 0 0 13px; color: var(--ink); font-size: clamp(1rem, 1.4vw, 1.1rem); }
.home-principles { margin: 0; color: var(--muted); font-size: .95rem; }

.services-section { padding: 49px 0 50px; background: var(--white); }
.section-header { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-header h2 { font-size: clamp(1.55rem, 2.5vw, 2rem); font-weight: 720; letter-spacing: -.035em; line-height: 1.2; margin: 0; }
.text-link { color: var(--blue); font-size: .87rem; font-weight: 620; text-decoration: none; white-space: nowrap; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.service-card { display: block; min-height: 119px; padding: 20px 22px; border: 1px solid var(--border); background: var(--white); border-radius: 8px; }
.service-card:hover { background: var(--page); border-color: var(--border-strong); }
.service-card:focus-visible { position: relative; }
.service-card h3 { font-size: 1.11rem; font-weight: 730; letter-spacing: -.025em; margin: 0 0 7px; line-height: 1.3; }
.service-card p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.registration-line { margin: 23px 0 0; color: var(--muted); font-size: .87rem; }
.registration-line a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.news-section { padding: 52px 0 75px; background: var(--page); }
.news-list { border-top: 1px solid var(--border-strong); }
.news-item { display: grid; grid-template-columns: 126px minmax(0, 1fr); gap: 25px; padding: 22px 0 24px; border-bottom: 1px solid var(--border); }
.news-date { display: block; font-size: .78rem; color: var(--blue); font-weight: 660; padding-top: 2px; font-variant-numeric: tabular-nums; }
.news-main h3 { font-size: 1rem; font-weight: 690; margin: 0 0 7px; line-height: 1.4; }
.news-main h3 a:hover { color: var(--blue); text-decoration: underline; }
.news-content { color: var(--muted); font-size: .9rem; line-height: 1.7; overflow-wrap: anywhere; }
.news-content p { margin: 0 0 .65em; }
.news-content p:last-child { margin-bottom: 0; }
.news-content ul, .news-content ol { margin: .5em 0; padding-left: 1.4em; }
.news-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.news-content h2, .news-content h3 { font-size: .98rem; margin: 1em 0 .4em; }
.news-content img { max-width: 100%; height: auto; }
.no-news { margin: 0; padding: 20px 0; color: var(--muted); }

/* Generic pages and content */
.inner-page { max-width: 860px; min-height: 65vh; padding-top: 92px; padding-bottom: 120px; }
.inner-page h1 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    line-height: 1.2;
    letter-spacing: -.04em;
    margin: 14px 0 26px;
}
.inner-page .news-date { display: block; margin: 20px 0 0; }
.back-link { font-size: .86rem; color: var(--blue); font-weight: 660; }
.back-link:hover { text-decoration: underline; }
.prose { font-size: 1.04rem; max-width: 72ch; line-height: 1.85; color: var(--ink); }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose h2 { font-size: 1.55rem; letter-spacing: -.02em; margin-top: 1.8em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.5em; }
.prose code { font: .9em ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.prose pre { max-width: 100%; overflow: auto; background: var(--blue-subtle); padding: 18px; border-radius: 7px; }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; margin: 1.4rem 0; }
.prose th, .prose td { padding: 11px 14px; border: 1px solid var(--border-strong); text-align: left; }
.prose th { background: var(--blue-subtle); }
.prose ul, .prose ol { padding-left: 1.5em; }
.article-tail { border-top: 1px solid var(--border); padding-top: 22px; margin-top: 48px; }

/* Compact footer */
.site-footer { background: var(--footer); color: #dce9f3; }
.footer-compact { display: flex; flex-wrap: wrap; gap: 15px 34px; justify-content: space-between; align-items: center; padding: 29px 0; }
.footer-name { font-weight: 740; color: #fff; letter-spacing: -.025em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 9px 21px; }
.footer-links a { font-size: .82rem; color: #c4d7e5; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 800px) {
  .primary-nav { display: none; }
  .mobile-menu { display: block; position: relative; }
  .mobile-menu summary { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: .91rem; font-weight: 670; list-style: none; padding: 8px 0 8px 13px; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary span { font-size: 1.2rem; color: var(--blue); }
  .mobile-menu nav { position: absolute; z-index: 10; top: calc(100% + 12px); right: 0; width: min(270px, 80vw); display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border); border-radius: 9px; box-shadow: 0 18px 45px -25px #142b4588; overflow: hidden; }
  .mobile-menu nav a { padding: 10px 18px; border-bottom: 1px solid var(--border); font-size: .9rem; }
  .mobile-menu nav a:last-child { border-bottom: 0; }
  .mobile-menu nav a:hover { color: var(--blue); background: var(--page); }
}
@media (max-width: 920px) {
  .container { width: min(1140px, calc(100% - 44px)); }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 36px); }
  .header-inner { min-height: 68px; }
  .brand-name { font-size: 1.32rem; }
  .brand-symbol { width: 31px; height: 31px; }
  .home-intro { padding: 40px 0 36px; }
  .home-intro h1 { font-size: clamp(2.15rem, 9vw, 3rem); }
  .home-principles { font-size: .88rem; }
  .services-section { padding: 35px 0 40px; }
  .section-header { align-items: flex-start; flex-direction: column; gap: 6px; margin-bottom: 20px; }
  .services-grid { grid-template-columns: 1fr; gap: 9px; }
  .service-card { min-height: 0; padding: 16px 18px; }
  .news-section { padding: 42px 0 59px; }
  .news-item { grid-template-columns: 1fr; gap: 6px; padding: 19px 0 22px; }
  .news-date { padding: 0; }
  .inner-page { padding-top: 58px; padding-bottom: 85px; }
  .footer-compact { align-items: flex-start; padding: 28px 0; }
  .footer-links { gap: 8px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0d1a29; --white: #13253a; --ink: #ebf2f8; --muted: #adc0d1; --faint: #9caec0;
    --border: #2a4157; --border-strong: #3b5268; --blue: #8cc6f6; --blue-dark: #1e609a;
    --blue-subtle: #203a51; --footer: #0b1523; --shadow: 0 18px 40px -30px rgba(0, 0, 0, .6);
  }
  .site-header { background: #13253a; }
  .brand-domain { color: #8cc6f6; }
  .service-card:hover { background: #1b3248; border-color: #49708b; }
  .footer-links a { color: #b0c2d4; }
}

/* Imported service documentation and FAQ */
.content-page { max-width: 1080px; padding-top: 72px; padding-bottom: 105px; }
.content-page > h1 { margin-bottom: 31px; }
.content-page .prose { max-width: none; font-size: .965rem; line-height: 1.75; }
.content-page .prose p { margin: .8rem 0 1rem; }
.page-toc { margin: 0 0 48px; padding: 21px 24px 23px; border: 1px solid var(--border); border-radius: 10px; background: var(--white); }
.page-toc .toc-title { margin: 0 0 12px; color: var(--muted); font-size: .73rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.content-page .page-toc ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; margin: 0; }
.page-toc li { margin: 0; }
.content-page .page-toc a { display: inline-block; font-size: .855rem; font-weight: 630; color: var(--blue); text-decoration: none; background: var(--blue-subtle); padding: 6px 12px; border-radius: 6px; }
.page-toc a:hover, .page-toc a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.content-page .prose h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); letter-spacing: -.035em; line-height: 1.3; margin: 0 0 20px; }
.content-page .prose h3 {
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.35;
}
.content-page .prose h5 {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}
.info-section, .faq-section { scroll-margin-top: 35px; }
.info-section { padding: 10px 0 38px; margin: 0 0 32px; border-bottom: 1px solid var(--border); }
.info-section:last-child, .faq-section:last-child { border-bottom: none; }
.content-page .info-section ul { margin: 14px 0 20px; padding-left: 1.45rem; }
.content-page .info-section li { margin: 8px 0; }
.content-page .info-section strong { font-weight: 700; }
.content-page .info-section table { display: table; min-width: 540px; margin: 0; border-collapse: separate; border-spacing: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; font-size: .88rem; }
.content-page .info-section table th, .content-page .info-section table td { padding: 12px 15px; border: 0; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.content-page .info-section table tr:last-child td { border-bottom: none; }
.content-page .info-section table th { background: var(--blue-subtle); font-weight: 740; }
.content-page .info-section table tr:nth-child(even) td { background: color-mix(in srgb, var(--page) 72%, var(--white)); }
.content-page .info-section table td:first-child { font-weight: 630; }
.content-page .info-section .table-scroll { max-width: 100%; overflow-x: auto; margin: 18px 0 25px; border-radius: 8px; }
.content-page .info-section .table-scroll:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.content-page .info-section a { overflow-wrap: anywhere; }
.content-page .info-section img { max-width: 100%; height: auto; }
.faq-page .prose { max-width: 940px; }
.faq-section { padding: 8px 0 22px; margin-bottom: 28px; }
.faq-section > h2 { padding-bottom: 16px; border-bottom: 1px solid var(--border-strong); }
.faq-list { margin: 0; }
.faq-list dt { font-size: 1rem; font-weight: 730; line-height: 1.55; margin: 0; padding: 23px 0 5px; color: var(--ink); scroll-margin-top: 32px; }
.faq-list dd { margin: 0; padding: 0 0 22px; color: var(--muted); border-bottom: 1px solid var(--border); font-size: .94rem; }
.faq-list dd p { margin: 7px 0 13px; }
.faq-list dd ul { margin: 5px 0 12px; padding-left: 1.45rem; }
.faq-list dd li { margin: 5px 0; }
.faq-list dd:last-child { border-bottom: 0; }
.primary-nav a[aria-current="page"] { color: var(--blue); font-weight: 740; }
@media(max-width: 600px) {
  .content-page { padding-top: 48px; padding-bottom: 70px; }
  .page-toc { padding: 18px; margin-bottom: 31px; }
  .content-page .prose { font-size: .93rem; }
  .info-section { margin-bottom: 19px; padding-bottom: 25px; }
  .content-page .info-section table { font-size: .81rem; min-width: 460px; }
  .content-page .info-section table td, .content-page .info-section table th { padding: 10px 11px; }
  .faq-list dt { padding-top: 17px; }
  .faq-list dd { padding-bottom: 14px; }
}

/* Markdown-based content pages */
.content-page .prose { max-width: 100%; overflow-wrap: anywhere; }
.content-page .prose h2 { margin: 1.9em 0 .65em; padding-bottom: .25em; border-bottom: 1px solid var(--border); scroll-margin-top: 2rem; }
.content-page .prose h3 { font-size: 1.13rem; margin: 1.65em 0 .5em; scroll-margin-top: 2rem; }
.content-page .prose h2:first-child { margin-top: 0; }
.content-page .prose hr { height: 1px; border: 0; background: var(--border); margin: 2.5em 0; }
.content-page .prose li { margin-block: .35rem; }
.content-page .prose table { width: max-content; min-width: 100%; display: table; border-collapse: collapse; margin: 0; }
.content-page .prose table th, .content-page .prose table td { min-width: 105px; padding: 11px 13px; vertical-align: top; }
.content-page .prose table tr:nth-child(even) { background: var(--page); }
.content-page .prose .table-scroll { max-width: 100%; overflow-x: auto; margin: 1.2rem 0 1.8rem; border: 1px solid var(--border); border-radius: 8px; }
.content-page .prose .table-scroll:focus-visible { outline: 3px solid var(--blue); }
.content-page .prose > table { display: block; max-width: 100%; overflow-x: auto; }
.content-page .prose pre { white-space: pre; }
.content-page .prose img { max-width: 100%; height: auto; }
.page-faq .prose h3 { margin: 1.3rem 0 .25rem; }
.page-faq .prose h3 + p { margin-top: .25rem; color: var(--muted); }
.page-info .prose > ul:first-of-type { padding: 1.1rem 1.2rem 1.1rem 2.5rem; background: var(--white); border: 1px solid var(--border); border-radius: 9px; columns: 2; }
.page-info .prose > ul:first-of-type a { font-weight: 650; }
.page-serverlist { max-width: 1240px; }
.page-serverlist .prose { max-width: none; }
.page-serverlist .prose .table-scroll table { font-size: .76rem; }
.archive-lede { color: var(--muted); }
.archive-year { margin-top: 2.5rem; }
.archive-year h2 { border-bottom: 1px solid var(--border-strong); padding-bottom: .55rem; }
.archive-list { list-style: none; padding: 0; }
.archive-list li { padding: .8rem 0; display: grid; grid-template-columns: 105px 1fr; gap: 16px; border-bottom: 1px solid var(--border); }
.archive-list time { color: var(--blue); font-size: .82rem; font-weight: 650; }
.archive-list a:hover { color: var(--blue); text-decoration: underline; }
@media (max-width: 600px) {
  .page-info .prose > ul:first-of-type { columns: 1; }
  .archive-list li { grid-template-columns: 90px 1fr; gap: 10px; }
}

/* Content pages: standalone title without redundant overline */
.content-page > h1 { margin-top: 0; }

/* Donation QR images: readable in both color schemes */
.page-donate .prose img {
  display: block;
  width: min(190px, 100%);
  height: auto;
  margin: 12px 0 26px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
}
.page-donate .prose code { overflow-wrap: anywhere; word-break: break-all; }
