/* === Pia Schütte — site-subpages-v6.css ===
   Bauhaus poster system extended to sub-pages.
*/

body.subpage { background: var(--paper); }

/* Cover (hero of a sub-page) */
.cover {
  position: relative;
  border-bottom: 2px solid var(--black);
  overflow: hidden;
}
.cover--paper { background: var(--paper); color: var(--black); }
.cover--blue   { background: var(--blue); color: var(--paper); }
.cover--yellow { background: var(--yellow); color: var(--black); }
.cover--vermilion { background: var(--vermilion); color: var(--paper); }

.cover__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(50px, 7vw, 120px) var(--pad) clamp(40px, 6vw, 100px);
  position: relative;
  z-index: 2;
  display: block !important;
  width: 100% !important;
}
.cover__inner > div {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  float: none !important;
}
.cover__lede {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 60ch !important;
  word-spacing: normal !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: manual !important;
  flex: 1 1 auto !important;
}
.cover__inner > div {
  min-width: 0 !important;
  flex: 1 1 auto !important;
}
.cover__crumbs {
  display: block !important;
  width: auto !important;
  white-space: normal !important;
}
.cover__title {
  display: block !important;
  width: 100% !important;
  white-space: normal !important;
}
.cover__title .blue-block,
.cover__title .or-block,
.cover__title .yl-block,
.cover__title .pp-block {
  white-space: nowrap !important;
}
.cover__rail {
  border-right: 2px solid currentColor;
  padding-right: 12px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 600;
}
.cover__rail .num {
  font-family: var(--display); font-weight: 900;
  font-size: 14px; display: block; margin-bottom: 12px;
}
.cover__crumbs {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  margin: 0 0 18px;
}
.cover__crumbs a { text-decoration: none; border-bottom: 1px solid currentColor; }
.cover__crumbs .sep { padding: 0 8px; opacity: 0.7; }
.cover__title {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(48px, 7.5vw, 120px) !important;
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 0;
}
.cover__title .blue-block { background: var(--blue); color: var(--paper); padding: 0 0.18em 0.06em; display: inline-block; }
.cover__title .or-block   { background: var(--vermilion); color: var(--paper); padding: 0 0.18em 0.06em; display: inline-block; }
.cover__title .yl-block   { background: var(--yellow); color: var(--black); padding: 0 0.18em 0.06em; display: inline-block; }
.cover__title .pp-block   { background: var(--paper); color: var(--black); padding: 0 0.18em 0.06em; display: inline-block; border: 2px solid var(--black); }
.cover__lede {
  margin: 28px 0 0;
  max-width: 50ch;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.5;
  font-weight: 500;
}
.cover__shape-circle, .cover__shape-square, .cover__shape-tri {
  position: absolute; pointer-events: none; z-index: 1;
}

/* Body */
.pbody { background: var(--paper); }
.pbody__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(60px, 8vw, 120px) var(--pad);
  display: grid;
  gap: clamp(40px, 6vw, 96px);
}

/* Bio */
.bio {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.bio__photo-wrap { position: relative; }
.bio__photo {
  position: relative;
  z-index: 2;
  aspect-ratio: 3 / 4;
  background: var(--paper-2);
  border: 2px solid var(--black);
  border-radius: 50%;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: rgba(10,10,10,0.5);
}
.bio__photo-block {
  position: absolute;
  inset: 30px -30px -30px 30px;
  background: var(--vermilion);
  z-index: 1;
}
.prose {
  font-family: var(--geom);
  font-size: 16px;
  line-height: 1.6;
  max-width: 60ch;
}
.prose .lede { font-size: 19px; font-weight: 600; line-height: 1.45; }
.prose h2 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: none;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 56px 0 16px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: -0.005em;
  margin: 32px 0 8px;
}
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { font-weight: 700; }
.prose a { color: var(--black); border-bottom: 2px solid var(--vermilion); text-decoration: none; }

/* Timeline (sub-page) */
.timeline {
  border-top: 2px solid var(--black);
}
.timeline__row {
  display: grid;
  grid-template-columns: 220px 1fr 60px;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 2px solid var(--black);
  align-items: start;
  position: relative;
}
.timeline__year {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 600;
  padding-top: 4px;
}
.timeline__what h3 {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(22px, 2.2vw, 32px);
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 0 0 8px;
}
.timeline__what p { margin: 0; font-size: 15px; line-height: 1.5; max-width: 60ch; }
.timeline__dot {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--vermilion);
  margin-top: 4px;
  justify-self: end;
}
.timeline__row:nth-child(2n) .timeline__dot { background: var(--blue); }
.timeline__row:nth-child(3n) .timeline__dot { background: var(--yellow); border: 2px solid var(--black); }

