body {
  font: 17px '-apple-system', BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  letter-spacing: 0.015rem;
  color: #222;
  margin: 0;
  padding: 0;
  background: #fff;
}

a {
  color: #1a5ad7;
  text-decoration: none;
  background-color: #e8f2ff;
  padding: 0.15em 0.55em;
  border-radius: 0.45em;
  transition: background 0.15s ease, color 0.15s ease;
}

a:hover,
a:focus-visible {
  background-color: #d7e8ff;
}

a:active {
  background-color: #c9ddff;
}

a:visited {
  color: #244cab;
}

header {
  background: #f8f8f8;
  padding: 1em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5em;
  font-weight: bold;
  color: #222;
  text-decoration: none;
}

.logo svg {
  height: 32px;
  width: 32px;
  margin-right: 0.5em;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1em;
}

nav a {
  font-weight: bold;
}

/* Nav search field */
nav .nav-search { margin-left: 1em; }
nav .search { position: relative; }
nav .search-input {
  padding: 8px 12px 8px 32px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  font-size: 0.95em;
}
nav .search-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59,130,246,0.2);
}
nav .search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

main {
  padding: 2em;
  line-height: 1.8;
}

body:not(.detail-page):not(.content-page) main {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.content-page main {
  text-align: left;
  max-width: 1200px;
  margin: 0 auto;
}

footer {
  background: #f8f8f8;
  padding: 1em;
  text-align: center;
  font-size: 0.9em;
  color: #555;
  border-top: 1px solid #e0e0e0;
  margin-top: 2em;
}

.faq {
  margin-top: 2em;
}

.faq details {
  margin-bottom: 0.75em;
  padding: 0.5em 1em;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: #f9f9f9;
}

.faq summary {
  font-weight: bold;
  cursor: pointer;
}

code {
  font-family: "Courier New", Courier, monospace;
  color: #0f0;
  background: #000;
  padding: 0.2em 0.5em;
  border-radius: 6px;
  display: inline-block;
}

pre code {
  display: inline-block;
  padding: 1em 1.1em;
}

h2 {
  text-align: center;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 5px;
}

.detail-page h2 {
  text-align: left;
}

p.subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 40px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.1);
  padding: 20px;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.icon-container {
  background-color: #eee;
  padding: 10px;
  border-radius: 10px;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card h3 {
  font-size: 1.2em;
  font-weight: bold;
  text-transform: capitalize;
  margin: 0;
}

ul.mime-list {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
}

ul.mime-list li {
  display: flex;
  align-items: center;
  font-size: 0.9em;
  margin-bottom: 5px;
}

/* Reset list alignment in main content */
main ul,
main ol {
  text-align: left;
}

/* Avoid vertical centering of list rows with custom dots */
ul.mime-list li {
  align-items: flex-start;
}

.dot {
  width: 8px;
  height: 8px;
  background-color: #1d4ed8;
  border-radius: 50%;
  margin-right: 8px;
}

.more {
  font-style: italic;
  color: #777;
  font-size: 0.9em;
}

.view-all {
  color: #1d4ed8;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
}

.view-all:hover {
  color: #1e40af;
}

.arrow {
  margin-left: 5px;
  font-size: 1em;
}

/* Buttons on homepage */
.button-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 1rem 0 2rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.btn svg {
  margin-left: 8px;
  height: 20px;
  width: 20px;
}
.btn-primary {
  background: linear-gradient(to right, #3b82f6, #06b6d4);
  color: #fff;
}
.btn-primary:hover {
  background: linear-gradient(to right, #2563eb, #0891b2);
}
.btn-primary:visited {
  color: #fff;
}
.btn-secondary {
  background: #fff;
  border: 1px solid #d1d5db;
  color: #374151;
}
.btn-secondary:hover {
  background: #f9fafb;
}
.btn-secondary:visited {
  color: #374151;
}



/* Erg�nzung f�r "What is a MIME Type"-Section */

:root {
  --bg: #f6f7fb;
  --text: #0f172a;
  --muted: #64748b;
  --card: #fff;
  --card-soft: #f3f4f6;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --shadow: 0 10px 30px rgba(2,6,23,.08);
}

.card-mime {
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-mime .card-body {
  padding: 32px;
}

.card-mime .grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 860px) {
  .card-mime .grid {
    grid-template-columns: 1fr 1fr;
  }
}

.card-mime h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.card-mime code {
  background: var(--card-soft);
  padding: .15rem .35rem;
  border-radius: 6px;
  color: #2563eb;
}

.card-mime .more {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  margin-top: 8px;
}

.card-mime .more:hover {
  color: #1e40af;
}

.example {
  background: #f9fafb;
  border-radius: 14px;
  padding: 16px;
}

.example h4 {
  margin: 0 0 10px;
  font-size: 18px;
}

.example .code {
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  overflow: auto;
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-align: left;
}

.band {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  color: #fff;
  padding: 36px 24px;
}

.band .features {
  display: grid;
  gap: 24px;
}

@media (min-width: 860px) {
  .band .features {
    grid-template-columns: repeat(3,1fr);
  }
}

.feature {
  text-align: center;
  padding: 10px 12px;
}

.feature .badge {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.2);
}

.feature h5 {
  margin: 6px 0 6px;
  font-size: 18px;
}

.feature .muted {
  color: rgba(255,255,255,.9);
}
