/* Grundlayout – heller, ruhiger, an klassische Portfolio-Seiten angelehnt */
:root {
  --bg: #f5f2ec;
  --bg-alt: #ffffff;
  --text: #161616;
  --muted: #5c5c5c;
  --accent: #b11d1d;       /* Rotton für alle Links */
  --accent-soft: #f9e5e3;
  --border: #ddd3c4;
  --card-radius: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  position: relative;
}

/* Hintergrundbild mit 15 % Deckkraft */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("https://juliusson.de/bg.jpg") center/cover no-repeat;
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
}

a {
  color: var(--accent);      /* Alle Links rot */
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

/* Kopfbereich (aktuell nicht verwendet, Styles bleiben für später verfügbar) */
.site-header {
  border-bottom: 1px solid var(--border);
  margin-bottom: 26px;
  padding-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 16px;
}

.site-title {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-title span {
  color: var(--accent);
}

.site-nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

header.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr);
  gap: 28px;
  margin-bottom: 32px;
}

@media (max-width: 820px) {
  header.hero {
    grid-template-columns: 1fr;
  }
}

.hero-title {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 2.5rem);
  margin: 0 0 6px;
  font-weight: 600;
}

.hero-subline {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin: 0 0 18px;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 18px;
  max-width: 32rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.badge {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--muted);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--accent);   /* rote Linie */
  padding: 7px 16px;
  font-size: 0.9rem;
  cursor: pointer;
  background: var(--bg-alt);
  color: var(--accent);              /* Button-Text auch rot */
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  background: #fbe1de;
  border-color: var(--accent);
  color: var(--accent);
}

.hero-card {
  border-radius: var(--card-radius);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 14px 16px;
  font-size: 0.9rem;
}

.hero-card-title {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.hero-card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 8px;
}

.hero-card p {
  margin: 0 0 8px;
  color: var(--muted);
}

.hero-card p:last-child {
  margin-bottom: 0;
}

main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.15fr);
  gap: 22px;
}

@media (max-width: 900px) {
  main {
    grid-template-columns: 1fr;
  }
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 4px;
}

h3 {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.1rem;
  margin: 0 0 8px;
  font-weight: 600;
}

.card {
  border-radius: var(--card-radius);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 14px 16px;
  font-size: 0.9rem;
}

.card + .card {
  margin-top: 12px;
}

.card p {
  margin: 0 0 8px;
  color: var(--muted);
}

.card p:last-child {
  margin-bottom: 0;
}

.list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.list li {
  margin-bottom: 3px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.pill {
  font-size: 0.75rem;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid #d0c7b7;
  color: var(--muted);
}

.work-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  font-size: 0.9rem;
}

.work-item {
  padding: 7px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.work-item + .work-item {
  margin-top: 4px;
}

.work-item:hover {
  background: #f6ebe8;
  border-color: #e0c7c0;
}

.work-title {
  font-weight: 500;
  margin-bottom: 2px;
}

.work-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.work-meta span + span::before {
  content: "•";
  padding: 0 5px;
  opacity: 0.7;
}

footer {
  margin-top: 32px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* Overlay für YouTube-Player */
.video-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;              /* wird per JS auf flex gesetzt */
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.video-overlay-inner {
  background: #000;
  padding: 8px;
  max-width: 960px;
  width: 90%;
  border-radius: 8px;
  position: relative;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;     /* 16:9 */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-close {
  position: absolute;
  top: 4px;
  right: 10px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.video-close:hover {
  color: #f97373;
}