/* Two-col prose layout (with side toc) */
.proselayout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.proselayout__side {
  position: sticky;
  top: 100px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 600;
  display: grid;
  gap: 8px;
  border-left: 2px solid var(--black);
  padding-left: 16px;
}
.proselayout__side h4 { font-family: inherit; margin: 0 0 8px; font-size: 11px; opacity: 0.6; }
.proselayout__side a { display: block; color: var(--black); text-decoration: none; padding: 4px 0; border: 0; }
.proselayout__side a:hover { color: var(--vermilion); }

/* Service cards on /leistungen page */
.svccards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.svccards .svc { min-height: 380px; }
.svccards .svc.is-or  { background: var(--vermilion); color: var(--paper); }
.svccards .svc.is-bl  { background: var(--blue); color: var(--paper); }
.svccards .svc.is-yl  { background: var(--yellow); color: var(--black); }
.svccards .svc.is-pp  { background: var(--paper-2); color: var(--black); }
.svccards .svc.is-pp .svc__shape  { width: 80px; height: 80px; border-radius: 50%; background: var(--vermilion); right: -16px; top: -16px; position: absolute; }

/* Journal grid */
.jgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 2px solid var(--black);
}
.jcard {
  border-right: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
  padding: 28px 24px 24px;
  background: var(--paper);
  display: flex; flex-direction: column; gap: 14px;
  min-height: 320px;
  position: relative;
  text-decoration: none;
  color: var(--black);
  transition: background 200ms ease;
}
.jcard:nth-child(3n) { border-right: 0; }
.jcard:hover { background: var(--paper-2); }
.jcard.is-or { background: var(--vermilion); color: var(--paper); }
.jcard.is-bl { background: var(--blue); color: var(--paper); }
.jcard.is-yl { background: var(--yellow); color: var(--black); }
.jcard__cat {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 10px;
  margin: 0;
}
.jcard__title {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 0.96;
  letter-spacing: -0.01em;
  margin: 0;
}
.jcard__excerpt { font-size: 14px; line-height: 1.5; margin: 0; }
.jcard__meta {
  margin-top: auto;
  display: flex; justify-content: space-between;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10px;
}

/* Contact form */
.contactgrid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.cform {
  display: grid;
  gap: 18px;
  border: 2px solid var(--black);
  background: var(--paper-2);
  padding: clamp(20px, 3vw, 36px);
}
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cform label {
  display: block;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 6px;
}
.cform input, .cform select, .cform textarea {
  width: 100%;
  border: 2px solid var(--black);
  background: var(--paper);
  padding: 12px 14px;
  font-family: var(--geom);
  font-size: 15px;
  outline: none;
}
.cform textarea { min-height: 140px; resize: vertical; }
.cform input:focus, .cform select:focus, .cform textarea:focus {
  background: var(--yellow);
}
.cform__check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.4; }
.cform__check input { width: 18px; height: 18px; }
.cform__submit {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  padding: 16px 22px;
  background: var(--black);
  color: var(--paper);
  border: 2px solid var(--black);
  border-radius: 999px;
  cursor: pointer;
  justify-self: start;
  transition: border-radius 220ms ease, background 220ms ease, color 220ms ease;
}
.cform__submit:hover { border-radius: 0; background: var(--vermilion); color: var(--black); border-color: var(--vermilion); }

