/* ==========================================================================
   CV / Lebenslauf
   ========================================================================== */

body {
  padding: 20px;
}

.page {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 10px;
}

/* Header */
.header {
  grid-column: 1 / -1;
  background: #1a1a1a;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
}

.header-left {
  flex: 1;
}

.header-photo {
  width: 110px;
  border-radius: 12px;
  background: #e0d5ef;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-shrink: 0;
}

.header-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: bottom;
}

.header-logo {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: white;
  background: conic-gradient(from var(--angle), #fcd29f, #d9a8e0, #91d3f0, #fcd29f);
  animation: spin-gradient 4s linear infinite;
  padding: 6px 12px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 16px;
}

.header h1 {
  font-size: 26px;
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 4px;
}

.header-sub {
  font-size: 14px;
  color: #888;
}

.header-contact-line {
  font-size: 13px;
  color: #666;
  margin-top: 8px;
}

.header-contact-line a {
  color: #666;
  text-decoration: none;
}

/* Cards */
.card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

.card h2 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #aaa;
  margin-bottom: 24px;
}

/* Erfahrung */
.job {
  margin-bottom: 16px;
}

.job:last-child {
  margin-bottom: 0;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}

.job-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
}

.job-period {
  font-size: 12px;
  color: #aaa;
  font-weight: 500;
  white-space: nowrap;
}

.job-role {
  font-size: 13px;
  color: #888;
  margin-bottom: 10px;
}

.job-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.job-list li {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  padding-left: 14px;
  position: relative;
}

.job-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: #bbb;
  font-weight: 700;
}

.divider {
  border: none;
  border-top: 1px solid #f0efec;
  margin: 14px 0;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Skills */
.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  font-size: 12px;
  font-weight: 500;
  background: #f0efec;
  color: #444;
  padding: 5px 12px;
  border-radius: 8px;
}

/* Sprachen */
.contact-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #bbb;
}

.contact-value {
  font-size: 13px;
  color: #444;
}

/* Tech Stack */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 8px;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.tool-badge {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tech-item span {
  font-size: 10px;
  color: #999;
  text-align: center;
  line-height: 1.3;
}

/* Portfolio Card */
.portfolio-card {
  background: #1a1a1a;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portfolio-card p {
  font-size: 15px;
  font-weight: 700;
  color: white;
  line-height: 1.4;
}

.portfolio-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  background: conic-gradient(from var(--angle), #fcd29f, #d9a8e0, #91d3f0, #fcd29f);
  animation: spin-gradient 4s linear infinite;
  padding: 9px 16px;
  border-radius: 10px;
  text-decoration: none;
  align-self: flex-start;
}

/* Print */
@page {
  size: A4;
  margin: 0;
}

@media print {
  body {
    background: white;
    padding: 16px;
  }
  .header-logo {
    animation: none !important;
    background: linear-gradient(135deg, #fcd29f, #d9a8e0, #91d3f0) !important;
  }
  .card {
    box-shadow: none;
    border: 1px solid #eee;
  }
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  a {
    text-decoration: underline;
  }
  a[href]::after {
    content: none;
  }
}
