/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  --cp-rot: #a01830;
  --cp-rot-hell: #a01830;
  --cp-rot-dunkel: #a01830;
  --cp-rot-bg: #fdf2f4;

  --cp-schwarz: #1a1a1a;
  --cp-dunkelgrau: #333;
  --cp-mittelgrau: #666;
  --cp-hellgrau: #999;
  --cp-hintergrund-dunkelgrau: #999;
  --cp-rahmengrau: #e0e0e0;
  --cp-hintergrundgrau: #f5f5f5;
  --cp-hintergrund-mittelgrau: #dedede;
  --cp-weiss: #fff;

  --font-main: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1200px;
  --header-height: 72px;

  --shadow-sm: 0 1px 3px rgb(51 51 51 / 8%);
  --shadow-md: 0 4px 16px rgb(51 51 51 / 10%);
  --shadow-lg: 0 8px 32px rgb(51 51 51 / 12%);
  --shadow-xl: 0 16px 48px rgb(51 51 51 / 16%);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  color: var(--cp-dunkelgrau);
  background: var(--cp-weiss);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cp-rot-dunkel);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--cp-rot);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--cp-dunkelgrau);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p {
  margin-bottom: 1em;
}

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

/* ============================================
   CONTENT TYPOGRAPHY (Blog-Artikel, Seiten)
   ============================================ */
.content {
  max-width: 800px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--cp-dunkelgrau);
}

.content h2 {
  margin-top: 2.5em;
  margin-bottom: 0.75em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--cp-rahmengrau);
}

.content h3 {
  margin-top: 2em;
  margin-bottom: 0.6em;
}

.content h4 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.content p {
  margin-bottom: 1.2em;
}

.content ul,
.content ol {
  margin-bottom: 1.2em;
  padding-left: 1.8em;
}

.content ul {
  list-style-type: disc;
}

.content ol {
  list-style-type: decimal;
}

.content li {
  margin-bottom: 0.4em;
  line-height: 1.7;
}

.content li > ul,
.content li > ol {
  margin-top: 0.4em;
  margin-bottom: 0.4em;
}

.content strong {
  font-weight: 700;
  color: var(--cp-schwarz);
}

.content em {
  font-style: italic;
}

.content a {
  color: var(--cp-rot);
  text-decoration: underline;
  text-decoration-color: rgb(160 24 48 / 30%);
  text-underline-offset: 2px;
  transition: text-decoration-color var(--transition-fast), color var(--transition-fast);
}

.content a:hover {
  color: var(--cp-rot-dunkel);
  text-decoration-color: var(--cp-rot-dunkel);
}

.content a.btn {
  color: var(--cp-weiss);
  text-decoration: none;
  padding: 8px 18px;
  font-size: 0.85rem;
}

.content a.btn:hover {
  color: var(--cp-weiss);
}

/* Tabellen */
.content table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  font-size: 0.95rem;
  line-height: 1.6;
  overflow-x: auto;
  display: block;
}

.content thead {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.content tbody {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.content thead tr {
  background: var(--cp-dunkelgrau);
  color: var(--cp-weiss);
}

.content th {
  padding: 12px 16px;
  font-weight: 700;
  text-align: left;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.content td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--cp-rahmengrau);
}

.content tbody tr:nth-child(even) {
  background: var(--cp-hintergrundgrau);
}

.content tbody tr:hover {
  background: var(--cp-rot-bg);
}

.content tbody tr:last-child td {
  border-bottom: 2px solid var(--cp-rahmengrau);
}

/* Code-Blöcke */
.content code {
  background: var(--cp-hintergrundgrau);
  border: 1px solid var(--cp-rahmengrau);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  font-size: 0.88em;
  font-family: Consolas, Monaco, 'Courier New', monospace;
  color: var(--cp-rot-dunkel);
}

.content pre {
  background: var(--cp-schwarz);
  color: #e0e0e0;
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.6;
}

.content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
  border-radius: 0;
}

/* Blockquotes */
.content blockquote {
  border-left: 4px solid var(--cp-rot);
  margin: 1.5em 0;
  padding: 16px 24px;
  background: var(--cp-rot-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--cp-mittelgrau);
}

.content blockquote p:last-child {
  margin-bottom: 0;
}

/* Horizontale Linie */
.content hr {
  border: none;
  height: 1px;
  background: var(--cp-rahmengrau);
  margin: 2.5em 0;
}

/* Bilder im Content */
.content img {
  border-radius: var(--radius-md);
  margin: 1.5em 0;
  box-shadow: var(--shadow-sm);
}