.cinfo { display: grid; gap: 24px; }
.cinfo__block { border-top: 2px solid var(--black); padding-top: 16px; }
.cinfo__block:first-child { border-top: 0; padding-top: 0; }
.cinfo__lab {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  margin: 0 0 6px;
}
.cinfo__big {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.cinfo__big a { text-decoration: none; color: var(--black); border-bottom: 3px solid var(--vermilion); }
.cinfo__sub { font-size: 13px; margin: 0; opacity: 0.8; }

/* CTA band on subpages */
.cta-band {
  background: var(--vermilion);
  color: var(--paper);
  border: 2px solid var(--black);
  padding: clamp(36px, 5vw, 64px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 240px; height: 240px; border-radius: 50%;
  background: var(--blue);
}
.cta-band h2 {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(32px, 4vw, 64px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin: 0;
  position: relative; z-index: 2;
}
.cta-band a {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  padding: 16px 24px;
  background: var(--paper);
  color: var(--black);
  border: 2px solid var(--paper);
  border-radius: 999px;
  text-decoration: none;
  position: relative; z-index: 2;
  transition: border-radius 240ms ease, background 240ms ease, color 240ms ease;
}
.cta-band a:hover { border-radius: 0; background: var(--yellow); color: var(--black); border-color: var(--yellow); }

@media (max-width: 960px) {
  .cover__inner { grid-template-columns: 1fr; }
  .bio { grid-template-columns: 1fr; }
  .proselayout { grid-template-columns: 1fr; }
  .proselayout__side { position: static; }
  .svccards { grid-template-columns: 1fr; }
  .jgrid { grid-template-columns: 1fr; }
  .jcard { border-right: 0; }
  .timeline__row { grid-template-columns: 1fr; gap: 6px; }
  .timeline__dot { display: none; }
  .contactgrid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   Subtle decorative animations on sub-page covers
   Bauhaus shapes rotate slowly in background, single wobble accent.
   Respects prefers-reduced-motion.
   ========================================================= */

.cover { position: relative; }

/* Big slow circle — back-right */
.cover::before {
  content: "";
  position: absolute;
  width: clamp(240px, 26vw, 420px);
  height: clamp(240px, 26vw, 420px);
  border-radius: 50%;
  right: -8%;
  top: -18%;
  z-index: 0;
  pointer-events: none;
  animation: cover-spin 70s linear infinite;
  will-change: transform;
}

/* Small triangle — bottom-left */
.cover::after {
  content: "";
  position: absolute;
  width: 0; height: 0;
  border-left: clamp(60px, 7vw, 110px) solid transparent;
  border-right: clamp(60px, 7vw, 110px) solid transparent;
  border-bottom: clamp(100px, 11vw, 180px) solid currentColor;
  left: 4%;
  bottom: -10%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.12;
  animation: cover-spin-rev 90s linear infinite;
  will-change: transform;
}

/* Color per cover variant (using inline styles to avoid currentColor confusion) */
.cover--paper::before { background: var(--vermilion); opacity: 0.15; }
.cover--paper::after { border-bottom-color: var(--blue); opacity: 0.18; }

.cover--yellow::before { background: var(--vermilion); opacity: 0.22; }
.cover--yellow::after { border-bottom-color: var(--blue); opacity: 0.22; }

.cover--blue::before { background: var(--yellow); opacity: 0.3; }
.cover--blue::after { border-bottom-color: var(--paper); opacity: 0.2; }

.cover--vermilion::before { background: var(--yellow); opacity: 0.3; }
.cover--vermilion::after { border-bottom-color: var(--paper); opacity: 0.22; }

/* Make sure cover__inner sits above the decorative shapes */
.cover__inner { position: relative; z-index: 2 !important; }

@keyframes cover-spin {
  to { transform: rotate(360deg); }
}
@keyframes cover-spin-rev {
  to { transform: rotate(-360deg); }
}

/* Subtle text wobble on the colored title block — every 6s a small breath */
.cover__title .or-block,
.cover__title .blue-block,
.cover__title .yl-block,
.cover__title .pp-block {
  transform-origin: center center;
  animation: title-breath 7s ease-in-out infinite;
  will-change: transform;
}
@keyframes title-breath {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  25%      { transform: rotate(-0.6deg) translateY(-2px); }
  50%      { transform: rotate(0.4deg) translateY(0); }
  75%      { transform: rotate(-0.3deg) translateY(1px); }
}

/* Section dividers: little rotating accent dot floats next to H2 in prose */
.prose h2 {
  position: relative;
}
.prose h2::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  background: var(--vermilion);
  border-radius: 50%;
  margin-left: 10px;
  display: inline-block;
  vertical-align: middle;
  animation: dot-pulse 3s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.3); opacity: 0.6; }
}

/* Service cards: shape in corner gently rotates */
.svccards .svc__shape {
  animation: cover-spin 50s linear infinite;
  will-change: transform;
}

/* Bio photo: subtle float-up animation on hover */
.bio__photo {
  transition: transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.bio__photo:hover {
  transform: translateY(-8px) rotate(-2deg);
}

/* Reduce motion when user prefers it */
@media (prefers-reduced-motion: reduce) {
  .cover::before, .cover::after,
  .cover__title .or-block,
  .cover__title .blue-block,
  .cover__title .yl-block,
  .cover__title .pp-block,
  .prose h2::after,
  .svccards .svc__shape,
  .bio__photo {
    animation: none !important;
    transition: none !important;
  }
}

/* Bio photo — real image fills the circle */
.bio__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  border-radius: inherit;
}
.bio__photo {
  font-size: 0;
  color: transparent;
}

/* =========================================================
   Single blog post styling
   ========================================================= */
body.post .cover { padding-bottom: 0; }

.post__meta {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 600;
  margin: 0 0 12px;
  color: rgba(10,10,10,0.6);
}

.post__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(36px, 5.5vw, 72px) !important;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-variation-settings: "opsz" 144, "SOFT" 80, "wght" 800;
  text-transform: none;
  max-width: 22ch;
}

.post__byline {
  margin: 28px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(10,10,10,0.6);
}
.post__byline a { color: var(--vermilion); border-bottom: 1px solid currentColor; text-decoration: none; }

.post__body {
  max-width: 68ch;
}
.post__body p,
.post__body li {
  font-size: 17px;
  line-height: 1.65;
}
.post__body h2 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: none;
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 56px 0 16px;
  max-width: 28ch;
  font-variation-settings: "opsz" 144, "SOFT" 60, "wght" 700;
}
.post__body h2:first-of-type { margin-top: 0; }
.post__body h3 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: none;
  font-size: clamp(20px, 1.6vw, 22px);
  letter-spacing: -0.005em;
  margin: 32px 0 8px;
  font-variation-settings: "opsz" 144, "SOFT" 50, "wght" 700;
}
.post__body code {
  font-family: var(--mono);
  font-size: 15px;
  background: var(--paper-2);
  padding: 1px 6px;
  border-radius: 3px;
}
.post__body ol,
.post__body ul {
  padding-left: 24px;
  margin-bottom: 18px;
}
.post__body li {
  margin-bottom: 8px;
}
.post__body strong {
  font-weight: 700;
}
.post__body p a,
.post__body li a {
  color: var(--black);
  border-bottom: 2px solid var(--vermilion);
  text-decoration: none;
}
.post__body p a:hover,
.post__body li a:hover {
  background: var(--vermilion);
  color: var(--paper);
}
.post__body em {
  font-style: italic;
}

.post__cta-text {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--paper-2);
  border-left: 4px solid var(--vermilion);
  font-size: 16px;
}

/* =========================================================
   Sub-page mobile-first additions
   ========================================================= */

@media (max-width: 960px) {
  /* Cover title on tablets */
  .cover__title { font-size: clamp(40px, 9vw, 80px) !important; }
  
  /* Bio split → stack */
  .bio { grid-template-columns: 1fr; gap: 32px; }
  .bio__photo { aspect-ratio: 4 / 5; max-width: 360px; margin: 0 auto; }
  
  /* Timeline → no fixed year column */
  .timeline__row { 
    grid-template-columns: 1fr 60px;
    gap: 12px;
  }
  .timeline__year {
    grid-column: 1 / -1;
    padding-bottom: 4px;
    opacity: 0.6;
  }
  
  /* Service cards on Leistungen page */
  .svccards { grid-template-columns: 1fr; }
  
  /* Journal grid */
  .jgrid { grid-template-columns: 1fr 1fr; }
  .jcard:nth-child(2n) { border-right: 0; }
  .jcard:nth-child(3n) { border-right: 2px solid var(--black); }
  
  /* Related posts grid */
  .related-posts { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 768px) {
  /* Cover lede */
  .cover__lede { font-size: 16px; }
  
  /* Prose layout: side TOC moves above content */
  .proselayout { grid-template-columns: 1fr; gap: 24px; }
  .proselayout__side { 
    position: static; 
    border-left: 0;
    border-top: 2px solid var(--black);
    border-bottom: 2px solid var(--black);
    padding: 16px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  .proselayout__side h4 { width: 100%; margin: 0 0 4px; }
  .proselayout__side a { 
    padding: 8px 12px; 
    background: var(--paper-2);
    border-radius: 6px;
    min-height: 40px;
  }
  
  /* Post body */
  .post__body p, .post__body li { font-size: 16px; }
  .post__title { font-size: clamp(28px, 8vw, 48px) !important; }
  .post__body h2 { font-size: clamp(22px, 6vw, 30px); }
  
  /* Journal grid → single column */
  .jgrid { grid-template-columns: 1fr; }
  .jcard { border-right: 0 !important; }
  
  /* Related posts → single column */
  .related-posts { grid-template-columns: 1fr !important; }
  
  /* Service cards full bleed */
  .svccards .svc { min-height: 280px; }
  
  /* CTA band */
  .cta-band { padding: 32px 20px; text-align: center; }
}

@media (max-width: 480px) {
  .cover__title { font-size: clamp(32px, 11vw, 56px) !important; }
  .post__title { font-size: clamp(24px, 9vw, 40px) !important; }
  .timeline__what h3 { font-size: clamp(18px, 6vw, 26px); }
}
